Home
last modified time | relevance | path

Searched refs:mlxsw_core (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A Dcore.h40 void *mlxsw_core_driver_priv(struct mlxsw_core *mlxsw_core);
54 int mlxsw_core_fw_flash(struct mlxsw_core *mlxsw_core,
228 int mlxsw_reg_query(struct mlxsw_core *mlxsw_core,
230 int mlxsw_reg_write(struct mlxsw_core *mlxsw_core,
347 int (*init)(struct mlxsw_core *mlxsw_core,
350 void (*fini)(struct mlxsw_core *mlxsw_core);
359 int (*sb_pool_get)(struct mlxsw_core *mlxsw_core,
362 int (*sb_pool_set)(struct mlxsw_core *mlxsw_core,
392 int (*trap_init)(struct mlxsw_core *mlxsw_core,
394 void (*trap_fini)(struct mlxsw_core *mlxsw_core,
[all …]
A Dcore.c117 struct mlxsw_core *mlxsw_core = priv; in mlxsw_ports_occ_get() local
232 struct mlxsw_core *mlxsw_core; member
1061 struct mlxsw_core *mlxsw_core; member
1070 struct mlxsw_core *mlxsw_core = mlxsw_core_fw_info->mlxsw_core; in mlxsw_core_fw_component_query() local
1089 struct mlxsw_core *mlxsw_core = mlxsw_core_fw_info->mlxsw_core; in mlxsw_core_fw_fsm_lock() local
1112 struct mlxsw_core *mlxsw_core = mlxsw_core_fw_info->mlxsw_core; in mlxsw_core_fw_fsm_component_update() local
1125 struct mlxsw_core *mlxsw_core = mlxsw_core_fw_info->mlxsw_core; in mlxsw_core_fw_fsm_block_download() local
1224 .mlxsw_core = mlxsw_core in mlxsw_core_dev_fw_flash()
1762 struct mlxsw_core *mlxsw_core; member
1770 struct mlxsw_core *mlxsw_core; in mlxsw_core_health_event_work() local
[all …]
A Dcmd.h26 struct mlxsw_core;
28 int mlxsw_cmd_exec(struct mlxsw_core *mlxsw_core, u16 opcode, u8 opcode_mod,
33 static inline int mlxsw_cmd_exec_in(struct mlxsw_core *mlxsw_core, u16 opcode, in mlxsw_cmd_exec_in() argument
41 static inline int mlxsw_cmd_exec_out(struct mlxsw_core *mlxsw_core, u16 opcode, in mlxsw_cmd_exec_out() argument
199 static inline int mlxsw_cmd_query_fw(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_fw() argument
365 static inline int mlxsw_cmd_boardinfo(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_boardinfo() argument
487 static inline int mlxsw_cmd_map_fa(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_map_fa() argument
516 static inline int mlxsw_cmd_unmap_fa(struct mlxsw_core *mlxsw_core) in mlxsw_cmd_unmap_fa() argument
1065 static inline int mlxsw_cmd_2err_sdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_2err_sdq() argument
1072 static inline int mlxsw_cmd_2err_rdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_2err_rdq() argument
[all …]
A Dcore_env.h17 struct mlxsw_core *mlxsw_core, u8 slot_index,
21 struct mlxsw_core *mlxsw_core, u8 slot_index,
26 mlxsw_env_get_module_eeprom_by_page(struct mlxsw_core *mlxsw_core,
32 struct mlxsw_core *mlxsw_core, u8 slot_index,
36 mlxsw_env_get_module_power_mode(struct mlxsw_core *mlxsw_core, u8 slot_index,
42 mlxsw_env_set_module_power_mode(struct mlxsw_core *mlxsw_core, u8 slot_index,
48 mlxsw_env_module_overheat_counter_get(struct mlxsw_core *mlxsw_core, u8 slot_index,
51 void mlxsw_env_module_port_map(struct mlxsw_core *mlxsw_core, u8 slot_index,
54 void mlxsw_env_module_port_unmap(struct mlxsw_core *mlxsw_core, u8 slot_index,
57 int mlxsw_env_module_port_up(struct mlxsw_core *mlxsw_core, u8 slot_index,
[all …]
A Dcore_linecards.c93 struct mlxsw_core *mlxsw_core; member
107 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_component_query() local
137 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_lock() local
175 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_component_update() local
197 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_block_download() local
217 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_component_verify() local
237 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_activate() local
260 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_query_state() local
290 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_cancel() local
310 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_release() local
[all …]
A Dcore_env.c31 struct mlxsw_core *core;
58 mlxsw_env_module_info *mlxsw_env_module_info_get(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_info_get() argument
145 mlxsw_env_query_module_eeprom(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_query_module_eeprom() argument
292 struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_get_module_info() argument
387 struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_get_module_eeprom() argument
461 mlxsw_env_get_module_eeprom_by_page(struct mlxsw_core *mlxsw_core, in mlxsw_env_get_module_eeprom_by_page() argument
530 struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_reset_module() argument
632 static int mlxsw_env_module_enable_set(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_enable_set() argument
711 mlxsw_env_set_module_power_mode_apply(struct mlxsw_core *mlxsw_core, in mlxsw_env_set_module_power_mode_apply() argument
1043 mlxsw_env_module_plug_event_register(struct mlxsw_core *mlxsw_core) in mlxsw_env_module_plug_event_register() argument
[all …]
A Dminimal.c36 struct mlxsw_core *core;
110 struct mlxsw_core *core = mlxsw_m_port->mlxsw_m->core; in mlxsw_m_get_module_info()
122 struct mlxsw_core *core = mlxsw_m_port->mlxsw_m->core; in mlxsw_m_get_module_eeprom()
544 mlxsw_m_ports_remove_selected(struct mlxsw_core *mlxsw_core, in mlxsw_m_ports_remove_selected() argument
580 mlxsw_m_got_active(struct mlxsw_core *mlxsw_core, u8 slot_index, void *priv) in mlxsw_m_got_active() argument
614 mlxsw_m_got_inactive(struct mlxsw_core *mlxsw_core, u8 slot_index, void *priv) in mlxsw_m_got_inactive() argument
633 static int mlxsw_m_init(struct mlxsw_core *mlxsw_core, in mlxsw_m_init() argument
640 mlxsw_m->core = mlxsw_core; in mlxsw_m_init()
675 mlxsw_linecards_event_ops_unregister(mlxsw_core, in mlxsw_m_init()
682 static void mlxsw_m_fini(struct mlxsw_core *mlxsw_core) in mlxsw_m_fini() argument
[all …]
A Dspectrum_ptp.h60 int mlxsw_sp_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core,
89 int mlxsw_sp2_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core,
175 mlxsw_sp_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, in mlxsw_sp_ptp_txhdr_construct() argument
236 mlxsw_sp2_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, in mlxsw_sp2_ptp_txhdr_construct() argument
A Dspectrum.c251 mlxsw_sp_txhdr_ptp_data_construct(struct mlxsw_core *mlxsw_core, in mlxsw_sp_txhdr_ptp_data_construct() argument
300 static int mlxsw_sp_txhdr_handle(struct mlxsw_core *mlxsw_core, in mlxsw_sp_txhdr_handle() argument
2099 mlxsw_sp_ports_remove_selected(struct mlxsw_core *mlxsw_core, in mlxsw_sp_ports_remove_selected() argument
2590 static int mlxsw_sp_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_trap_groups_set() argument
3084 static int mlxsw_sp_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_init() argument
3312 static int mlxsw_sp1_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp1_init() argument
3345 static int mlxsw_sp2_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp2_init() argument
3379 static int mlxsw_sp3_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp3_init() argument
3413 static int mlxsw_sp4_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp4_init() argument
3447 static void mlxsw_sp_fini(struct mlxsw_core *mlxsw_core) in mlxsw_sp_fini() argument
[all …]
A Dspectrum.h246 int (*txhdr_construct)(struct mlxsw_core *mlxsw_core,
582 int mlxsw_sp_sb_pool_get(struct mlxsw_core *mlxsw_core,
585 int mlxsw_sp_sb_pool_set(struct mlxsw_core *mlxsw_core,
604 int mlxsw_sp_sb_occ_snapshot(struct mlxsw_core *mlxsw_core,
606 int mlxsw_sp_sb_occ_max_clear(struct mlxsw_core *mlxsw_core,
1412 int mlxsw_sp_trap_init(struct mlxsw_core *mlxsw_core,
1414 void mlxsw_sp_trap_fini(struct mlxsw_core *mlxsw_core,
1416 int mlxsw_sp_trap_action_set(struct mlxsw_core *mlxsw_core,
1422 int mlxsw_sp_trap_group_set(struct mlxsw_core *mlxsw_core,
1427 mlxsw_sp_trap_policer_init(struct mlxsw_core *mlxsw_core,
[all …]
A Dspectrum_ptp.c76 struct mlxsw_core *core;
114 struct mlxsw_core *mlxsw_core = clock->common.core; in __mlxsw_sp1_ptp_read_frc() local
144 struct mlxsw_core *mlxsw_core = clock->core; in mlxsw_sp_ptp_phc_adjfreq() local
165 struct mlxsw_core *mlxsw_core = clock->common.core; in mlxsw_sp1_ptp_phc_settime() local
339 struct mlxsw_core *mlxsw_core = clock->core; in mlxsw_sp2_ptp_read_utc() local
361 struct mlxsw_core *mlxsw_core = clock->core; in mlxsw_sp2_ptp_phc_settime() local
389 struct mlxsw_core *mlxsw_core = clock->core; in mlxsw_sp2_ptp_adjtime() local
1386 static u32 mlxsw_ptp_utc_time_stamp_sec_get(struct mlxsw_core *mlxsw_core, in mlxsw_ptp_utc_time_stamp_sec_get() argument
1403 static void mlxsw_sp2_ptp_hwtstamp_fill(struct mlxsw_core *mlxsw_core, in mlxsw_sp2_ptp_hwtstamp_fill() argument
1682 int mlxsw_sp_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, in mlxsw_sp_ptp_txhdr_construct() argument
[all …]
A DMakefile2 obj-$(CONFIG_MLXSW_CORE) += mlxsw_core.o
3 mlxsw_core-objs := core.o core_acl_flex_keys.o \
6 mlxsw_core-$(CONFIG_MLXSW_CORE_HWMON) += core_hwmon.o
7 mlxsw_core-$(CONFIG_MLXSW_CORE_THERMAL) += core_thermal.o
A Dspectrum_trap.c1568 int mlxsw_sp_trap_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_init() argument
1594 void mlxsw_sp_trap_fini(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_fini() argument
1615 int mlxsw_sp_trap_action_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_action_set() argument
1661 __mlxsw_sp_trap_group_init(struct mlxsw_core *mlxsw_core, in __mlxsw_sp_trap_group_init() argument
1694 int mlxsw_sp_trap_group_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_group_init() argument
1697 return __mlxsw_sp_trap_group_init(mlxsw_core, group, in mlxsw_sp_trap_group_init()
1701 int mlxsw_sp_trap_group_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_group_set() argument
1773 int mlxsw_sp_trap_policer_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_init() argument
1801 void mlxsw_sp_trap_policer_fini(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_fini() argument
1814 int mlxsw_sp_trap_policer_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_set() argument
[all …]
A Dspectrum_cnt.c242 int mlxsw_sp_counter_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp_counter_resources_register() argument
245 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp_counter_resources_register()
255 if (!MLXSW_CORE_RES_VALID(mlxsw_core, COUNTER_POOL_SIZE) || in mlxsw_sp_counter_resources_register()
256 !MLXSW_CORE_RES_VALID(mlxsw_core, COUNTER_BANK_SIZE)) in mlxsw_sp_counter_resources_register()
259 pool_size = MLXSW_CORE_RES_GET(mlxsw_core, COUNTER_POOL_SIZE); in mlxsw_sp_counter_resources_register()
260 bank_size = MLXSW_CORE_RES_GET(mlxsw_core, COUNTER_BANK_SIZE); in mlxsw_sp_counter_resources_register()
A Dspectrum_policer.c82 struct mlxsw_core *core = family->mlxsw_sp->core; in mlxsw_sp_policer_single_rate_family_init()
404 int mlxsw_sp_policer_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp_policer_resources_register() argument
407 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp_policer_resources_register()
411 if (!MLXSW_CORE_RES_VALID(mlxsw_core, MAX_GLOBAL_POLICERS) || in mlxsw_sp_policer_resources_register()
412 !MLXSW_CORE_RES_VALID(mlxsw_core, MAX_CPU_POLICERS)) in mlxsw_sp_policer_resources_register()
415 global_policers = MLXSW_CORE_RES_GET(mlxsw_core, MAX_GLOBAL_POLICERS); in mlxsw_sp_policer_resources_register()
416 cpu_policers = MLXSW_CORE_RES_GET(mlxsw_core, MAX_CPU_POLICERS); in mlxsw_sp_policer_resources_register()
A Dspectrum_buffers.c288 static void mlxsw_sp_sb_pm_occ_query_cb(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_pm_occ_query_cb() argument
1354 int mlxsw_sp_sb_pool_get(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_pool_get() argument
1358 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_sb_pool_get()
1371 int mlxsw_sp_sb_pool_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_pool_set() argument
1376 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_sb_pool_set()
1558 static void mlxsw_sp_sb_sr_occ_query_cb(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_sr_occ_query_cb() argument
1562 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_sb_sr_occ_query_cb()
1607 int mlxsw_sp_sb_occ_snapshot(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_occ_snapshot() argument
1670 if (local_port < mlxsw_core_max_ports(mlxsw_core)) { in mlxsw_sp_sb_occ_snapshot()
1683 int mlxsw_sp_sb_occ_max_clear(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_occ_max_clear() argument
[all …]
A Dspectrum_cnt.h23 int mlxsw_sp_counter_resources_register(struct mlxsw_core *mlxsw_core);
A Dspectrum1_kvdl.c385 int mlxsw_sp1_kvdl_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp1_kvdl_resources_register() argument
387 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp1_kvdl_resources_register()
392 kvdl_max_size = MLXSW_CORE_RES_GET(mlxsw_core, KVD_SIZE) - in mlxsw_sp1_kvdl_resources_register()
393 MLXSW_CORE_RES_GET(mlxsw_core, KVD_SINGLE_MIN_SIZE) - in mlxsw_sp1_kvdl_resources_register()
394 MLXSW_CORE_RES_GET(mlxsw_core, KVD_DOUBLE_MIN_SIZE); in mlxsw_sp1_kvdl_resources_register()
A Dcore_thermal.c103 struct mlxsw_core *core;
153 mlxsw_thermal_module_trips_update(struct device *dev, struct mlxsw_core *core, in mlxsw_thermal_module_trips_update()
330 mlxsw_thermal_module_temp_and_thresholds_get(struct mlxsw_core *core, in mlxsw_thermal_module_temp_and_thresholds_get()
526 mlxsw_thermal_module_init(struct device *dev, struct mlxsw_core *core, in mlxsw_thermal_module_init()
567 mlxsw_thermal_modules_init(struct device *dev, struct mlxsw_core *core, in mlxsw_thermal_modules_init()
666 mlxsw_thermal_gearboxes_init(struct device *dev, struct mlxsw_core *core, in mlxsw_thermal_gearboxes_init()
730 mlxsw_thermal_got_active(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_thermal_got_active() argument
768 mlxsw_thermal_got_inactive(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_thermal_got_inactive() argument
787 int mlxsw_thermal_init(struct mlxsw_core *core, in mlxsw_thermal_init()
A Dcore_hwmon.c60 struct mlxsw_core *core;
787 mlxsw_hwmon_got_active(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_hwmon_got_active() argument
835 mlxsw_hwmon_got_inactive(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_hwmon_got_inactive() argument
855 int mlxsw_hwmon_init(struct mlxsw_core *mlxsw_core, in mlxsw_hwmon_init() argument
866 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mgpir), mgpir_pl); in mlxsw_hwmon_init()
878 mlxsw_hwmon->core = mlxsw_core; in mlxsw_hwmon_init()
A Di2c.c89 struct mlxsw_core *core;
526 mlxsw_i2c_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_i2c_init() argument
534 mlxsw_i2c->core = mlxsw_core; in mlxsw_i2c_init()
540 err = mlxsw_cmd_query_fw(mlxsw_core, mbox); in mlxsw_i2c_init()
551 err = mlxsw_core_resources_query(mlxsw_core, mbox, res); in mlxsw_i2c_init()
A Dpci.c110 struct mlxsw_core *core;
1507 static int mlxsw_pci_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_pci_init() argument
1517 mlxsw_pci->core = mlxsw_core; in mlxsw_pci_init()
1533 err = mlxsw_cmd_query_fw(mlxsw_core, mbox); in mlxsw_pci_init()
1598 if (MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V2) && in mlxsw_pci_init()
1599 MLXSW_CORE_RES_GET(mlxsw_core, CQE_V2)) in mlxsw_pci_init()
1601 else if (MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V1) && in mlxsw_pci_init()
1602 MLXSW_CORE_RES_GET(mlxsw_core, CQE_V1)) in mlxsw_pci_init()
1604 else if ((MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V0) && in mlxsw_pci_init()
1605 MLXSW_CORE_RES_GET(mlxsw_core, CQE_V0)) || in mlxsw_pci_init()
[all …]
A Dspectrum_acl_tcam.c1454 struct mlxsw_core *mlxsw_core = devlink_priv(devlink); in mlxsw_sp_acl_tcam_region_rehash_intrvl_get() local
1458 mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_acl_tcam_region_rehash_intrvl_get()
1469 struct mlxsw_core *mlxsw_core = devlink_priv(devlink); in mlxsw_sp_acl_tcam_region_rehash_intrvl_set() local
1478 mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_acl_tcam_region_rehash_intrvl_set()
A DKconfig15 module will be called mlxsw_core.
A Dspectrum_ethtool.c571 struct mlxsw_core *mlxsw_core = mlxsw_sp_port->mlxsw_sp->core; in mlxsw_sp_port_get_transceiver_overheat_stats() local
577 err = mlxsw_env_module_overheat_counter_get(mlxsw_core, slot_index, in mlxsw_sp_port_get_transceiver_overheat_stats()

Completed in 117 milliseconds

12