Searched refs:roundup_pow_of_two (Results 51 - 75 of 297) sorted by relevance

1234567891011>>

/linux-master/security/selinux/ss/
H A Dhashtab.c30 return nel == 0 ? 0 : roundup_pow_of_two(nel);
/linux-master/drivers/net/ethernet/microsoft/mana/
H A Dhw_channel.c364 eq_size = roundup_pow_of_two(GDMA_EQE_SIZE * q_depth);
368 cq_size = roundup_pow_of_two(GDMA_CQE_SIZE * q_depth);
496 queue_size = roundup_pow_of_two(GDMA_MAX_RQE_SIZE * q_depth);
498 queue_size = roundup_pow_of_two(GDMA_MAX_SQE_SIZE * q_depth);
/linux-master/drivers/net/wireless/ath/ath10k/
H A Dce.c1365 nentries = roundup_pow_of_two(attr->src_nentries);
1406 nentries = roundup_pow_of_two(attr->dest_nentries);
1460 nentries = roundup_pow_of_two(nentries);
1518 nentries = roundup_pow_of_two(nentries);
1574 nentries = roundup_pow_of_two(attr->dest_nentries);
1618 nentries = roundup_pow_of_two(attr->dest_nentries);
/linux-master/drivers/infiniband/hw/mthca/
H A Dmthca_srq.c224 srq->max = roundup_pow_of_two(srq->max + 1);
229 roundup_pow_of_two(sizeof (struct mthca_next_seg) +
/linux-master/drivers/infiniband/hw/mlx5/
H A Dsrq.c218 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1);
226 desc_size = roundup_pow_of_two(desc_size);
/linux-master/drivers/md/bcache/
H A Dutil.h129 _allocated_size = roundup_pow_of_two((fifo)->size + 1); \
149 (fifo)->size = roundup_pow_of_two((fifo)->size) - 1; \
/linux-master/drivers/vfio/pci/nvgrace-gpu/
H A Dmain.c809 nvdev->usemem.bar_size = roundup_pow_of_two(nvdev->usemem.memlength);
810 nvdev->resmem.bar_size = roundup_pow_of_two(nvdev->resmem.memlength);
/linux-master/fs/bcachefs/
H A Dbtree_types.h565 #define BTREE_WRITE_TYPE_MASK (roundup_pow_of_two(BTREE_WRITE_TYPE_NR) - 1)
566 #define BTREE_WRITE_TYPE_BITS ilog2(roundup_pow_of_two(BTREE_WRITE_TYPE_NR))
H A Dprintbuf.c46 unsigned new_size = roundup_pow_of_two(out->size + extra);
/linux-master/net/core/
H A Dsysctl_net_core.c158 size = roundup_pow_of_two(size);
167 roundup_pow_of_two(nr_cpu_ids) - 1;
/linux-master/drivers/gpu/drm/
H A Ddrm_suballoc.c73 align = roundup_pow_of_two(align);
/linux-master/drivers/scsi/bnx2i/
H A Dbnx2i_init.c475 sq_size = roundup_pow_of_two(sq_size);
/linux-master/drivers/bus/
H A Dintel-ixp4xx-eb.c198 cur_cssize = roundup_pow_of_two(cur_cssize);
/linux-master/block/
H A Dblk-crypto-profile.c114 slot_hashtable_size = roundup_pow_of_two(num_slots);
/linux-master/arch/powerpc/kvm/
H A Dtest-guest-state-buffer.c19 KUNIT_EXPECT_EQ(test, gsb->capacity, roundup_pow_of_two(size));
/linux-master/tools/perf/arch/arm64/util/
H A Darm-spe.c112 opts->auxtrace_mmap_pages = roundup_pow_of_two(sz);
/linux-master/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_smp.c156 n = roundup_pow_of_two(n);
/linux-master/drivers/gpu/drm/xe/
H A Dxe_gt_tlb_invalidation.c317 align = roundup_pow_of_two(length);
/linux-master/arch/powerpc/mm/book3s32/
H A Dmmu.c164 size = roundup_pow_of_two((unsigned long)_einittext - PAGE_OFFSET);
/linux-master/lib/
H A Dtest_rhashtable.c441 test_rht_params.max_size = roundup_pow_of_two(entries / 8);
696 test_rht_params.max_size = max_size ? : roundup_pow_of_two(entries);
757 roundup_pow_of_two(tcount * entries);
H A Drhashtable.c401 size = roundup_pow_of_two(nelems * 3 / 2);
967 retsize = max(roundup_pow_of_two(params->nelem_hint * 4 / 3),
1041 ht->p.min_size = roundup_pow_of_two(params->min_size);
/linux-master/drivers/infiniband/hw/bnxt_re/
H A Dqplib_res.c199 depth = roundup_pow_of_two(hwq_attr->depth);
200 stride = roundup_pow_of_two(hwq_attr->stride);
203 aux_size = roundup_pow_of_two(hwq_attr->aux_stride);
/linux-master/mm/
H A Dpage-writeback.c1206 const unsigned long period = roundup_pow_of_two(3 * HZ);
1562 t = wb_dirty / (1 + bw / roundup_pow_of_two(1 + HZ / 8));
1611 pages = dirty_ratelimit * t / roundup_pow_of_two(HZ);
1623 pages = dirty_ratelimit * t / roundup_pow_of_two(HZ);
1633 pages = task_ratelimit * t / roundup_pow_of_two(HZ);
/linux-master/drivers/infiniband/hw/hfi1/
H A Dsdma.c864 for (i = 0; i < roundup_pow_of_two(map->ctr ? : 1) - map->ctr; i++)
879 pow = roundup_pow_of_two(map->ctr ? : 1);
982 pow = roundup_pow_of_two(ctr);
1183 roundup_pow_of_two(num_vls) *
1189 newmap->vls = roundup_pow_of_two(num_vls);
1199 int sz = roundup_pow_of_two(vl_engines[i]);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dconn.c424 cq_size = roundup_pow_of_two(cq_size);
524 conn->qp.rq.size = roundup_pow_of_two(rx_size);
527 conn->qp.sq.size = roundup_pow_of_two(tx_size);

Completed in 260 milliseconds

1234567891011>>