| /linux/drivers/net/ethernet/intel/libeth/ |
| H A D | rx.c | 49 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/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | profile.c | 106 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 D | qp.c | 637 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 D | rxe_queue.c | 79 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 D | uniphier_wdt.c | 129 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 D | tqmx86_wdt.c | 49 t = roundup_pow_of_two(t); in tqmx86_wdt_set_timeout()
|
| /linux/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_srq.c | 226 srq->wqe_shift = ilog2(roundup_pow_of_two(max(HNS_ROCE_SGE_SIZE, in alloc_srq_wqe_buf() 282 max_sge = roundup_pow_of_two(max_sge + 1); in proc_srq_sge() 307 srq->wqe_cnt = roundup_pow_of_two(attr->max_wr); in set_srq_basic_param() 308 srq->max_gs = roundup_pow_of_two(attr->max_sge + srq->rsv_sge); in set_srq_basic_param()
|
| H A D | hns_roce_qp.c | 458 max_sge = roundup_pow_of_two(max_sge + 1); in proc_rq_sge() 490 cnt = roundup_pow_of_two(max(cap->max_recv_wr, hr_dev->caps.min_wqes)); in set_rq_size() 497 hr_qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge) + in set_rq_size() 515 cap->max_inline_data = roundup_pow_of_two(cap->max_inline_data); in get_max_inline_data() 565 inline_sge = roundup_pow_of_two(max_inline_data) / HNS_ROCE_SGE_SIZE; in get_sge_num_from_max_inl_data() 594 roundup_pow_of_two(inline_ext_sge) : 0; in set_ext_sge_param() 610 total_sge_cnt = roundup_pow_of_two(sq_wqe_cnt * ext_wqe_sge_cnt); in set_ext_sge_param() 622 u32 roundup_sq_stride = roundup_pow_of_two(hr_dev->caps.max_sq_desc_sz); in check_sq_size_with_integrity() 731 cnt = roundup_pow_of_two(max(cap->max_send_wr, hr_dev->caps.min_wqes)); in set_kernel_sq_size()
|
| /linux/arch/sh/drivers/pci/ |
| H A D | pcie-sh7786.c | 362 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 D | pci-sh7780.c | 300 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/tools/include/linux/ |
| H A D | log2.h | 151 #define roundup_pow_of_two(n) \ macro
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | agg.h | 36 __aligned(roundup_pow_of_two(sizeof(struct sk_buff_head)))
|
| /linux/include/linux/ |
| H A D | pageblock-flags.h | 37 #define NR_PAGEBLOCK_BITS (roundup_pow_of_two(__NR_PAGEBLOCK_BITS))
|
| H A D | log2.h | 174 #define roundup_pow_of_two(n) \ macro
|
| /linux/tools/perf/util/ |
| H A D | print_binary.c | 16 bytes_per_line = roundup_pow_of_two(bytes_per_line); in binary__fprintf()
|
| /linux/mm/ |
| H A D | percpu-km.c | 118 alloc_pages = roundup_pow_of_two(nr_pages); in pcpu_verify_alloc_info()
|
| /linux/tools/perf/arch/s390/util/ |
| H A D | auxtrace.c | 70 opts->auxtrace_mmap_pages = roundup_pow_of_two(pages); in cpumsf_recording_options()
|
| /linux/arch/mips/bcm63xx/ |
| H A D | cs.c | 44 if (size != roundup_pow_of_two(size)) in bcm63xx_set_cs_base()
|
| /linux/drivers/net/ethernet/broadcom/bnge/ |
| H A D | bnge_resc.h | 88 blks = roundup_pow_of_two(blks); in bnge_adjust_pow_two()
|
| /linux/drivers/infiniband/hw/bng_re/ |
| H A D | bng_res.c | 144 depth = roundup_pow_of_two(hwq_attr->depth); in bng_re_alloc_init_hwq() 145 stride = roundup_pow_of_two(hwq_attr->stride); in bng_re_alloc_init_hwq()
|
| /linux/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)); 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()
|
| /linux/block/ |
| H A D | blk-timeout.c | 95 blk_timeout_mask = roundup_pow_of_two(HZ) - 1; in blk_timeout_init()
|
| /linux/drivers/pci/controller/ |
| H A D | pcie-rcar.c | 80 mask = (roundup_pow_of_two(size) / SZ_128) - 1; in rcar_pcie_set_outbound()
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | rtas-work-area.c | 37 RTAS_WORK_AREA_MIN_ALLOC_SZ = roundup_pow_of_two(80),
|
| /linux/drivers/infiniband/hw/mlx4/ |
| H A D | srq.c | 100 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx4_ib_create_srq() 104 roundup_pow_of_two(sizeof (struct mlx4_wqe_srq_next_seg) + in mlx4_ib_create_srq()
|