/kernel/linux/linux-6.6/net/devlink/ |
H A D | linecard.c | 33 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() 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 in devlink_nl_linecard_fill() 72 devlink_nl_linecard_fill(struct sk_buff *msg, struct devlink *devlink, struct devlink_linecard *linecard, enum devlink_command cmd, u32 portid, u32 seq, int flags, struct netlink_ext_ack *extack) devlink_nl_linecard_fill() argument 126 devlink_linecard_notify(struct devlink_linecard *linecard, enum devlink_command cmd) devlink_linecard_notify() argument 156 struct devlink_linecard *linecard; devlink_linecards_notify_register() local 164 struct devlink_linecard *linecard; devlink_linecards_notify_unregister() local 173 struct devlink_linecard *linecard; devlink_nl_linecard_get_doit() local 205 struct devlink_linecard *linecard; devlink_nl_linecard_get_dump_one() local 238 devlink_linecard_type_lookup(struct devlink_linecard *linecard, const char *type) devlink_linecard_type_lookup() argument 252 devlink_linecard_type_set(struct devlink_linecard *linecard, const char *type, struct netlink_ext_ack *extack) devlink_linecard_type_set() argument 318 devlink_linecard_type_unset(struct devlink_linecard *linecard, struct netlink_ext_ack *extack) devlink_linecard_type_unset() argument 374 struct devlink_linecard *linecard; devlink_nl_cmd_linecard_set_doit() local 399 devlink_linecard_types_init(struct devlink_linecard *linecard) devlink_linecard_types_init() argument 421 devlink_linecard_types_fini(struct devlink_linecard *linecard) devlink_linecard_types_fini() argument 443 struct devlink_linecard *linecard; devl_linecard_create() local 482 devl_linecard_destroy(struct devlink_linecard *linecard) devl_linecard_destroy() argument 501 devlink_linecard_provision_set(struct devlink_linecard *linecard, const char *type) devlink_linecard_provision_set() argument 521 devlink_linecard_provision_clear(struct devlink_linecard *linecard) devlink_linecard_provision_clear() argument 540 devlink_linecard_provision_fail(struct devlink_linecard *linecard) devlink_linecard_provision_fail() argument 555 devlink_linecard_activate(struct devlink_linecard *linecard) devlink_linecard_activate() argument 570 devlink_linecard_deactivate(struct devlink_linecard *linecard) devlink_linecard_deactivate() argument 598 devlink_linecard_nested_dl_set(struct devlink_linecard *linecard, struct devlink *nested_devlink) devlink_linecard_nested_dl_set() argument [all...] |
H A D | Makefile | 4 resource.o param.o region.o health.o trap.o rate.o linecard.o
|
H A D | port.c | 484 if (devlink_port->linecard && in devlink_nl_port_fill() 486 devlink_port->linecard->index)) in devlink_nl_port_fill() 1396 * devlink_port_linecard_set - Link port with a linecard 1399 * @linecard: devlink linecard 1402 struct devlink_linecard *linecard) in devlink_port_linecard_set() 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 in __devlink_port_phys_port_name_get() 1401 devlink_port_linecard_set(struct devlink_port *devlink_port, struct devlink_linecard *linecard) devlink_port_linecard_set() argument [all...] |
/kernel/linux/linux-6.6/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 in mlxsw_linecard_type_name() 94 struct mlxsw_linecard *linecard; global() member 106 struct mlxsw_linecard *linecard = info->linecard; mlxsw_linecard_device_fw_component_query() local 136 struct mlxsw_linecard *linecard = info->linecard; mlxsw_linecard_device_fw_fsm_lock() local 174 struct mlxsw_linecard *linecard = info->linecard; mlxsw_linecard_device_fw_fsm_component_update() local 196 struct mlxsw_linecard *linecard = info->linecard; mlxsw_linecard_device_fw_fsm_block_download() local 216 struct mlxsw_linecard *linecard = info->linecard; mlxsw_linecard_device_fw_fsm_component_verify() local 236 struct mlxsw_linecard *linecard = info->linecard; mlxsw_linecard_device_fw_fsm_activate() local 259 struct mlxsw_linecard *linecard = info->linecard; mlxsw_linecard_device_fw_fsm_query_state() local 289 struct mlxsw_linecard *linecard = info->linecard; mlxsw_linecard_device_fw_fsm_cancel() local 309 struct mlxsw_linecard *linecard = info->linecard; mlxsw_linecard_device_fw_fsm_release() local 336 mlxsw_linecard_flash_update(struct devlink *linecard_devlink, struct mlxsw_linecard *linecard, const struct firmware *firmware, struct netlink_ext_ack *extack) mlxsw_linecard_flash_update() argument 367 mlxsw_linecard_device_psid_get(struct mlxsw_linecard *linecard, u8 device_index, char *psid) mlxsw_linecard_device_psid_get() argument 388 mlxsw_linecard_device_info_update(struct mlxsw_linecard *linecard) mlxsw_linecard_device_info_update() argument 436 mlxsw_linecard_provision_fail(struct mlxsw_linecard *linecard) mlxsw_linecard_provision_fail() argument 451 mlxsw_linecard_event_op_call(struct mlxsw_linecard *linecard, mlxsw_linecards_event_op_t *op, void *priv) mlxsw_linecard_event_op_call() argument 462 mlxsw_linecard_active_ops_call(struct mlxsw_linecard *linecard) mlxsw_linecard_active_ops_call() argument 476 mlxsw_linecard_inactive_ops_call(struct mlxsw_linecard *linecard) mlxsw_linecard_inactive_ops_call() argument 493 struct mlxsw_linecard *linecard; mlxsw_linecards_event_ops_register_call() local 511 struct mlxsw_linecard *linecard; mlxsw_linecards_event_ops_unregister_call() local 575 mlxsw_linecard_devlink_info_get(struct mlxsw_linecard *linecard, struct devlink_info_req *req, struct netlink_ext_ack *extack) mlxsw_linecard_devlink_info_get() argument 620 mlxsw_linecard_provision_set(struct mlxsw_linecard *linecard, u8 card_type, u16 hw_revision, u16 ini_version) mlxsw_linecard_provision_set() argument 658 mlxsw_linecard_provision_clear(struct mlxsw_linecard *linecard) mlxsw_linecard_provision_clear() argument 667 mlxsw_linecard_ready_set(struct mlxsw_linecard *linecard) mlxsw_linecard_ready_set() argument 685 mlxsw_linecard_ready_clear(struct mlxsw_linecard *linecard) mlxsw_linecard_ready_clear() argument 699 mlxsw_linecard_active_set(struct mlxsw_linecard *linecard) mlxsw_linecard_active_set() argument 706 mlxsw_linecard_active_clear(struct mlxsw_linecard *linecard) mlxsw_linecard_active_clear() argument 713 mlxsw_linecard_status_process(struct mlxsw_linecards *linecards, struct mlxsw_linecard *linecard, const char *mddq_pl) mlxsw_linecard_status_process() argument 773 mlxsw_linecard_status_get_and_process(struct mlxsw_core *mlxsw_core, struct mlxsw_linecards *linecards, struct mlxsw_linecard *linecard) mlxsw_linecard_status_get_and_process() argument 795 struct mlxsw_linecard *linecard = mlxsw_linecard_get(linecards, mlxsw_linecards_irq_event_handler() local 810 struct mlxsw_linecard *linecard = mlxsw_linecard_status_event_to_work() local 822 __mlxsw_linecard_fix_fsm_state(struct mlxsw_linecard *linecard) __mlxsw_linecard_fix_fsm_state() argument 832 mlxsw_linecard_fix_fsm_state(struct mlxsw_linecard *linecard, enum mlxsw_reg_mbct_fsm_state fsm_state) mlxsw_linecard_fix_fsm_state() argument 841 mlxsw_linecard_query_ini_status(struct mlxsw_linecard *linecard, enum mlxsw_reg_mbct_status *status, enum mlxsw_reg_mbct_fsm_state *fsm_state, struct netlink_ext_ack *extack) mlxsw_linecard_query_ini_status() argument 861 mlxsw_linecard_ini_transfer(struct mlxsw_core *mlxsw_core, struct mlxsw_linecard *linecard, const struct mlxsw_linecard_ini_file *ini_file, struct netlink_ext_ack *extack) mlxsw_linecard_ini_transfer() argument 909 mlxsw_linecard_ini_erase(struct mlxsw_core *mlxsw_core, struct mlxsw_linecard *linecard, struct netlink_ext_ack *extack) mlxsw_linecard_ini_erase() argument 952 struct mlxsw_linecard *linecard; mlxsw_linecard_bct_process() local 975 mlxsw_linecard_ini_activate(struct mlxsw_core *mlxsw_core, struct mlxsw_linecard *linecard, struct netlink_ext_ack *extack) mlxsw_linecard_ini_activate() argument 1007 mlxsw_linecard_ini_in_use_wait(struct mlxsw_core *mlxsw_core, struct mlxsw_linecard *linecard, struct netlink_ext_ack *extack) mlxsw_linecard_ini_in_use_wait() argument 1038 struct mlxsw_linecard *linecard = priv; mlxsw_linecard_port_selector() local 1051 struct mlxsw_linecard *linecard = priv; mlxsw_linecard_provision() local 1087 struct mlxsw_linecard *linecard = priv; mlxsw_linecard_unprovision() local 1123 struct mlxsw_linecard *linecard = priv; mlxsw_linecard_same_provision() local 1137 struct mlxsw_linecard *linecard = priv; mlxsw_linecard_types_count() local 1149 struct mlxsw_linecard *linecard = priv; mlxsw_linecard_types_get() local 1240 mlxsw_linecard_event_delivery_set(struct mlxsw_core *mlxsw_core, struct mlxsw_linecard *linecard, bool enable) mlxsw_linecard_event_delivery_set() argument 1255 struct mlxsw_linecard *linecard; mlxsw_linecard_init() local 1279 struct mlxsw_linecard *linecard; mlxsw_linecard_fini() local 1297 struct mlxsw_linecard *linecard; mlxsw_linecard_event_delivery_init() local 1322 struct mlxsw_linecard *linecard; mlxsw_linecard_event_delivery_fini() local [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 in mlxsw_linecard_bdev_del() 105 struct mlxsw_linecard *linecard = linecard_dev->linecard; mlxsw_linecard_dev_devlink_info_get() local 116 struct mlxsw_linecard *linecard = linecard_dev->linecard; mlxsw_linecard_dev_devlink_flash_update() local 132 struct mlxsw_linecard *linecard = linecard_bdev->linecard; mlxsw_linecard_bdev_probe() local 154 struct mlxsw_linecard *linecard = linecard_bdev->linecard; mlxsw_linecard_bdev_remove() 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 in mlxsw_hwmon_got_active() 840 struct mlxsw_hwmon_dev *linecard; mlxsw_hwmon_got_inactive() local [all...] |
H A D | minimal.c | 551 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 in mlxsw_m_got_inactive() [all...] |
H A D | core_thermal.c | 640 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 in mlxsw_thermal_got_inactive() [all...] |
H A D | core.h | 45 struct mlxsw_linecards *linecard); 601 struct mutex lock; /* Locks accesses to the linecard structure */ 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);
|
H A D | core.c | 51 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()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | devlink.h | 152 struct devlink_linecard *linecard; member 168 * @provision: callback to provision the linecard slot with certain 169 * type of linecard. As a result of this operation, 174 * @unprovision: callback to unprovision the linecard slot. As a result 179 * @same_provision: callback to ask the driver if linecard is already 180 * provisioned in the same way user asks this linecard to be 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, [all...] |