Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c65 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()
107 void mlxsw_core_linecards_set(struct mlxsw_core *mlxsw_core, in mlxsw_core_linecards_set()
117 struct mlxsw_core *mlxsw_core = priv; in mlxsw_ports_occ_get() local
122 static int mlxsw_core_resources_ports_register(struct mlxsw_core *mlxsw_core) in mlxsw_core_resources_ports_register()
140 static int mlxsw_ports_init(struct mlxsw_core *mlxsw_core, bool reload) in mlxsw_ports_init()
173 static void mlxsw_ports_fini(struct mlxsw_core *mlxsw_core, bool reload) in mlxsw_ports_fini()
184 unsigned int mlxsw_core_max_ports(const struct mlxsw_core *mlxsw_core) in mlxsw_core_max_ports()
[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()
365 static inline int mlxsw_cmd_boardinfo(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_boardinfo()
409 static inline int mlxsw_cmd_query_aq_cap(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_aq_cap()
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()
536 static inline int mlxsw_cmd_query_resources(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_resources()
570 static inline int mlxsw_cmd_config_profile_set(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_config_profile_set()
[all …]
Dcore_linecards.c79 struct mlxsw_core *mlxsw_core = linecard->linecards->mlxsw_core; in mlxsw_linecard_type_name() local
93 struct mlxsw_core *mlxsw_core; member
107 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_component_query() local
137 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_lock() local
175 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_component_update() local
197 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_block_download() local
217 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_component_verify() local
237 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_activate() local
260 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_query_state() local
290 struct mlxsw_core *mlxsw_core = info->mlxsw_core; in mlxsw_linecard_device_fw_fsm_cancel() local
[all …]
Dcore_env.c59 mlxsw_env_module_info *mlxsw_env_module_info_get(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_info_get()
146 mlxsw_env_query_module_eeprom(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_query_module_eeprom()
290 struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_get_module_info()
385 struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_get_module_eeprom()
459 mlxsw_env_get_module_eeprom_by_page(struct mlxsw_core *mlxsw_core, in mlxsw_env_get_module_eeprom_by_page()
516 static int mlxsw_env_module_reset(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_module_reset()
528 struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_reset_module()
582 mlxsw_env_get_module_power_mode(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_env_get_module_power_mode()
630 static int mlxsw_env_module_enable_set(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_enable_set()
645 static int mlxsw_env_module_low_power_set(struct mlxsw_core *mlxsw_core, in mlxsw_env_module_low_power_set()
[all …]
Dspectrum_trap.c1568 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()
Dspectrum.c251 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()
2261 static int mlxsw_sp_port_split(struct mlxsw_core *mlxsw_core, u16 local_port, in mlxsw_sp_port_split()
2326 static int mlxsw_sp_port_unsplit(struct mlxsw_core *mlxsw_core, u16 local_port, in mlxsw_sp_port_unsplit()
2549 static int mlxsw_sp_cpu_policers_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_cpu_policers_set()
2590 static int mlxsw_sp_trap_groups_set(struct mlxsw_core *mlxsw_core) in mlxsw_sp_trap_groups_set()
3086 static int mlxsw_sp_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp_init()
3322 static int mlxsw_sp1_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp1_init()
3355 static int mlxsw_sp2_init(struct mlxsw_core *mlxsw_core, in mlxsw_sp2_init()
[all …]
Dminimal.c545 mlxsw_m_ports_remove_selected(struct mlxsw_core *mlxsw_core, in mlxsw_m_ports_remove_selected()
581 mlxsw_m_got_active(struct mlxsw_core *mlxsw_core, u8 slot_index, void *priv) in mlxsw_m_got_active()
615 mlxsw_m_got_inactive(struct mlxsw_core *mlxsw_core, u8 slot_index, void *priv) in mlxsw_m_got_inactive()
634 static int mlxsw_m_init(struct mlxsw_core *mlxsw_core, in mlxsw_m_init()
683 static void mlxsw_m_fini(struct mlxsw_core *mlxsw_core) in mlxsw_m_fini()
Dspectrum_ptp.c114 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()
Dspectrum_ptp.h175 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()
Dcore.h452 #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
Dspectrum_buffers.c288 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()
Dcore_hwmon.c788 mlxsw_hwmon_got_active(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_hwmon_got_active()
836 mlxsw_hwmon_got_inactive(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_hwmon_got_inactive()
856 int mlxsw_hwmon_init(struct mlxsw_core *mlxsw_core, in mlxsw_hwmon_init()
Dspectrum_cnt.c242 int mlxsw_sp_counter_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp_counter_resources_register()
Dcore_thermal.c636 mlxsw_thermal_got_active(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_thermal_got_active()
674 mlxsw_thermal_got_inactive(struct mlxsw_core *mlxsw_core, u8 slot_index, in mlxsw_thermal_got_inactive()
Dspectrum_policer.c404 int mlxsw_sp_policer_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp_policer_resources_register()
Dspectrum1_kvdl.c385 int mlxsw_sp1_kvdl_resources_register(struct mlxsw_core *mlxsw_core) in mlxsw_sp1_kvdl_resources_register()
Di2c.c527 mlxsw_i2c_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_i2c_init()
Dspectrum_acl_tcam.c1454 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
Dspectrum_ethtool.c571 struct mlxsw_core *mlxsw_core = mlxsw_sp_port->mlxsw_sp->core; in mlxsw_sp_port_get_transceiver_overheat_stats() local
Dpci.c1511 static int mlxsw_pci_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_pci_init()