Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c61 struct mlxsw_core { struct
81 struct mlxsw_core_port *ports; argument
90 static int mlxsw_ports_init(struct mlxsw_core *mlxsw_core) in mlxsw_ports_init()
107 static void mlxsw_ports_fini(struct mlxsw_core *mlxsw_core) in mlxsw_ports_fini()
112 unsigned int mlxsw_core_max_ports(const struct mlxsw_core *mlxsw_core) in mlxsw_core_max_ports()
118 void *mlxsw_core_driver_priv(struct mlxsw_core *mlxsw_core) in mlxsw_core_driver_priv()
124 bool mlxsw_core_res_query_enabled(const struct mlxsw_core *mlxsw_core) in mlxsw_core_res_query_enabled()
450 static int mlxsw_emad_transmit(struct mlxsw_core *mlxsw_core, in mlxsw_emad_transmit()
476 struct mlxsw_core *mlxsw_core = trans->core; in mlxsw_emad_trans_finish() local
486 static void mlxsw_emad_transmit_retry(struct mlxsw_core *mlxsw_core, in mlxsw_emad_transmit_retry()
[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 …]
Dspectrum_trap.c128 int mlxsw_sp_trap_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_init()
149 void mlxsw_sp_trap_fini(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_fini()
165 int mlxsw_sp_trap_action_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_action_set()
253 int mlxsw_sp_trap_group_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_trap_group_init()
Dcore_env.c46 mlxsw_env_query_module_eeprom(struct mlxsw_core *mlxsw_core, int module, in mlxsw_env_query_module_eeprom()
148 int mlxsw_env_get_module_info(struct mlxsw_core *mlxsw_core, int module, in mlxsw_env_get_module_info()
211 struct mlxsw_core *mlxsw_core, int module, in mlxsw_env_get_module_eeprom()
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()
482 static void mlxsw_sib_fini(struct mlxsw_core *mlxsw_core) in mlxsw_sib_fini()
Dspectrum.c444 static int mlxsw_sp_flash_update(struct mlxsw_core *mlxsw_core, in mlxsw_sp_flash_update()
4046 static int mlxsw_sp_port_split(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sp_port_split()
4125 static int mlxsw_sp_port_unsplit(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sp_port_unsplit()
4429 static int mlxsw_sp_cpu_policers_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_cpu_policers_set()
4500 static int mlxsw_sp_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_trap_groups_set()
4694 static int mlxsw_sp_basic_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_basic_trap_groups_set()
4740 static int mlxsw_sp_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_init()
4926 static int mlxsw_sp1_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp1_init()
4950 static int mlxsw_sp2_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp2_init()
4970 static void mlxsw_sp_fini(struct mlxsw_core *mlxsw_core) in mlxsw_sp_fini()
[all …]
Dminimal.c328 static int mlxsw_m_init(struct mlxsw_core *mlxsw_core, in mlxsw_m_init()
352 static void mlxsw_m_fini(struct mlxsw_core *mlxsw_core) in mlxsw_m_fini()
Dcore.h344 #define MLXSW_CORE_RES_VALID(mlxsw_core, short_res_id) \ argument
350 #define MLXSW_CORE_RES_GET(mlxsw_core, short_res_id) \ argument
405 static inline int mlxsw_hwmon_init(struct mlxsw_core *mlxsw_core, in mlxsw_hwmon_init()
429 static inline int mlxsw_thermal_init(struct mlxsw_core *mlxsw_core, in mlxsw_thermal_init()
Dspectrum_buffers.c263 static void mlxsw_sp_sb_pm_occ_query_cb(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_pm_occ_query_cb()
986 int mlxsw_sp_sb_pool_get(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_pool_get()
1003 int mlxsw_sp_sb_pool_set(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_pool_set()
1189 static void mlxsw_sp_sb_sr_occ_query_cb(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_sr_occ_query_cb()
1238 int mlxsw_sp_sb_occ_snapshot(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_occ_snapshot()
1307 int mlxsw_sp_sb_occ_max_clear(struct mlxsw_core *mlxsw_core, in mlxsw_sp_sb_occ_max_clear()
Dswitchx2.c1376 static int mlxsw_sx_port_type_set(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sx_port_type_set()
1551 static int mlxsw_sx_basic_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sx_basic_trap_groups_set()
1565 static int mlxsw_sx_init(struct mlxsw_core *mlxsw_core, in mlxsw_sx_init()
1607 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
Dspectrum1_kvdl.c386 int mlxsw_sp1_kvdl_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp1_kvdl_resources_register()
Di2c.c509 mlxsw_i2c_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_i2c_init()
Dcore_hwmon.c627 int mlxsw_hwmon_init(struct mlxsw_core *mlxsw_core, in mlxsw_hwmon_init()
Dpci.c1366 static int mlxsw_pci_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_pci_init()