Searched refs:roundup_pow_of_two (Results 26 - 50 of 297) sorted by relevance
1234567891011>>
/linux-master/include/linux/ |
H A D | log2.h | 167 * 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 D | rtas-work-area.c | 37 RTAS_WORK_AREA_MIN_ALLOC_SZ = roundup_pow_of_two(80),
|
H A D | plpks.c | 142 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 D | k3-cppi-desc-pool.c | 63 pool->desc_size = roundup_pow_of_two(desc_size);
|
/linux-master/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_wt_hint.c | 155 new_tw = roundup_pow_of_two(new_tw);
|
/linux-master/drivers/infiniband/hw/hns/ |
H A D | hns_roce_srq.c | 227 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 D | hns_roce_qp.c | 436 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 D | objpool.c | 127 capacity = roundup_pow_of_two(nr_objs);
|
H A D | generic-radix-tree.c | 39 ((unsigned long) (roundup_pow_of_two(GENRADIX_MAX_DEPTH + 1) - 1))
|
/linux-master/arch/sh/drivers/pci/ |
H A D | pci-sh7780.c | 300 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 D | qp.c | 637 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 D | pvrdma_qp.c | 140 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 D | srq.c | 100 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 D | addr_prefs.c | 219 size = roundup_pow_of_two(size); 400 psize = roundup_pow_of_two(psize);
|
/linux-master/drivers/net/ethernet/netronome/nfp/abm/ |
H A D | cls.c | 127 bits_per_prio = roundup_pow_of_two(order_base_2(abm->num_bands));
|
/linux-master/drivers/net/wireguard/ |
H A D | ratelimiter.c | 174 max_t(unsigned long, 16, roundup_pow_of_two(
|
/linux-master/drivers/iio/buffer/ |
H A D | kfifo_buf.c | 35 if (roundup_pow_of_two(length) > UINT_MAX / bytes_per_datum)
|
/linux-master/drivers/bus/ |
H A D | uniphier-system-bus.c | 81 mask = roundup_pow_of_two(mask);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_ptrn.c | 85 chunk_size = ilog2(roundup_pow_of_two(num_of_actions));
|
/linux-master/drivers/tty/serial/ |
H A D | kgdb_nmi.c | 88 #define KGDB_NMI_FIFO_SIZE roundup_pow_of_two(KGDB_NMI_BAUD / 8 / HZ)
|
/linux-master/drivers/infiniband/hw/bnxt_re/ |
H A D | ib_verbs.h | 177 ent : roundup_pow_of_two(ent) : ent;
|
/linux-master/drivers/watchdog/ |
H A D | stm32_iwdg.c | 102 presc = roundup_pow_of_two(presc);
|
/linux-master/kernel/bpf/ |
H A D | bloom_filter.c | 140 nr_bits = roundup_pow_of_two(nr_bits);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | rqt.c | 176 roundup_pow_of_two(num_channels * MLX5E_UNIFORM_SPREAD_RQT_FACTOR));
|
/linux-master/drivers/md/ |
H A D | dm.h | 233 unsigned int num_locks = roundup_pow_of_two(num_online_cpus()) << 1;
|
Completed in 345 milliseconds
1234567891011>>