| /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/fw/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtw88/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/dsa/sja1105/ |
| H A 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()
|
| H A 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()
|
| H A D | sja1105.h | 319 enum sja1105_blk_idx blk_idx, 322 enum sja1105_blk_idx blk_idx,
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/halmac/halmac_88xx/ |
| H A D | halmac_efuse_88xx.c | 1203 u8 blk_idx; in eeprom_parser_88xx() local 1225 blk_idx = ((hdr2 & 0xF0) >> 1) | ((hdr >> 5) & 0x07); in eeprom_parser_88xx() 1228 blk_idx = (hdr & 0xF0) >> 4; in eeprom_parser_88xx() 1243 eeprom_idx = (blk_idx << 3) + (i << 1); in eeprom_parser_88xx() 1291 u8 blk_idx; in eeprom_mask_parser_88xx() local 1313 blk_idx = ((hdr2 & 0xF0) >> 1) | ((hdr >> 5) & 0x07); in eeprom_mask_parser_88xx() 1316 blk_idx = (hdr & 0xF0) >> 4; in eeprom_mask_parser_88xx() 1331 eeprom_idx = (blk_idx << 3) + (i << 1); in eeprom_mask_parser_88xx() 1592 u8 blk_idx; in proc_write_log_efuse_88xx() local 1618 blk_idx = (u8)((offset & (8 - 1)) >> 1); in proc_write_log_efuse_88xx() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/halmac/halmac_88xx/ |
| H A D | halmac_efuse_88xx.c | 1202 u8 blk_idx; in eeprom_parser_88xx() local 1224 blk_idx = ((hdr2 & 0xF0) >> 1) | ((hdr >> 5) & 0x07); in eeprom_parser_88xx() 1227 blk_idx = (hdr & 0xF0) >> 4; in eeprom_parser_88xx() 1242 eeprom_idx = (blk_idx << 3) + (i << 1); in eeprom_parser_88xx() 1290 u8 blk_idx; in eeprom_mask_parser_88xx() local 1312 blk_idx = ((hdr2 & 0xF0) >> 1) | ((hdr >> 5) & 0x07); in eeprom_mask_parser_88xx() 1315 blk_idx = (hdr & 0xF0) >> 4; in eeprom_mask_parser_88xx() 1330 eeprom_idx = (blk_idx << 3) + (i << 1); in eeprom_mask_parser_88xx() 1591 u8 blk_idx; in proc_write_log_efuse_88xx() local 1617 blk_idx = (u8)((offset & (8 - 1)) >> 1); in proc_write_log_efuse_88xx() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/halmac/halmac_88xx/ |
| H A D | halmac_efuse_88xx.c | 1202 u8 blk_idx; in eeprom_parser_88xx() local 1224 blk_idx = ((hdr2 & 0xF0) >> 1) | ((hdr >> 5) & 0x07); in eeprom_parser_88xx() 1227 blk_idx = (hdr & 0xF0) >> 4; in eeprom_parser_88xx() 1242 eeprom_idx = (blk_idx << 3) + (i << 1); in eeprom_parser_88xx() 1290 u8 blk_idx; in eeprom_mask_parser_88xx() local 1312 blk_idx = ((hdr2 & 0xF0) >> 1) | ((hdr >> 5) & 0x07); in eeprom_mask_parser_88xx() 1315 blk_idx = (hdr & 0xF0) >> 4; in eeprom_mask_parser_88xx() 1330 eeprom_idx = (blk_idx << 3) + (i << 1); in eeprom_mask_parser_88xx() 1591 u8 blk_idx; in proc_write_log_efuse_88xx() local 1617 blk_idx = (u8)((offset & (8 - 1)) >> 1); in proc_write_log_efuse_88xx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/block/zram/ |
| H A D | zram_drv.c | 560 unsigned long blk_idx = 1; in alloc_block_bdev() local 563 blk_idx = find_next_zero_bit(zram->bitmap, zram->nr_pages, blk_idx); in alloc_block_bdev() 564 if (blk_idx == zram->nr_pages) in alloc_block_bdev() 567 if (test_and_set_bit(blk_idx, zram->bitmap)) in alloc_block_bdev() 571 return blk_idx; in alloc_block_bdev() 574 static void free_block_bdev(struct zram *zram, unsigned long blk_idx) in free_block_bdev() argument 578 was_set = test_and_clear_bit(blk_idx, zram->bitmap); in free_block_bdev() 641 unsigned long blk_idx = 0; in writeback_store() local 691 if (!blk_idx) { in writeback_store() 692 blk_idx = alloc_block_bdev(zram); in writeback_store() [all …]
|
| /OK3568_Linux_fs/u-boot/fs/ext4/ |
| H A D | ext4_common.c | 478 int blk_idx; in ext4fs_update_parent_dentry() local 511 blk_idx = directory_blocks - 1; in ext4fs_update_parent_dentry() 515 first_block_no_of_root = read_allocated_block(g_parent_inode, blk_idx); in ext4fs_update_parent_dentry() 543 if (blk_idx > 0) { in ext4fs_update_parent_dentry() 545 blk_idx--; in ext4fs_update_parent_dentry() 634 int blk_idx; in search_dir() local 650 for (blk_idx = 0; blk_idx < directory_blocks; blk_idx++) { in search_dir() 651 blknr = read_allocated_block(parent_inode, blk_idx); in search_dir() 938 int blk_idx; in ext4fs_filename_unlink() local 947 for (blk_idx = 0; blk_idx < directory_blocks; blk_idx++) { in ext4fs_filename_unlink() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/radio/wl128x/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/halmac/halmac_88xx/ |
| H A D | halmac_efuse_88xx.c | 1075 u8 blk_idx; in eeprom_parser_88xx() local 1097 blk_idx = ((hdr2 & 0xF0) >> 1) | ((hdr >> 5) & 0x07); in eeprom_parser_88xx() 1100 blk_idx = (hdr & 0xF0) >> 4; in eeprom_parser_88xx() 1115 eeprom_idx = (blk_idx << 3) + (i << 1); in eeprom_parser_88xx() 1163 u8 blk_idx; in eeprom_mask_parser_88xx() local 1185 blk_idx = ((hdr2 & 0xF0) >> 1) | ((hdr >> 5) & 0x07); in eeprom_mask_parser_88xx() 1188 blk_idx = (hdr & 0xF0) >> 4; in eeprom_mask_parser_88xx() 1203 eeprom_idx = (blk_idx << 3) + (i << 1); in eeprom_mask_parser_88xx() 1417 u8 blk_idx; in proc_write_log_efuse_88xx() local 1443 blk_idx = (u8)((offset & (8 - 1)) >> 1); in proc_write_log_efuse_88xx() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/mac/mac_ax/ |
| H A D | efuse.c | 2743 u8 blk_idx; in eeprom_parser() local 2776 blk_idx = (hdr & 0xF0) >> 4; in eeprom_parser() 2784 blk_idx = (((hdr2 & 0xF0) >> 4) << 3) + in eeprom_parser() 2796 blk_idx = ((hdr2 & 0xF0) >> 4) | ((hdr & 0x0F) << 4); in eeprom_parser() 2808 eeprom_idx = (blk_idx << 3) + (i << 1); in eeprom_parser() 3031 u8 blk_idx; in proc_write_log_efuse() local 3067 blk_idx = (u8)((offset & (8 - 1)) >> 1);//mod8 in proc_write_log_efuse() 3070 ((0x1 << blk_idx) ^ 0x0F)); in proc_write_log_efuse() 3073 blk_idx = (u8)(((offset >> 3) & (8 - 1)) << 1); in proc_write_log_efuse() 3074 hdr = (u8)((blk_idx << 4) + 0xF); in proc_write_log_efuse() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/mac/mac_ax/ |
| H A D | efuse.c | 2743 u8 blk_idx; in eeprom_parser() local 2776 blk_idx = (hdr & 0xF0) >> 4; in eeprom_parser() 2784 blk_idx = (((hdr2 & 0xF0) >> 4) << 3) + in eeprom_parser() 2796 blk_idx = ((hdr2 & 0xF0) >> 4) | ((hdr & 0x0F) << 4); in eeprom_parser() 2808 eeprom_idx = (blk_idx << 3) + (i << 1); in eeprom_parser() 3031 u8 blk_idx; in proc_write_log_efuse() local 3067 blk_idx = (u8)((offset & (8 - 1)) >> 1);//mod8 in proc_write_log_efuse() 3070 ((0x1 << blk_idx) ^ 0x0F)); in proc_write_log_efuse() 3073 blk_idx = (u8)(((offset >> 3) & (8 - 1)) << 1); in proc_write_log_efuse() 3074 hdr = (u8)((blk_idx << 4) + 0xF); in proc_write_log_efuse() [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/ |
| H A D | tee_fs_key_manager.h | 23 uint16_t blk_idx, const uint8_t *encrypted_fek,
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/ |
| H A D | tee_fs_key_manager.h | 23 uint16_t blk_idx, const uint8_t *encrypted_fek,
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/huawei/hinic/ |
| H A 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()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/host_include/ |
| H A D | tee_fs_key_manager.h | 76 uint16_t blk_idx, const uint8_t *encrypted_fek,
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qed/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ice/ |
| H A 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 …]
|