Searched refs:linecard (Results 1 – 11 of 11) 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 | port.c | 534 if (devlink_port->linecard && in devlink_nl_port_fill() 536 devlink_linecard_index(devlink_port->linecard))) in devlink_nl_port_fill() 1496 struct devlink_linecard *linecard) in devlink_port_linecard_set() argument 1500 devlink_port->linecard = linecard; in devlink_port_linecard_set() 1515 if (devlink_port->linecard) in __devlink_port_phys_port_name_get() 1517 devlink_linecard_index(devlink_port->linecard)); in __devlink_port_phys_port_name_get()
|
| H A D | devl_internal.h | 353 unsigned int devlink_linecard_index(struct devlink_linecard *linecard);
|
| /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 | 561 struct mlxsw_m_line_card *linecard; in mlxsw_m_ports_remove_selected() local 563 linecard = mlxsw_m->line_cards[linecard_priv->slot_index]; in mlxsw_m_ports_remove_selected() 565 if (WARN_ON(!linecard->active)) in mlxsw_m_ports_remove_selected() 569 linecard->active = false; in mlxsw_m_ports_remove_selected() 593 struct mlxsw_m_line_card *linecard; in mlxsw_m_got_active() local 597 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_active() 599 if (linecard->active) in mlxsw_m_got_active() 615 linecard->active = true; in mlxsw_m_got_active() 627 struct mlxsw_m_line_card *linecard; in mlxsw_m_got_inactive() local 630 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_inactive() [all …]
|
| /linux/include/net/ |
| H A D | devlink.h | 160 struct devlink_linecard *linecard; member 195 int (*provision)(struct devlink_linecard *linecard, void *priv, 198 int (*unprovision)(struct devlink_linecard *linecard, void *priv, 200 bool (*same_provision)(struct devlink_linecard *linecard, void *priv, 202 unsigned int (*types_count)(struct devlink_linecard *linecard, 204 void (*types_get)(struct devlink_linecard *linecard, 1858 struct devlink_linecard *linecard); 1862 void devl_linecard_destroy(struct devlink_linecard *linecard); 1863 void devlink_linecard_provision_set(struct devlink_linecard *linecard, 1865 void devlink_linecard_provision_clear(struct devlink_linecard *linecard); [all …]
|
| /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``
|
| H A D | index.rst | 43 - ``devlink_linecard_nested_dl_set()`` - called to setup linecard -> 63 devlink-linecard
|