/linux-4.1.27/include/linux/ |
H A D | log2.h | 161 * roundup_pow_of_two - round the given value up to nearest power of two 168 #define roundup_pow_of_two(n) \ macro 206 #define order_base_2(n) ilog2(roundup_pow_of_two(n))
|
H A D | netdevice.h | 650 * possible cpus : rps_cpu_mask = roundup_pow_of_two(nr_cpu_ids) - 1
|
/linux-4.1.27/tools/include/linux/ |
H A D | log2.h | 154 * roundup_pow_of_two - round the given value up to nearest power of two 161 #define roundup_pow_of_two(n) \ macro
|
/linux-4.1.27/arch/mips/bcm63xx/ |
H A D | cs.c | 43 if (size != roundup_pow_of_two(size)) bcm63xx_set_cs_base()
|
/linux-4.1.27/mm/ |
H A D | percpu-km.c | 103 alloc_pages = roundup_pow_of_two(nr_pages); pcpu_verify_alloc_info()
|
H A D | page-writeback.c | 849 const unsigned long period = roundup_pow_of_two(3 * HZ); bdi_update_write_bandwidth() 1203 t = bdi_dirty / (1 + bw / roundup_pow_of_two(1 + HZ / 8)); bdi_max_pause() 1252 pages = dirty_ratelimit * t / roundup_pow_of_two(HZ); bdi_min_pause() 1264 pages = dirty_ratelimit * t / roundup_pow_of_two(HZ); bdi_min_pause() 1274 pages = task_ratelimit * t / roundup_pow_of_two(HZ); bdi_min_pause()
|
H A D | readahead.c | 253 unsigned long newsize = roundup_pow_of_two(size); get_init_ra_size()
|
H A D | percpu.c | 2228 roundup_pow_of_two(max_t(size_t, PCPU_MIN_UNIT_SIZE, setup_per_cpu_areas()
|
H A D | vmalloc.c | 753 VMALLOC_PAGES / roundup_pow_of_two(NR_CPUS) / 16))
|
H A D | hugetlb.c | 2267 num_fault_mutexes = roundup_pow_of_two(8 * num_possible_cpus()); hugetlb_init()
|
H A D | slub.c | 1753 #define TID_STEP roundup_pow_of_two(CONFIG_NR_CPUS)
|
H A D | page_alloc.c | 6105 numentries = roundup_pow_of_two(numentries); alloc_large_system_hash()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
H A D | profile.c | 107 roundup_pow_of_two(max_t(unsigned, request->num_mtt, mlx4_make_profile() 138 profile[i].num = roundup_pow_of_two(profile[i].num); mlx4_make_profile() 223 dev->caps.num_eqs = roundup_pow_of_two( mlx4_make_profile()
|
H A D | qp.c | 587 roundup_pow_of_two(MLX4_BF_QP_SKIP_MASK)) || mlx4_create_zones() 644 err = mlx4_bitmap_init(*bitmap + k, roundup_pow_of_two(size), mlx4_create_zones() 645 roundup_pow_of_two(size) - 1, 0, mlx4_create_zones() 646 roundup_pow_of_two(size) - size); mlx4_create_zones() 747 roundup_pow_of_two(fixed_reserved_from_bot_rv + 1); mlx4_init_qp_table()
|
H A D | en_clock.c | 249 max_val_cycles : roundup_pow_of_two(max_val_cycles) - 1; freq_to_shift()
|
H A D | eq.c | 934 eq->nent = roundup_pow_of_two(max(nent, 2)); mlx4_create_eq() 1155 roundup_pow_of_two(dev->caps.num_eqs), mlx4_init_eq_table() 1158 roundup_pow_of_two(dev->caps.num_eqs) - mlx4_init_eq_table()
|
H A D | en_rx.c | 384 tmp = size * roundup_pow_of_two(MLX4_EN_MAX_RX_FRAGS * mlx4_en_create_rx_ring() 436 int stride = roundup_pow_of_two(sizeof(struct mlx4_en_rx_desc) + mlx4_en_activate_rx_rings()
|
H A D | alloc.c | 177 if (num != roundup_pow_of_two(num)) mlx4_bitmap_init()
|
H A D | mlx4_en.h | 212 #define ROUNDUP_LOG2(x) ilog2(roundup_pow_of_two(x))
|
H A D | en_ethtool.c | 1034 rx_size = roundup_pow_of_two(param->rx_pending); mlx4_en_set_ringparam() 1037 tx_size = roundup_pow_of_two(param->tx_pending); mlx4_en_set_ringparam()
|
H A D | en_netdev.c | 2865 priv->stride = roundup_pow_of_two(sizeof(struct mlx4_en_rx_desc) + mlx4_en_init_netdev()
|
H A D | resource_tracker.c | 2496 roundup_pow_of_two((total_mem + (page_offset << 6)) >> qp_get_mtt_size()
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
H A D | mem.c | 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()
|
H A D | srq.c | 264 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); mlx5_ib_create_srq() 269 desc_size = roundup_pow_of_two(desc_size); mlx5_ib_create_srq()
|
H A D | cq.c | 756 entries = roundup_pow_of_two(entries + 1); mlx5_ib_create_cq() 1087 entries = roundup_pow_of_two(entries + 1); mlx5_ib_resize_cq()
|
H A D | qp.c | 245 wqe_size = roundup_pow_of_two(wqe_size); set_rq_size() 246 wq_size = roundup_pow_of_two(cap->max_recv_wr) * wqe_size; set_rq_size() 359 wq_size = roundup_pow_of_two(attr->cap.max_send_wr * wqe_size); calc_sq_size()
|
/linux-4.1.27/net/core/ |
H A D | sysctl_net_core.c | 62 size = roundup_pow_of_two(size); rps_sock_flow_sysctl() 70 rps_cpu_mask = roundup_pow_of_two(nr_cpu_ids) - 1; rps_sock_flow_sysctl()
|
H A D | request_sock.c | 48 nr_table_entries = roundup_pow_of_two(nr_table_entries + 1); reqsk_queue_alloc()
|
H A D | net-sysfs.c | 764 /* mask = roundup_pow_of_two(count) - 1; store_rps_dev_flow_table_cnt()
|
/linux-4.1.27/lib/ |
H A D | rhashtable.c | 74 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); alloc_bucket_locks() 335 size = roundup_pow_of_two(atomic_read(&ht->nelems) * 3 / 2); rhashtable_shrink() 665 return max(roundup_pow_of_two(params->nelem_hint * 4 / 3), rounded_hashtable_size() 738 ht->p.min_size = roundup_pow_of_two(params->min_size); rhashtable_init() 770 ht->p.locks_mul = roundup_pow_of_two(params->locks_mul); rhashtable_init()
|
H A D | kfifo.c | 45 size = roundup_pow_of_two(size); __kfifo_alloc() 85 size = roundup_pow_of_two(size); __kfifo_init()
|
H A D | genalloc.c | 525 unsigned long align_mask = roundup_pow_of_two(nr) - 1; gen_pool_first_fit_order_align()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb3/ |
H A D | iwch_provider.c | 183 entries = roundup_pow_of_two(entries); iwch_create_cq() 259 cqe = roundup_pow_of_two(cqe+1); iwch_resize_cq() 912 rqsize = roundup_pow_of_two(attrs->cap.max_recv_wr); iwch_create_qp() 914 rqsize = roundup_pow_of_two(attrs->cap.max_recv_wr+1); iwch_create_qp() 931 sqsize = roundup_pow_of_two(attrs->cap.max_send_wr); iwch_create_qp() 932 wqsize = roundup_pow_of_two(rqsize + sqsize); iwch_create_qp() 940 wqsize = roundup_pow_of_two(rqsize + iwch_create_qp() 941 roundup_pow_of_two(attrs->cap.max_send_wr * 2)); iwch_create_qp()
|
/linux-4.1.27/drivers/infiniband/hw/mlx4/ |
H A D | srq.c | 97 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); mlx4_ib_create_srq() 101 roundup_pow_of_two(sizeof (struct mlx4_wqe_srq_next_seg) + mlx4_ib_create_srq()
|
H A D | cq.c | 185 entries = roundup_pow_of_two(entries + 1); mlx4_ib_create_cq() 377 entries = roundup_pow_of_two(entries + 1); mlx4_ib_resize_cq()
|
H A D | qp.c | 395 qp->rq.wqe_cnt = roundup_pow_of_two(max(1U, cap->max_recv_wr)); set_rq_size() 396 qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge)); set_rq_size() 481 qp->sq.wqe_shift = ilog2(roundup_pow_of_two(s)); set_kernel_sq_size() 491 qp->sq.wqe_cnt = roundup_pow_of_two(cap->max_send_wr * set_kernel_sq_size() 537 ilog2(roundup_pow_of_two(dev->dev->caps.max_sq_desc_sz)) || set_user_sq_size()
|
/linux-4.1.27/arch/sh/drivers/pci/ |
H A D | pci-sh7780.c | 304 memsize = roundup_pow_of_two(memory_end - memory_start); sh7780_pci_init() 371 __raw_writel(((roundup_pow_of_two(size) / SZ_256K) - 1) << 18, sh7780_pci_init()
|
H A D | pcie-sh7786.c | 361 memsize = roundup_pow_of_two(memory_end - memory_start); pcie_init() 450 mask = (roundup_pow_of_two(size) / SZ_256K) - 1; pcie_init()
|
/linux-4.1.27/drivers/md/bcache/ |
H A D | util.h | 136 _allocated_size = roundup_pow_of_two((fifo)->size + 1); \ 160 (fifo)->size = roundup_pow_of_two((fifo)->size) - 1; \
|
H A D | bset.c | 136 newsize = roundup_pow_of_two(newsize); __bch_keylist_realloc() 139 roundup_pow_of_two(oldsize) == newsize) __bch_keylist_realloc() 437 j |= roundup_pow_of_two(size) >> shift; __inorder_to_tree()
|
H A D | super.c | 1851 free = roundup_pow_of_two(ca->sb.nbuckets) >> 10; cache_alloc()
|
/linux-4.1.27/drivers/md/ |
H A D | dm-cache-policy-cleaner.c | 63 return roundup_pow_of_two(max(n, min)); next_power()
|
H A D | dm-cache-policy-mq.c | 25 return roundup_pow_of_two(max(n, min)); next_power()
|
H A D | dm-raid.c | 330 region_size = roundup_pow_of_two(min_region_size); validate_region_size()
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
H A D | ce.c | 837 nentries = roundup_pow_of_two(attr->src_nentries); ath10k_ce_init_src_ring() 874 nentries = roundup_pow_of_two(attr->dest_nentries); ath10k_ce_init_dest_ring() 907 nentries = roundup_pow_of_two(nentries); ath10k_ce_alloc_src_ring() 974 nentries = roundup_pow_of_two(attr->dest_nentries); ath10k_ce_alloc_dest_ring()
|
/linux-4.1.27/drivers/tty/serial/ |
H A D | kgdb_nmi.c | 91 #define KGDB_NMI_FIFO_SIZE roundup_pow_of_two(KGDB_NMI_BAUD / 8 / HZ)
|
/linux-4.1.27/net/ipv4/ |
H A D | tcp_probe.c | 271 bufsize = roundup_pow_of_two(bufsize); tcpprobe_init()
|
H A D | tcp_input.c | 296 per_mss = roundup_pow_of_two(per_mss) + tcp_sndbuf_expand()
|
/linux-4.1.27/net/netfilter/ |
H A D | nft_hash.c | 345 roundup_pow_of_two(desc->size * 4 / 3) * nft_hash_estimate()
|
H A D | xt_recent.c | 372 nstamp_mask = roundup_pow_of_two(ip_pkt_list_tot) - 1; recent_mt_check() 374 nstamp_mask = roundup_pow_of_two(info->hit_count) - 1; recent_mt_check()
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
H A D | mthca_srq.c | 216 srq->max = roundup_pow_of_two(srq->max + 1); mthca_alloc_srq() 221 roundup_pow_of_two(sizeof (struct mthca_next_seg) + mthca_alloc_srq()
|
H A D | mthca_eq.c | 479 eq->nent = roundup_pow_of_two(max(nent, 2)); mthca_create_eq()
|
H A D | mthca_qp.c | 1252 roundup_pow_of_two(cap->max_recv_wr) : 0; mthca_set_qp_size() 1254 roundup_pow_of_two(cap->max_send_wr) : 0; mthca_set_qp_size()
|
H A D | mthca_main.c | 1209 *pval = roundup_pow_of_two(old_pval); __mthca_check_profile_val()
|
H A D | mthca_provider.c | 780 entries = roundup_pow_of_two(entries + 1); mthca_resize_cq()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_uld.h | 224 (pci_resource_len((pdev), 2) - roundup_pow_of_two((vres)->ocq.size))
|
H A D | cxgb4_main.c | 3128 sz_kb = roundup_pow_of_two(adap->vres.ocq.size) >> 10; setup_memwin_rdma()
|
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/ |
H A D | mdp5_smp.c | 205 n = roundup_pow_of_two(n); mdp5_smp_request()
|
/linux-4.1.27/kernel/bpf/ |
H A D | hashtab.c | 58 htab->n_buckets = roundup_pow_of_two(htab->map.max_entries); htab_map_alloc()
|
/linux-4.1.27/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_main.c | 1140 size = roundup_pow_of_two(arp_tbl.gc_thresh3); ipoib_neigh_hash_init() 1755 ipoib_recvq_size = roundup_pow_of_two(ipoib_recvq_size); ipoib_init_module() 1759 ipoib_sendq_size = roundup_pow_of_two(ipoib_sendq_size); ipoib_init_module()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eq.c | 348 eq->nent = roundup_pow_of_two(nent + MLX5_NUM_SPARE_EQE); mlx5_create_map_eq()
|
H A D | cmd.c | 1369 int align = roundup_pow_of_two(size); mlx5_cmd_init()
|
/linux-4.1.27/drivers/scsi/bnx2i/ |
H A D | bnx2i_init.c | 516 sq_size = roundup_pow_of_two(sq_size); bnx2i_mod_init()
|
/linux-4.1.27/drivers/s390/scsi/ |
H A D | zfcp_aux.c | 53 return kmem_cache_create(name, size, roundup_pow_of_two(size), 0, NULL); zfcp_cache_hw_align()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | vesafb.c | 434 temp_size = roundup_pow_of_two(temp_size); vesafb_probe()
|
H A D | uvesafb.c | 1541 temp_size = roundup_pow_of_two(temp_size); uvesafb_init_mtrr()
|
/linux-4.1.27/arch/powerpc/platforms/pseries/ |
H A D | msi.c | 409 int m = roundup_pow_of_two(nvec); rtas_setup_msi_irqs()
|
/linux-4.1.27/net/sched/ |
H A D | sch_choke.c | 437 mask = roundup_pow_of_two(ctl->limit + 1) - 1; choke_change()
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
H A D | rx.c | 696 entries = max(roundup_pow_of_two(efx->rxq_entries), EFX_MIN_DMAQ_SIZE); efx_probe_rx_queue() 735 page_ring_size = roundup_pow_of_two(bufs_in_recycle_ring / efx_init_rx_recycle_ring()
|
H A D | tx.c | 685 entries = max(roundup_pow_of_two(efx->txq_entries), EFX_MIN_DMAQ_SIZE); efx_probe_tx_queue()
|
H A D | efx.c | 336 entries = roundup_pow_of_two(efx->rxq_entries + efx->txq_entries + 128); efx_probe_eventq()
|
/linux-4.1.27/drivers/pci/host/ |
H A D | pcie-rcar.c | 336 mask = (roundup_pow_of_two(size) / SZ_128) - 1; rcar_pcie_setup_window() 822 mask = roundup_pow_of_two(size) - 1; rcar_pcie_inbound_ranges()
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
H A D | pci-ioda.c | 1208 roundup_pow_of_two(num_vfs) / pdn->m64_per_iov; pnv_pci_vf_assign_m64() 1341 vf_per_group = roundup_pow_of_two(num_vfs) / pdn->m64_per_iov; pnv_ioda_release_vf_PE() 1480 vf_per_group = roundup_pow_of_two(num_vfs) / pdn->m64_per_iov; pnv_ioda_setup_vf_PE() 1873 top = roundup_pow_of_two(top); pnv_pci_ioda2_set_bypass() 2393 mul = roundup_pow_of_two(total_vfs); pnv_pci_ioda_fixup_iov_resources()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/ |
H A D | netxen_nic_ethtool.c | 431 num_desc = roundup_pow_of_two(num_desc); netxen_validate_ringparam()
|
/linux-4.1.27/drivers/net/wireless/ath/ath5k/ |
H A D | qcu.c | 126 cw_req = (u16) roundup_pow_of_two(cw_req) - 1; ath5k_cw_validate()
|
/linux-4.1.27/drivers/rapidio/devices/ |
H A D | tsi721_dma.c | 108 sts_size = roundup_pow_of_two(sts_size); tsi721_bdma_ch_init()
|
H A D | tsi721.c | 1087 sts_size = roundup_pow_of_two(sts_size); tsi721_bdma_maint_init() 1541 priv->omsg_ring[mbox].sts_size = roundup_pow_of_two(entries + 1); tsi721_open_outb_mbox()
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | pci_sun4v.c | 577 dma_mask = (roundup_pow_of_two(vdma[1]) - 1UL); pci_sun4v_iommu_init()
|
/linux-4.1.27/fs/nfsd/ |
H A D | nfscache.c | 120 return roundup_pow_of_two(limit / TARGET_BUCKET_SIZE); nfsd_hashsize()
|
/linux-4.1.27/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_verbs.c | 3041 *pbe_size = roundup_pow_of_two(*pbe_size); count_kernel_pbes() 3056 buf_size = roundup_pow_of_two(buf_size); count_kernel_pbes() 3092 roundup_pow_of_two(roundup(buf_list[i].size, PAGE_SIZE)) / build_kernel_pbes()
|
H A D | ocrdma_hw.c | 1555 *num_entries = roundup_pow_of_two(*num_entries); ocrdma_build_q_conf()
|
/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/fs/xfs/libxfs/ |
H A D | xfs_inode_fork.c | 1373 rnew_size = roundup_pow_of_two(new_size); xfs_iext_realloc_direct() 1390 rnew_size = roundup_pow_of_two(new_size); xfs_iext_realloc_direct()
|
/linux-4.1.27/sound/pci/asihpi/ |
H A D | hpi6205.c | 761 roundup_pow_of_two(phm->u.d.u.buffer.buffer_size); outstream_host_buffer_allocate() 1045 roundup_pow_of_two(phm->u.d.u.buffer.buffer_size); instream_host_buffer_allocate()
|
H A D | hpifunc.c | 420 roundup_pow_of_two(((size + 4095L) & ~4095L)); hpi_stream_estimate_buffer_size()
|
/linux-4.1.27/drivers/irqchip/ |
H A D | irq-gic-v3-its.c | 1152 nr_ites = max(2UL, roundup_pow_of_two(nvecs)); its_create_device()
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | mt9p031.c | 252 div = roundup_pow_of_two(div) / 2; mt9p031_clk_setup()
|
/linux-4.1.27/drivers/net/wireless/rt2x00/ |
H A D | rt2x00dev.c | 1081 roundup_pow_of_two(rt2x00dev->ops->tx_queues * rt2x00lib_probe_hw()
|
/linux-4.1.27/drivers/of/ |
H A D | fdt.c | 1110 roundup_pow_of_two(FDT_V17_SIZE)); unflatten_and_copy_device_tree()
|
/linux-4.1.27/drivers/input/ |
H A D | evdev.c | 436 return roundup_pow_of_two(n_events); evdev_compute_buffer_size()
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | kvm_host.h | 511 gfn_t gfns[roundup_pow_of_two(ASYNC_PF_PER_VCPU)];
|
/linux-4.1.27/fs/ |
H A D | pipe.c | 1015 return roundup_pow_of_two(nr_pages) << PAGE_SHIFT; round_pipe_size()
|
H A D | file.c | 95 nr = roundup_pow_of_two(nr + 1); alloc_fdtable()
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_iomap.c | 460 alloc_blocks = XFS_FILEOFF_MIN(roundup_pow_of_two(MAXEXTLEN), xfs_iomap_prealloc_size()
|
/linux-4.1.27/arch/powerpc/platforms/ps3/ |
H A D | mm.c | 674 roundup_pow_of_two(r->len), r->page_size, r->region_type, dma_sb_region_create()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | pci_iommu.c | 53 max = roundup_pow_of_two(mem); size_for_memory()
|
/linux-4.1.27/tools/perf/util/ |
H A D | evlist.c | 950 pages = roundup_pow_of_two(pages); parse_pages_arg()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb4/ |
H A D | device.c | 990 roundup_pow_of_two(devp->rdev.lldi.vr->ocq.size); c4iw_alloc()
|
H A D | qp.c | 210 wq->rq.rqt_size = roundup_pow_of_two(max_t(u16, wq->rq.size, 16)); create_qp()
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | usdhi6rol0.c | 751 roundup_pow_of_two(DIV_ROUND_UP(host->imclk, rate)); usdhi6_clk_set()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_ethtool.c | 644 num_desc = roundup_pow_of_two(num_desc); qlcnic_validate_ringparam()
|
/linux-4.1.27/drivers/media/platform/coda/ |
H A D | coda-bit.c | 1375 ctx->bitstream.size = roundup_pow_of_two(q_data->sizeimage * 2); coda_alloc_bitstream_buffer()
|
/linux-4.1.27/drivers/media/rc/ |
H A D | rc-main.c | 133 rc_map->alloc = roundup_pow_of_two(size * sizeof(struct rc_map_table)); ir_create_table()
|
/linux-4.1.27/include/sound/ |
H A D | soc.h | 185 .mask = xitems ? roundup_pow_of_two(xitems) - 1 : 0}
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | x86.c | 180 for (i = 0; i < roundup_pow_of_two(ASYNC_PF_PER_VCPU); i++) kvm_async_pf_hash_reset() 7840 return (key + 1) & (roundup_pow_of_two(ASYNC_PF_PER_VCPU) - 1); kvm_async_pf_next_probe() 7858 for (i = 0; i < roundup_pow_of_two(ASYNC_PF_PER_VCPU) && kvm_async_pf_gfn_slot()
|
/linux-4.1.27/drivers/net/ethernet/8390/ |
H A D | pcnet_cs.c | 1411 window_size = roundup_pow_of_two(window_size); setup_shmem_window()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | r600_cs.c | 1405 val = roundup_pow_of_two(val); r600_mip_minify()
|
H A D | r100.c | 2187 w = roundup_pow_of_two(w); r100_cs_track_texture_check() 2194 h = roundup_pow_of_two(h); r100_cs_track_texture_check()
|
/linux-4.1.27/drivers/net/ethernet/marvell/ |
H A D | sky2.c | 4159 return max(128ul, roundup_pow_of_two(pending+1)); roundup_ring_size() 5006 hw->st_size = hw->ports * roundup_pow_of_two(3*RX_MAX_PENDING + TX_MAX_PENDING); sky2_probe()
|
/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/net/ethernet/atheros/atl1c/ |
H A D | atl1c_main.c | 494 adapter->rx_frag_size = roundup_pow_of_two(head_size); atl1c_set_rxbufsize()
|
/linux-4.1.27/drivers/crypto/ |
H A D | talitos.c | 2709 priv->fifo_len = roundup_pow_of_two(priv->chfifo_len); talitos_probe()
|
/linux-4.1.27/kernel/ |
H A D | futex.c | 3057 futex_hashsize = roundup_pow_of_two(256 * num_possible_cpus()); futex_init()
|
/linux-4.1.27/kernel/printk/ |
H A D | printk.c | 836 size = roundup_pow_of_two(size); log_buf_len_update()
|
/linux-4.1.27/sound/core/oss/ |
H A D | pcm_oss.c | 758 min_period_size = roundup_pow_of_two(min_period_size); snd_pcm_oss_period_size()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | intel_display.c | 6001 *ret_n = min_t(unsigned int, roundup_pow_of_two(n), DATA_LINK_N_MAX); compute_m_n() 8654 unsigned int stride = roundup_pow_of_two(width) * 4; i845_update_cursor() 12779 stride = roundup_pow_of_two(state->base.crtc_w) * 4; intel_check_cursor_plane()
|
/linux-4.1.27/drivers/net/ethernet/rocker/ |
H A D | rocker.c | 915 min(roundup_pow_of_two(size), ROCKER_DMA_SIZE_MAX)); rocker_dma_ring_size_fix()
|
/linux-4.1.27/drivers/scsi/be2iscsi/ |
H A D | be_main.c | 2591 phba->mem_req[HWI_MEM_WRBH] = roundup_pow_of_two((wrb_sz_per_cxn) * beiscsi_find_mem_req()
|
/linux-4.1.27/fs/ext4/ |
H A D | mballoc.c | 2354 size = roundup_pow_of_two(sizeof(*sbi->s_group_info) * size); ext4_mb_alloc_groupinfo()
|
H A D | super.c | 1964 size = roundup_pow_of_two(size * sizeof(struct flex_groups)); ext4_alloc_flex_bg_array()
|
/linux-4.1.27/drivers/usb/host/ |
H A D | xhci.c | 3050 *num_stream_ctxs = roundup_pow_of_two(*num_streams); xhci_calculate_streams_entries()
|
/linux-4.1.27/net/bluetooth/ |
H A D | l2cap_core.c | 321 alloc_size = roundup_pow_of_two(size); l2cap_seq_list_init()
|