/Linux-v4.19/include/linux/ |
D | log2.h | 160 #define ilog2(n) \ macro 181 (1UL << (ilog2((n) - 1) + 1)) \ 197 (1UL << ilog2(n))) : \ 204 return n > 1 ? ilog2(n - 1) + 1 : 0; in __order_base_2() 224 ilog2((n) - 1) + 1) : \
|
D | assoc_array_priv.h | 23 #define ASSOC_ARRAY_LEVEL_STEP (ilog2(ASSOC_ARRAY_FAN_OUT)) 26 #define ASSOC_ARRAY_KEY_CHUNK_SHIFT (ilog2(BITS_PER_LONG))
|
/Linux-v4.19/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-v4.19/fs/proc/ |
D | task_mmu.c | 609 [ilog2(VM_READ)] = "rd", in show_smap_vma_flags() 610 [ilog2(VM_WRITE)] = "wr", in show_smap_vma_flags() 611 [ilog2(VM_EXEC)] = "ex", in show_smap_vma_flags() 612 [ilog2(VM_SHARED)] = "sh", in show_smap_vma_flags() 613 [ilog2(VM_MAYREAD)] = "mr", in show_smap_vma_flags() 614 [ilog2(VM_MAYWRITE)] = "mw", in show_smap_vma_flags() 615 [ilog2(VM_MAYEXEC)] = "me", in show_smap_vma_flags() 616 [ilog2(VM_MAYSHARE)] = "ms", in show_smap_vma_flags() 617 [ilog2(VM_GROWSDOWN)] = "gd", in show_smap_vma_flags() 618 [ilog2(VM_PFNMAP)] = "pf", in show_smap_vma_flags() [all …]
|
/Linux-v4.19/drivers/pci/endpoint/ |
D | pci-epc-mem.c | 26 unsigned int page_shift = ilog2(mem->page_size); in pci_epc_mem_get_order() 61 page_shift = ilog2(page_size); in __pci_epc_mem_init() 127 unsigned int page_shift = ilog2(mem->page_size); in pci_epc_mem_alloc_addr() 160 unsigned int page_shift = ilog2(mem->page_size); in pci_epc_mem_free_addr()
|
/Linux-v4.19/tools/include/linux/ |
D | log2.h | 75 #define ilog2(n) \ macro 159 (1UL << (ilog2((n) - 1) + 1)) \ 175 (1UL << ilog2(n))) : \
|
/Linux-v4.19/arch/arm/include/asm/ |
D | cpufeature.h | 29 #define __hwcap_feature(x) ilog2(HWCAP_ ## x) 30 #define __hwcap2_feature(x) (32 + ilog2(HWCAP2_ ## x))
|
/Linux-v4.19/include/asm-generic/ |
D | div64.h | 84 ___p = 1 << ilog2(___b); \ 141 ___p >>= ilog2(___bits); \ 142 ___m >>= ilog2(___bits); \ 226 (n) >>= ilog2(__base); \
|
/Linux-v4.19/drivers/infiniband/hw/mlx5/ |
D | mem.c | 65 *order = ilog2(roundup_pow_of_two(*ncont)); in mlx5_ib_cont_pages() 96 m = min_t(unsigned long, ilog2(roundup_pow_of_two(i)), m); in mlx5_ib_cont_pages() 99 *order = ilog2(roundup_pow_of_two(i) >> m); in mlx5_ib_cont_pages() 232 *offset = buf_off >> ilog2(off_size); in mlx5_ib_get_buf_offset()
|
/Linux-v4.19/drivers/media/pci/tw5864/ |
D | tw5864-h264.c | 123 bs_write_ue(s, ilog2(MAX_GOP_SIZE) - 4); /* log2_max_frame_num_minus4 */ in tw5864_h264_gen_sps_rbsp() 126 bs_write_ue(s, ilog2(MAX_GOP_SIZE) - 4); in tw5864_h264_gen_sps_rbsp() 177 bs_write(s, ilog2(MAX_GOP_SIZE), frame_gop_seqno); /* frame_num */ in tw5864_h264_gen_slice_head() 182 bs_write(s, ilog2(MAX_GOP_SIZE), frame_gop_seqno); in tw5864_h264_gen_slice_head()
|
/Linux-v4.19/arch/mips/mm/ |
D | tlbex.c | 374 UASM_i_SLL(p, K0, K0, ilog2(sizeof(struct tlb_reg_save))); in build_get_work_registers() 634 UASM_i_ROTR(p, reg, reg, ilog2(_PAGE_GLOBAL)); in build_convert_pte_to_entrylo() 636 UASM_i_SRL(p, reg, reg, ilog2(_PAGE_NO_EXEC)); in build_convert_pte_to_entrylo() 638 ilog2(_PAGE_GLOBAL) - ilog2(_PAGE_NO_EXEC)); in build_convert_pte_to_entrylo() 642 uasm_i_dsrl_safe(p, reg, reg, ilog2(_PAGE_GLOBAL)); in build_convert_pte_to_entrylo() 644 UASM_i_SRL(p, reg, reg, ilog2(_PAGE_GLOBAL)); in build_convert_pte_to_entrylo() 717 uasm_il_bbit1(p, r, tmp, ilog2(_PAGE_HUGE), lid); in build_is_huge_pte() 1048 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); in build_update_entries() 1058 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); in build_update_entries() 1221 uasm_il_bbit1(p, r, scratch, ilog2(_PAGE_HUGE), label_tlb_huge_update); in build_fast_tlb_refill_handler() [all …]
|
/Linux-v4.19/drivers/scsi/ |
D | sd.h | 174 return blocks << (ilog2(sdev->sector_size) - 9); in logical_to_sectors() 184 return bytes >> ilog2(sdev->sector_size); in bytes_to_logical() 189 return sector >> (ilog2(sdev->sector_size) - 9); in sectors_to_logical()
|
/Linux-v4.19/arch/mips/bcm63xx/ |
D | cs.c | 52 val |= (ilog2(size) - ilog2(8 * 1024)) << MPI_CSBASE_SIZE_SHIFT; in bcm63xx_set_cs_base()
|
/Linux-v4.19/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-v4.19/drivers/ide/ |
D | ide-tape.c | 690 set_bit(ilog2(IDE_AFLAG_MEDIUM_PRESENT), &drive->atapi_flags); in idetape_wait_ready() 750 clear_bit(ilog2(IDE_AFLAG_ADDRESS_VALID), in ide_tape_read_position() 759 set_bit(ilog2(IDE_AFLAG_ADDRESS_VALID), in ide_tape_read_position() 786 clear_bit(ilog2(IDE_AFLAG_FILEMARK), &drive->atapi_flags); in __ide_tape_discard_merge_buffer() 1085 if (test_and_clear_bit(ilog2(IDE_AFLAG_FILEMARK), in idetape_space_over_filemarks() 1141 if (test_bit(ilog2(IDE_AFLAG_DETECT_BS), &drive->atapi_flags)) in idetape_chrdev_read() 1157 if (test_bit(ilog2(IDE_AFLAG_FILEMARK), in idetape_chrdev_read() 1176 if (!done && test_bit(ilog2(IDE_AFLAG_FILEMARK), &drive->atapi_flags)) { in idetape_chrdev_read() 1308 clear_bit(ilog2(IDE_AFLAG_MEDIUM_PRESENT), in idetape_mtioctop() 1331 clear_bit(ilog2(IDE_AFLAG_DETECT_BS), in idetape_mtioctop() [all …]
|
/Linux-v4.19/drivers/iio/pressure/ |
D | bmp280-core.c | 490 data->oversampling_humid = ilog2(val); in bmp280_write_oversampling_ratio_humid() 507 data->oversampling_temp = ilog2(val); in bmp280_write_oversampling_ratio_temp() 524 data->oversampling_press = ilog2(val); in bmp280_write_oversampling_ratio_press() 1009 data->oversampling_press = ilog2(8); in bmp280_common_probe() 1010 data->oversampling_temp = ilog2(1); in bmp280_common_probe() 1016 data->oversampling_press = ilog2(16); in bmp280_common_probe() 1017 data->oversampling_temp = ilog2(2); in bmp280_common_probe() 1023 data->oversampling_press = ilog2(16); in bmp280_common_probe() 1024 data->oversampling_humid = ilog2(16); in bmp280_common_probe() 1025 data->oversampling_temp = ilog2(2); in bmp280_common_probe()
|
/Linux-v4.19/sound/pci/hda/ |
D | hda_proc.c | 530 [ilog2(AC_PWRST_D0SUP)] = "D0", in print_power_state() 531 [ilog2(AC_PWRST_D1SUP)] = "D1", in print_power_state() 532 [ilog2(AC_PWRST_D2SUP)] = "D2", in print_power_state() 533 [ilog2(AC_PWRST_D3SUP)] = "D3", in print_power_state() 534 [ilog2(AC_PWRST_D3COLDSUP)] = "D3cold", in print_power_state() 535 [ilog2(AC_PWRST_S3D3COLDSUP)] = "S3D3cold", in print_power_state() 536 [ilog2(AC_PWRST_CLKSTOP)] = "CLKSTOP", in print_power_state() 537 [ilog2(AC_PWRST_EPSS)] = "EPSS", in print_power_state()
|
/Linux-v4.19/include/net/netns/ |
D | hash.h | 12 return (u32)(((unsigned long)net) >> ilog2(sizeof(*net))); in net_hash_mix()
|
/Linux-v4.19/arch/s390/include/asm/ |
D | cpufeature.h | 26 #define cpu_feature(feat) ilog2(HWCAP_S390_ ## feat)
|
/Linux-v4.19/arch/mips/include/asm/ |
D | cpufeature.h | 19 #define cpu_feature(x) ilog2(HWCAP_ ## x)
|
/Linux-v4.19/kernel/ |
D | bounds.c | 22 DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS)); in foo()
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | cpufeature.h | 28 #define PPC_MODULE_FEATURE_VEC_CRYPTO (32 + ilog2(PPC_FEATURE2_VEC_CRYPTO))
|
/Linux-v4.19/drivers/block/ |
D | null_blk_zoned.c | 10 return sect >> ilog2(dev->zone_size_sects); in null_zone_no() 26 (SECTOR_SHIFT + ilog2(dev->zone_size_sects)); in null_zone_init()
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/basics/ |
D | conversion.h | 43 return ilog2(num); in log_2()
|
/Linux-v4.19/drivers/staging/fwserial/ |
D | fwserial.h | 25 #define DISTRIBUTION_MAX_INDEX (ilog2(DISTRIBUTION_MAX_SIZE) + 1) 28 int n = (val) ? min(ilog2(val) + 1, DISTRIBUTION_MAX_INDEX) : 0; in fwtty_profile_data()
|