Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c64 struct mlxsw_core { struct
85 struct mlxsw_core_port *ports; argument
102 struct mlxsw_core *mlxsw_core = priv; in mlxsw_ports_occ_get() argument
107 static int mlxsw_core_resources_ports_register(struct mlxsw_core *mlxsw_core) in mlxsw_core_resources_ports_register()
125 static int mlxsw_ports_init(struct mlxsw_core *mlxsw_core, bool reload) in mlxsw_ports_init()
158 static void mlxsw_ports_fini(struct mlxsw_core *mlxsw_core, bool reload) in mlxsw_ports_fini()
169 unsigned int mlxsw_core_max_ports(const struct mlxsw_core *mlxsw_core) in mlxsw_core_max_ports()
175 void *mlxsw_core_driver_priv(struct mlxsw_core *mlxsw_core) in mlxsw_core_driver_priv()
181 bool mlxsw_core_res_query_enabled(const struct mlxsw_core *mlxsw_core) in mlxsw_core_res_query_enabled()
187 bool mlxsw_core_temp_warn_enabled(const struct mlxsw_core *mlxsw_core) in mlxsw_core_temp_warn_enabled()
[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()
400 static inline int mlxsw_cmd_query_aq_cap(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_aq_cap()
478 static inline int mlxsw_cmd_map_fa(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_map_fa()
507 static inline int mlxsw_cmd_unmap_fa(struct mlxsw_core *mlxsw_core) in mlxsw_cmd_unmap_fa()
527 static inline int mlxsw_cmd_query_resources(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_resources()
561 static inline int mlxsw_cmd_config_profile_set(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_config_profile_set()
[all …]
Dcore_env.c63 mlxsw_env_query_module_eeprom(struct mlxsw_core *mlxsw_core, int module, in mlxsw_env_query_module_eeprom()
205 int mlxsw_env_get_module_info(struct mlxsw_core *mlxsw_core, int module, in mlxsw_env_get_module_info()
284 struct mlxsw_core *mlxsw_core, int module, in mlxsw_env_get_module_eeprom()
349 mlxsw_env_get_module_eeprom_by_page(struct mlxsw_core *mlxsw_core, u8 module, in mlxsw_env_get_module_eeprom_by_page()
392 static int mlxsw_env_module_has_temp_sensor(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_has_temp_sensor()
421 static int mlxsw_env_temp_event_set(struct mlxsw_core *mlxsw_core, in mlxsw_env_temp_event_set()
461 static int mlxsw_env_module_temp_event_enable(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_temp_event_enable()
532 static int mlxsw_env_temp_warn_event_register(struct mlxsw_core *mlxsw_core) in mlxsw_env_temp_warn_event_register()
623 mlxsw_env_module_plug_event_register(struct mlxsw_core *mlxsw_core) in mlxsw_env_module_plug_event_register()
647 mlxsw_env_module_oper_state_event_enable(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_oper_state_event_enable()
[all …]
Dspectrum.c1947 static int mlxsw_sp_local_ports_offset(struct mlxsw_core *mlxsw_core, in mlxsw_sp_local_ports_offset()
1976 static int mlxsw_sp_port_split(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sp_port_split()
2060 static int mlxsw_sp_port_unsplit(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sp_port_unsplit()
2285 static int mlxsw_sp_cpu_policers_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_cpu_policers_set()
2326 static int mlxsw_sp_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_trap_groups_set()
2508 static int mlxsw_sp_basic_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_basic_trap_groups_set()
2736 static int mlxsw_sp_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_init()
2950 static int mlxsw_sp1_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp1_init()
2981 static int mlxsw_sp2_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp2_init()
3010 static int mlxsw_sp3_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp3_init()
[all …]
Dspectrum_trap.c1544 int mlxsw_sp_trap_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_init()
1570 void mlxsw_sp_trap_fini(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_fini()
1591 int mlxsw_sp_trap_action_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_action_set()
1637 __mlxsw_sp_trap_group_init(struct mlxsw_core *mlxsw_core, in __mlxsw_sp_trap_group_init()
1670 int mlxsw_sp_trap_group_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_group_init()
1677 int mlxsw_sp_trap_group_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_group_set()
1749 int mlxsw_sp_trap_policer_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_init()
1777 void mlxsw_sp_trap_policer_fini(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_fini()
1790 int mlxsw_sp_trap_policer_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_set()
1807 mlxsw_sp_trap_policer_counter_get(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_policer_counter_get()
Dcore.h421 #define MLXSW_CORE_RES_VALID(mlxsw_core, short_res_id) \ argument
427 #define MLXSW_CORE_RES_GET(mlxsw_core, short_res_id) \ argument
430 static inline struct net *mlxsw_core_net(struct mlxsw_core *mlxsw_core) in mlxsw_core_net()
492 static inline int mlxsw_hwmon_init(struct mlxsw_core *mlxsw_core, in mlxsw_hwmon_init()
516 static inline int mlxsw_thermal_init(struct mlxsw_core *mlxsw_core, in mlxsw_thermal_init()
Dminimal.c373 static int mlxsw_m_init(struct mlxsw_core *mlxsw_core, in mlxsw_m_init()
402 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()
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.c1489 static int mlxsw_pci_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_pci_init()