Home
last modified time | relevance | path

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

/linux-6.6.21/net/devlink/
Dlinecard.c33 struct devlink_linecard *linecard; in devlink_linecard_get_from_attrs() local
35 linecard = devlink_linecard_get_by_index(devlink, linecard_index); in devlink_linecard_get_from_attrs()
36 if (!linecard) in devlink_linecard_get_from_attrs()
38 return linecard; in devlink_linecard_get_from_attrs()
74 struct devlink_linecard *linecard, in devlink_nl_linecard_fill() argument
90 if (nla_put_u32(msg, DEVLINK_ATTR_LINECARD_INDEX, linecard->index)) in devlink_nl_linecard_fill()
92 if (nla_put_u8(msg, DEVLINK_ATTR_LINECARD_STATE, linecard->state)) in devlink_nl_linecard_fill()
94 if (linecard->type && in devlink_nl_linecard_fill()
95 nla_put_string(msg, DEVLINK_ATTR_LINECARD_TYPE, linecard->type)) in devlink_nl_linecard_fill()
98 if (linecard->types_count) { in devlink_nl_linecard_fill()
[all …]
DMakefile4 resource.o param.o region.o health.o trap.o rate.o linecard.o
Dport.c484 if (devlink_port->linecard && in devlink_nl_port_fill()
486 devlink_port->linecard->index)) in devlink_nl_port_fill()
1402 struct devlink_linecard *linecard) in devlink_port_linecard_set() argument
1406 devlink_port->linecard = linecard; in devlink_port_linecard_set()
1421 if (devlink_port->linecard) in __devlink_port_phys_port_name_get()
1423 devlink_port->linecard->index); in __devlink_port_phys_port_name_get()
/linux-6.6.21/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.c640 struct mlxsw_thermal_area *linecard; in mlxsw_thermal_got_active() local
643 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_active()
645 if (linecard->active) in mlxsw_thermal_got_active()
648 linecard->slot_index = slot_index; in mlxsw_thermal_got_active()
650 thermal, linecard); in mlxsw_thermal_got_active()
658 thermal->core, thermal, linecard); in mlxsw_thermal_got_active()
665 linecard->active = true; in mlxsw_thermal_got_active()
670 mlxsw_thermal_modules_fini(thermal, linecard); in mlxsw_thermal_got_active()
678 struct mlxsw_thermal_area *linecard; in mlxsw_thermal_got_inactive() local
680 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_inactive()
[all …]
Dminimal.c551 struct mlxsw_m_line_card *linecard; in mlxsw_m_ports_remove_selected() local
553 linecard = mlxsw_m->line_cards[linecard_priv->slot_index]; in mlxsw_m_ports_remove_selected()
555 if (WARN_ON(!linecard->active)) in mlxsw_m_ports_remove_selected()
559 linecard->active = false; in mlxsw_m_ports_remove_selected()
583 struct mlxsw_m_line_card *linecard; in mlxsw_m_got_active() local
587 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_active()
589 if (linecard->active) in mlxsw_m_got_active()
605 linecard->active = true; in mlxsw_m_got_active()
617 struct mlxsw_m_line_card *linecard; in mlxsw_m_got_inactive() local
620 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_inactive()
[all …]
Dcore.h45 struct mlxsw_linecards *linecard);
636 int mlxsw_linecard_devlink_info_get(struct mlxsw_linecard *linecard,
640 struct mlxsw_linecard *linecard,
663 int mlxsw_linecard_bdev_add(struct mlxsw_linecard *linecard);
664 void mlxsw_linecard_bdev_del(struct mlxsw_linecard *linecard);
Dcore.c51 struct mlxsw_linecard *linecard; member
3148 struct mlxsw_linecard *linecard; in __mlxsw_core_port_init() local
3150 linecard = mlxsw_linecard_get(mlxsw_core->linecards, in __mlxsw_core_port_init()
3152 mlxsw_core_port->linecard = linecard; in __mlxsw_core_port_init()
3154 linecard->devlink_linecard); in __mlxsw_core_port_init()
3261 return mlxsw_core_port->linecard; in mlxsw_core_port_linecard_get()
/linux-6.6.21/include/net/
Ddevlink.h152 struct devlink_linecard *linecard; member
186 int (*provision)(struct devlink_linecard *linecard, void *priv,
189 int (*unprovision)(struct devlink_linecard *linecard, void *priv,
191 bool (*same_provision)(struct devlink_linecard *linecard, void *priv,
193 unsigned int (*types_count)(struct devlink_linecard *linecard,
195 void (*types_get)(struct devlink_linecard *linecard,
1709 struct devlink_linecard *linecard);
1713 void devl_linecard_destroy(struct devlink_linecard *linecard);
1714 void devlink_linecard_provision_set(struct devlink_linecard *linecard,
1716 void devlink_linecard_provision_clear(struct devlink_linecard *linecard);
[all …]
/linux-6.6.21/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.rst41 devlink-linecard
/linux-6.6.21/Documentation/netlink/specs/
Ddevlink.yaml192 name: linecard-index
630 name: linecard-get
641 attributes: &linecard-id-attrs
644 - linecard-index
645 reply: &linecard-get-reply
647 attributes: *linecard-id-attrs
651 reply: *linecard-get-reply