Searched refs:ilog2 (Results 1 - 200 of 213) sorted by relevance

12

/linux-4.1.27/kernel/
H A Dbounds.c21 DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS)); foo()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Den_resources.c52 context->rq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); mlx4_en_fill_qp_context()
54 context->sq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); mlx4_en_fill_qp_context()
59 context->sq_size_stride = ilog2(TXBB_SIZE) - 4; mlx4_en_fill_qp_context()
H A Dprofile.c139 profile[i].log_num = ilog2(profile[i].num); mlx4_make_profile()
228 init_hca->log_num_eqs = ilog2(dev->caps.num_eqs); mlx4_make_profile()
248 ilog2(mlx4_get_mgm_entry_size(dev)); mlx4_make_profile()
H A Dcq.c198 cq_context->logsize_usrpage = cpu_to_be32(ilog2(entries) << 24); mlx4_cq_resize()
321 cq_context->logsize_usrpage = cpu_to_be32((ilog2(nent) << 24) | uar->index); mlx4_cq_alloc()
H A Den_clock.c254 return ilog2(div_u64(max_mul * freq_khz, 1000000)); freq_to_shift()
H A Dsrq.c191 srq_context->state_logsize_srqn = cpu_to_be32((ilog2(srq->max) << 24) | mlx4_srq_alloc()
H A Dmain.c153 int log_mtts_per_seg = ilog2(MLX4_MTT_ENTRY_PER_SEG);
482 dev->caps.max_counters = 1 << ilog2(dev_cap->max_counters); mlx4_dev_cap()
2047 dev->caps.max_fmr_maps = (1 << (32 - ilog2(dev->caps.num_mpts))) - 1; mlx4_init_hca()
2049 init_hca.log_uar_sz = ilog2(dev->caps.num_uars); mlx4_init_hca()
H A Dmlx4_en.h212 #define ROUNDUP_LOG2(x) ilog2(roundup_pow_of_two(x))
H A Dfw.c1723 (ilog2(cache_line_size()) - 4) << 5; mlx4_INIT_HCA()
1775 MLX4_PUT(inbox, (u8)((ilog2(dev->caps.eqe_size) - 5) << 4 | mlx4_INIT_HCA()
1776 (ilog2(dev->caps.eqe_size) - 5)), mlx4_INIT_HCA()
H A Den_rx.c1238 rss_context->base_qpn = cpu_to_be32(ilog2(rss_rings) << 24 | mlx4_en_config_rss_steer()
H A Dmr.c930 ilog2((u32)dev->caps.num_mtts / mlx4_init_mr_table()
H A Den_ethtool.c1132 rss_rings = 1 << ilog2(rss_rings); mlx4_en_get_rxfh()
H A Deq.c991 eq_context->log_eq_size = ilog2(eq->nent); mlx4_create_eq()
/linux-4.1.27/include/linux/
H A Dlog2.h76 * ilog2 - log of base 2 of 32-bit or a 64-bit unsigned value
85 #define ilog2(n) \ macro
172 (1UL << (ilog2((n) - 1) + 1)) \
188 (1UL << ilog2(n))) : \
206 #define order_base_2(n) ilog2(roundup_pow_of_two(n))
H A Dassoc_array_priv.h23 #define ASSOC_ARRAY_LEVEL_STEP (ilog2(ASSOC_ARRAY_FAN_OUT))
26 #define ASSOC_ARRAY_KEY_CHUNK_SHIFT (ilog2(BITS_PER_LONG))
51 * segments, where each segment is ilog2(ASSOC_ARRAY_FAN_OUT) bits in size.
H A Dbacking-dev.h47 #define BDI_STAT_BATCH (8*(1+ilog2(nr_cpu_ids)))
H A Dhashtable.h23 #define HASH_BITS(name) ilog2(HASH_SIZE(name))
H A Dslab.h155 #define KMALLOC_SHIFT_LOW ilog2(ARCH_DMA_MINALIGN)
H A Dsched.h221 sizeof(TASK_STATE_TO_CHAR_STR)-1 != ilog2(TASK_STATE_MAX)+1)];
/linux-4.1.27/tools/include/linux/
H A Dlog2.h69 * ilog2 - log of base 2 of 32-bit or a 64-bit unsigned value
78 #define ilog2(n) \ macro
165 (1UL << (ilog2((n) - 1) + 1)) \
181 (1UL << ilog2(n))) : \
/linux-4.1.27/lib/
H A Daverage.c41 avg->weight = ilog2(weight); ewma_init()
42 avg->factor = ilog2(factor); ewma_init()
H A Dflex_proportions.c169 #define PROP_BATCH (8*(1+ilog2(nr_cpu_ids)))
H A Dproportions.c189 #define PROP_BATCH (8*(1+ilog2(nr_cpu_ids)))
/linux-4.1.27/arch/x86/include/asm/
H A Ddiv64.h27 n >>= ilog2(__base); \
H A Dpgtable.h834 #define PTE_SHIFT ilog2(PTRS_PER_PTE) page_level_shift()
/linux-4.1.27/include/asm-generic/
H A Dgetorder.h54 ilog2((n) - 1) - PAGE_SHIFT + 1) \
/linux-4.1.27/arch/mips/bcm63xx/
H A Dcs.c51 val |= (ilog2(size) - ilog2(8 * 1024)) << MPI_CSBASE_SIZE_SHIFT; bcm63xx_set_cs_base()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
H A Dmem.c59 unsigned long page_shift = ilog2(umem->page_size); mlx5_ib_cont_pages()
67 *order = ilog2(roundup_pow_of_two(*count)); mlx5_ib_cont_pages()
105 m = min_t(unsigned long, ilog2(roundup_pow_of_two(i)), m); mlx5_ib_cont_pages()
108 *order = ilog2(roundup_pow_of_two(i) >> m); mlx5_ib_cont_pages()
154 unsigned long umem_page_shift = ilog2(umem->page_size); __mlx5_ib_populate_pas()
223 *offset = buf_off >> ilog2(off_size); mlx5_ib_get_buf_offset()
H A Dsrq.c273 srq->msrq.wqe_shift = ilog2(desc_size); mlx5_ib_create_srq()
291 in->ctx.state_log_sz = ilog2(srq->msrq.max); mlx5_ib_create_srq()
H A Dqp.c255 qp->rq.wqe_shift = ilog2(wqe_size); set_rq_size()
366 qp->sq.wqe_shift = ilog2(MLX5_SEND_WQE_BB); calc_sq_size()
388 if (ucmd->sq_wqe_count && ((1 << ilog2(ucmd->sq_wqe_count)) != ucmd->sq_wqe_count)) { set_user_buf_size()
646 qp->sq.wqe_shift = ilog2(MLX5_SEND_WQE_BB); create_user_qp()
988 in->ctx.rq_size_stride |= ilog2(qp->rq.wqe_cnt) << 3; create_qp_common()
994 in->ctx.sq_crq_size |= cpu_to_be16(ilog2(qp->sq.wqe_cnt) << 11); create_qp_common()
H A Dcq.c786 cqb->ctx.log_sz_usr_page = cpu_to_be32((ilog2(entries) << 24) | index); mlx5_ib_create_cq()
1129 in->ctx.log_sz_usr_page = cpu_to_be32(ilog2(entries) << 24); mlx5_ib_resize_cq()
H A Dmr.c678 npages = ALIGN(len + offset, page_size) >> ilog2(page_size); get_octo_len()
/linux-4.1.27/fs/proc/
H A Dtask_mmu.c568 [ilog2(VM_READ)] = "rd", show_smap_vma_flags()
569 [ilog2(VM_WRITE)] = "wr", show_smap_vma_flags()
570 [ilog2(VM_EXEC)] = "ex", show_smap_vma_flags()
571 [ilog2(VM_SHARED)] = "sh", show_smap_vma_flags()
572 [ilog2(VM_MAYREAD)] = "mr", show_smap_vma_flags()
573 [ilog2(VM_MAYWRITE)] = "mw", show_smap_vma_flags()
574 [ilog2(VM_MAYEXEC)] = "me", show_smap_vma_flags()
575 [ilog2(VM_MAYSHARE)] = "ms", show_smap_vma_flags()
576 [ilog2(VM_GROWSDOWN)] = "gd", show_smap_vma_flags()
577 [ilog2(VM_PFNMAP)] = "pf", show_smap_vma_flags()
578 [ilog2(VM_DENYWRITE)] = "dw", show_smap_vma_flags()
580 [ilog2(VM_MPX)] = "mp", show_smap_vma_flags()
582 [ilog2(VM_LOCKED)] = "lo", show_smap_vma_flags()
583 [ilog2(VM_IO)] = "io", show_smap_vma_flags()
584 [ilog2(VM_SEQ_READ)] = "sr", show_smap_vma_flags()
585 [ilog2(VM_RAND_READ)] = "rr", show_smap_vma_flags()
586 [ilog2(VM_DONTCOPY)] = "dc", show_smap_vma_flags()
587 [ilog2(VM_DONTEXPAND)] = "de", show_smap_vma_flags()
588 [ilog2(VM_ACCOUNT)] = "ac", show_smap_vma_flags()
589 [ilog2(VM_NORESERVE)] = "nr", show_smap_vma_flags()
590 [ilog2(VM_HUGETLB)] = "ht", show_smap_vma_flags()
591 [ilog2(VM_ARCH_1)] = "ar", show_smap_vma_flags()
592 [ilog2(VM_DONTDUMP)] = "dd", show_smap_vma_flags()
594 [ilog2(VM_SOFTDIRTY)] = "sd", show_smap_vma_flags()
596 [ilog2(VM_MIXEDMAP)] = "mm", show_smap_vma_flags()
597 [ilog2(VM_HUGEPAGE)] = "hg", show_smap_vma_flags()
598 [ilog2(VM_NOHUGEPAGE)] = "nh", show_smap_vma_flags()
599 [ilog2(VM_MERGEABLE)] = "mg", show_smap_vma_flags()
H A Darray.c129 BUILD_BUG_ON(1 + ilog2(TASK_REPORT) != ARRAY_SIZE(task_state_array)-1); get_task_state()
/linux-4.1.27/arch/arm64/include/asm/
H A Dcpufeature.h22 #define cpu_feature(x) ilog2(HWCAP_ ## x)
/linux-4.1.27/arch/arm/mach-davinci/
H A Dsram.c62 sram_pool = gen_pool_create(ilog2(SRAM_GRANULARITY), -1); sram_init()
/linux-4.1.27/arch/mips/mm/
H A Dtlbex.c368 UASM_i_SLL(p, K0, K0, ilog2(sizeof(struct tlb_reg_save))); build_get_work_registers()
634 UASM_i_ROTR(p, reg, reg, ilog2(_PAGE_GLOBAL)); build_convert_pte_to_entrylo()
637 uasm_i_dsrl_safe(p, reg, reg, ilog2(_PAGE_GLOBAL)); build_convert_pte_to_entrylo()
639 UASM_i_SRL(p, reg, reg, ilog2(_PAGE_GLOBAL)); build_convert_pte_to_entrylo()
712 uasm_il_bbit1(p, r, tmp, ilog2(_PAGE_HUGE), lid); build_is_huge_pte()
1013 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); build_update_entries()
1015 UASM_i_ROTR(p, ptep, ptep, ilog2(_PAGE_GLOBAL)); build_update_entries()
1017 uasm_i_dsrl_safe(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); /* convert to entrylo0 */ build_update_entries()
1019 uasm_i_dsrl_safe(p, ptep, ptep, ilog2(_PAGE_GLOBAL)); /* convert to entrylo1 */ build_update_entries()
1032 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); build_update_entries()
1033 UASM_i_ROTR(p, ptep, ptep, ilog2(_PAGE_GLOBAL)); build_update_entries()
1053 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); build_update_entries()
1057 UASM_i_ROTR(p, ptep, ptep, ilog2(_PAGE_GLOBAL)); build_update_entries()
1059 UASM_i_SRL(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); /* convert to entrylo0 */ build_update_entries()
1063 UASM_i_SRL(p, ptep, ptep, ilog2(_PAGE_GLOBAL)); /* convert to entrylo1 */ build_update_entries()
1193 uasm_il_bbit1(p, r, scratch, ilog2(_PAGE_HUGE), label_tlb_huge_update); build_fast_tlb_refill_handler()
1219 uasm_i_drotr(p, even, even, ilog2(_PAGE_GLOBAL)); build_fast_tlb_refill_handler()
1221 uasm_i_drotr(p, odd, odd, ilog2(_PAGE_GLOBAL)); build_fast_tlb_refill_handler()
1223 uasm_i_dsrl_safe(p, even, even, ilog2(_PAGE_GLOBAL)); build_fast_tlb_refill_handler()
1225 uasm_i_dsrl_safe(p, odd, odd, ilog2(_PAGE_GLOBAL)); build_fast_tlb_refill_handler()
1614 uasm_il_bbit0(p, r, pte, ilog2(_PAGE_PRESENT), lid); build_pte_present()
1690 uasm_il_bbit0(p, r, pte, ilog2(_PAGE_WRITE), lid); build_pte_modifiable()
1964 uasm_il_bbit0(&p, &r, wr.r1, ilog2(_PAGE_VALID), build_r4000_tlb_load_handler()
1988 uasm_i_bbit0(&p, wr.r2, ilog2(sizeof(pte_t)), 8); build_r4000_tlb_load_handler()
2031 uasm_il_bbit0(&p, &r, wr.r1, ilog2(_PAGE_VALID), build_r4000_tlb_load_handler()
2055 uasm_i_bbit0(&p, wr.r2, ilog2(sizeof(pte_t)), 8); build_r4000_tlb_load_handler()
2306 pwsize = ilog2(PTRS_PER_PGD) << MIPS_PWSIZE_GDW_SHIFT; config_htw_params()
2307 pwsize |= ilog2(PTRS_PER_PTE) << MIPS_PWSIZE_PTW_SHIFT; config_htw_params()
/linux-4.1.27/sound/pci/hda/
H A Dhda_proc.c482 [ilog2(AC_PWRST_D0SUP)] = "D0", print_power_state()
483 [ilog2(AC_PWRST_D1SUP)] = "D1", print_power_state()
484 [ilog2(AC_PWRST_D2SUP)] = "D2", print_power_state()
485 [ilog2(AC_PWRST_D3SUP)] = "D3", print_power_state()
486 [ilog2(AC_PWRST_D3COLDSUP)] = "D3cold", print_power_state()
487 [ilog2(AC_PWRST_S3D3COLDSUP)] = "S3D3cold", print_power_state()
488 [ilog2(AC_PWRST_CLKSTOP)] = "CLKSTOP", print_power_state()
489 [ilog2(AC_PWRST_EPSS)] = "EPSS", print_power_state()
/linux-4.1.27/tools/testing/selftests/vm/
H A Dthuge-gen.c50 int ilog2(unsigned long v) ilog2() function
234 int arg = ilog2(ps) << MAP_HUGE_SHIFT; main()
246 int arg = ilog2(ps) << SHM_HUGE_SHIFT; main()
/linux-4.1.27/drivers/ide/
H A Dide-tape.c688 set_bit(ilog2(IDE_AFLAG_MEDIUM_PRESENT), &drive->atapi_flags); idetape_wait_ready()
748 clear_bit(ilog2(IDE_AFLAG_ADDRESS_VALID), ide_tape_read_position()
757 set_bit(ilog2(IDE_AFLAG_ADDRESS_VALID), ide_tape_read_position()
784 clear_bit(ilog2(IDE_AFLAG_FILEMARK), &drive->atapi_flags); __ide_tape_discard_merge_buffer()
1083 if (test_and_clear_bit(ilog2(IDE_AFLAG_FILEMARK), idetape_space_over_filemarks()
1139 if (test_bit(ilog2(IDE_AFLAG_DETECT_BS), &drive->atapi_flags)) idetape_chrdev_read()
1155 if (test_bit(ilog2(IDE_AFLAG_FILEMARK), idetape_chrdev_read()
1174 if (!done && test_bit(ilog2(IDE_AFLAG_FILEMARK), &drive->atapi_flags)) { idetape_chrdev_read()
1306 clear_bit(ilog2(IDE_AFLAG_MEDIUM_PRESENT), idetape_mtioctop()
1329 clear_bit(ilog2(IDE_AFLAG_DETECT_BS), idetape_mtioctop()
1332 set_bit(ilog2(IDE_AFLAG_DETECT_BS), idetape_mtioctop()
1493 if (test_and_set_bit(ilog2(IDE_AFLAG_BUSY), &drive->atapi_flags)) { idetape_chrdev_open()
1500 clear_bit(ilog2(IDE_AFLAG_BUSY), &drive->atapi_flags); idetape_chrdev_open()
1506 if (!test_bit(ilog2(IDE_AFLAG_ADDRESS_VALID), &drive->atapi_flags)) idetape_chrdev_open()
1522 clear_bit(ilog2(IDE_AFLAG_BUSY), &drive->atapi_flags); idetape_chrdev_open()
1583 if (minor < 128 && test_bit(ilog2(IDE_AFLAG_MEDIUM_PRESENT), idetape_chrdev_release()
1593 clear_bit(ilog2(IDE_AFLAG_BUSY), &drive->atapi_flags); idetape_chrdev_release()
/linux-4.1.27/arch/s390/mm/
H A Dpageattr.c138 nr = (unsigned long)pte >> ilog2(sizeof(long)); __kernel_map_pages()
/linux-4.1.27/arch/arm/mach-mmp/
H A Dsram.c94 info->gpool = gen_pool_create(ilog2(info->granularity), -1); sram_probe()
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dmite.h154 order = ilog2(size); MITE_IODWBSR_1_WSIZE_bits()
300 value = 1 + ilog2(retry_limit); CR_RL()
/linux-4.1.27/drivers/of/
H A Ddevice.c137 DMA_BIT_MASK(ilog2(dma_addr + size))); of_dma_configure()
139 DMA_BIT_MASK(ilog2(dma_addr + size))); of_dma_configure()
/linux-4.1.27/drivers/infiniband/hw/ehca/
H A Dipz_pt_fn.c129 int order = ilog2(queue->pagesize) - 9; alloc_small_queue_page()
174 int order = ilog2(queue->pagesize) - 9; free_small_queue_page()
H A Dehca_mrmw.c108 int log = ilog2(pgsize); ehca_encode_hwpage_size()
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
H A Darb.c235 *burst = ilog2(fifo_data.burst >> 4); nv04_update_arb()
248 *burst = ilog2(burst_size >> 5); nv20_update_arb()
/linux-4.1.27/drivers/iommu/
H A Dio-pgtable-arm.c67 ((l) == ARM_LPAE_START_LVL(d) ? ilog2(ARM_LPAE_PAGES_PER_PGD(d)) : 0)
75 (1 << (ilog2(sizeof(arm_lpae_iopte)) + \
574 data->bits_per_level = data->pg_shift - ilog2(sizeof(arm_lpae_iopte)); arm_lpae_alloc_pgtable()
581 data->pgd_size = 1UL << (pgd_bits + ilog2(sizeof(arm_lpae_iopte))); arm_lpae_alloc_pgtable()
691 pgd_pages = data->pgd_size >> ilog2(sizeof(arm_lpae_iopte)); arm_64_lpae_alloc_pgtable_s2()
H A Dfsl_pamu_domain.c85 subwin_size = dma_domain->geom_size >> ilog2(win_cnt); get_phys_addr()
87 wnd = (subwin_iova - geom->aperture_start) >> ilog2(subwin_size); get_phys_addr()
263 subwin_size = window_size >> ilog2(win_cnt); pamu_set_liodn()
562 win_size = dma_domain->geom_size >> ilog2(dma_domain->win_cnt); fsl_pamu_window_enable()
H A Diova.c130 unsigned int order = ilog2(size); iova_get_pad_size()
H A Dfsl_pamu.c1141 spaace_pool = gen_pool_create(ilog2(sizeof(struct paace)), -1); fsl_pamu_probe()
H A Dintel_irq_remapping.c99 mask = ilog2(count); alloc_irte()
H A Dintel-iommu.c1362 unsigned int mask = ilog2(__roundup_pow_of_two(pages)); iommu_flush_iotlb_psi()
3150 mask = ilog2(mm_to_dma_pfn(iova_size(iova))); flush_unmaps()
/linux-4.1.27/drivers/input/misc/
H A Dpmic8xxx-pwrkey.c126 delay = 1 + ilog2(delay); pmic8xxx_pwrkey_probe()
H A Dpm8941-pwrkey.c215 req_delay = ilog2(req_delay); pm8941_pwrkey_probe()
/linux-4.1.27/arch/nios2/kernel/
H A Dcpuinfo.c112 cpuinfo.tlb_num_ways_log2 = ilog2(cpuinfo.tlb_num_ways); setup_cpuinfo()
/linux-4.1.27/kernel/events/
H A Dring_buffer.c480 * not the other way around, hence ilog2() and not get_order. rb_alloc_aux()
482 max_order = ilog2(nr_pages); rb_alloc_aux()
506 order = min(max_order, ilog2(nr_pages - rb->aux_nr_pages)); rb_alloc_aux()
754 rb->page_order = ilog2(nr_pages); rb_alloc()
/linux-4.1.27/sound/soc/fsl/
H A Dfsl_dma.h42 ((ilog2(x) << CCSR_DMA_MR_BWC_SHIFT) & CCSR_DMA_MR_BWC_MASK)
/linux-4.1.27/drivers/spi/
H A Dspi-sun4i.c258 div = ilog2(mclk_rate) - ilog2(spi->max_speed_hz); sun4i_spi_transfer_one()
H A Dspi-sun6i.c246 div = ilog2(mclk_rate) - ilog2(spi->max_speed_hz); sun6i_spi_transfer_one()
/linux-4.1.27/drivers/staging/fwserial/
H A Dfwserial.h24 #define DISTRIBUTION_MAX_INDEX (ilog2(DISTRIBUTION_MAX_SIZE) + 1) fwtty_profile_data()
27 int n = (val) ? min(ilog2(val) + 1, DISTRIBUTION_MAX_INDEX) : 0; fwtty_profile_data()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
H A Dsrq.c104 srq->msrq.wqe_shift = ilog2(desc_size); mlx4_ib_create_srq()
124 ilog2(srq->umem->page_size), &srq->mtt); mlx4_ib_create_srq()
H A Dmr.c157 shift = ilog2(mr->umem->page_size); mlx4_ib_reg_user_mr()
241 shift = ilog2(mmr->umem->page_size); mlx4_ib_rereg_user_mr()
H A Dqp.c397 qp->rq.wqe_shift = ilog2(qp->rq.max_gs * sizeof (struct mlx4_wqe_data_seg)); set_rq_size()
479 qp->sq.wqe_shift = ilog2(64); set_kernel_sq_size()
481 qp->sq.wqe_shift = ilog2(roundup_pow_of_two(s)); set_kernel_sq_size()
537 ilog2(roundup_pow_of_two(dev->dev->caps.max_sq_desc_sz)) || set_user_sq_size()
732 ilog2(qp->umem->page_size), &qp->mtt); create_qp_common()
1497 ilog2(dev->dev->caps.max_gso_sz); __mlx4_ib_modify_qp()
1507 ilog2(dev->dev->caps.max_msg_sz); __mlx4_ib_modify_qp()
1511 context->rq_size_stride = ilog2(qp->rq.wqe_cnt) << 3; __mlx4_ib_modify_qp()
1515 context->sq_size_stride = ilog2(qp->sq.wqe_cnt) << 3; __mlx4_ib_modify_qp()
H A Dcq.c150 ilog2((*umem)->page_size), &buf->mtt); mlx4_ib_get_cq_umem()
/linux-4.1.27/drivers/gpu/drm/msm/adreno/
H A Dadreno_gpu.c70 AXXX_CP_RB_CNTL_BUFSZ(ilog2(gpu->rb->size / 8)) | adreno_hw_init()
71 AXXX_CP_RB_CNTL_BLKSZ(ilog2(RB_BLKSIZE / 8))); adreno_hw_init()
/linux-4.1.27/include/scsi/
H A Dscsi_cmnd.h305 (ilog2(scsi_prot_interval(scmd)) - 9) & 0xffffffff; scsi_prot_ref_tag()
347 xfer_len += (xfer_len >> ilog2(prot_interval)) * 8; scsi_transfer_length()
/linux-4.1.27/arch/powerpc/sysdev/
H A Dfsl_pci.c163 unsigned int bits = min_t(u32, ilog2(size), setup_one_atmu()
244 | (ilog2(hose->io_resource.end setup_pci_atmu()
309 mem_log = ilog2(sz); setup_pci_atmu()
338 mem_log = ilog2(mem); setup_pci_atmu()
375 mem_log = ilog2(sz); setup_pci_atmu()
H A Dppc4xx_pci.c240 ma = (0xffffffffu << ilog2(size)) | 1; ppc4xx_setup_one_pci_PMM()
307 sa = (0xffffffffu << ilog2(size)) | 1; ppc4xx_configure_pci_PTMs()
436 sa = (0xffffffffu << ilog2(size)) | 0x1; ppc4xx_setup_one_pcix_POM()
514 sa = (0xffffffffu << ilog2(size)) | 1; ppc4xx_configure_pcix_PIMs()
1743 sa = (0xffffffffu << ilog2(size)) | 0x1; ppc4xx_setup_one_pciex_POM()
1867 sa = (0xffffffffffffffffull << ilog2(ep_size)); ppc4xx_configure_pciex_PIMs()
1886 sa = (0xffffffffffffffffull << ilog2(size)); ppc4xx_configure_pciex_PIMs()
H A Dfsl_rio.c304 base_size_log = ilog2(size); fsl_map_inb_mem()
718 0x80077000 | (ilog2(RIO_MAINT_WIN_SIZE) - 1)); fsl_rio_setup()
/linux-4.1.27/drivers/infiniband/hw/mthca/
H A Dmthca_srq.c124 * triggered by ilog2() on sparc64. mthca_arbel_init_srq_context()
127 logsize = ilog2(max); mthca_arbel_init_srq_context()
227 srq->wqe_shift = ilog2(ds); mthca_alloc_srq()
H A Dmthca_main.c129 static int log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8);
1244 log_mtts_per_seg, ilog2(MTHCA_MTT_SEG_SIZE / 8)); mthca_validate_profile()
1245 log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8); mthca_validate_profile()
H A Dmthca_provider.c124 (1 << (32 - ilog2(mdev->limits.num_mpts))) - 1; mthca_query_device()
799 ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries)); mthca_resize_cq()
H A Dmthca_qp.c599 qp_context->rq_size_stride = ilog2(qp->rq.max) << 3; __mthca_modify_qp()
603 qp_context->sq_size_stride = ilog2(qp->sq.max) << 3; __mthca_modify_qp()
/linux-4.1.27/drivers/md/bcache/
H A Dsuper.c1375 free_pages((unsigned long) c->uuids, ilog2(bucket_pages(c)));
1480 ((void *) __get_free_pages(__GFP_ZERO|gfp, ilog2(bucket_pages(c))))
1510 c->bucket_bits = ilog2(sb->bucket_size); bch_cache_set_alloc()
1511 c->block_bits = ilog2(sb->block_size); bch_cache_set_alloc()
1556 bch_bset_sort_state_init(&c->sort, ilog2(c->btree_pages))) bch_cache_set_alloc()
1819 free_pages((unsigned long) ca->disk_buckets, ilog2(bucket_pages(ca))); bch_cache_release()
H A Dbtree.c583 return ilog2(KEY_SIZE(k) / PAGE_SECTORS ?: 1); btree_order()
590 ilog2(b->c->btree_pages), mca_data_alloc()
754 free_pages((unsigned long) c->verify_ondisk, ilog2(bucket_pages(c))); bch_btree_cache_free()
796 __get_free_pages(GFP_KERNEL, ilog2(bucket_pages(c))); bch_btree_cache_alloc()
/linux-4.1.27/drivers/scsi/bnx2fc/
H A Dbnx2fc.h90 #define BNX2FC_NUM_MAX_SESS_LOG (ilog2(BNX2FC_NUM_MAX_SESS))
102 #define BNX2FC_RQ_BUF_LOG_SZ (ilog2(BNX2FC_RQ_BUF_SZ))
/linux-4.1.27/drivers/char/agp/
H A Dhp-agp.c258 writel(hp->iova_base|ilog2(HP_ZX1_IOVA_SIZE), hp->ioc_regs+HP_ZX1_PCOM); hp_zx1_configure()
286 writeq(hp->gart_base | ilog2(hp->gart_size), hp->ioc_regs+HP_ZX1_PCOM); hp_zx1_tlbflush()
H A Dparisc-agp.c97 writeq(info->gart_base | ilog2(info->gart_size), info->ioc_regs+IOC_PCOM); parisc_agp_tlbflush()
H A Di460-agp.c154 values[i].page_order = ilog2((sizeof(u32)*values[i].num_entries) >> PAGE_SHIFT); i460_fetch_size()
/linux-4.1.27/drivers/misc/
H A Dsram.c99 sram->pool = devm_gen_pool_create(&pdev->dev, ilog2(SRAM_GRANULARITY), -1); sram_probe()
/linux-4.1.27/drivers/scsi/
H A Dsd.h150 return blocks << (ilog2(sdev->sector_size) - 9); logical_to_sectors()
H A Dsd.c703 sector >>= ilog2(sdp->sector_size) - 9; sd_setup_discard_cmnd()
704 nr_sectors >>= ilog2(sdp->sector_size) - 9; sd_setup_discard_cmnd()
831 sector >>= ilog2(sdp->sector_size) - 9; sd_setup_write_same_cmnd()
832 nr_sectors >>= ilog2(sdp->sector_size) - 9; sd_setup_write_same_cmnd()
2764 max_xfer <<= ilog2(sdp->sector_size) - 9; sd_revalidate_disk()
/linux-4.1.27/drivers/rtc/
H A Drtc-rx4581.c161 tm->tm_wday = ilog2(date[RX4581_REG_DW] & 0x7F); rx4581_get_datetime()
H A Drtc-rx8581.c155 tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F); rx8581_get_datetime()
H A Drtc-m41t80.c284 val = ilog2(val); m41t80_sysfs_set_sqwfreq()
/linux-4.1.27/drivers/input/keyboard/
H A Dcap11xx.c262 gain = ilog2(gain32); cap11xx_i2c_probe()
/linux-4.1.27/drivers/clocksource/
H A Dtimer-atmel-pit.c207 bits = 12 /* PICNT */ + ilog2(data->cycle) /* PIV */; at91sam926x_pit_common_init()
/linux-4.1.27/arch/x86/xen/
H A Dspinlock.c66 unsigned index = ilog2(delta); __spin_time_accum()
/linux-4.1.27/fs/hfsplus/
H A Dwrapper.c234 sbi->alloc_blksz_shift = ilog2(blocksize); hfsplus_read_wrapper()
/linux-4.1.27/include/rxrpc/
H A Dpacket.h32 #define RXRPC_CIDSHIFT ilog2(RXRPC_MAXCALLS) /* shift for connection ID */
/linux-4.1.27/arch/sh/kernel/cpu/
H A Dinit.c203 CSHAPE((desc).way_size * (desc).ways, ilog2((desc).linesz), (desc).ways)
/linux-4.1.27/fs/cachefiles/
H A Dbind.c161 cache->bshift = PAGE_SHIFT - ilog2(stats.f_bsize); cachefiles_daemon_add_cache()
H A Dinternal.h77 unsigned bshift; /* min(ilog2(PAGE_SIZE / bsize), 0) */
/linux-4.1.27/net/core/
H A Drequest_sock.c64 lopt->max_qlen_log = ilog2(nr_table_entries); reqsk_queue_alloc()
/linux-4.1.27/drivers/infiniband/hw/cxgb3/
H A Diwch_provider.c184 chp->cq.size_log2 = ilog2(entries); iwch_create_cq()
260 newcq.size_log2 = ilog2(cqe); iwch_resize_cq()
947 qhp->wq.size_log2 = ilog2(wqsize); iwch_create_qp()
948 qhp->wq.rq_size_log2 = ilog2(rqsize); iwch_create_qp()
949 qhp->wq.sq_size_log2 = ilog2(sqsize); iwch_create_qp()
H A Dcxio_hal.c986 ilog2(65536 >> cxio_rdev_open()
987 ilog2(rdev_p->rnic_info.udbell_len >> cxio_rdev_open()
990 rdev_p->qpmask = (65536 >> ilog2(rdev_p->qpnr)) - 1; cxio_rdev_open()
/linux-4.1.27/drivers/dma/
H A Dcppi41.c755 reg |= (ilog2(desc_size) - 5) << QMGR_MEMCTRL_DESC_SH; init_descs()
756 reg |= ilog2(ALLOC_DECS_NUM) - 5; init_descs()
H A Dnbpfaxi.c430 return min_t(int, __ffs(size), ilog2(nbpf->config->buffer_size * 8)); nbpf_xfer_ds()
/linux-4.1.27/net/sched/
H A Dsch_fq.c678 if (nval >= 1 && nval <= ilog2(256*1024)) fq_change()
770 q->fq_trees_log = ilog2(1024); fq_init()
/linux-4.1.27/drivers/infiniband/core/
H A Dumem.c323 shift = ilog2(umem->page_size); ib_umem_page_count()
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac1000_core.c434 mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); dwmac1000_setup()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
H A Dfw.c276 if (ilog2(le32_to_cpu(otus_desc->feature_set)) >= carl9170_fw()
/linux-4.1.27/block/
H A Dgenhd.c1404 [ilog2(DISK_EVENT_MEDIA_CHANGE)] = "media_change",
1405 [ilog2(DISK_EVENT_EJECT_REQUEST)] = "eject_request",
1409 [ilog2(DISK_EVENT_MEDIA_CHANGE)] = "DISK_MEDIA_CHANGE=1",
1410 [ilog2(DISK_EVENT_EJECT_REQUEST)] = "DISK_EJECT_REQUEST=1",
H A Dbio-integrity.c200 return sectors >> (ilog2(bi->interval) - 9); bio_integrity_intervals()
H A Dblk-mq-tag.c493 bt->bits_per_word = ilog2(BITS_PER_LONG); bt_alloc()
H A Dblk-mq.c851 hctx->dispatched[ilog2(queued) + 1]++; __blk_mq_run_hw_queue()
/linux-4.1.27/drivers/gpu/drm/omapdrm/
H A Domap_gem.c147 int height_shift; /* ilog2(height in rows) */
148 int slot_shift; /* ilog2(width per slot) */
1455 usergart[i].height_shift = ilog2(h); omap_gem_init()
1457 usergart[i].slot_shift = ilog2((PAGE_SIZE / h) >> i); omap_gem_init()
/linux-4.1.27/arch/arm/mm/
H A Dnommu.c264 ilog2(meminfo.bank[0].size), mpu_setup()
H A Dcache-l2x0.c997 way_size_bits = ilog2(way_size >> 10) - 3; l2x0_cache_size_of_parse()
/linux-4.1.27/drivers/irqchip/
H A Dirq-gic-v3-its.c243 u8 size = ilog2(desc->its_mapd_cmd.dev->nr_ites); its_build_mapd_cmd()
783 #define LPI_NRBITS ilog2(LPI_PROPBASE_SZ + SZ_8K)
1277 dev_alias.count, ilog2(dev_alias.count)); its_msi_prepare()
/linux-4.1.27/drivers/mmc/core/
H A Dcore.c1166 * with @low_bits = true, 3300 mV translates to ilog2(MMC_VDD_32_33);
1167 * with @low_bits = false, 3300 mV translates to ilog2(MMC_VDD_33_34);
1169 * Any value in the [1951:1999] range translates to the ilog2(MMC_VDD_20_21).
1173 const int max_bit = ilog2(MMC_VDD_35_36); mmc_vdd_to_ocrbitnum()
1180 return ilog2(MMC_VDD_165_195); mmc_vdd_to_ocrbitnum()
1374 tmp = vdd_bit - ilog2(MMC_VDD_165_195); mmc_regulator_set_ocr()
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
H A Docrdma_hw.c2155 cmd->type_pgsz_pdn |= (ilog2(hw_page_size / OCRDMA_MIN_Q_PAGE_SIZE) ocrdma_set_create_qp_sq_cmd()
2166 cmd->max_wqe_rqe |= (ilog2(qp->sq.max_cnt) << ocrdma_set_create_qp_sq_cmd()
2206 cmd->type_pgsz_pdn |= (ilog2(hw_page_size / OCRDMA_MIN_Q_PAGE_SIZE) << ocrdma_set_create_qp_rq_cmd()
2214 cmd->max_wqe_rqe |= (ilog2(qp->rq.max_cnt) << ocrdma_set_create_qp_rq_cmd()
2706 cmd->max_sge_rqe = ilog2(max_rqe_allocated); ocrdma_mbx_create_srq()
2710 cmd->pgsz_pdid |= (ilog2(hw_page_size / OCRDMA_MIN_Q_PAGE_SIZE) ocrdma_mbx_create_srq()
H A Docrdma_verbs.c851 shift = ilog2(umem->page_size); build_user_pbes()
3067 return total_size >> ilog2(*pbe_size); count_kernel_pbes()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-ocores.c334 i2c->reg_shift = ilog2(val); ocores_i2c_of_probe()
/linux-4.1.27/drivers/iio/
H A Dindustrialio-trigger.c175 ilog2(1)); iio_trigger_get_irq()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
H A Deq.c367 in->ctx.log_sz_usr_page = cpu_to_be32(ilog2(eq->nent) << 24 | uar->index); mlx5_create_map_eq()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dspectral.c455 ar->spectral.config.fft_size = ilog2(val); write_file_spectral_bins()
/linux-4.1.27/drivers/memstick/host/
H A Dtifm_ms.c294 writel(ilog2(data_len) - 2, tifm_ms_issue_cmd()
/linux-4.1.27/drivers/scsi/csiostor/
H A Dcsio_hw_t5.c60 WINDOW_V(ilog2(MEMWIN_APERTURE) - 10), csio_t5_set_mem_win()
H A Dcsio_wr.c1320 ingpad = ilog2(sge->csio_fl_align) - 5; csio_wr_fixup_host_params()
/linux-4.1.27/drivers/s390/char/
H A Dsclp_cmd.c207 return PFN_PHYS(start_pfn) >> ilog2(sclp_rzm); arch_get_memory_phys_device()
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_mr.c266 mr->mr.page_shift = ilog2(umem->page_size); qib_reg_user_mr()
H A Dqib.h182 /* ilog2 of above */
H A Dqib_init.c216 ilog2(rcd->rcvegrbufs_perchunk); qib_create_ctxtdata()
/linux-4.1.27/arch/x86/kernel/
H A Dkvm.c637 index = ilog2(delta); __spin_time_accum()
/linux-4.1.27/drivers/watchdog/
H A Docteon-wdt-main.c148 uasm_il_bbit0(&p, &r, K0, ilog2(ST0_NMI), octeon_wdt_build_stage1()
/linux-4.1.27/arch/arm/mach-imx/
H A Dmach-mx31_3ds.c346 * 7 == ilog2(MMC_VDD_165_195) mx31_3ds_sdhc1_setpower()
/linux-4.1.27/fs/btrfs/
H A Dsysfs.c580 bit = ilog2(sfa->feature_bit); init_feature_attrs()
H A Ddisk-io.c2468 (1 + ilog2(nr_cpu_ids)); open_ctree()
2741 fs_info->dirty_metadata_batch = nodesize * (1 + ilog2(nr_cpu_ids)); open_ctree()
2742 fs_info->delalloc_batch = sectorsize * 512 * (1 + ilog2(nr_cpu_ids)); open_ctree()
/linux-4.1.27/mm/
H A Dvmpressure.c71 static const unsigned int vmpressure_level_critical_prio = ilog2(100 / 10);
H A Dbootmem.c211 int order = ilog2(BITS_PER_LONG); free_all_bootmem_core()
H A Dpage-writeback.c872 bw >>= ilog2(period); bdi_update_write_bandwidth()
1185 return 1UL << (ilog2(thresh - dirty) >> 1); dirty_poll_interval()
1215 long hi = ilog2(bdi->avg_write_bandwidth); bdi_min_pause()
1216 long lo = ilog2(bdi->dirty_ratelimit); bdi_min_pause()
H A Dksm.c1985 wait_on_bit(&ksm_run, ilog2(KSM_RUN_OFFLINE), wait_while_offlining()
2062 wake_up_bit(&ksm_run, ilog2(KSM_RUN_OFFLINE)); ksm_memory_callback()
/linux-4.1.27/drivers/misc/genwqe/
H A Dcard_base.c332 x = ilog2(genwqe_pf_jobtimeout_msec * genwqe_setup_pf_jtimer()
360 x = ilog2(cd->vf_jobtimeout_msec[vf] * genwqe_setup_vf_jtimer()
/linux-4.1.27/arch/powerpc/platforms/pseries/
H A Diommu.c320 __be32 tce_shift; /* ilog2(tce_page_size) */
321 __be32 window_shift; /* ilog2(tce_window_size) */
/linux-4.1.27/kernel/time/
H A Dtimekeeping.c1800 shift = ilog2(offset) - ilog2(tk->cycle_interval); update_wall_time()
1803 maxshift = (64 - (ilog2(ntp_tick_length())+1)) - 1; update_wall_time()
/linux-4.1.27/drivers/iio/imu/
H A Dadis16400_core.c165 t = ilog2(819200 / freq); adis16334_set_freq()
/linux-4.1.27/drivers/mmc/host/
H A Dmxs-mmc.c396 log2_blksz = ilog2(data->blksz); mxs_mmc_adtc()
H A Dsdhci.h270 #define SDHCI_DEFAULT_BOUNDARY_ARG (ilog2(SDHCI_DEFAULT_BOUNDARY_SIZE) - 12)
H A Dtifm_sd.c699 writel(ilog2(r_data->blksz) - 2, tifm_sd_request()
/linux-4.1.27/drivers/misc/eeprom/
H A Dat24.c108 << AT24_SIZE_BYTELEN | ilog2(_len))
/linux-4.1.27/drivers/scsi/isci/
H A Disci.h97 #define SCU_MAX_COMPLETION_QUEUE_SHIFT (ilog2(SCU_MAX_COMPLETION_QUEUE_ENTRIES))
H A Dhost.c1133 * update it based on the ilog2 value of the outstanding requests isci_host_completion_routine()
1136 SMU_ICC_GEN_VAL(TIMER, ISCI_COALESCE_BASE + ilog2(active)), isci_host_completion_routine()
H A Drequest.c294 return (len >> ilog2(sector_size)) * 8; scu_dif_bytes()
/linux-4.1.27/drivers/target/
H A Dtarget_core_iblock.c825 return ilog2(logs_per_phys); iblock_get_lbppbe()
H A Dtarget_core_transport.c1767 sectors = cmd->data_length >> ilog2(cmd->se_dev->dev_attrib.block_size); target_write_prot_action()
/linux-4.1.27/drivers/infiniband/ulp/iser/
H A Diser_initiator.c413 ilog2(sc->device->sector_size)) * 8; iser_send_command()
/linux-4.1.27/drivers/tty/serial/
H A Drp2.c62 #define RP2_ASIC_OFFSET(i) ((i) << ilog2(RP2_ASIC_SPACING))
/linux-4.1.27/fs/qnx6/
H A Dinode.c434 sbi->s_ptrbits = ilog2(s->s_blocksize / 4); qnx6_fill_super()
/linux-4.1.27/drivers/video/fbdev/
H A Dsh_mobile_meram.c686 priv->pool = gen_pool_create(ilog2(MERAM_GRANULARITY), -1); sh_mobile_meram_probe()
H A Di740fb.c361 p_best = min(15, ilog2(I740_MAX_VCO_FREQ / (freq / I740_RFREQ_FIX))); i740_calc_vclk()
/linux-4.1.27/fs/jbd/
H A Drevoke.c239 table->hash_shift = ilog2(hash_size); journal_init_revoke_table()
/linux-4.1.27/fs/
H A Dmbcache.c97 #define MB_CACHE_ENTRY_LOCK_BITS ilog2(NR_BG_LOCKS)
/linux-4.1.27/fs/nfsd/
H A Dnfscache.c173 maskbits = ilog2(hashsize); nfsd_reply_cache_init()
/linux-4.1.27/arch/powerpc/kernel/
H A Dsetup-common.c412 threads_shift = ilog2(tpc); cpu_init_thread_core_maps()
H A Dsysfs.c105 return ilog2(cycle); get_idle_ticks_bit()
/linux-4.1.27/arch/powerpc/kvm/
H A De500_mmu.c770 sets = params.tlb_sizes[0] >> ilog2(params.tlb_ways[0]); kvm_vcpu_ioctl_config_tlb()
/linux-4.1.27/net/ipv4/
H A Dtcp_timer.c147 linear_backoff_thresh = ilog2(TCP_RTO_MAX/rto_base); retransmits_timed_out()
H A Dfib_trie.c280 ilog2((PAGE_SIZE - TNODE_SIZE(0)) / sizeof(struct key_vector *))
282 ilog2((SIZE_MAX - TNODE_SIZE(0)) / sizeof(struct key_vector *))
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
H A Ddevice.c802 rdev->qpshift = PAGE_SHIFT - ilog2(rdev->lldi.udb_density); c4iw_rdev_open()
804 rdev->cqshift = PAGE_SHIFT - ilog2(rdev->lldi.ucq_density); c4iw_rdev_open()
/linux-4.1.27/drivers/dma/sh/
H A Drcar-dmac.c808 desc->xfer_shift = ilog2(xfer_size); rcar_dmac_chan_configure_desc()
1701 engine->copy_align = ilog2(RCAR_DMAC_MEMCPY_XFER_SIZE); rcar_dmac_probe()
/linux-4.1.27/fs/ext2/
H A Dsuper.c995 ilog2 (EXT2_ADDR_PER_BLOCK(sb)); ext2_fill_super()
997 ilog2 (EXT2_DESC_PER_BLOCK(sb)); ext2_fill_super()
/linux-4.1.27/kernel/trace/
H A Dblktrace.c193 /* The ilog2() calls fall out because they're constant */
195 (ilog2(BLK_TC_ ## __name) + BLK_TC_SHIFT - __REQ_ ## __name))
/linux-4.1.27/net/mac80211/
H A Dtdls.c255 return ((ilog2(cw_min + 1) << 0x0) & 0x0f) | ieee80211_wmm_ecw()
256 ((ilog2(cw_max + 1) << 0x4) & 0xf0); ieee80211_wmm_ecw()
/linux-4.1.27/drivers/md/
H A Ddm-crypt.c422 int log = ilog2(bs); crypt_iv_benbi_ctr()
1459 subkey_size = (cc->key_size - cc->key_extra_size) >> ilog2(cc->tfms_count); crypt_setkey_allcpus()
H A Ddm-cache-policy-mq.c548 return min((unsigned) ilog2(e->hit_count), NR_QUEUE_LEVELS - 1u); queue_level()
/linux-4.1.27/arch/sparc/mm/
H A Dinit_64.c217 ((1UL<<ilog2(roundup_pow_of_two(NR_CPUS)))-1UL)
2045 ilog2(roundup_pow_of_two(NR_CPUS)) > 32); paging_init()
/linux-4.1.27/drivers/hwmon/
H A Dadt7470.c868 return ilog2(input) + 1; cvt_auto_temp()
H A Dadt7462.c1409 return ilog2(input); cvt_auto_temp()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_main.c3109 WINDOW_V(ilog2(MEMWIN0_APERTURE) - 10)); setup_memwin()
3112 WINDOW_V(ilog2(MEMWIN1_APERTURE) - 10)); setup_memwin()
3115 WINDOW_V(ilog2(mem_win2_aperture) - 10)); setup_memwin()
3131 start | BIR_V(1) | WINDOW_V(ilog2(sz_kb))); setup_memwin_rdma()
H A Dsge.c2471 FW_IQ_CMD_IQESIZE_V(ilog2(iq->iqe_len) - 4)); t4_sge_alloc_rxq()
2962 s->fl_pg_order = ilog2(fl_large_pg) - PAGE_SHIFT; t4_sge_init_soft()
/linux-4.1.27/drivers/net/wireless/
H A Dmwl8k.c3466 cmd->ap.log_cw_max = cpu_to_le32(ilog2(cw_max + 1)); mwl8k_cmd_set_edca_params()
3467 cmd->ap.log_cw_min = cpu_to_le32(ilog2(cw_min + 1)); mwl8k_cmd_set_edca_params()
3471 cmd->sta.log_cw_max = (u8)ilog2(cw_max + 1); mwl8k_cmd_set_edca_params()
3472 cmd->sta.log_cw_min = (u8)ilog2(cw_min + 1); mwl8k_cmd_set_edca_params()
/linux-4.1.27/drivers/pci/
H A Dmsi.c604 entry->msi_attrib.multiple = ilog2(__roundup_pow_of_two(nvec)); msi_setup_entry()
/linux-4.1.27/arch/sparc/kernel/
H A Dmdesc.c833 get_one_mondo_bits(val, &tb->cpu_mondo_qmask, 7, ilog2(max_cpus * 2)); get_mondo_data()
/linux-4.1.27/drivers/powercap/
H A Dintel_rapl.c1009 y = ilog2(value); rapl_compute_time_window_core()
/linux-4.1.27/include/linux/usb/
H A Dcomposite.h56 #define USB_MS_TO_HS_INTERVAL(x) (ilog2((x * 1000 / 125)) + 1)
/linux-4.1.27/arch/mips/net/
H A Dbpf_jit.c147 *k = ilog2(*k); optimize_div()
/linux-4.1.27/arch/mn10300/mm/
H A Dmisalignment.c355 npop = ilog2(pop->opcode | pop->opmask); misalignment()
/linux-4.1.27/arch/alpha/kernel/
H A Dsetup.c1328 maxsize = 1 << (ilog2(max_low_pfn + 1) + PAGE_SHIFT); external_cache_probe()
/linux-4.1.27/fs/fuse/
H A Dinode.c183 inode->i_blkbits = ilog2(attr->blksize); fuse_change_attributes_common()
H A Ddir.c857 blkbits = ilog2(attr->blksize); fuse_fillattr()
/linux-4.1.27/sound/soc/codecs/
H A Dsta350.c1181 pdata->powerdown_delay_divider = ilog2(tmp8); sta350_probe_dt()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dsge.c2237 FW_IQ_CMD_IQESIZE_V(ilog2(rspq->iqe_len) - 4)); t4vf_sge_alloc_rxq()
2600 s->fl_pg_order = ilog2(fl1) - PAGE_SHIFT; t4vf_sge_init()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sriov.c890 vlan_count = 1 << ilog2(vlan_count); bnx2x_iov_static_resc()
1055 REG_WR(bp, DORQ_REG_MAX_RVFID_SIZE, ilog2(BNX2X_MAX_NUM_OF_VFS)); bnx2x_iov_init_dq()
H A Dbnx2x.h2164 #define ILOG2(x) (ilog2((x)))
H A Dbnx2x_main.c8531 ilog2(ilt_client->page_size >> 12)); bnx2x_ilt_set_info()
8553 ilog2(ilt_client->page_size >> 12)); bnx2x_ilt_set_info()
8572 ilog2(ilt_client->page_size >> 12)); bnx2x_ilt_set_info()
8589 ilog2(ilt_client->page_size >> 12)); bnx2x_ilt_set_info()
/linux-4.1.27/drivers/infiniband/ulp/srp/
H A Dib_srp.c323 fmr_param.page_shift = ilog2(dev->mr_page_size); srp_alloc_fmr_pool()
1318 wr.wr.fast_reg.page_shift = ilog2(dev->mr_page_size); srp_map_finish_fr()
/linux-4.1.27/fs/ext3/
H A Dsuper.c1909 sbi->s_addr_per_block_bits = ilog2(EXT3_ADDR_PER_BLOCK(sb)); ext3_fill_super()
1910 sbi->s_desc_per_block_bits = ilog2(EXT3_DESC_PER_BLOCK(sb)); ext3_fill_super()
/linux-4.1.27/drivers/soc/ti/
H A Dknav_qmss_queue.c979 hw_num_desc = ilog2(region->num_desc - 1) + 1; knav_queue_setup_region()
/linux-4.1.27/drivers/s390/cio/
H A Dqdio_main.c421 pos = ilog2(count); account_sbals()
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_bufs.c101 int bits = ilog2(SHMLBA >> PAGE_SHIFT) + 1; drm_map_handle()
/linux-4.1.27/drivers/usb/core/
H A Durb.c538 urb->interval = min(max, 1 << ilog2(urb->interval)); usb_submit_urb()
/linux-4.1.27/net/netfilter/ipvs/
H A Dip_vs_sync.c398 return ((long) cp >> (1 + ilog2(sizeof(*cp)))) & ipvs->threads_mask; select_master_thread_id()
/linux-4.1.27/drivers/char/
H A Drandom.c366 #define S(x) ilog2(x)+5, (x), (x)*4, (x)*32, (x) << (ENTROPY_SHIFT+5)
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_device.c1167 unsigned bits = ilog2(radeon_vm_size) + 18; radeon_check_arguments()
/linux-4.1.27/drivers/usb/gadget/udc/
H A Ddummy_hcd.c1918 .bFunctionalitySupport = ilog2(USB_5GBPS_OPERATION),
/linux-4.1.27/drivers/scsi/libfc/
H A Dfc_exch.c2612 fc_cpu_order = ilog2(roundup_pow_of_two(nr_cpu_ids)); fc_setup_exch_mgr()
/linux-4.1.27/drivers/usb/host/
H A Dxhci.h1277 #define TRB_SEGMENT_SHIFT (ilog2(TRB_SEGMENT_SIZE))
/linux-4.1.27/include/net/
H A Dsock.h1383 #define SK_MEM_QUANTUM_SHIFT ilog2(SK_MEM_QUANTUM)

Completed in 4765 milliseconds

12