Searched refs:blk_idx (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/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 …]
|
/Linux-v5.4/drivers/net/wireless/realtek/rtw88/ |
D | efuse.c | 26 #define block_idx_to_logical_idx(blk_idx, i) \ argument 27 (((blk_idx) << 3) + ((i) << 1)) 46 u8 blk_idx; in rtw_dump_logical_efuse_map() local 58 blk_idx = get_efuse_blk_idx_2_byte(hdr1, hdr2); in rtw_dump_logical_efuse_map() 63 blk_idx = get_efuse_blk_idx_1_byte(hdr1); in rtw_dump_logical_efuse_map() 72 log_idx = block_idx_to_logical_idx(blk_idx, i); in rtw_dump_logical_efuse_map()
|
/Linux-v5.4/drivers/net/dsa/sja1105/ |
D | sja1105_dynamic_config.c | 644 enum sja1105_blk_idx blk_idx, in sja1105_dynamic_config_read() argument 654 if (blk_idx >= BLK_IDX_MAX_DYN) in sja1105_dynamic_config_read() 657 ops = &priv->info->dyn_ops[blk_idx]; in sja1105_dynamic_config_read() 712 if (!cmd.valident && blk_idx != BLK_IDX_MGMT_ROUTE) in sja1105_dynamic_config_read() 729 enum sja1105_blk_idx blk_idx, in sja1105_dynamic_config_write() argument 738 if (blk_idx >= BLK_IDX_MAX_DYN) in sja1105_dynamic_config_write() 741 ops = &priv->info->dyn_ops[blk_idx]; in sja1105_dynamic_config_write()
|
D | sja1105.h | 182 enum sja1105_blk_idx blk_idx, 185 enum sja1105_blk_idx blk_idx,
|
D | sja1105_static_config.c | 576 #define IS_FULL(blk_idx) \ in sja1105_static_config_check_valid() argument 577 (tables[blk_idx].entry_count == tables[blk_idx].ops->max_entry_count) in sja1105_static_config_check_valid()
|
/Linux-v5.4/drivers/block/zram/ |
D | zram_drv.c | 554 unsigned long blk_idx = 1; in alloc_block_bdev() local 557 blk_idx = find_next_zero_bit(zram->bitmap, zram->nr_pages, blk_idx); in alloc_block_bdev() 558 if (blk_idx == zram->nr_pages) in alloc_block_bdev() 561 if (test_and_set_bit(blk_idx, zram->bitmap)) in alloc_block_bdev() 565 return blk_idx; in alloc_block_bdev() 568 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) in free_block_bdev() argument 572 was_set = test_and_clear_bit(blk_idx, zram->bitmap); in free_block_bdev() 631 unsigned long blk_idx = 0; in writeback_store() local 672 if (!blk_idx) { in writeback_store() 673 blk_idx = alloc_block_bdev(zram); in writeback_store() [all …]
|
/Linux-v5.4/drivers/media/radio/wl128x/ |
D | fmdrv_common.c | 703 u8 type, blk_idx; in fm_irq_handle_rdsdata_getcmd_resp() local 722 blk_idx = (type <= FM_RDS_BLOCK_C ? type : (type - 1)); in fm_irq_handle_rdsdata_getcmd_resp() 723 fmdbg("Block index:%d(%s)\n", blk_idx, in fm_irq_handle_rdsdata_getcmd_resp() 729 if (blk_idx > FM_RDS_BLK_IDX_D) { in fm_irq_handle_rdsdata_getcmd_resp() 737 buff[blk_idx * (FM_RDS_BLK_SIZE - 1)], in fm_irq_handle_rdsdata_getcmd_resp() 740 rds->last_blk_idx = blk_idx; in fm_irq_handle_rdsdata_getcmd_resp() 743 if (blk_idx == FM_RDS_BLK_IDX_D) { in fm_irq_handle_rdsdata_getcmd_resp() 782 blk_idx = (type <= FM_RDS_BLOCK_C ? type : (type - 1)); in fm_irq_handle_rdsdata_getcmd_resp() 783 tmpbuf[2] = blk_idx; /* Offset name */ in fm_irq_handle_rdsdata_getcmd_resp() 784 tmpbuf[2] |= blk_idx << 3; /* Received offset */ in fm_irq_handle_rdsdata_getcmd_resp()
|
/Linux-v5.4/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()
|