/linux-4.1.27/kernel/ |
H A D | bounds.c | 21 DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS)); foo()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_resources.c | 52 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 D | profile.c | 139 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 D | cq.c | 198 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 D | en_clock.c | 254 return ilog2(div_u64(max_mul * freq_khz, 1000000)); freq_to_shift()
|
H A D | srq.c | 191 srq_context->state_logsize_srqn = cpu_to_be32((ilog2(srq->max) << 24) | mlx4_srq_alloc()
|
H A D | main.c | 153 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 D | mlx4_en.h | 212 #define ROUNDUP_LOG2(x) ilog2(roundup_pow_of_two(x))
|
H A D | fw.c | 1723 (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 D | en_rx.c | 1238 rss_context->base_qpn = cpu_to_be32(ilog2(rss_rings) << 24 | mlx4_en_config_rss_steer()
|
H A D | mr.c | 930 ilog2((u32)dev->caps.num_mtts / mlx4_init_mr_table()
|
H A D | en_ethtool.c | 1132 rss_rings = 1 << ilog2(rss_rings); mlx4_en_get_rxfh()
|
H A D | eq.c | 991 eq_context->log_eq_size = ilog2(eq->nent); mlx4_create_eq()
|
/linux-4.1.27/include/linux/ |
H A D | log2.h | 76 * 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 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)) 51 * segments, where each segment is ilog2(ASSOC_ARRAY_FAN_OUT) bits in size.
|
H A D | backing-dev.h | 47 #define BDI_STAT_BATCH (8*(1+ilog2(nr_cpu_ids)))
|
H A D | hashtable.h | 23 #define HASH_BITS(name) ilog2(HASH_SIZE(name))
|
H A D | slab.h | 155 #define KMALLOC_SHIFT_LOW ilog2(ARCH_DMA_MINALIGN)
|
H A D | sched.h | 221 sizeof(TASK_STATE_TO_CHAR_STR)-1 != ilog2(TASK_STATE_MAX)+1)];
|
/linux-4.1.27/tools/include/linux/ |
H A D | log2.h | 69 * 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 D | average.c | 41 avg->weight = ilog2(weight); ewma_init() 42 avg->factor = ilog2(factor); ewma_init()
|
H A D | flex_proportions.c | 169 #define PROP_BATCH (8*(1+ilog2(nr_cpu_ids)))
|
H A D | proportions.c | 189 #define PROP_BATCH (8*(1+ilog2(nr_cpu_ids)))
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | div64.h | 27 n >>= ilog2(__base); \
|
H A D | pgtable.h | 834 #define PTE_SHIFT ilog2(PTRS_PER_PTE) page_level_shift()
|
/linux-4.1.27/include/asm-generic/ |
H A D | getorder.h | 54 ilog2((n) - 1) - PAGE_SHIFT + 1) \
|
/linux-4.1.27/arch/mips/bcm63xx/ |
H A D | cs.c | 51 val |= (ilog2(size) - ilog2(8 * 1024)) << MPI_CSBASE_SIZE_SHIFT; bcm63xx_set_cs_base()
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
H A D | mem.c | 59 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 D | srq.c | 273 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 D | qp.c | 255 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 D | cq.c | 786 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 D | mr.c | 678 npages = ALIGN(len + offset, page_size) >> ilog2(page_size); get_octo_len()
|
/linux-4.1.27/fs/proc/ |
H A D | task_mmu.c | 568 [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 D | array.c | 129 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 D | cpufeature.h | 22 #define cpu_feature(x) ilog2(HWCAP_ ## x)
|
/linux-4.1.27/arch/arm/mach-davinci/ |
H A D | sram.c | 62 sram_pool = gen_pool_create(ilog2(SRAM_GRANULARITY), -1); sram_init()
|
/linux-4.1.27/arch/mips/mm/ |
H A D | tlbex.c | 368 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 D | hda_proc.c | 482 [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 D | thuge-gen.c | 50 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 D | ide-tape.c | 688 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 D | pageattr.c | 138 nr = (unsigned long)pte >> ilog2(sizeof(long)); __kernel_map_pages()
|
/linux-4.1.27/arch/arm/mach-mmp/ |
H A D | sram.c | 94 info->gpool = gen_pool_create(ilog2(info->granularity), -1); sram_probe()
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
H A D | mite.h | 154 order = ilog2(size); MITE_IODWBSR_1_WSIZE_bits() 300 value = 1 + ilog2(retry_limit); CR_RL()
|
/linux-4.1.27/drivers/of/ |
H A D | device.c | 137 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 D | ipz_pt_fn.c | 129 int order = ilog2(queue->pagesize) - 9; alloc_small_queue_page() 174 int order = ilog2(queue->pagesize) - 9; free_small_queue_page()
|
H A D | ehca_mrmw.c | 108 int log = ilog2(pgsize); ehca_encode_hwpage_size()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | arb.c | 235 *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 D | io-pgtable-arm.c | 67 ((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 D | fsl_pamu_domain.c | 85 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 D | iova.c | 130 unsigned int order = ilog2(size); iova_get_pad_size()
|
H A D | fsl_pamu.c | 1141 spaace_pool = gen_pool_create(ilog2(sizeof(struct paace)), -1); fsl_pamu_probe()
|
H A D | intel_irq_remapping.c | 99 mask = ilog2(count); alloc_irte()
|
H A D | intel-iommu.c | 1362 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 D | pmic8xxx-pwrkey.c | 126 delay = 1 + ilog2(delay); pmic8xxx_pwrkey_probe()
|
H A D | pm8941-pwrkey.c | 215 req_delay = ilog2(req_delay); pm8941_pwrkey_probe()
|
/linux-4.1.27/arch/nios2/kernel/ |
H A D | cpuinfo.c | 112 cpuinfo.tlb_num_ways_log2 = ilog2(cpuinfo.tlb_num_ways); setup_cpuinfo()
|
/linux-4.1.27/kernel/events/ |
H A D | ring_buffer.c | 480 * 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 D | fsl_dma.h | 42 ((ilog2(x) << CCSR_DMA_MR_BWC_SHIFT) & CCSR_DMA_MR_BWC_MASK)
|
/linux-4.1.27/drivers/spi/ |
H A D | spi-sun4i.c | 258 div = ilog2(mclk_rate) - ilog2(spi->max_speed_hz); sun4i_spi_transfer_one()
|
H A D | spi-sun6i.c | 246 div = ilog2(mclk_rate) - ilog2(spi->max_speed_hz); sun6i_spi_transfer_one()
|
/linux-4.1.27/drivers/staging/fwserial/ |
H A D | fwserial.h | 24 #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 D | srq.c | 104 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 D | mr.c | 157 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 D | qp.c | 397 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 D | cq.c | 150 ilog2((*umem)->page_size), &buf->mtt); mlx4_ib_get_cq_umem()
|
/linux-4.1.27/drivers/gpu/drm/msm/adreno/ |
H A D | adreno_gpu.c | 70 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 D | scsi_cmnd.h | 305 (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 D | fsl_pci.c | 163 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 D | ppc4xx_pci.c | 240 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 D | fsl_rio.c | 304 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 D | mthca_srq.c | 124 * 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 D | mthca_main.c | 129 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 D | mthca_provider.c | 124 (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 D | mthca_qp.c | 599 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 D | super.c | 1375 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 D | btree.c | 583 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 D | bnx2fc.h | 90 #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 D | hp-agp.c | 258 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 D | parisc-agp.c | 97 writeq(info->gart_base | ilog2(info->gart_size), info->ioc_regs+IOC_PCOM); parisc_agp_tlbflush()
|
H A D | i460-agp.c | 154 values[i].page_order = ilog2((sizeof(u32)*values[i].num_entries) >> PAGE_SHIFT); i460_fetch_size()
|
/linux-4.1.27/drivers/misc/ |
H A D | sram.c | 99 sram->pool = devm_gen_pool_create(&pdev->dev, ilog2(SRAM_GRANULARITY), -1); sram_probe()
|
/linux-4.1.27/drivers/scsi/ |
H A D | sd.h | 150 return blocks << (ilog2(sdev->sector_size) - 9); logical_to_sectors()
|
H A D | sd.c | 703 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 D | rtc-rx4581.c | 161 tm->tm_wday = ilog2(date[RX4581_REG_DW] & 0x7F); rx4581_get_datetime()
|
H A D | rtc-rx8581.c | 155 tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F); rx8581_get_datetime()
|
H A D | rtc-m41t80.c | 284 val = ilog2(val); m41t80_sysfs_set_sqwfreq()
|
/linux-4.1.27/drivers/input/keyboard/ |
H A D | cap11xx.c | 262 gain = ilog2(gain32); cap11xx_i2c_probe()
|
/linux-4.1.27/drivers/clocksource/ |
H A D | timer-atmel-pit.c | 207 bits = 12 /* PICNT */ + ilog2(data->cycle) /* PIV */; at91sam926x_pit_common_init()
|
/linux-4.1.27/arch/x86/xen/ |
H A D | spinlock.c | 66 unsigned index = ilog2(delta); __spin_time_accum()
|
/linux-4.1.27/fs/hfsplus/ |
H A D | wrapper.c | 234 sbi->alloc_blksz_shift = ilog2(blocksize); hfsplus_read_wrapper()
|
/linux-4.1.27/include/rxrpc/ |
H A D | packet.h | 32 #define RXRPC_CIDSHIFT ilog2(RXRPC_MAXCALLS) /* shift for connection ID */
|
/linux-4.1.27/arch/sh/kernel/cpu/ |
H A D | init.c | 203 CSHAPE((desc).way_size * (desc).ways, ilog2((desc).linesz), (desc).ways)
|
/linux-4.1.27/fs/cachefiles/ |
H A D | bind.c | 161 cache->bshift = PAGE_SHIFT - ilog2(stats.f_bsize); cachefiles_daemon_add_cache()
|
H A D | internal.h | 77 unsigned bshift; /* min(ilog2(PAGE_SIZE / bsize), 0) */
|
/linux-4.1.27/net/core/ |
H A D | request_sock.c | 64 lopt->max_qlen_log = ilog2(nr_table_entries); reqsk_queue_alloc()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb3/ |
H A D | iwch_provider.c | 184 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 D | cxio_hal.c | 986 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 D | cppi41.c | 755 reg |= (ilog2(desc_size) - 5) << QMGR_MEMCTRL_DESC_SH; init_descs() 756 reg |= ilog2(ALLOC_DECS_NUM) - 5; init_descs()
|
H A D | nbpfaxi.c | 430 return min_t(int, __ffs(size), ilog2(nbpf->config->buffer_size * 8)); nbpf_xfer_ds()
|
/linux-4.1.27/net/sched/ |
H A D | sch_fq.c | 678 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 D | umem.c | 323 shift = ilog2(umem->page_size); ib_umem_page_count()
|
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac1000_core.c | 434 mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); dwmac1000_setup()
|
/linux-4.1.27/drivers/net/wireless/ath/carl9170/ |
H A D | fw.c | 276 if (ilog2(le32_to_cpu(otus_desc->feature_set)) >= carl9170_fw()
|
/linux-4.1.27/block/ |
H A D | genhd.c | 1404 [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 D | bio-integrity.c | 200 return sectors >> (ilog2(bi->interval) - 9); bio_integrity_intervals()
|
H A D | blk-mq-tag.c | 493 bt->bits_per_word = ilog2(BITS_PER_LONG); bt_alloc()
|
H A D | blk-mq.c | 851 hctx->dispatched[ilog2(queued) + 1]++; __blk_mq_run_hw_queue()
|
/linux-4.1.27/drivers/gpu/drm/omapdrm/ |
H A D | omap_gem.c | 147 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 D | nommu.c | 264 ilog2(meminfo.bank[0].size), mpu_setup()
|
H A D | cache-l2x0.c | 997 way_size_bits = ilog2(way_size >> 10) - 3; l2x0_cache_size_of_parse()
|
/linux-4.1.27/drivers/irqchip/ |
H A D | irq-gic-v3-its.c | 243 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 D | core.c | 1166 * 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 D | ocrdma_hw.c | 2155 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 D | ocrdma_verbs.c | 851 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 D | i2c-ocores.c | 334 i2c->reg_shift = ilog2(val); ocores_i2c_of_probe()
|
/linux-4.1.27/drivers/iio/ |
H A D | industrialio-trigger.c | 175 ilog2(1)); iio_trigger_get_irq()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eq.c | 367 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 D | spectral.c | 455 ar->spectral.config.fft_size = ilog2(val); write_file_spectral_bins()
|
/linux-4.1.27/drivers/memstick/host/ |
H A D | tifm_ms.c | 294 writel(ilog2(data_len) - 2, tifm_ms_issue_cmd()
|
/linux-4.1.27/drivers/scsi/csiostor/ |
H A D | csio_hw_t5.c | 60 WINDOW_V(ilog2(MEMWIN_APERTURE) - 10), csio_t5_set_mem_win()
|
H A D | csio_wr.c | 1320 ingpad = ilog2(sge->csio_fl_align) - 5; csio_wr_fixup_host_params()
|
/linux-4.1.27/drivers/s390/char/ |
H A D | sclp_cmd.c | 207 return PFN_PHYS(start_pfn) >> ilog2(sclp_rzm); arch_get_memory_phys_device()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_mr.c | 266 mr->mr.page_shift = ilog2(umem->page_size); qib_reg_user_mr()
|
H A D | qib.h | 182 /* ilog2 of above */
|
H A D | qib_init.c | 216 ilog2(rcd->rcvegrbufs_perchunk); qib_create_ctxtdata()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | kvm.c | 637 index = ilog2(delta); __spin_time_accum()
|
/linux-4.1.27/drivers/watchdog/ |
H A D | octeon-wdt-main.c | 148 uasm_il_bbit0(&p, &r, K0, ilog2(ST0_NMI), octeon_wdt_build_stage1()
|
/linux-4.1.27/arch/arm/mach-imx/ |
H A D | mach-mx31_3ds.c | 346 * 7 == ilog2(MMC_VDD_165_195) mx31_3ds_sdhc1_setpower()
|
/linux-4.1.27/fs/btrfs/ |
H A D | sysfs.c | 580 bit = ilog2(sfa->feature_bit); init_feature_attrs()
|
H A D | disk-io.c | 2468 (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 D | vmpressure.c | 71 static const unsigned int vmpressure_level_critical_prio = ilog2(100 / 10);
|
H A D | bootmem.c | 211 int order = ilog2(BITS_PER_LONG); free_all_bootmem_core()
|
H A D | page-writeback.c | 872 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 D | ksm.c | 1985 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 D | card_base.c | 332 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 D | iommu.c | 320 __be32 tce_shift; /* ilog2(tce_page_size) */ 321 __be32 window_shift; /* ilog2(tce_window_size) */
|
/linux-4.1.27/kernel/time/ |
H A D | timekeeping.c | 1800 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 D | adis16400_core.c | 165 t = ilog2(819200 / freq); adis16334_set_freq()
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | mxs-mmc.c | 396 log2_blksz = ilog2(data->blksz); mxs_mmc_adtc()
|
H A D | sdhci.h | 270 #define SDHCI_DEFAULT_BOUNDARY_ARG (ilog2(SDHCI_DEFAULT_BOUNDARY_SIZE) - 12)
|
H A D | tifm_sd.c | 699 writel(ilog2(r_data->blksz) - 2, tifm_sd_request()
|
/linux-4.1.27/drivers/misc/eeprom/ |
H A D | at24.c | 108 << AT24_SIZE_BYTELEN | ilog2(_len))
|
/linux-4.1.27/drivers/scsi/isci/ |
H A D | isci.h | 97 #define SCU_MAX_COMPLETION_QUEUE_SHIFT (ilog2(SCU_MAX_COMPLETION_QUEUE_ENTRIES))
|
H A D | host.c | 1133 * 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 D | request.c | 294 return (len >> ilog2(sector_size)) * 8; scu_dif_bytes()
|
/linux-4.1.27/drivers/target/ |
H A D | target_core_iblock.c | 825 return ilog2(logs_per_phys); iblock_get_lbppbe()
|
H A D | target_core_transport.c | 1767 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 D | iser_initiator.c | 413 ilog2(sc->device->sector_size)) * 8; iser_send_command()
|
/linux-4.1.27/drivers/tty/serial/ |
H A D | rp2.c | 62 #define RP2_ASIC_OFFSET(i) ((i) << ilog2(RP2_ASIC_SPACING))
|
/linux-4.1.27/fs/qnx6/ |
H A D | inode.c | 434 sbi->s_ptrbits = ilog2(s->s_blocksize / 4); qnx6_fill_super()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | sh_mobile_meram.c | 686 priv->pool = gen_pool_create(ilog2(MERAM_GRANULARITY), -1); sh_mobile_meram_probe()
|
H A D | i740fb.c | 361 p_best = min(15, ilog2(I740_MAX_VCO_FREQ / (freq / I740_RFREQ_FIX))); i740_calc_vclk()
|
/linux-4.1.27/fs/jbd/ |
H A D | revoke.c | 239 table->hash_shift = ilog2(hash_size); journal_init_revoke_table()
|
/linux-4.1.27/fs/ |
H A D | mbcache.c | 97 #define MB_CACHE_ENTRY_LOCK_BITS ilog2(NR_BG_LOCKS)
|
/linux-4.1.27/fs/nfsd/ |
H A D | nfscache.c | 173 maskbits = ilog2(hashsize); nfsd_reply_cache_init()
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | setup-common.c | 412 threads_shift = ilog2(tpc); cpu_init_thread_core_maps()
|
H A D | sysfs.c | 105 return ilog2(cycle); get_idle_ticks_bit()
|
/linux-4.1.27/arch/powerpc/kvm/ |
H A D | e500_mmu.c | 770 sets = params.tlb_sizes[0] >> ilog2(params.tlb_ways[0]); kvm_vcpu_ioctl_config_tlb()
|
/linux-4.1.27/net/ipv4/ |
H A D | tcp_timer.c | 147 linear_backoff_thresh = ilog2(TCP_RTO_MAX/rto_base); retransmits_timed_out()
|
H A D | fib_trie.c | 280 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 D | device.c | 802 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 D | rcar-dmac.c | 808 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 D | super.c | 995 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 D | blktrace.c | 193 /* 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 D | tdls.c | 255 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 D | dm-crypt.c | 422 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 D | dm-cache-policy-mq.c | 548 return min((unsigned) ilog2(e->hit_count), NR_QUEUE_LEVELS - 1u); queue_level()
|
/linux-4.1.27/arch/sparc/mm/ |
H A D | init_64.c | 217 ((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 D | adt7470.c | 868 return ilog2(input) + 1; cvt_auto_temp()
|
H A D | adt7462.c | 1409 return ilog2(input); cvt_auto_temp()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_main.c | 3109 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 D | sge.c | 2471 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 D | mwl8k.c | 3466 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 D | msi.c | 604 entry->msi_attrib.multiple = ilog2(__roundup_pow_of_two(nvec)); msi_setup_entry()
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | mdesc.c | 833 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 D | intel_rapl.c | 1009 y = ilog2(value); rapl_compute_time_window_core()
|
/linux-4.1.27/include/linux/usb/ |
H A D | composite.h | 56 #define USB_MS_TO_HS_INTERVAL(x) (ilog2((x * 1000 / 125)) + 1)
|
/linux-4.1.27/arch/mips/net/ |
H A D | bpf_jit.c | 147 *k = ilog2(*k); optimize_div()
|
/linux-4.1.27/arch/mn10300/mm/ |
H A D | misalignment.c | 355 npop = ilog2(pop->opcode | pop->opmask); misalignment()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | setup.c | 1328 maxsize = 1 << (ilog2(max_low_pfn + 1) + PAGE_SHIFT); external_cache_probe()
|
/linux-4.1.27/fs/fuse/ |
H A D | inode.c | 183 inode->i_blkbits = ilog2(attr->blksize); fuse_change_attributes_common()
|
H A D | dir.c | 857 blkbits = ilog2(attr->blksize); fuse_fillattr()
|
/linux-4.1.27/sound/soc/codecs/ |
H A D | sta350.c | 1181 pdata->powerdown_delay_divider = ilog2(tmp8); sta350_probe_dt()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | sge.c | 2237 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 D | bnx2x_sriov.c | 890 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 D | bnx2x.h | 2164 #define ILOG2(x) (ilog2((x)))
|
H A D | bnx2x_main.c | 8531 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 D | ib_srp.c | 323 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 D | super.c | 1909 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 D | knav_qmss_queue.c | 979 hw_num_desc = ilog2(region->num_desc - 1) + 1; knav_queue_setup_region()
|
/linux-4.1.27/drivers/s390/cio/ |
H A D | qdio_main.c | 421 pos = ilog2(count); account_sbals()
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_bufs.c | 101 int bits = ilog2(SHMLBA >> PAGE_SHIFT) + 1; drm_map_handle()
|
/linux-4.1.27/drivers/usb/core/ |
H A D | urb.c | 538 urb->interval = min(max, 1 << ilog2(urb->interval)); usb_submit_urb()
|
/linux-4.1.27/net/netfilter/ipvs/ |
H A D | ip_vs_sync.c | 398 return ((long) cp >> (1 + ilog2(sizeof(*cp)))) & ipvs->threads_mask; select_master_thread_id()
|
/linux-4.1.27/drivers/char/ |
H A D | random.c | 366 #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 D | radeon_device.c | 1167 unsigned bits = ilog2(radeon_vm_size) + 18; radeon_check_arguments()
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
H A D | dummy_hcd.c | 1918 .bFunctionalitySupport = ilog2(USB_5GBPS_OPERATION),
|
/linux-4.1.27/drivers/scsi/libfc/ |
H A D | fc_exch.c | 2612 fc_cpu_order = ilog2(roundup_pow_of_two(nr_cpu_ids)); fc_setup_exch_mgr()
|
/linux-4.1.27/drivers/usb/host/ |
H A D | xhci.h | 1277 #define TRB_SEGMENT_SHIFT (ilog2(TRB_SEGMENT_SIZE))
|
/linux-4.1.27/include/net/ |
H A D | sock.h | 1383 #define SK_MEM_QUANTUM_SHIFT ilog2(SK_MEM_QUANTUM)
|