/linux/include/linux/ |
A 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 \
|
A 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/fs/proc/ |
A D | task_mmu.c | 619 [ilog2(VM_READ)] = "rd", in show_smap_vma_flags() 620 [ilog2(VM_WRITE)] = "wr", in show_smap_vma_flags() 621 [ilog2(VM_EXEC)] = "ex", in show_smap_vma_flags() 622 [ilog2(VM_SHARED)] = "sh", in show_smap_vma_flags() 623 [ilog2(VM_MAYREAD)] = "mr", in show_smap_vma_flags() 628 [ilog2(VM_PFNMAP)] = "pf", in show_smap_vma_flags() 629 [ilog2(VM_LOCKED)] = "lo", in show_smap_vma_flags() 630 [ilog2(VM_IO)] = "io", in show_smap_vma_flags() 638 [ilog2(VM_SYNC)] = "sf", in show_smap_vma_flags() 639 [ilog2(VM_ARCH_1)] = "ar", in show_smap_vma_flags() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A 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/drivers/gpu/drm/i915/ |
A D | i915_ttm_buddy_manager.c | 62 min_order = ilog2(min_page_size) - ilog2(mm->chunk_size); in i915_ttm_buddy_man_alloc() 65 min_order = ilog2(size) - ilog2(mm->chunk_size); in i915_ttm_buddy_man_alloc() 73 n_pages = size >> ilog2(mm->chunk_size); in i915_ttm_buddy_man_alloc()
|
/linux/tools/include/linux/ |
A D | log2.h | 71 #define ilog2(n) \ macro 155 (1UL << (ilog2((n) - 1) + 1)) \ 171 (1UL << ilog2(n))) : \
|
/linux/lib/math/ |
A 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/include/asm-generic/ |
A D | div64.h | 80 ___p = 1 << ilog2(___b); \ 137 ___p >>= ilog2(___bits); \ 138 ___m >>= ilog2(___bits); \ 226 (n) >>= ilog2(__base); \
|
/linux/lib/ |
A 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/arch/arm/include/asm/ |
A D | cpufeature.h | 26 #define __hwcap_feature(x) ilog2(HWCAP_ ## x) 27 #define __hwcap2_feature(x) (32 + ilog2(HWCAP2_ ## x))
|
/linux/arch/mips/mm/ |
A D | tlbex.c | 632 UASM_i_ROTR(p, reg, reg, ilog2(_PAGE_GLOBAL)); in build_convert_pte_to_entrylo() 634 UASM_i_SRL(p, reg, reg, ilog2(_PAGE_NO_EXEC)); in build_convert_pte_to_entrylo() 636 ilog2(_PAGE_GLOBAL) - ilog2(_PAGE_NO_EXEC)); in build_convert_pte_to_entrylo() 642 UASM_i_SRL(p, reg, reg, ilog2(_PAGE_GLOBAL)); in build_convert_pte_to_entrylo() 722 uasm_il_bbit1(p, r, tmp, ilog2(_PAGE_HUGE), lid); in build_is_huge_pte() 1059 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); in build_update_entries() 1069 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); in build_update_entries() 1259 uasm_i_drotr(p, even, even, ilog2(_PAGE_GLOBAL)); in build_fast_tlb_refill_handler() 1261 uasm_i_drotr(p, odd, odd, ilog2(_PAGE_GLOBAL)); in build_fast_tlb_refill_handler() 1508 pte_i = ilog2(_PAGE_GLOBAL); in setup_pw() [all …]
|
/linux/drivers/media/pci/tw5864/ |
A 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/drivers/pci/endpoint/ |
A 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/drivers/spi/ |
A D | spi-npcm-fiu.c | 250 ilog2(op->addr.buswidth) << in npcm_fiu_set_drd() 255 ((op->dummy.nbytes * ilog2(op->addr.buswidth)) / BITS_PER_BYTE) in npcm_fiu_set_drd() 334 uma_cfg |= ilog2(op->cmd.buswidth); in npcm_fiu_uma_read() 335 uma_cfg |= ilog2(op->addr.buswidth) in npcm_fiu_uma_read() 337 uma_cfg |= ilog2(op->dummy.buswidth) in npcm_fiu_uma_read() 339 uma_cfg |= ilog2(op->data.buswidth) in npcm_fiu_uma_read() 396 uma_cfg |= ilog2(op->cmd.buswidth); in npcm_fiu_uma_write() 397 uma_cfg |= ilog2(op->addr.buswidth) << in npcm_fiu_uma_write() 399 uma_cfg |= ilog2(op->data.buswidth) << in npcm_fiu_uma_write()
|
/linux/drivers/mtd/spi-nor/ |
A 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/net/ethtool/ |
A 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)); 143 ilog2(UDP_TUNNEL_TYPE_VXLAN))) in ethnl_tunnel_info_fill_reply()
|
/linux/drivers/iio/pressure/ |
A D | bmp280-core.c | 499 data->oversampling_humid = ilog2(val); in bmp280_write_oversampling_ratio_humid() 516 data->oversampling_temp = ilog2(val); in bmp280_write_oversampling_ratio_temp() 533 data->oversampling_press = ilog2(val); in bmp280_write_oversampling_ratio_press() 1016 data->oversampling_press = ilog2(8); in bmp280_common_probe() 1017 data->oversampling_temp = ilog2(1); in bmp280_common_probe() 1023 data->oversampling_press = ilog2(16); in bmp280_common_probe() 1024 data->oversampling_temp = ilog2(2); in bmp280_common_probe() 1030 data->oversampling_press = ilog2(16); in bmp280_common_probe() 1031 data->oversampling_humid = ilog2(16); in bmp280_common_probe() 1032 data->oversampling_temp = ilog2(2); in bmp280_common_probe()
|
A D | dps310.c | 206 DPS310_PRS_PRC_BITS, ilog2(val)); in dps310_set_pres_precision() 225 DPS310_TMP_PRC_BITS, ilog2(val)); in dps310_set_temp_precision() 236 val = ilog2(freq) << 4; in dps310_set_pres_samp_freq() 250 val = ilog2(freq) << 4; in dps310_set_temp_samp_freq() 287 return scale_factors[ilog2(rc)]; in dps310_get_pres_k() 297 return scale_factors[ilog2(rc)]; in dps310_get_temp_k()
|
/linux/drivers/scsi/ |
A D | sd.h | 183 return blocks << (ilog2(sdev->sector_size) - 9); in logical_to_sectors() 193 return bytes >> ilog2(sdev->sector_size); in bytes_to_logical() 198 return sector >> (ilog2(sdev->sector_size) - 9); in sectors_to_logical()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A 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/block/ |
A 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/tools/testing/selftests/vm/ |
A 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/arch/mips/bcm63xx/ |
A D | cs.c | 52 val |= (ilog2(size) - ilog2(8 * 1024)) << MPI_CSBASE_SIZE_SHIFT; in bcm63xx_set_cs_base()
|
/linux/sound/pci/hda/ |
A D | hda_proc.c | 516 [ilog2(AC_PWRST_D0SUP)] = "D0", in print_power_state() 517 [ilog2(AC_PWRST_D1SUP)] = "D1", in print_power_state() 518 [ilog2(AC_PWRST_D2SUP)] = "D2", in print_power_state() 519 [ilog2(AC_PWRST_D3SUP)] = "D3", in print_power_state() 520 [ilog2(AC_PWRST_D3COLDSUP)] = "D3cold", in print_power_state() 521 [ilog2(AC_PWRST_S3D3COLDSUP)] = "S3D3cold", in print_power_state() 522 [ilog2(AC_PWRST_CLKSTOP)] = "CLKSTOP", in print_power_state() 523 [ilog2(AC_PWRST_EPSS)] = "EPSS", in print_power_state()
|
/linux/include/scsi/ |
A D | scsi_cmnd.h | 238 unsigned int shift = ilog2(scmd->device->sector_size) - SECTOR_SHIFT; in scsi_get_lba() 245 unsigned int shift = ilog2(scmd->device->sector_size) - SECTOR_SHIFT; in scsi_logical_block_count() 395 xfer_len += (xfer_len >> ilog2(prot_interval)) * 8; in scsi_transfer_length()
|