Home
last modified time | relevance | path

Searched refs:roundup_pow_of_two (Results 1 – 25 of 274) sorted by relevance

1234567891011

/linux/drivers/net/ethernet/intel/libeth/
H A Drx.c49 truesize = clamp(roundup_pow_of_two(truesize), roundup_pow_of_two(min), in libeth_rx_hw_len_truesize()
96 fq->truesize = roundup_pow_of_two(SKB_HEAD_ALIGN(pp->offset + in libeth_rx_page_pool_params()
135 mtu = roundup_pow_of_two(mtu); in libeth_rx_page_pool_params_zc()
/linux/fs/bcachefs/
H A Dkeylist.c15 newsize = roundup_pow_of_two(newsize); in bch2_keylist_realloc()
18 (old_buf && roundup_pow_of_two(oldsize) == newsize)) in bch2_keylist_realloc()
H A Ddarray.c11 new_size = roundup_pow_of_two(new_size); in __bch2_darray_resize_noprof()
/linux/drivers/irqchip/
H A Dirq-gic-its-msi-parent.c98 nvec = max_t(int, minnvec, roundup_pow_of_two(nvec)); in its_pci_msi_prepare()
135 nvec = roundup_pow_of_two(nvec); in its_v5_pci_msi_prepare()
247 nvec = max_t(int, 32, roundup_pow_of_two(nvec)); in its_pmsi_prepare()
275 nvec = roundup_pow_of_two(nvec); in its_v5_pmsi_prepare()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_phys.c44 roundup_pow_of_two(obj->base.size), in i915_gem_object_get_pages_phys()
91 roundup_pow_of_two(obj->base.size), in i915_gem_object_get_pages_phys()
134 roundup_pow_of_two(obj->base.size), in i915_gem_object_put_pages_phys()
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_txrx.h25 #define FBNIC_TX_DESC_MIN roundup_pow_of_two(FBNIC_TX_DESC_WAKEUP)
34 #define FBNIC_RX_DESC_MIN roundup_pow_of_two(FBNIC_MAX_RX_PKT_DESC * 2)
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dprofile.c106 roundup_pow_of_two(max_t(unsigned, request->num_mtt, in mlx4_make_profile()
138 profile[i].num = roundup_pow_of_two(profile[i].num); in mlx4_make_profile()
220 dev->caps.num_eqs = roundup_pow_of_two( in mlx4_make_profile()
H A Dqp.c637 roundup_pow_of_two(MLX4_BF_QP_SKIP_MASK)) || in mlx4_create_zones()
694 err = mlx4_bitmap_init(*bitmap + k, roundup_pow_of_two(size), in mlx4_create_zones()
695 roundup_pow_of_two(size) - 1, 0, in mlx4_create_zones()
696 roundup_pow_of_two(size) - size); in mlx4_create_zones()
798 roundup_pow_of_two(fixed_reserved_from_bot_rv + 1); in mlx4_init_qp_table()
/linux/drivers/infiniband/sw/rxe/
H A Drxe_queue.c79 elem_size = roundup_pow_of_two(elem_size); in rxe_queue_init()
84 num_slots = roundup_pow_of_two(num_slots); in rxe_queue_init()
/linux/drivers/watchdog/
H A Duniphier_wdt.c129 tmp_timeout = roundup_pow_of_two(w->timeout); in uniphier_watchdog_start()
148 tmp_timeout = roundup_pow_of_two(t); in uniphier_watchdog_set_timeout()
H A Dtqmx86_wdt.c49 t = roundup_pow_of_two(t); in tqmx86_wdt_set_timeout()
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_srq.c227 srq->wqe_shift = ilog2(roundup_pow_of_two(max(HNS_ROCE_SGE_SIZE, in alloc_srq_wqe_buf()
283 max_sge = roundup_pow_of_two(max_sge + 1); in proc_srq_sge()
308 srq->wqe_cnt = roundup_pow_of_two(attr->max_wr); in set_srq_basic_param()
309 srq->max_gs = roundup_pow_of_two(attr->max_sge + srq->rsv_sge); in set_srq_basic_param()
/linux/arch/sh/drivers/pci/
H A Dpcie-sh7786.c362 memsize = roundup_pow_of_two(memend - memstart); in pcie_init()
370 memsize = roundup_pow_of_two(memend - memstart); in pcie_init()
462 mask = (roundup_pow_of_two(size) / SZ_256K) - 1; in pcie_init()
H A Dpci-sh7780.c300 memsize = roundup_pow_of_two(memory_end - memory_start); in sh7780_pci_init()
367 __raw_writel(((roundup_pow_of_two(size) / SZ_256K) - 1) << 18, in sh7780_pci_init()
/linux/drivers/hwtracing/stm/
H A Dftrace.c69 stm_ftrace.data.nr_chans = roundup_pow_of_two(num_possible_cpus()); in stm_ftrace_init()
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dagg.h36 __aligned(roundup_pow_of_two(sizeof(struct sk_buff_head)))
/linux/tools/include/linux/
H A Dlog2.h144 * roundup_pow_of_two - round the given value up to nearest power of two
151 #define roundup_pow_of_two(n) \ macro
/linux/include/linux/
H A Dpageblock-flags.h38 #define NR_PAGEBLOCK_BITS (roundup_pow_of_two(__NR_PAGEBLOCK_BITS))
/linux/mm/
H A Dpercpu-km.c118 alloc_pages = roundup_pow_of_two(nr_pages); in pcpu_verify_alloc_info()
/linux/tools/perf/arch/s390/util/
H A Dauxtrace.c69 opts->auxtrace_mmap_pages = roundup_pow_of_two(pages); in cpumsf_recording_options()
/linux/tools/perf/util/
H A Dprint_binary.c16 bytes_per_line = roundup_pow_of_two(bytes_per_line); in binary__fprintf()
/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_resc.h85 blks = roundup_pow_of_two(blks); in bnge_adjust_pow_two()
/linux/arch/mips/bcm63xx/
H A Dcs.c44 if (size != roundup_pow_of_two(size)) in bcm63xx_set_cs_base()
/linux/arch/powerpc/platforms/pseries/
H A Dplpks.c142 password = kzalloc(roundup_pow_of_two(maxpwsize), GFP_KERNEL); in plpks_gen_password()
180 auth = kzalloc(roundup_pow_of_two(struct_size(auth, password, maxpwsize)), GFP_KERNEL); in construct_auth()
218 label = kzalloc(roundup_pow_of_two(sizeof(*label)), GFP_KERNEL); in construct_label()
/linux/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_qp.c140 qp->rq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_recv_wr)); in pvrdma_set_rq_size()
141 qp->rq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_recv_sge)); in pvrdma_set_rq_size()
147 qp->rq.wqe_size = roundup_pow_of_two(sizeof(struct pvrdma_rq_wqe_hdr) + in pvrdma_set_rq_size()
165 qp->sq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_send_wr)); in pvrdma_set_sq_size()
166 qp->sq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_send_sge)); in pvrdma_set_sq_size()
172 qp->sq.wqe_size = roundup_pow_of_two(sizeof(struct pvrdma_sq_wqe_hdr) + in pvrdma_set_sq_size()

1234567891011