Searched refs:linecard (Results 1 – 9 of 9) sorted by relevance
| /linux/net/devlink/ |
| H A D | linecard.c | 23 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 …]
|
| H A D | Makefile | 4 resource.o param.o region.o health.o trap.o rate.o linecard.o
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | core_linecards.c | 42 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 …]
|
| H A D | core_linecard_dev.c | 18 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 …]
|
| H A D | core_hwmon.c | 792 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 …]
|
| H A D | core_thermal.c | 571 struct mlxsw_thermal_area *linecard; in mlxsw_thermal_got_active() local 574 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_active() 576 if (linecard->active) in mlxsw_thermal_got_active() 579 linecard->slot_index = slot_index; in mlxsw_thermal_got_active() 581 thermal, linecard); in mlxsw_thermal_got_active() 589 thermal->core, thermal, linecard); in mlxsw_thermal_got_active() 596 linecard->active = true; in mlxsw_thermal_got_active() 601 mlxsw_thermal_modules_fini(thermal, linecard); in mlxsw_thermal_got_active() 609 struct mlxsw_thermal_area *linecard; in mlxsw_thermal_got_inactive() local 611 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_inactive() [all …]
|
| H A D | minimal.c | 562 struct mlxsw_m_line_card *linecard; in mlxsw_m_ports_remove_selected() local 564 linecard = mlxsw_m->line_cards[linecard_priv->slot_index]; in mlxsw_m_ports_remove_selected() 566 if (WARN_ON(!linecard->active)) in mlxsw_m_ports_remove_selected() 570 linecard->active = false; in mlxsw_m_ports_remove_selected() 594 struct mlxsw_m_line_card *linecard; in mlxsw_m_got_active() local 598 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_active() 600 if (linecard->active) in mlxsw_m_got_active() 616 linecard->active = true; in mlxsw_m_got_active() 628 struct mlxsw_m_line_card *linecard; in mlxsw_m_got_inactive() local 631 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_inactive() [all …]
|
| H A D | core.c | 52 struct mlxsw_linecard *linecard; member 3084 struct mlxsw_linecard *linecard; in __mlxsw_core_port_init() local 3086 linecard = mlxsw_linecard_get(mlxsw_core->linecards, in __mlxsw_core_port_init() 3088 mlxsw_core_port->linecard = linecard; in __mlxsw_core_port_init() 3090 linecard->devlink_linecard); in __mlxsw_core_port_init() 3197 return mlxsw_core_port->linecard; in mlxsw_core_port_linecard_get()
|
| /linux/Documentation/networking/devlink/ |
| H A D | devlink-linecard.rst | 10 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``
|