Searched refs:roundup_pow_of_two (Results 26 - 50 of 297) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Dlog2.h167 * roundup_pow_of_two - round the given value up to nearest power of two
174 #define roundup_pow_of_two(n) \ macro
/linux-master/arch/powerpc/platforms/pseries/
H A Drtas-work-area.c37 RTAS_WORK_AREA_MIN_ALLOC_SZ = roundup_pow_of_two(80),
H A Dplpks.c142 password = kzalloc(roundup_pow_of_two(maxpwsize), GFP_KERNEL);
180 auth = kzalloc(roundup_pow_of_two(struct_size(auth, password, maxpwsize)), GFP_KERNEL);
218 label = kzalloc(roundup_pow_of_two(sizeof(*label)), GFP_KERNEL);
/linux-master/drivers/net/ethernet/ti/
H A Dk3-cppi-desc-pool.c63 pool->desc_size = roundup_pow_of_two(desc_size);
/linux-master/drivers/thermal/intel/int340x_thermal/
H A Dprocessor_thermal_wt_hint.c155 new_tw = roundup_pow_of_two(new_tw);
/linux-master/drivers/infiniband/hw/hns/
H A Dhns_roce_srq.c227 srq->wqe_shift = ilog2(roundup_pow_of_two(max(HNS_ROCE_SGE_SIZE,
283 max_sge = roundup_pow_of_two(max_sge + 1);
308 srq->wqe_cnt = roundup_pow_of_two(attr->max_wr);
309 srq->max_gs = roundup_pow_of_two(attr->max_sge + srq->rsv_sge);
H A Dhns_roce_qp.c436 max_sge = roundup_pow_of_two(max_sge + 1);
468 cnt = roundup_pow_of_two(max(cap->max_recv_wr, hr_dev->caps.min_wqes));
475 hr_qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge) +
493 cap->max_inline_data = roundup_pow_of_two(cap->max_inline_data);
535 inline_sge = roundup_pow_of_two(max_inline_data) / HNS_ROCE_SGE_SIZE;
570 roundup_pow_of_two(inline_ext_sge) : 0;
586 total_sge_cnt = roundup_pow_of_two(sq_wqe_cnt * ext_wqe_sge_cnt);
598 u32 roundup_sq_stride = roundup_pow_of_two(hr_dev->caps.max_sq_desc_sz);
708 cnt = roundup_pow_of_two(max(cap->max_send_wr, hr_dev->caps.min_wqes));
/linux-master/lib/
H A Dobjpool.c127 capacity = roundup_pow_of_two(nr_objs);
H A Dgeneric-radix-tree.c39 ((unsigned long) (roundup_pow_of_two(GENRADIX_MAX_DEPTH + 1) - 1))
/linux-master/arch/sh/drivers/pci/
H A Dpci-sh7780.c300 memsize = roundup_pow_of_two(memory_end - memory_start);
367 __raw_writel(((roundup_pow_of_two(size) / SZ_256K) - 1) << 18,
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Dqp.c637 roundup_pow_of_two(MLX4_BF_QP_SKIP_MASK)) ||
694 err = mlx4_bitmap_init(*bitmap + k, roundup_pow_of_two(size),
695 roundup_pow_of_two(size) - 1, 0,
696 roundup_pow_of_two(size) - size);
798 roundup_pow_of_two(fixed_reserved_from_bot_rv + 1);
/linux-master/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));
141 qp->rq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_recv_sge));
147 qp->rq.wqe_size = roundup_pow_of_two(sizeof(struct pvrdma_rq_wqe_hdr) +
165 qp->sq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_send_wr));
166 qp->sq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_send_sge));
172 qp->sq.wqe_size = roundup_pow_of_two(sizeof(struct pvrdma_sq_wqe_hdr) +
/linux-master/drivers/infiniband/hw/mlx4/
H A Dsrq.c100 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1);
104 roundup_pow_of_two(sizeof (struct mlx4_wqe_srq_next_seg) +
/linux-master/fs/afs/
H A Daddr_prefs.c219 size = roundup_pow_of_two(size);
400 psize = roundup_pow_of_two(psize);
/linux-master/drivers/net/ethernet/netronome/nfp/abm/
H A Dcls.c127 bits_per_prio = roundup_pow_of_two(order_base_2(abm->num_bands));
/linux-master/drivers/net/wireguard/
H A Dratelimiter.c174 max_t(unsigned long, 16, roundup_pow_of_two(
/linux-master/drivers/iio/buffer/
H A Dkfifo_buf.c35 if (roundup_pow_of_two(length) > UINT_MAX / bytes_per_datum)
/linux-master/drivers/bus/
H A Duniphier-system-bus.c81 mask = roundup_pow_of_two(mask);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_ptrn.c85 chunk_size = ilog2(roundup_pow_of_two(num_of_actions));
/linux-master/drivers/tty/serial/
H A Dkgdb_nmi.c88 #define KGDB_NMI_FIFO_SIZE roundup_pow_of_two(KGDB_NMI_BAUD / 8 / HZ)
/linux-master/drivers/infiniband/hw/bnxt_re/
H A Dib_verbs.h177 ent : roundup_pow_of_two(ent) : ent;
/linux-master/drivers/watchdog/
H A Dstm32_iwdg.c102 presc = roundup_pow_of_two(presc);
/linux-master/kernel/bpf/
H A Dbloom_filter.c140 nr_bits = roundup_pow_of_two(nr_bits);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Drqt.c176 roundup_pow_of_two(num_channels * MLX5E_UNIFORM_SPREAD_RQT_FACTOR));
/linux-master/drivers/md/
H A Ddm.h233 unsigned int num_locks = roundup_pow_of_two(num_online_cpus()) << 1;

Completed in 345 milliseconds

1234567891011>>