Home
last modified time | relevance | path

Searched refs:linecard (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/net/devlink/
Dlinecard.c23 unsigned int devlink_linecard_index(struct devlink_linecard *linecard) in devlink_linecard_index() argument
25 return linecard->index; in devlink_linecard_index()
52 struct devlink_linecard *linecard; in devlink_linecard_get_from_attrs() local
54 linecard = devlink_linecard_get_by_index(devlink, linecard_index); in devlink_linecard_get_from_attrs()
55 if (!linecard) in devlink_linecard_get_from_attrs()
57 return linecard; in devlink_linecard_get_from_attrs()
75 struct devlink_linecard *linecard, in devlink_nl_linecard_fill() argument
91 if (nla_put_u32(msg, DEVLINK_ATTR_LINECARD_INDEX, linecard->index)) in devlink_nl_linecard_fill()
93 if (nla_put_u8(msg, DEVLINK_ATTR_LINECARD_STATE, linecard->state)) in devlink_nl_linecard_fill()
95 if (linecard->type && in devlink_nl_linecard_fill()
[all …]
DMakefile4 resource.o param.o region.o health.o trap.o rate.o linecard.o
Dport.c531 if (devlink_port->linecard && in devlink_nl_port_fill()
533 devlink_linecard_index(devlink_port->linecard))) in devlink_nl_port_fill()
1507 struct devlink_linecard *linecard) in devlink_port_linecard_set() argument
1511 devlink_port->linecard = linecard; in devlink_port_linecard_set()
1526 if (devlink_port->linecard) in __devlink_port_phys_port_name_get()
1528 devlink_linecard_index(devlink_port->linecard)); in __devlink_port_phys_port_name_get()
Ddevl_internal.h299 unsigned int devlink_linecard_index(struct devlink_linecard *linecard);
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/
Dcore_linecards.c42 mlxsw_linecard_status_event_to_schedule(struct mlxsw_linecard *linecard, in mlxsw_linecard_status_event_to_schedule() argument
45 cancel_delayed_work_sync(&linecard->status_event_to_dw); in mlxsw_linecard_status_event_to_schedule()
46 linecard->status_event_type_to = status_event_type; in mlxsw_linecard_status_event_to_schedule()
47 mlxsw_core_schedule_dw(&linecard->status_event_to_dw, in mlxsw_linecard_status_event_to_schedule()
52 mlxsw_linecard_status_event_done(struct mlxsw_linecard *linecard, in mlxsw_linecard_status_event_done() argument
55 if (linecard->status_event_type_to == status_event_type) in mlxsw_linecard_status_event_done()
56 cancel_delayed_work_sync(&linecard->status_event_to_dw); in mlxsw_linecard_status_event_done()
77 static const char *mlxsw_linecard_type_name(struct mlxsw_linecard *linecard) in mlxsw_linecard_type_name() argument
79 struct mlxsw_core *mlxsw_core = linecard->linecards->mlxsw_core; in mlxsw_linecard_type_name()
83 mlxsw_reg_mddq_slot_name_pack(mddq_pl, linecard->slot_index); in mlxsw_linecard_type_name()
[all …]
Dcore_linecard_dev.c18 struct mlxsw_linecard *linecard; member
23 struct mlxsw_linecard *linecard; member
50 int mlxsw_linecard_bdev_add(struct mlxsw_linecard *linecard) in mlxsw_linecard_bdev_add() argument
68 linecard_bdev->adev.dev.parent = linecard->linecards->bus_info->dev; in mlxsw_linecard_bdev_add()
69 linecard_bdev->linecard = linecard; in mlxsw_linecard_bdev_add()
84 linecard->bdev = linecard_bdev; in mlxsw_linecard_bdev_add()
88 void mlxsw_linecard_bdev_del(struct mlxsw_linecard *linecard) in mlxsw_linecard_bdev_del() argument
90 struct mlxsw_linecard_bdev *linecard_bdev = linecard->bdev; in mlxsw_linecard_bdev_del()
97 linecard->bdev = NULL; in mlxsw_linecard_bdev_del()
105 struct mlxsw_linecard *linecard = linecard_dev->linecard; in mlxsw_linecard_dev_devlink_info_get() local
[all …]
Dcore_hwmon.c792 struct mlxsw_hwmon_dev *linecard; in mlxsw_hwmon_got_active() local
797 linecard = &hwmon->line_cards[slot_index]; in mlxsw_hwmon_got_active()
798 if (linecard->active) in mlxsw_hwmon_got_active()
803 linecard->sensor_count = 1; in mlxsw_hwmon_got_active()
804 linecard->slot_index = slot_index; in mlxsw_hwmon_got_active()
805 linecard->hwmon = hwmon; in mlxsw_hwmon_got_active()
806 err = mlxsw_hwmon_module_init(linecard); in mlxsw_hwmon_got_active()
813 err = mlxsw_hwmon_gearbox_init(linecard); in mlxsw_hwmon_got_active()
820 linecard->groups[0] = &linecard->group; in mlxsw_hwmon_got_active()
821 linecard->group.attrs = linecard->attrs; in mlxsw_hwmon_got_active()
[all …]
Dcore_thermal.c573 struct mlxsw_thermal_area *linecard; in mlxsw_thermal_got_active() local
576 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_active()
578 if (linecard->active) in mlxsw_thermal_got_active()
581 linecard->slot_index = slot_index; in mlxsw_thermal_got_active()
583 thermal, linecard); in mlxsw_thermal_got_active()
591 thermal->core, thermal, linecard); in mlxsw_thermal_got_active()
598 linecard->active = true; in mlxsw_thermal_got_active()
603 mlxsw_thermal_modules_fini(thermal, linecard); in mlxsw_thermal_got_active()
611 struct mlxsw_thermal_area *linecard; in mlxsw_thermal_got_inactive() local
613 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_inactive()
[all …]
Dminimal.c566 struct mlxsw_m_line_card *linecard; in mlxsw_m_ports_remove_selected() local
568 linecard = mlxsw_m->line_cards[linecard_priv->slot_index]; in mlxsw_m_ports_remove_selected()
570 if (WARN_ON(!linecard->active)) in mlxsw_m_ports_remove_selected()
574 linecard->active = false; in mlxsw_m_ports_remove_selected()
598 struct mlxsw_m_line_card *linecard; in mlxsw_m_got_active() local
602 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_active()
604 if (linecard->active) in mlxsw_m_got_active()
620 linecard->active = true; in mlxsw_m_got_active()
632 struct mlxsw_m_line_card *linecard; in mlxsw_m_got_inactive() local
635 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_inactive()
[all …]
Dcore.h49 struct mlxsw_linecards *linecard);
649 int mlxsw_linecard_devlink_info_get(struct mlxsw_linecard *linecard,
653 struct mlxsw_linecard *linecard,
676 int mlxsw_linecard_bdev_add(struct mlxsw_linecard *linecard);
677 void mlxsw_linecard_bdev_del(struct mlxsw_linecard *linecard);
Dcore.c51 struct mlxsw_linecard *linecard; member
3085 struct mlxsw_linecard *linecard; in __mlxsw_core_port_init() local
3087 linecard = mlxsw_linecard_get(mlxsw_core->linecards, in __mlxsw_core_port_init()
3089 mlxsw_core_port->linecard = linecard; in __mlxsw_core_port_init()
3091 linecard->devlink_linecard); in __mlxsw_core_port_init()
3198 return mlxsw_core_port->linecard; in mlxsw_core_port_linecard_get()
/linux-6.12.1/include/net/
Ddevlink.h152 struct devlink_linecard *linecard; member
187 int (*provision)(struct devlink_linecard *linecard, void *priv,
190 int (*unprovision)(struct devlink_linecard *linecard, void *priv,
192 bool (*same_provision)(struct devlink_linecard *linecard, void *priv,
194 unsigned int (*types_count)(struct devlink_linecard *linecard,
196 void (*types_get)(struct devlink_linecard *linecard,
1729 struct devlink_linecard *linecard);
1733 void devl_linecard_destroy(struct devlink_linecard *linecard);
1734 void devlink_linecard_provision_set(struct devlink_linecard *linecard,
1736 void devlink_linecard_provision_clear(struct devlink_linecard *linecard);
[all …]
/linux-6.12.1/Documentation/networking/devlink/
Ddevlink-linecard.rst10 The ``devlink-linecard`` mechanism is targeted for manipulation of
61 The ``devlink-linecard`` mechanism supports the following line card states:
71 The following diagram provides a general overview of ``devlink-linecard``
Dindex.rst43 - ``devlink_linecard_nested_dl_set()`` - called to setup linecard ->
69 devlink-linecard