Home
last modified time | relevance | path

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

123456789

/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/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/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/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/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/tools/include/linux/
H A Dlog2.h151 #define roundup_pow_of_two(n) \ macro
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dagg.h36 __aligned(roundup_pow_of_two(sizeof(struct sk_buff_head)))
/linux/include/linux/
H A Dpageblock-flags.h37 #define NR_PAGEBLOCK_BITS (roundup_pow_of_two(__NR_PAGEBLOCK_BITS))
/linux/tools/perf/util/
H A Dprint_binary.c16 bytes_per_line = roundup_pow_of_two(bytes_per_line); in binary__fprintf()
/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.c70 opts->auxtrace_mmap_pages = roundup_pow_of_two(pages); in cpumsf_recording_options()
/linux/arch/mips/bcm63xx/
H A Dcs.c44 if (size != roundup_pow_of_two(size)) in bcm63xx_set_cs_base()
/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_resc.h88 blks = roundup_pow_of_two(blks); in bnge_adjust_pow_two()
/linux/block/
H A Dblk-timeout.c95 blk_timeout_mask = roundup_pow_of_two(HZ) - 1; in blk_timeout_init()
/linux/drivers/pci/controller/
H A Dpcie-rcar.c80 mask = (roundup_pow_of_two(size) / SZ_128) - 1; in rcar_pcie_set_outbound()
/linux/arch/powerpc/platforms/pseries/
H A Drtas-work-area.c37 RTAS_WORK_AREA_MIN_ALLOC_SZ = roundup_pow_of_two(80),
/linux/drivers/net/ethernet/microsoft/mana/
H A Dhw_channel.c402 eq_size = roundup_pow_of_two(GDMA_EQE_SIZE * q_depth); in mana_hwc_create_cq()
406 cq_size = roundup_pow_of_two(GDMA_CQE_SIZE * q_depth); in mana_hwc_create_cq()
535 queue_size = roundup_pow_of_two(GDMA_MAX_RQE_SIZE * q_depth); in mana_hwc_create_wq()
537 queue_size = roundup_pow_of_two(GDMA_MAX_SQE_SIZE * q_depth); in mana_hwc_create_wq()
/linux/sound/soc/tegra/
H A Dtegra210_ahub.h113 .mask = xmax ? roundup_pow_of_two(xmax) - 1 : 0 \
/linux/drivers/gpu/drm/xe/
H A Dxe_pagefault.c45 return roundup_pow_of_two(sizeof(struct xe_pagefault)); in xe_pagefault_entry_size()
362 pf_queue->size = roundup_pow_of_two(pf_queue->size); in xe_pagefault_queue_init()
/linux/lib/
H A Dtest_rhashtable.c441 test_rht_params.max_size = roundup_pow_of_two(entries / 8); in test_rhashtable_max()
696 test_rht_params.max_size = max_size ? : roundup_pow_of_two(entries); in test_rht_init()
757 roundup_pow_of_two(tcount * entries); in test_rht_init()
/linux/include/net/libeth/
H A Drx.h23 #define LIBETH_MAX_HEAD roundup_pow_of_two(max(MAX_HEADER, 256))

123456789