/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | core.c | 64 struct mlxsw_core { struct 85 struct mlxsw_core_port *ports; argument 99 static int mlxsw_ports_init(struct mlxsw_core *mlxsw_core) in mlxsw_ports_init() 116 static void mlxsw_ports_fini(struct mlxsw_core *mlxsw_core) in mlxsw_ports_fini() 121 unsigned int mlxsw_core_max_ports(const struct mlxsw_core *mlxsw_core) in mlxsw_core_max_ports() 127 void *mlxsw_core_driver_priv(struct mlxsw_core *mlxsw_core) in mlxsw_core_driver_priv() 133 bool mlxsw_core_res_query_enabled(const struct mlxsw_core *mlxsw_core) in mlxsw_core_res_query_enabled() 139 bool mlxsw_core_temp_warn_enabled(const struct mlxsw_core *mlxsw_core) in mlxsw_core_temp_warn_enabled() 578 static int mlxsw_emad_transmit(struct mlxsw_core *mlxsw_core, in mlxsw_emad_transmit() 604 struct mlxsw_core *mlxsw_core = trans->core; in mlxsw_emad_trans_finish() local [all …]
|
D | cmd.h | 33 static inline int mlxsw_cmd_exec_in(struct mlxsw_core *mlxsw_core, u16 opcode, in mlxsw_cmd_exec_in() 41 static inline int mlxsw_cmd_exec_out(struct mlxsw_core *mlxsw_core, u16 opcode, in mlxsw_cmd_exec_out() 51 static inline int mlxsw_cmd_exec_none(struct mlxsw_core *mlxsw_core, u16 opcode, in mlxsw_cmd_exec_none() 199 static inline int mlxsw_cmd_query_fw(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_fw() 339 static inline int mlxsw_cmd_boardinfo(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_boardinfo() 383 static inline int mlxsw_cmd_query_aq_cap(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_aq_cap() 461 static inline int mlxsw_cmd_map_fa(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_map_fa() 490 static inline int mlxsw_cmd_unmap_fa(struct mlxsw_core *mlxsw_core) in mlxsw_cmd_unmap_fa() 510 static inline int mlxsw_cmd_query_resources(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_resources() 544 static inline int mlxsw_cmd_config_profile_set(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_config_profile_set() [all …]
|
D | core_env.c | 62 mlxsw_env_query_module_eeprom(struct mlxsw_core *mlxsw_core, int module, in mlxsw_env_query_module_eeprom() 195 int mlxsw_env_get_module_info(struct mlxsw_core *mlxsw_core, int module, in mlxsw_env_get_module_info() 274 struct mlxsw_core *mlxsw_core, int module, in mlxsw_env_get_module_eeprom() 309 static int mlxsw_env_module_has_temp_sensor(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_has_temp_sensor() 338 static int mlxsw_env_temp_event_set(struct mlxsw_core *mlxsw_core, in mlxsw_env_temp_event_set() 378 static int mlxsw_env_module_temp_event_enable(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_temp_event_enable() 449 static int mlxsw_env_temp_warn_event_register(struct mlxsw_core *mlxsw_core) in mlxsw_env_temp_warn_event_register() 540 mlxsw_env_module_plug_event_register(struct mlxsw_core *mlxsw_core) in mlxsw_env_module_plug_event_register() 564 mlxsw_env_module_oper_state_event_enable(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_oper_state_event_enable() 582 mlxsw_env_module_overheat_counter_get(struct mlxsw_core *mlxsw_core, u8 module, in mlxsw_env_module_overheat_counter_get() [all …]
|
D | spectrum_trap.c | 1391 int mlxsw_sp_trap_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_init() 1417 void mlxsw_sp_trap_fini(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_fini() 1438 int mlxsw_sp_trap_action_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_action_set() 1484 __mlxsw_sp_trap_group_init(struct mlxsw_core *mlxsw_core, in __mlxsw_sp_trap_group_init() 1517 int mlxsw_sp_trap_group_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_group_init() 1524 int mlxsw_sp_trap_group_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_group_set() 1596 int mlxsw_sp_trap_policer_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_init() 1624 void mlxsw_sp_trap_policer_fini(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_fini() 1637 int mlxsw_sp_trap_policer_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_set() 1654 mlxsw_sp_trap_policer_counter_get(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_counter_get()
|
D | spectrum.c | 1874 static int mlxsw_sp_local_ports_offset(struct mlxsw_core *mlxsw_core, in mlxsw_sp_local_ports_offset() 1903 static int mlxsw_sp_port_split(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sp_port_split() 1987 static int mlxsw_sp_port_unsplit(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sp_port_unsplit() 2233 static int mlxsw_sp_cpu_policers_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_cpu_policers_set() 2274 static int mlxsw_sp_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_trap_groups_set() 2456 static int mlxsw_sp_basic_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_basic_trap_groups_set() 2527 static int mlxsw_sp_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_init() 2730 static int mlxsw_sp1_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp1_init() 2759 static int mlxsw_sp2_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp2_init() 2786 static int mlxsw_sp3_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp3_init() [all …]
|
D | switchib.c | 434 static int mlxsw_sib_basic_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sib_basic_trap_groups_set() 448 static int mlxsw_sib_init(struct mlxsw_core *mlxsw_core, in mlxsw_sib_init() 483 static void mlxsw_sib_fini(struct mlxsw_core *mlxsw_core) in mlxsw_sib_fini()
|
D | core.h | 394 #define MLXSW_CORE_RES_VALID(mlxsw_core, short_res_id) \ argument 400 #define MLXSW_CORE_RES_GET(mlxsw_core, short_res_id) \ argument 403 static inline struct net *mlxsw_core_net(struct mlxsw_core *mlxsw_core) in mlxsw_core_net() 460 static inline int mlxsw_hwmon_init(struct mlxsw_core *mlxsw_core, in mlxsw_hwmon_init() 484 static inline int mlxsw_thermal_init(struct mlxsw_core *mlxsw_core, in mlxsw_thermal_init()
|
D | minimal.c | 355 static int mlxsw_m_init(struct mlxsw_core *mlxsw_core, in mlxsw_m_init() 384 static void mlxsw_m_fini(struct mlxsw_core *mlxsw_core) in mlxsw_m_fini()
|
D | spectrum_buffers.c | 273 static void mlxsw_sp_sb_pm_occ_query_cb(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_pm_occ_query_cb() 1328 int mlxsw_sp_sb_pool_get(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_pool_get() 1345 int mlxsw_sp_sb_pool_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_pool_set() 1532 static void mlxsw_sp_sb_sr_occ_query_cb(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_sr_occ_query_cb() 1581 int mlxsw_sp_sb_occ_snapshot(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_occ_snapshot() 1650 int mlxsw_sp_sb_occ_max_clear(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_occ_max_clear()
|
D | switchx2.c | 1351 static int mlxsw_sx_port_type_set(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sx_port_type_set() 1537 static int mlxsw_sx_basic_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sx_basic_trap_groups_set() 1551 static int mlxsw_sx_init(struct mlxsw_core *mlxsw_core, in mlxsw_sx_init() 1594 static void mlxsw_sx_fini(struct mlxsw_core *mlxsw_core) in mlxsw_sx_fini()
|
D | spectrum_ptp.c | 76 struct mlxsw_core *mlxsw_core = clock->core; in __mlxsw_sp1_ptp_read_frc() local 106 struct mlxsw_core *mlxsw_core = clock->core; in mlxsw_sp1_ptp_phc_adjfreq() local 127 struct mlxsw_core *mlxsw_core = clock->core; in mlxsw_sp1_ptp_phc_settime() local
|
D | spectrum_cnt.c | 245 int mlxsw_sp_counter_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp_counter_resources_register()
|
D | spectrum_policer.c | 404 int mlxsw_sp_policer_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp_policer_resources_register()
|
D | spectrum1_kvdl.c | 386 int mlxsw_sp1_kvdl_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp1_kvdl_resources_register()
|
D | i2c.c | 510 mlxsw_i2c_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_i2c_init()
|
D | core_hwmon.c | 752 int mlxsw_hwmon_init(struct mlxsw_core *mlxsw_core, in mlxsw_hwmon_init()
|
D | spectrum_ethtool.c | 565 struct mlxsw_core *mlxsw_core = mlxsw_sp_port->mlxsw_sp->core; in mlxsw_sp_port_get_transceiver_overheat_stats() local
|
D | pci.c | 1411 static int mlxsw_pci_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_pci_init()
|