/linux-6.1.9/include/linux/ |
D | log2.h | 156 #define ilog2(n) \ macro 178 (1UL << (ilog2((n) - 1) + 1)) \ 194 (1UL << ilog2(n))) : \ 201 return n > 1 ? ilog2(n - 1) + 1 : 0; in __order_base_2() 221 ilog2((n) - 1) + 1) : \ 254 ? 1 : ilog2(n) + 1 \
|
D | t10-pi.h | 42 unsigned int shift = ilog2(queue_logical_block_size(rq->q)); in t10_pi_ref_tag() 73 unsigned int shift = ilog2(queue_logical_block_size(rq->q)); in ext_pi_ref_tag()
|
D | assoc_array_priv.h | 19 #define ASSOC_ARRAY_LEVEL_STEP (ilog2(ASSOC_ARRAY_FAN_OUT)) 22 #define ASSOC_ARRAY_KEY_CHUNK_SHIFT (ilog2(BITS_PER_LONG))
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | en_resources.c | 52 context->rq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context() 54 context->sq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context() 59 context->sq_size_stride = ilog2(TXBB_SIZE) - 4; in mlx4_en_fill_qp_context()
|
/linux-6.1.9/fs/proc/ |
D | task_mmu.c | 654 [ilog2(VM_READ)] = "rd", in show_smap_vma_flags() 655 [ilog2(VM_WRITE)] = "wr", in show_smap_vma_flags() 656 [ilog2(VM_EXEC)] = "ex", in show_smap_vma_flags() 657 [ilog2(VM_SHARED)] = "sh", in show_smap_vma_flags() 658 [ilog2(VM_MAYREAD)] = "mr", in show_smap_vma_flags() 659 [ilog2(VM_MAYWRITE)] = "mw", in show_smap_vma_flags() 660 [ilog2(VM_MAYEXEC)] = "me", in show_smap_vma_flags() 661 [ilog2(VM_MAYSHARE)] = "ms", in show_smap_vma_flags() 662 [ilog2(VM_GROWSDOWN)] = "gd", in show_smap_vma_flags() 663 [ilog2(VM_PFNMAP)] = "pf", in show_smap_vma_flags() [all …]
|
/linux-6.1.9/tools/include/linux/ |
D | log2.h | 71 #define ilog2(n) \ macro 155 (1UL << (ilog2((n) - 1) + 1)) \ 171 (1UL << ilog2(n))) : \
|
/linux-6.1.9/lib/math/ |
D | div64.c | 203 if (ilog2(a) + ilog2(b) > 62) { in mul_u64_u64_div_u64() 223 shift = ilog2(a) + ilog2(b) - 62; in mul_u64_u64_div_u64()
|
/linux-6.1.9/arch/arm/include/asm/ |
D | cpufeature.h | 26 #define __hwcap_feature(x) ilog2(HWCAP_ ## x) 27 #define __hwcap2_feature(x) (32 + ilog2(HWCAP2_ ## x))
|
/linux-6.1.9/include/asm-generic/ |
D | div64.h | 80 ___p = 1 << ilog2(___b); \ 137 ___p >>= ilog2(___bits); \ 138 ___m >>= ilog2(___bits); \ 226 (n) >>= ilog2(__base); \
|
/linux-6.1.9/lib/ |
D | generic-radix-tree.c | 8 #define GENRADIX_ARY_SHIFT ilog2(GENRADIX_ARY) 60 if (ilog2(offset) >= genradix_depth_shift(level)) in __genradix_ptr() 118 if (n && ilog2(offset) < genradix_depth_shift(level)) in __genradix_ptr_alloc() 177 if (ilog2(iter->offset) >= genradix_depth_shift(level)) in __genradix_iter_peek()
|
/linux-6.1.9/drivers/media/pci/tw5864/ |
D | tw5864-h264.c | 114 bs_write_ue(s, ilog2(MAX_GOP_SIZE) - 4); /* log2_max_frame_num_minus4 */ in tw5864_h264_gen_sps_rbsp() 117 bs_write_ue(s, ilog2(MAX_GOP_SIZE) - 4); in tw5864_h264_gen_sps_rbsp() 168 bs_write(s, ilog2(MAX_GOP_SIZE), frame_gop_seqno); /* frame_num */ in tw5864_h264_gen_slice_head() 173 bs_write(s, ilog2(MAX_GOP_SIZE), frame_gop_seqno); in tw5864_h264_gen_slice_head()
|
/linux-6.1.9/drivers/pci/endpoint/ |
D | pci-epc-mem.c | 26 unsigned int page_shift = ilog2(mem->window.page_size); in pci_epc_mem_get_order() 73 page_shift = ilog2(page_size); in pci_epc_multi_mem_init() 188 page_shift = ilog2(mem->window.page_size); in pci_epc_mem_alloc_addr() 250 page_shift = ilog2(page_size); in pci_epc_mem_free_addr()
|
/linux-6.1.9/arch/mips/mm/ |
D | tlbex.c | 371 UASM_i_SLL(p, K0, K0, ilog2(sizeof(struct tlb_reg_save))); in build_get_work_registers() 612 UASM_i_ROTR(p, reg, reg, ilog2(_PAGE_GLOBAL)); in build_convert_pte_to_entrylo() 614 UASM_i_SRL(p, reg, reg, ilog2(_PAGE_NO_EXEC)); in build_convert_pte_to_entrylo() 616 ilog2(_PAGE_GLOBAL) - ilog2(_PAGE_NO_EXEC)); in build_convert_pte_to_entrylo() 620 uasm_i_dsrl_safe(p, reg, reg, ilog2(_PAGE_GLOBAL)); in build_convert_pte_to_entrylo() 622 UASM_i_SRL(p, reg, reg, ilog2(_PAGE_GLOBAL)); in build_convert_pte_to_entrylo() 702 uasm_il_bbit1(p, r, tmp, ilog2(_PAGE_HUGE), lid); in build_is_huge_pte() 1023 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); in build_update_entries() 1033 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); in build_update_entries() 1197 uasm_il_bbit1(p, r, scratch, ilog2(_PAGE_HUGE), label_tlb_huge_update); in build_fast_tlb_refill_handler() [all …]
|
/linux-6.1.9/drivers/mtd/spi-nor/ |
D | swp.c | 41 bp_slots_needed = ilog2(nor->info->n_sectors); in spi_nor_get_min_prot_length_sr() 201 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_lock() 286 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_unlock()
|
/linux-6.1.9/net/ethtool/ |
D | tunnels.c | 16 static_assert(ETHTOOL_UDP_TUNNEL_TYPE_VXLAN == ilog2(UDP_TUNNEL_TYPE_VXLAN)); 17 static_assert(ETHTOOL_UDP_TUNNEL_TYPE_GENEVE == ilog2(UDP_TUNNEL_TYPE_GENEVE)); 19 ilog2(UDP_TUNNEL_TYPE_VXLAN_GPE)); 145 ilog2(UDP_TUNNEL_TYPE_VXLAN))) in ethnl_tunnel_info_fill_reply()
|
/linux-6.1.9/drivers/scsi/ |
D | sd.h | 207 return blocks << (ilog2(sdev->sector_size) - 9); in logical_to_sectors() 217 return bytes >> ilog2(sdev->sector_size); in bytes_to_logical() 222 return sector >> (ilog2(sdev->sector_size) - 9); in sectors_to_logical()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_buddy.c | 116 mm->max_order = ilog2(size) - ilog2(chunk_size); in drm_buddy_init() 150 order = ilog2(root_size) - ilog2(chunk_size); in drm_buddy_init() 698 pages = size >> ilog2(mm->chunk_size); in drm_buddy_alloc_blocks() 700 min_order = ilog2(min_page_size) - ilog2(mm->chunk_size); in drm_buddy_alloc_blocks()
|
/linux-6.1.9/arch/mips/bcm63xx/ |
D | cs.c | 52 val |= (ilog2(size) - ilog2(8 * 1024)) << MPI_CSBASE_SIZE_SHIFT; in bcm63xx_set_cs_base()
|
/linux-6.1.9/tools/testing/selftests/vm/ |
D | thuge-gen.c | 53 int ilog2(unsigned long v) in ilog2() function 237 int arg = ilog2(ps) << MAP_HUGE_SHIFT; in main() 249 int arg = ilog2(ps) << SHM_HUGE_SHIFT; in main()
|
/linux-6.1.9/block/ |
D | disk-events.c | 25 [ilog2(DISK_EVENT_MEDIA_CHANGE)] = "media_change", 26 [ilog2(DISK_EVENT_EJECT_REQUEST)] = "eject_request", 30 [ilog2(DISK_EVENT_MEDIA_CHANGE)] = "DISK_MEDIA_CHANGE=1", 31 [ilog2(DISK_EVENT_EJECT_REQUEST)] = "DISK_EJECT_REQUEST=1",
|
/linux-6.1.9/drivers/iommu/ |
D | io-pgtable-dart.c | 42 (DART_GRANULE(d) >> ilog2(sizeof(dart_iopte))) 175 return (iova >> (3 * data->bits_per_level + ilog2(sizeof(dart_iopte)))) & in dart_get_table() 182 return (iova >> (2 * data->bits_per_level + ilog2(sizeof(dart_iopte)))) & in dart_get_l1_index() 189 return (iova >> (data->bits_per_level + ilog2(sizeof(dart_iopte)))) & in dart_get_l2_index() 373 bits_per_level = pg_shift - ilog2(sizeof(dart_iopte)); in dart_alloc_pgtable()
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_cn10k.c | 359 cfg |= FIELD_PREP(LBK_LINK_CFG_RANGE_MASK, ilog2(chans)); in __rvu_lbk_set_chans() 453 cfg |= FIELD_PREP(NIX_AF_LINKX_RANGE_MASK, ilog2(cgx_chans)); in __rvu_nix_set_channels() 463 cfg |= FIELD_PREP(NIX_AF_LINKX_RANGE_MASK, ilog2(lbk_chans)); in __rvu_nix_set_channels() 473 cfg |= FIELD_PREP(NIX_AF_LINKX_RANGE_MASK, ilog2(sdp_chans)); in __rvu_nix_set_channels() 483 cfg |= FIELD_PREP(NIX_AF_LINKX_RANGE_MASK, ilog2(cpt_chans)); in __rvu_nix_set_channels() 511 cfg |= FIELD_PREP(RPMX_CMRX_LINK_RANGE_MASK, ilog2(16)); in __rvu_rpm_set_channels()
|
/linux-6.1.9/include/scsi/ |
D | scsi_cmnd.h | 224 unsigned int shift = ilog2(scmd->device->sector_size) - SECTOR_SHIFT; in scsi_get_lba() 231 unsigned int shift = ilog2(scmd->device->sector_size) - SECTOR_SHIFT; in scsi_logical_block_count() 381 xfer_len += (xfer_len >> ilog2(prot_interval)) * 8; in scsi_transfer_length()
|
/linux-6.1.9/drivers/spi/ |
D | spi-npcm-fiu.c | 270 ilog2(op->addr.buswidth) << in npcm_fiu_set_drd() 353 uma_cfg |= ilog2(op->cmd.buswidth); in npcm_fiu_uma_read() 354 uma_cfg |= ilog2(op->addr.buswidth) in npcm_fiu_uma_read() 356 uma_cfg |= ilog2(op->dummy.buswidth) in npcm_fiu_uma_read() 358 uma_cfg |= ilog2(op->data.buswidth) in npcm_fiu_uma_read() 415 uma_cfg |= ilog2(op->cmd.buswidth); in npcm_fiu_uma_write() 416 uma_cfg |= ilog2(op->addr.buswidth) << in npcm_fiu_uma_write() 418 uma_cfg |= ilog2(op->data.buswidth) << in npcm_fiu_uma_write()
|
/linux-6.1.9/arch/powerpc/platforms/powernv/ |
D | pci-ioda-tce.c | 87 const long shift = ilog2(tbl->it_level_size); in pnv_tce() 101 ilog2(tbl->it_level_size) + 3); in pnv_tce() 110 ilog2(tbl->it_level_size) + 3, 1); in pnv_tce() 297 const unsigned int window_shift = ilog2(window_size); in pnv_pci_ioda2_table_alloc_pages()
|