/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A D | core.c | 65 struct mlxsw_core { struct 66 struct mlxsw_driver *driver; 90 struct mlxsw_core_port *ports; argument 102 struct mlxsw_linecards *mlxsw_core_linecards(struct mlxsw_core *mlxsw_core) in mlxsw_core_linecards() 117 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 1762 struct mlxsw_core *mlxsw_core; member 1770 struct mlxsw_core *mlxsw_core; in mlxsw_core_health_event_work() local 2168 struct mlxsw_core *mlxsw_core; in __mlxsw_core_bus_device_register() local [all …]
|
A D | cmd.h | 199 static inline int mlxsw_cmd_query_fw(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_fw() 365 static inline int mlxsw_cmd_boardinfo(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_boardinfo() 487 static inline int mlxsw_cmd_map_fa(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_map_fa() 516 static inline int mlxsw_cmd_unmap_fa(struct mlxsw_core *mlxsw_core) in mlxsw_cmd_unmap_fa() 1065 static inline int mlxsw_cmd_2err_sdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_2err_sdq() 1072 static inline int mlxsw_cmd_2err_rdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_2err_rdq() 1122 static inline int mlxsw_cmd_sw2hw_cq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_sw2hw_cq() 1176 static inline int mlxsw_cmd_hw2sw_cq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_hw2sw_cq() 1195 static inline int mlxsw_cmd_query_cq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_cq() 1213 static inline int mlxsw_cmd_sw2hw_eq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_sw2hw_eq() [all …]
|
A D | core_linecards.c | 93 struct mlxsw_core *mlxsw_core; member 107 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_component_query() local 1039 struct mlxsw_core *mlxsw_core; in mlxsw_linecard_port_selector() local 1052 struct mlxsw_core *mlxsw_core; in mlxsw_linecard_provision() local 1088 struct mlxsw_core *mlxsw_core; in mlxsw_linecard_unprovision() local 1168 struct mlxsw_core *mlxsw_core; member 1177 struct mlxsw_core *mlxsw_core; in mlxsw_linecard_status_event_work() local 1191 struct mlxsw_core *mlxsw_core = priv; in mlxsw_linecard_status_listener_func() local 1203 struct mlxsw_core *mlxsw_core; member 1211 struct mlxsw_core *mlxsw_core; in mlxsw_linecard_bct_event_work() local [all …]
|
A D | core_env.c | 145 mlxsw_env_query_module_eeprom(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_query_module_eeprom() 292 struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_get_module_info() 387 struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_get_module_eeprom() 461 mlxsw_env_get_module_eeprom_by_page(struct mlxsw_core *mlxsw_core, in mlxsw_env_get_module_eeprom_by_page() 530 struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_reset_module() 632 static int mlxsw_env_module_enable_set(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_enable_set() 711 mlxsw_env_set_module_power_mode_apply(struct mlxsw_core *mlxsw_core, in mlxsw_env_set_module_power_mode_apply() 801 mlxsw_env_temp_event_set(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_temp_event_set() 1043 mlxsw_env_module_plug_event_register(struct mlxsw_core *mlxsw_core) in mlxsw_env_module_plug_event_register() 1342 mlxsw_env_got_inactive(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_got_inactive() [all …]
|
A D | spectrum_trap.c | 1568 int mlxsw_sp_trap_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_init() 1594 void mlxsw_sp_trap_fini(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_fini() 1615 int mlxsw_sp_trap_action_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_action_set() 1661 __mlxsw_sp_trap_group_init(struct mlxsw_core *mlxsw_core, in __mlxsw_sp_trap_group_init() 1694 int mlxsw_sp_trap_group_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_group_init() 1701 int mlxsw_sp_trap_group_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_group_set() 1773 int mlxsw_sp_trap_policer_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_init() 1801 void mlxsw_sp_trap_policer_fini(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_fini() 1814 int mlxsw_sp_trap_policer_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_set() 1831 mlxsw_sp_trap_policer_counter_get(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_counter_get()
|
A D | spectrum.c | 251 mlxsw_sp_txhdr_ptp_data_construct(struct mlxsw_core *mlxsw_core, in mlxsw_sp_txhdr_ptp_data_construct() 300 static int mlxsw_sp_txhdr_handle(struct mlxsw_core *mlxsw_core, in mlxsw_sp_txhdr_handle() 2099 mlxsw_sp_ports_remove_selected(struct mlxsw_core *mlxsw_core, in mlxsw_sp_ports_remove_selected() 2590 static int mlxsw_sp_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_trap_groups_set() 3084 static int mlxsw_sp_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_init() 3312 static int mlxsw_sp1_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp1_init() 3345 static int mlxsw_sp2_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp2_init() 3379 static int mlxsw_sp3_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp3_init() 3413 static int mlxsw_sp4_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp4_init() 3447 static void mlxsw_sp_fini(struct mlxsw_core *mlxsw_core) in mlxsw_sp_fini() [all …]
|
A D | minimal.c | 544 mlxsw_m_ports_remove_selected(struct mlxsw_core *mlxsw_core, in mlxsw_m_ports_remove_selected() 580 mlxsw_m_got_active(struct mlxsw_core *mlxsw_core, u8 slot_index, void *priv) in mlxsw_m_got_active() 614 mlxsw_m_got_inactive(struct mlxsw_core *mlxsw_core, u8 slot_index, void *priv) in mlxsw_m_got_inactive() 633 static int mlxsw_m_init(struct mlxsw_core *mlxsw_core, in mlxsw_m_init() 682 static void mlxsw_m_fini(struct mlxsw_core *mlxsw_core) in mlxsw_m_fini()
|
A D | spectrum_ptp.c | 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() 1403 static void mlxsw_sp2_ptp_hwtstamp_fill(struct mlxsw_core *mlxsw_core, in mlxsw_sp2_ptp_hwtstamp_fill() 1682 int mlxsw_sp_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, in mlxsw_sp_ptp_txhdr_construct() 1691 int mlxsw_sp2_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, in mlxsw_sp2_ptp_txhdr_construct()
|
A D | spectrum_ptp.h | 175 mlxsw_sp_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, in mlxsw_sp_ptp_txhdr_construct() 236 mlxsw_sp2_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, in mlxsw_sp2_ptp_txhdr_construct()
|
A D | core.h | 452 #define MLXSW_CORE_RES_VALID(mlxsw_core, short_res_id) \ argument 458 #define MLXSW_CORE_RES_GET(mlxsw_core, short_res_id) \ argument 461 static inline struct net *mlxsw_core_net(struct mlxsw_core *mlxsw_core) in mlxsw_core_net() 520 static inline int mlxsw_hwmon_init(struct mlxsw_core *mlxsw_core, in mlxsw_hwmon_init() 544 static inline int mlxsw_thermal_init(struct mlxsw_core *mlxsw_core, in mlxsw_thermal_init() 621 struct mlxsw_core *mlxsw_core; member
|
A D | spectrum_buffers.c | 288 static void mlxsw_sp_sb_pm_occ_query_cb(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_pm_occ_query_cb() 1354 int mlxsw_sp_sb_pool_get(struct mlxsw_core *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() 1558 static void mlxsw_sp_sb_sr_occ_query_cb(struct mlxsw_core *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() 1683 int mlxsw_sp_sb_occ_max_clear(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_occ_max_clear()
|
A D | core_hwmon.c | 787 mlxsw_hwmon_got_active(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_hwmon_got_active() 835 mlxsw_hwmon_got_inactive(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_hwmon_got_inactive() 855 int mlxsw_hwmon_init(struct mlxsw_core *mlxsw_core, in mlxsw_hwmon_init()
|
A D | spectrum_cnt.c | 242 int mlxsw_sp_counter_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp_counter_resources_register()
|
A D | core_thermal.c | 730 mlxsw_thermal_got_active(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_thermal_got_active() 768 mlxsw_thermal_got_inactive(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_thermal_got_inactive()
|
A D | spectrum_policer.c | 404 int mlxsw_sp_policer_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp_policer_resources_register()
|
A D | spectrum1_kvdl.c | 385 int mlxsw_sp1_kvdl_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp1_kvdl_resources_register()
|
A D | i2c.c | 526 mlxsw_i2c_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_i2c_init()
|
A D | spectrum_acl_tcam.c | 1454 struct mlxsw_core *mlxsw_core = devlink_priv(devlink); in mlxsw_sp_acl_tcam_region_rehash_intrvl_get() local 1469 struct mlxsw_core *mlxsw_core = devlink_priv(devlink); in mlxsw_sp_acl_tcam_region_rehash_intrvl_set() local
|
A D | spectrum_ethtool.c | 571 struct mlxsw_core *mlxsw_core = mlxsw_sp_port->mlxsw_sp->core; in mlxsw_sp_port_get_transceiver_overheat_stats() local
|
A D | pci.c | 1507 static int mlxsw_pci_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_pci_init()
|