Home
last modified time | relevance | path

Searched refs:slot_index (Results 1 – 23 of 23) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/
Dcore_env.c41 u8 slot_index) in __mlxsw_env_linecard_is_active() argument
43 return mlxsw_env->line_cards[slot_index]->active; in __mlxsw_env_linecard_is_active()
47 u8 slot_index) in mlxsw_env_linecard_is_active() argument
52 active = __mlxsw_env_linecard_is_active(mlxsw_env, slot_index); in mlxsw_env_linecard_is_active()
60 u8 slot_index, u8 module) in mlxsw_env_module_info_get() argument
64 return &mlxsw_env->line_cards[slot_index]->module_info[module]; in mlxsw_env_module_info_get()
68 u8 slot_index, u8 module) in __mlxsw_env_validate_module_type() argument
74 if (!__mlxsw_env_linecard_is_active(mlxsw_env, slot_index)) in __mlxsw_env_validate_module_type()
77 module_info = mlxsw_env_module_info_get(core, slot_index, module); in __mlxsw_env_validate_module_type()
90 u8 slot_index, u8 module) in mlxsw_env_validate_module_type() argument
[all …]
Dcore_env.h13 u8 slot_index, int module, int off,
17 struct mlxsw_core *mlxsw_core, u8 slot_index,
21 struct mlxsw_core *mlxsw_core, u8 slot_index,
27 u8 slot_index, u8 module,
32 struct mlxsw_core *mlxsw_core, u8 slot_index,
36 mlxsw_env_get_module_power_mode(struct mlxsw_core *mlxsw_core, u8 slot_index,
42 mlxsw_env_set_module_power_mode(struct mlxsw_core *mlxsw_core, u8 slot_index,
48 mlxsw_env_module_overheat_counter_get(struct mlxsw_core *mlxsw_core, u8 slot_index,
51 void mlxsw_env_module_port_map(struct mlxsw_core *mlxsw_core, u8 slot_index,
54 void mlxsw_env_module_port_unmap(struct mlxsw_core *mlxsw_core, u8 slot_index,
[all …]
Dminimal.c49 u8 slot_index; member
113 mlxsw_m_port->slot_index, in mlxsw_m_get_module_info()
125 mlxsw_m_port->slot_index, in mlxsw_m_get_module_eeprom()
138 mlxsw_m_port->slot_index, in mlxsw_m_get_module_eeprom_by_page()
148 return mlxsw_env_reset_module(netdev, core, mlxsw_m_port->slot_index, in mlxsw_m_reset()
161 return mlxsw_env_get_module_power_mode(core, mlxsw_m_port->slot_index, in mlxsw_m_get_module_power_mode()
174 return mlxsw_env_set_module_power_mode(core, mlxsw_m_port->slot_index, in mlxsw_m_set_module_power_mode()
231 mlxsw_m_port_create(struct mlxsw_m *mlxsw_m, u16 local_port, u8 slot_index, in mlxsw_m_port_create() argument
238 err = mlxsw_core_port_init(mlxsw_m->core, local_port, slot_index, in mlxsw_m_port_create()
263 mlxsw_m_port->slot_index = slot_index; in mlxsw_m_port_create()
[all …]
Dcore_linecards.c83 mlxsw_reg_mddq_slot_name_pack(mddq_pl, linecard->slot_index); in mlxsw_linecard_type_name()
112 mlxsw_reg_mddt_pack(mddt_pl, linecard->slot_index, in mlxsw_linecard_device_fw_component_query()
143 mlxsw_reg_mddt_pack(mddt_pl, linecard->slot_index, in mlxsw_linecard_device_fw_fsm_lock()
156 mlxsw_reg_mddt_pack(mddt_pl, linecard->slot_index, in mlxsw_linecard_device_fw_fsm_lock()
179 mlxsw_reg_mddt_pack(mddt_pl, linecard->slot_index, in mlxsw_linecard_device_fw_fsm_component_update()
201 mlxsw_reg_mddt_pack(mddt_pl, linecard->slot_index, in mlxsw_linecard_device_fw_fsm_block_download()
221 mlxsw_reg_mddt_pack(mddt_pl, linecard->slot_index, in mlxsw_linecard_device_fw_fsm_component_verify()
241 mlxsw_reg_mddt_pack(mddt_pl, linecard->slot_index, in mlxsw_linecard_device_fw_fsm_activate()
267 mlxsw_reg_mddt_pack(mddt_pl, linecard->slot_index, in mlxsw_linecard_device_fw_fsm_query_state()
294 mlxsw_reg_mddt_pack(mddt_pl, linecard->slot_index, in mlxsw_linecard_device_fw_fsm_cancel()
[all …]
Dcore_thermal.c105 u8 slot_index; member
113 u8 slot_index; member
296 mlxsw_reg_mtmp_pack(mtmp_pl, tz->slot_index, sensor_index, in mlxsw_thermal_module_temp_get()
322 mlxsw_reg_mtmp_pack(mtmp_pl, tz->slot_index, index, false, false); in mlxsw_thermal_gearbox_temp_get()
413 if (module_tz->slot_index) in mlxsw_thermal_module_tz_init()
415 module_tz->slot_index, module_tz->module + 1); in mlxsw_thermal_module_tz_init()
457 module_tz->slot_index = area->slot_index; in mlxsw_thermal_module_init()
485 mlxsw_reg_mgpir_pack(mgpir_pl, area->slot_index); in mlxsw_thermal_modules_init()
541 if (gearbox_tz->slot_index) in mlxsw_thermal_gearbox_tz_init()
543 gearbox_tz->slot_index, gearbox_tz->module + 1); in mlxsw_thermal_gearbox_tz_init()
[all …]
Dcore_hwmon.c55 u8 slot_index; member
79 mlxsw_reg_mtmp_pack(mtmp_pl, mlxsw_hwmon_dev->slot_index, index, false, in mlxsw_hwmon_temp_show()
104 mlxsw_reg_mtmp_pack(mtmp_pl, mlxsw_hwmon_dev->slot_index, index, false, in mlxsw_hwmon_temp_max_show()
137 mlxsw_reg_mtmp_slot_index_set(mtmp_pl, mlxsw_hwmon_dev->slot_index); in mlxsw_hwmon_temp_rst_store()
255 mlxsw_reg_mtmp_pack(mtmp_pl, mlxsw_hwmon_dev->slot_index, in mlxsw_hwmon_module_temp_get()
295 mlxsw_reg_mtbr_pack(mtbr_pl, mlxsw_hwmon_dev->slot_index, in mlxsw_hwmon_module_temp_fault_show()
337 mlxsw_hwmon_dev->slot_index, in mlxsw_hwmon_module_temp_critical_get()
374 mlxsw_hwmon_dev->slot_index, in mlxsw_hwmon_module_temp_emergency_get()
623 mlxsw_hwmon_dev->slot_index); in mlxsw_hwmon_temp_init()
693 mlxsw_reg_mgpir_pack(mgpir_pl, mlxsw_hwmon_dev->slot_index); in mlxsw_hwmon_module_init()
[all …]
Dspectrum_ethtool.c572 u8 slot_index = mlxsw_sp_port->mapping.slot_index; in mlxsw_sp_port_get_transceiver_overheat_stats() local
577 err = mlxsw_env_module_overheat_counter_get(mlxsw_core, slot_index, in mlxsw_sp_port_get_transceiver_overheat_stats()
1039 mlxsw_sp_port->mapping.slot_index, in mlxsw_sp_get_module_info()
1049 u8 slot_index = mlxsw_sp_port->mapping.slot_index; in mlxsw_sp_get_module_eeprom() local
1052 return mlxsw_env_get_module_eeprom(netdev, mlxsw_sp->core, slot_index, in mlxsw_sp_get_module_eeprom()
1063 u8 slot_index = mlxsw_sp_port->mapping.slot_index; in mlxsw_sp_get_module_eeprom_by_page() local
1066 return mlxsw_env_get_module_eeprom_by_page(mlxsw_sp->core, slot_index, in mlxsw_sp_get_module_eeprom_by_page()
1208 u8 slot_index = mlxsw_sp_port->mapping.slot_index; in mlxsw_sp_reset() local
1211 return mlxsw_env_reset_module(dev, mlxsw_sp->core, slot_index, in mlxsw_sp_reset()
1222 u8 slot_index = mlxsw_sp_port->mapping.slot_index; in mlxsw_sp_get_module_power_mode() local
[all …]
Dreg.h4585 MLXSW_ITEM32_INDEXED(reg, pmlp, slot_index, 0x04, 8, 4, 0x04, 0x00, false);
5887 MLXSW_ITEM32(reg, pmaos, slot_index, 0x00, 24, 4);
5941 static inline void mlxsw_reg_pmaos_pack(char *payload, u8 slot_index, u8 module) in mlxsw_reg_pmaos_pack() argument
5944 mlxsw_reg_pmaos_slot_index_set(payload, slot_index); in mlxsw_reg_pmaos_pack()
5999 MLXSW_ITEM32(reg, pmtdb, slot_index, 0x00, 24, 4);
6037 static inline void mlxsw_reg_pmtdb_pack(char *payload, u8 slot_index, u8 module, in mlxsw_reg_pmtdb_pack() argument
6041 mlxsw_reg_pmtdb_slot_index_set(payload, slot_index); in mlxsw_reg_pmtdb_pack()
6127 MLXSW_ITEM32(reg, pmpe, slot_index, 0x00, 24, 4);
6224 MLXSW_ITEM32(reg, pmmp, slot_index, 0x00, 24, 4);
6253 static inline void mlxsw_reg_pmmp_pack(char *payload, u8 slot_index, u8 module) in mlxsw_reg_pmmp_pack() argument
[all …]
Dcore.h256 u8 slot_index, u32 port_number, bool split,
598 u8 slot_index; member
631 mlxsw_linecard_get(struct mlxsw_linecards *linecards, u8 slot_index) in mlxsw_linecard_get() argument
633 return &linecards->linecards[slot_index - 1]; in mlxsw_linecard_get()
649 u8 slot_index, void *priv);
Dspectrum.c590 u8 slot_index; in mlxsw_sp_port_module_info_parse() local
596 slot_index = mlxsw_reg_pmlp_slot_index_get(pmlp_pl, 0); in mlxsw_sp_port_module_info_parse()
613 if (mlxsw_reg_pmlp_slot_index_get(pmlp_pl, i) != slot_index) { in mlxsw_sp_port_module_info_parse()
633 port_mapping->slot_index = slot_index; in mlxsw_sp_port_module_info_parse()
662 mlxsw_env_module_port_map(mlxsw_sp->core, port_mapping->slot_index, in mlxsw_sp_port_module_map()
669 port_mapping->slot_index); in mlxsw_sp_port_module_map()
680 mlxsw_env_module_port_unmap(mlxsw_sp->core, port_mapping->slot_index, in mlxsw_sp_port_module_map()
686 u8 slot_index, u8 module) in mlxsw_sp_port_module_unmap() argument
693 mlxsw_env_module_port_unmap(mlxsw_sp->core, slot_index, module); in mlxsw_sp_port_module_unmap()
703 mlxsw_sp_port->mapping.slot_index, in mlxsw_sp_port_open()
[all …]
Dcore.c3124 u8 slot_index, u32 port_number, bool split, in __mlxsw_core_port_init() argument
3147 if (slot_index) { in __mlxsw_core_port_init()
3151 slot_index); in __mlxsw_core_port_init()
3174 u8 slot_index, u32 port_number, bool split, in mlxsw_core_port_init() argument
3183 DEVLINK_PORT_FLAVOUR_PHYSICAL, slot_index, in mlxsw_core_port_init()
Dspectrum.h142 u8 slot_index; member
/Linux-v6.6/io_uring/
Dfiletable.c64 u32 slot_index) in io_install_fixed_file() argument
74 if (slot_index >= ctx->nr_user_files) in io_install_fixed_file()
77 slot_index = array_index_nospec(slot_index, ctx->nr_user_files); in io_install_fixed_file()
78 file_slot = io_fixed_file_slot(&ctx->file_table, slot_index); in io_install_fixed_file()
81 ret = io_queue_rsrc_removal(ctx->file_data, slot_index, in io_install_fixed_file()
87 io_file_bitmap_clear(&ctx->file_table, slot_index); in io_install_fixed_file()
92 *io_get_tag_slot(ctx->file_data, slot_index) = 0; in io_install_fixed_file()
94 io_file_bitmap_set(&ctx->file_table, slot_index); in io_install_fixed_file()
/Linux-v6.6/kernel/dma/
Dswiotlb.c983 unsigned int slot_index; in swiotlb_area_find_slots() local
1010 slot_index = slot_base + index; in swiotlb_area_find_slots()
1013 (slot_addr(tbl_dma_addr, slot_index) & in swiotlb_area_find_slots()
1020 if (!iommu_is_span_boundary(slot_index, nslots, in swiotlb_area_find_slots()
1023 if (pool->slots[slot_index].list >= nslots) in swiotlb_area_find_slots()
1040 for (i = slot_index; i < slot_index + nslots; i++) { in swiotlb_area_find_slots()
1043 ((i - slot_index) << IO_TLB_SHIFT)); in swiotlb_area_find_slots()
1045 for (i = slot_index - 1; in swiotlb_area_find_slots()
1058 return slot_index; in swiotlb_area_find_slots()
/Linux-v6.6/fs/orangefs/
Dorangefs-bufmap.h37 void orangefs_bufmap_page_fill(void *kaddr, int buffer_index, int slot_index);
Dorangefs-bufmap.c540 int slot_index) in orangefs_bufmap_page_fill() argument
546 page_from = kmap_atomic(from->page_array[slot_index]); in orangefs_bufmap_page_fill()
/Linux-v6.6/drivers/gpu/drm/qxl/
Dqxl_kms.c67 unsigned int slot_index, in setup_slot() argument
74 slot->index = slot_index; in setup_slot()
/Linux-v6.6/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_core.c696 int slot_index; in reserve_space() local
721 slot_index = local->slot_queue[SLOT_QUEUE_INDEX_FROM_POS_MASKED(tx_pos)]; in reserve_space()
723 (char *)SLOT_DATA_FROM_INDEX(state, slot_index); in reserve_space()
810 int slot_index = local->slot_queue[slot_queue_available & in process_free_queue() local
812 char *data = (char *)SLOT_DATA_FROM_INDEX(state, slot_index); in process_free_queue()
823 state->id, slot_index, data, local->slot_queue_recycle, in process_free_queue()
3253 int slot_index; in vchiq_release_message() local
3261 slot_index = SLOT_INDEX_FROM_DATA(state, (void *)header); in vchiq_release_message()
3263 if ((slot_index >= remote->slot_first) && in vchiq_release_message()
3264 (slot_index <= remote->slot_last)) { in vchiq_release_message()
[all …]
/Linux-v6.6/sound/soc/fsl/
Dfsl_easrc.c756 if (slot->slot_index == 0) { in fsl_easrc_config_one_slot()
811 if (slot->slot_index == 1) in fsl_easrc_config_one_slot()
834 if (slot->slot_index == 1) in fsl_easrc_config_one_slot()
886 slota->slot_index = 0; in fsl_easrc_config_slot()
890 slota->slot_index = 1; in fsl_easrc_config_slot()
Dfsl_easrc.h579 int slot_index; member
/Linux-v6.6/drivers/scsi/mpi3mr/mpi/
Dmpi30_cnfg.h1785 __le16 slot_index; member
1843 __le16 slot_index; member
2174 __le16 slot_index; member
2371 __le16 slot_index; member
/Linux-v6.6/drivers/scsi/hisi_sas/
Dhisi_sas_main.c2229 int slot_index = i * slots_per_blk; in hisi_sas_alloc() local
2238 for (j = 0; j < slots_per_blk; j++, slot_index++) { in hisi_sas_alloc()
2241 slot = &hisi_hba->slot_info[slot_index]; in hisi_sas_alloc()
2244 slot->idx = slot_index; in hisi_sas_alloc()
/Linux-v6.6/drivers/net/wireless/ath/wcn36xx/
Dhal.h3546 u32 slot_index; member