Home
last modified time | relevance | path

Searched defs:mlxsw_core (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c64 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 …]
Dcmd.h33 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 …]
Dcore_env.c62 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 …]
Dspectrum_trap.c1391 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()
Dspectrum.c1874 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 …]
Dswitchib.c434 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()
Dcore.h394 #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()
Dminimal.c355 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()
Dspectrum_buffers.c273 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()
Dswitchx2.c1351 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()
Dspectrum_ptp.c76 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
Dspectrum_cnt.c245 int mlxsw_sp_counter_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp_counter_resources_register()
Dspectrum_policer.c404 int mlxsw_sp_policer_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp_policer_resources_register()
Dspectrum1_kvdl.c386 int mlxsw_sp1_kvdl_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp1_kvdl_resources_register()
Di2c.c510 mlxsw_i2c_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_i2c_init()
Dcore_hwmon.c752 int mlxsw_hwmon_init(struct mlxsw_core *mlxsw_core, in mlxsw_hwmon_init()
Dspectrum_ethtool.c565 struct mlxsw_core *mlxsw_core = mlxsw_sp_port->mlxsw_sp->core; in mlxsw_sp_port_get_transceiver_overheat_stats() local
Dpci.c1411 static int mlxsw_pci_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_pci_init()