Home
last modified time | relevance | path

Searched refs:devlink_linecard (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dcore_linecards.c441 devlink_linecard_provision_fail(linecard->devlink_linecard); in mlxsw_linecard_provision_fail()
654 devlink_linecard_provision_set(linecard->devlink_linecard, type); in mlxsw_linecard_provision_set()
664 devlink_linecard_provision_clear(linecard->devlink_linecard); in mlxsw_linecard_provision_clear()
703 devlink_linecard_activate(linecard->devlink_linecard); in mlxsw_linecard_active_set()
710 devlink_linecard_deactivate(linecard->devlink_linecard); in mlxsw_linecard_active_clear()
1045 static int mlxsw_linecard_provision(struct devlink_linecard *devlink_linecard, in mlxsw_linecard_provision() argument
1083 static int mlxsw_linecard_unprovision(struct devlink_linecard *devlink_linecard, in mlxsw_linecard_unprovision() argument
1118 static bool mlxsw_linecard_same_provision(struct devlink_linecard *devlink_linecard, in mlxsw_linecard_same_provision() argument
1134 mlxsw_linecard_types_count(struct devlink_linecard *devlink_linecard, in mlxsw_linecard_types_count() argument
1143 static void mlxsw_linecard_types_get(struct devlink_linecard *devlink_linecard, in mlxsw_linecard_types_get() argument
[all …]
Dcore_linecard_dev.c145 devlink_linecard_nested_dl_set(linecard->devlink_linecard, devlink); in mlxsw_linecard_bdev_probe()
156 devlink_linecard_nested_dl_set(linecard->devlink_linecard, NULL); in mlxsw_linecard_bdev_remove()
Dcore.h605 struct devlink_linecard *devlink_linecard; member
Dcore.c3100 linecard->devlink_linecard); in __mlxsw_core_port_init()
/linux-6.1.9/include/net/
Ddevlink.h25 struct devlink_linecard;
140 struct devlink_linecard *linecard;
174 int (*provision)(struct devlink_linecard *linecard, void *priv,
177 int (*unprovision)(struct devlink_linecard *linecard, void *priv,
179 bool (*same_provision)(struct devlink_linecard *linecard, void *priv,
181 unsigned int (*types_count)(struct devlink_linecard *linecard,
183 void (*types_get)(struct devlink_linecard *linecard,
1596 struct devlink_linecard *linecard);
1597 struct devlink_linecard *
1600 void devlink_linecard_destroy(struct devlink_linecard *linecard);
[all …]
/linux-6.1.9/net/core/
Ddevlink.c80 struct devlink_linecard { struct
494 static struct devlink_linecard *
498 struct devlink_linecard *devlink_linecard; in devlink_linecard_get_by_index() local
500 list_for_each_entry(devlink_linecard, &devlink->linecard_list, list) { in devlink_linecard_get_by_index()
501 if (devlink_linecard->index == linecard_index) in devlink_linecard_get_by_index()
502 return devlink_linecard; in devlink_linecard_get_by_index()
513 static struct devlink_linecard *
518 struct devlink_linecard *linecard; in devlink_linecard_get_from_attrs()
532 static struct devlink_linecard *
538 static void devlink_linecard_put(struct devlink_linecard *linecard) in devlink_linecard_put()
[all …]