| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | core_env.c | 41 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 …]
|
| H A D | minimal.c | 49 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() 152 mlxsw_m_port->slot_index, in mlxsw_m_set_module_eeprom_by_page() 162 return mlxsw_env_reset_module(netdev, core, mlxsw_m_port->slot_index, in mlxsw_m_reset() 175 return mlxsw_env_get_module_power_mode(core, mlxsw_m_port->slot_index, in mlxsw_m_get_module_power_mode() 188 return mlxsw_env_set_module_power_mode(core, mlxsw_m_port->slot_index, in mlxsw_m_set_module_power_mode() 246 mlxsw_m_port_create(struct mlxsw_m *mlxsw_m, u16 local_port, u8 slot_index, in mlxsw_m_port_create() argument 253 err = mlxsw_core_port_init(mlxsw_m->core, local_port, slot_index, in mlxsw_m_port_create() [all …]
|
| H A D | core_env.h | 13 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, 33 u8 slot_index, u8 module, 38 struct mlxsw_core *mlxsw_core, u8 slot_index, 42 mlxsw_env_get_module_power_mode(struct mlxsw_core *mlxsw_core, u8 slot_index, 48 mlxsw_env_set_module_power_mode(struct mlxsw_core *mlxsw_core, u8 slot_index, 54 mlxsw_env_module_overheat_counter_get(struct mlxsw_core *mlxsw_core, u8 slot_index, 57 void mlxsw_env_module_port_map(struct mlxsw_core *mlxsw_core, u8 slot_index, [all …]
|
| H A D | core_linecards.c | 83 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 …]
|
| H A D | core_thermal.c | 115 u8 slot_index; member 123 u8 slot_index; member 246 mlxsw_reg_mtmp_pack(mtmp_pl, tz->slot_index, sensor_index, in mlxsw_thermal_module_temp_get() 271 mlxsw_reg_mtmp_pack(mtmp_pl, tz->slot_index, index, false, false); in mlxsw_thermal_gearbox_temp_get() 355 if (module_tz->slot_index) in mlxsw_thermal_module_tz_init() 357 module_tz->slot_index, module_tz->module + 1); in mlxsw_thermal_module_tz_init() 395 module_tz->slot_index = area->slot_index; in mlxsw_thermal_module_init() 422 mlxsw_reg_mgpir_pack(mgpir_pl, area->slot_index); in mlxsw_thermal_modules_init() 471 if (gearbox_tz->slot_index) in mlxsw_thermal_gearbox_tz_init() 473 gearbox_tz->slot_index, gearbox_tz->module + 1); in mlxsw_thermal_gearbox_tz_init() [all …]
|
| H A D | core_hwmon.c | 55 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 …]
|
| H A D | spectrum.c | 471 u8 slot_index; in mlxsw_sp_port_module_info_parse() local 477 slot_index = mlxsw_reg_pmlp_slot_index_get(pmlp_pl, 0); in mlxsw_sp_port_module_info_parse() 494 if (mlxsw_reg_pmlp_slot_index_get(pmlp_pl, i) != slot_index) { in mlxsw_sp_port_module_info_parse() 514 port_mapping->slot_index = slot_index; in mlxsw_sp_port_module_info_parse() 543 mlxsw_env_module_port_map(mlxsw_sp->core, port_mapping->slot_index, in mlxsw_sp_port_module_map() 550 port_mapping->slot_index); in mlxsw_sp_port_module_map() 561 mlxsw_env_module_port_unmap(mlxsw_sp->core, port_mapping->slot_index, in mlxsw_sp_port_module_map() 567 u8 slot_index, u8 module) in mlxsw_sp_port_module_unmap() argument 574 mlxsw_env_module_port_unmap(mlxsw_sp->core, slot_index, module); in mlxsw_sp_port_module_unmap() 584 mlxsw_sp_port->mapping.slot_index, in mlxsw_sp_port_open() [all …]
|
| H A D | core.c | 3060 u8 slot_index, u32 port_number, bool split, in __mlxsw_core_port_init() argument 3083 if (slot_index) { in __mlxsw_core_port_init() 3087 slot_index); in __mlxsw_core_port_init() 3110 u8 slot_index, u32 port_number, bool split, in mlxsw_core_port_init() argument 3119 DEVLINK_PORT_FLAVOUR_PHYSICAL, slot_index, in mlxsw_core_port_init()
|
| /linux/kernel/dma/ |
| H A D | swiotlb.c | 1049 unsigned int slot_index; in swiotlb_search_pool_area() local 1089 slot_index = slot_base + index; in swiotlb_search_pool_area() 1090 tlb_addr = slot_addr(tbl_dma_addr, slot_index); in swiotlb_search_pool_area() 1100 if (!iommu_is_span_boundary(slot_index, nslots, in swiotlb_search_pool_area() 1103 if (pool->slots[slot_index].list >= nslots) in swiotlb_search_pool_area() 1120 for (i = slot_index; i < slot_index + nslots; i++) { in swiotlb_search_pool_area() 1123 ((i - slot_index) << IO_TLB_SHIFT)); in swiotlb_search_pool_area() 1125 for (i = slot_index - 1; in swiotlb_search_pool_area() 1138 return slot_index; in swiotlb_search_pool_area()
|
| /linux/drivers/platform/raspberrypi/vchiq-interface/ |
| H A D | vchiq_core.c | 721 int slot_index; in reserve_space() local 747 slot_index = local->slot_queue[SLOT_QUEUE_INDEX_FROM_POS_MASKED(tx_pos)]; in reserve_space() 749 (char *)SLOT_DATA_FROM_INDEX(state, slot_index); in reserve_space() 836 int slot_index = local->slot_queue[slot_queue_available & in process_free_queue() local 838 char *data = (char *)SLOT_DATA_FROM_INDEX(state, slot_index); in process_free_queue() 849 state->id, slot_index, data, local->slot_queue_recycle, in process_free_queue() 3650 int slot_index; in vchiq_release_message() local 3658 slot_index = SLOT_INDEX_FROM_DATA(state, (void *)header); in vchiq_release_message() 3660 if ((slot_index >= remote->slot_first) && in vchiq_release_message() 3661 (slot_index <= remote->slot_last)) { in vchiq_release_message() [all …]
|
| /linux/sound/soc/fsl/ |
| H A D | fsl_easrc.c | 815 if (slot->slot_index == 0) { in fsl_easrc_config_one_slot() 870 if (slot->slot_index == 1) in fsl_easrc_config_one_slot() 893 if (slot->slot_index == 1) in fsl_easrc_config_one_slot() 945 slota->slot_index = 0; in fsl_easrc_config_slot() 949 slota->slot_index = 1; in fsl_easrc_config_slot()
|
| /linux/drivers/scsi/hisi_sas/ |
| H A D | hisi_sas_main.c | 2300 int slot_index = i * slots_per_blk; in hisi_sas_alloc() local 2309 for (j = 0; j < slots_per_blk; j++, slot_index++) { in hisi_sas_alloc() 2312 slot = &hisi_hba->slot_info[slot_index]; in hisi_sas_alloc() 2315 slot->idx = slot_index; in hisi_sas_alloc()
|