Home
last modified time | relevance | path

Searched refs:blk_idx (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/
Dpaging.c45 int blk_idx, order, num_of_pages, size; in iwl_alloc_fw_paging_mem() local
68 for (blk_idx = 0; blk_idx < fwrt->num_of_paging_blk + 1; blk_idx++) { in iwl_alloc_fw_paging_mem()
70 size = blk_idx ? PAGING_BLOCK_SIZE : FW_PAGING_SIZE; in iwl_alloc_fw_paging_mem()
79 fwrt->fw_paging_db[blk_idx].fw_paging_block = block; in iwl_alloc_fw_paging_mem()
80 fwrt->fw_paging_db[blk_idx].fw_paging_size = size; in iwl_alloc_fw_paging_mem()
93 fwrt->fw_paging_db[blk_idx].fw_paging_phys = phys; in iwl_alloc_fw_paging_mem()
95 if (!blk_idx) in iwl_alloc_fw_paging_mem()
250 int blk_idx; in iwl_send_paging_cmd() local
253 for (blk_idx = 0; blk_idx < fwrt->num_of_paging_blk + 1; blk_idx++) { in iwl_send_paging_cmd()
254 dma_addr_t addr = fwrt->fw_paging_db[blk_idx].fw_paging_phys; in iwl_send_paging_cmd()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Defuse.c28 #define block_idx_to_logical_idx(blk_idx, i) \ argument
29 (((blk_idx) << 3) + ((i) << 1))
48 u8 blk_idx; in rtw_dump_logical_efuse_map() local
60 blk_idx = get_efuse_blk_idx_2_byte(hdr1, hdr2); in rtw_dump_logical_efuse_map()
65 blk_idx = get_efuse_blk_idx_1_byte(hdr1); in rtw_dump_logical_efuse_map()
74 log_idx = block_idx_to_logical_idx(blk_idx, i); in rtw_dump_logical_efuse_map()
/linux-6.1.9/drivers/net/dsa/sja1105/
Dsja1105_devlink.c17 enum sja1105_blk_idx blk_idx; in sja1105_static_config_get_max_size() local
26 for (blk_idx = 0; blk_idx < BLK_IDX_MAX; blk_idx++) { in sja1105_static_config_get_max_size()
27 struct sja1105_table *table = &config.tables[blk_idx]; in sja1105_static_config_get_max_size()
Dsja1105.h373 enum sja1105_blk_idx blk_idx,
376 enum sja1105_blk_idx blk_idx,
Dsja1105_dynamic_config.c1242 enum sja1105_blk_idx blk_idx, in sja1105_dynamic_config_read() argument
1251 if (blk_idx >= BLK_IDX_MAX_DYN) in sja1105_dynamic_config_read()
1254 ops = &priv->info->dyn_ops[blk_idx]; in sja1105_dynamic_config_read()
1311 enum sja1105_blk_idx blk_idx, in sja1105_dynamic_config_write() argument
1320 if (blk_idx >= BLK_IDX_MAX_DYN) in sja1105_dynamic_config_write()
1323 ops = &priv->info->dyn_ops[blk_idx]; in sja1105_dynamic_config_write()
Dsja1105_static_config.c1051 #define IS_FULL(blk_idx) \ in sja1105_static_config_check_valid() argument
1052 (tables[blk_idx].entry_count == tables[blk_idx].ops->max_entry_count) in sja1105_static_config_check_valid()
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Defuse.c185 #define block_idx_to_logical_idx(blk_idx, i) \ argument
186 (((blk_idx) << 3) + ((i) << 1))
196 u8 blk_idx; in rtw89_dump_logical_efuse_map() local
209 blk_idx = get_efuse_blk_idx(hdr1, hdr2); in rtw89_dump_logical_efuse_map()
217 log_idx = block_idx_to_logical_idx(blk_idx, i); in rtw89_dump_logical_efuse_map()
/linux-6.1.9/drivers/block/zram/
Dzram_drv.c570 unsigned long blk_idx = 1; in alloc_block_bdev() local
573 blk_idx = find_next_zero_bit(zram->bitmap, zram->nr_pages, blk_idx); in alloc_block_bdev()
574 if (blk_idx == zram->nr_pages) in alloc_block_bdev()
577 if (test_and_set_bit(blk_idx, zram->bitmap)) in alloc_block_bdev()
581 return blk_idx; in alloc_block_bdev()
584 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) in free_block_bdev() argument
588 was_set = test_and_clear_bit(blk_idx, zram->bitmap); in free_block_bdev()
648 unsigned long blk_idx = 0; in writeback_store() local
700 if (!blk_idx) { in writeback_store()
701 blk_idx = alloc_block_bdev(zram); in writeback_store()
[all …]
/linux-6.1.9/drivers/media/radio/wl128x/
Dfmdrv_common.c706 u8 type, blk_idx, idx; in fm_irq_handle_rdsdata_getcmd_resp() local
725 blk_idx = (type <= FM_RDS_BLOCK_C ? type : (type - 1)); in fm_irq_handle_rdsdata_getcmd_resp()
726 fmdbg("Block index:%d(%s)\n", blk_idx, in fm_irq_handle_rdsdata_getcmd_resp()
732 if (blk_idx > FM_RDS_BLK_IDX_D) { in fm_irq_handle_rdsdata_getcmd_resp()
739 idx = array_index_nospec(blk_idx * (FM_RDS_BLK_SIZE - 1), in fm_irq_handle_rdsdata_getcmd_resp()
745 rds->last_blk_idx = blk_idx; in fm_irq_handle_rdsdata_getcmd_resp()
748 if (blk_idx == FM_RDS_BLK_IDX_D) { in fm_irq_handle_rdsdata_getcmd_resp()
787 blk_idx = (type <= FM_RDS_BLOCK_C ? type : (type - 1)); in fm_irq_handle_rdsdata_getcmd_resp()
788 tmpbuf[2] = blk_idx; /* Offset name */ in fm_irq_handle_rdsdata_getcmd_resp()
789 tmpbuf[2] |= blk_idx << 3; /* Received offset */ in fm_irq_handle_rdsdata_getcmd_resp()
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c279 int page_idx, blk_idx, pos = 0; in init_wqs_blocks_arr() local
282 for (blk_idx = 0; blk_idx < WQS_BLOCKS_PER_PAGE; blk_idx++) { in init_wqs_blocks_arr()
284 wqs->free_blocks[pos].block_idx = blk_idx; in init_wqs_blocks_arr()
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_cxt.c445 u32 cli_idx, blk_idx; in qed_cxt_ilt_blk_reset() local
448 for (blk_idx = 0; blk_idx < ILT_CLI_PF_BLOCKS; blk_idx++) in qed_cxt_ilt_blk_reset()
449 clients[cli_idx].pf_blks[blk_idx].total_size = 0; in qed_cxt_ilt_blk_reset()
451 for (blk_idx = 0; blk_idx < ILT_CLI_VF_BLOCKS; blk_idx++) in qed_cxt_ilt_blk_reset()
452 clients[cli_idx].vf_blks[blk_idx].total_size = 0; in qed_cxt_ilt_blk_reset()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c3932 static void ice_free_prof_map(struct ice_hw *hw, u8 blk_idx) in ice_free_prof_map() argument
3934 struct ice_es *es = &hw->blk[blk_idx].es; in ice_free_prof_map()
3951 static void ice_free_flow_profs(struct ice_hw *hw, u8 blk_idx) in ice_free_flow_profs() argument
3955 mutex_lock(&hw->fl_profs_locks[blk_idx]); in ice_free_flow_profs()
3956 list_for_each_entry_safe(p, tmp, &hw->fl_profs[blk_idx], l_entry) { in ice_free_flow_profs()
3960 ice_flow_rem_entry(hw, (enum ice_block)blk_idx, in ice_free_flow_profs()
3968 mutex_unlock(&hw->fl_profs_locks[blk_idx]); in ice_free_flow_profs()
3973 INIT_LIST_HEAD(&hw->fl_profs[blk_idx]); in ice_free_flow_profs()
4043 static void ice_init_flow_profs(struct ice_hw *hw, u8 blk_idx) in ice_init_flow_profs() argument
4045 mutex_init(&hw->fl_profs_locks[blk_idx]); in ice_init_flow_profs()
[all …]