/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/ |
D | paging.c | 102 int blk_idx, order, num_of_pages, size; in iwl_alloc_fw_paging_mem() local 125 for (blk_idx = 0; blk_idx < fwrt->num_of_paging_blk + 1; blk_idx++) { in iwl_alloc_fw_paging_mem() 127 size = blk_idx ? PAGING_BLOCK_SIZE : FW_PAGING_SIZE; in iwl_alloc_fw_paging_mem() 136 fwrt->fw_paging_db[blk_idx].fw_paging_block = block; in iwl_alloc_fw_paging_mem() 137 fwrt->fw_paging_db[blk_idx].fw_paging_size = size; in iwl_alloc_fw_paging_mem() 150 fwrt->fw_paging_db[blk_idx].fw_paging_phys = phys; in iwl_alloc_fw_paging_mem() 152 if (!blk_idx) in iwl_alloc_fw_paging_mem() 305 int blk_idx; in iwl_send_paging_cmd() local 308 for (blk_idx = 0; blk_idx < fwrt->num_of_paging_blk + 1; blk_idx++) { in iwl_send_paging_cmd() 309 dma_addr_t addr = fwrt->fw_paging_db[blk_idx].fw_paging_phys; in iwl_send_paging_cmd() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/ |
D | efuse.c | 28 #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()
|
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/ |
D | sja1105_devlink.c | 17 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()
|
D | sja1105_dynamic_config.c | 850 enum sja1105_blk_idx blk_idx, in sja1105_dynamic_config_read() argument 860 if (blk_idx >= BLK_IDX_MAX_DYN) in sja1105_dynamic_config_read() 863 ops = &priv->info->dyn_ops[blk_idx]; in sja1105_dynamic_config_read() 918 if (!cmd.valident && blk_idx != BLK_IDX_MGMT_ROUTE) in sja1105_dynamic_config_read() 935 enum sja1105_blk_idx blk_idx, in sja1105_dynamic_config_write() argument 944 if (blk_idx >= BLK_IDX_MAX_DYN) in sja1105_dynamic_config_write() 947 ops = &priv->info->dyn_ops[blk_idx]; in sja1105_dynamic_config_write()
|
D | sja1105.h | 319 enum sja1105_blk_idx blk_idx, 322 enum sja1105_blk_idx blk_idx,
|
D | sja1105_static_config.c | 692 #define IS_FULL(blk_idx) \ in sja1105_static_config_check_valid() argument 693 (tables[blk_idx].entry_count == tables[blk_idx].ops->max_entry_count) in sja1105_static_config_check_valid()
|
/kernel/linux/linux-5.10/drivers/block/zram/ |
D | zram_drv.c | 506 unsigned long blk_idx = 1; in alloc_block_bdev() local 509 blk_idx = find_next_zero_bit(zram->bitmap, zram->nr_pages, blk_idx); in alloc_block_bdev() 510 if (blk_idx == zram->nr_pages) in alloc_block_bdev() 513 if (test_and_set_bit(blk_idx, zram->bitmap)) in alloc_block_bdev() 517 return blk_idx; in alloc_block_bdev() 520 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) in free_block_bdev() argument 524 was_set = test_and_clear_bit(blk_idx, zram->bitmap); in free_block_bdev() 583 unsigned long blk_idx = 0; in writeback_store() local 624 if (!blk_idx) { in writeback_store() 625 blk_idx = alloc_block_bdev(zram); in writeback_store() [all …]
|
/kernel/linux/linux-5.10/drivers/media/radio/wl128x/ |
D | fmdrv_common.c | 705 u8 type, blk_idx, idx; in fm_irq_handle_rdsdata_getcmd_resp() local 724 blk_idx = (type <= FM_RDS_BLOCK_C ? type : (type - 1)); in fm_irq_handle_rdsdata_getcmd_resp() 725 fmdbg("Block index:%d(%s)\n", blk_idx, in fm_irq_handle_rdsdata_getcmd_resp() 731 if (blk_idx > FM_RDS_BLK_IDX_D) { in fm_irq_handle_rdsdata_getcmd_resp() 738 idx = array_index_nospec(blk_idx * (FM_RDS_BLK_SIZE - 1), in fm_irq_handle_rdsdata_getcmd_resp() 744 rds->last_blk_idx = blk_idx; in fm_irq_handle_rdsdata_getcmd_resp() 747 if (blk_idx == FM_RDS_BLK_IDX_D) { in fm_irq_handle_rdsdata_getcmd_resp() 786 blk_idx = (type <= FM_RDS_BLOCK_C ? type : (type - 1)); in fm_irq_handle_rdsdata_getcmd_resp() 787 tmpbuf[2] = blk_idx; /* Offset name */ in fm_irq_handle_rdsdata_getcmd_resp() 788 tmpbuf[2] |= blk_idx << 3; /* Received offset */ in fm_irq_handle_rdsdata_getcmd_resp()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_wq.c | 280 int page_idx, blk_idx, pos = 0; in init_wqs_blocks_arr() local 283 for (blk_idx = 0; blk_idx < WQS_BLOCKS_PER_PAGE; blk_idx++) { in init_wqs_blocks_arr() 285 wqs->free_blocks[pos].block_idx = blk_idx; in init_wqs_blocks_arr()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_cxt.c | 445 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
D | ice_flex_pipe.c | 2853 static void ice_free_prof_map(struct ice_hw *hw, u8 blk_idx) in ice_free_prof_map() argument 2855 struct ice_es *es = &hw->blk[blk_idx].es; in ice_free_prof_map() 2872 static void ice_free_flow_profs(struct ice_hw *hw, u8 blk_idx) in ice_free_flow_profs() argument 2876 mutex_lock(&hw->fl_profs_locks[blk_idx]); in ice_free_flow_profs() 2877 list_for_each_entry_safe(p, tmp, &hw->fl_profs[blk_idx], l_entry) { in ice_free_flow_profs() 2881 ice_flow_rem_entry(hw, (enum ice_block)blk_idx, in ice_free_flow_profs() 2889 mutex_unlock(&hw->fl_profs_locks[blk_idx]); in ice_free_flow_profs() 2894 INIT_LIST_HEAD(&hw->fl_profs[blk_idx]); in ice_free_flow_profs() 2962 static void ice_init_flow_profs(struct ice_hw *hw, u8 blk_idx) in ice_init_flow_profs() argument 2964 mutex_init(&hw->fl_profs_locks[blk_idx]); in ice_init_flow_profs() [all …]
|