Home
last modified time | relevance | path

Searched refs:rounddown_pow_of_two (Results 1 – 25 of 66) sorted by relevance

123

/linux-6.6.21/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-ram.c46 n = min_t(u8, rounddown_pow_of_two(val), in can_ram_rounddown_pow_of_two()
114 num_rx_coalesce = rounddown_pow_of_two(num_rx_coalesce); in can_ram_get_layout()
137 num_tx_coalesce = rounddown_pow_of_two(num_tx_coalesce); in can_ram_get_layout()
Dmcp251xfd-ring.c498 rx_obj_num = min_t(u8, rounddown_pow_of_two(rem), in mcp251xfd_ring_alloc()
/linux-6.6.21/tools/include/linux/
Dlog2.h168 #define rounddown_pow_of_two(n) \ macro
/linux-6.6.21/include/linux/
Dlog2.h191 #define rounddown_pow_of_two(n) \ macro
/linux-6.6.21/fs/pstore/
Dram.c763 pdata->record_size = rounddown_pow_of_two(pdata->record_size); in ramoops_probe()
765 pdata->console_size = rounddown_pow_of_two(pdata->console_size); in ramoops_probe()
767 pdata->ftrace_size = rounddown_pow_of_two(pdata->ftrace_size); in ramoops_probe()
769 pdata->pmsg_size = rounddown_pow_of_two(pdata->pmsg_size); in ramoops_probe()
/linux-6.6.21/arch/s390/include/asm/
Dpci_io.h141 return rounddown_pow_of_two(size); in zpci_get_max_io_size()
/linux-6.6.21/drivers/md/bcache/
Dbset.c478 (size - rounddown_pow_of_two(size - 1)) << 1;
479 unsigned int i = 1, j = rounddown_pow_of_two(size - 1);
492 if (j == rounddown_pow_of_two(size) - 1)
709 t->extra = (t->size - rounddown_pow_of_two(t->size - 1)) << 1; in bch_bset_build_written_tree()
/linux-6.6.21/drivers/hwtracing/intel_th/
Dsth.c81 size = rounddown_pow_of_two(size); in sth_stm_packet()
/linux-6.6.21/drivers/infiniband/core/
Dumem.c130 return pgsz_bitmap ? rounddown_pow_of_two(pgsz_bitmap) : 0; in ib_umem_find_best_pgsz()
/linux-6.6.21/drivers/gpu/drm/nouveau/dispnv04/
Darb.c180 fifo->burst = rounddown_pow_of_two(fifo->burst); in nv10_calc_arb()
/linux-6.6.21/drivers/gpu/drm/i915/selftests/
Dintel_memory_region.c406 expected_order = get_order(rounddown_pow_of_two(size)); in igt_mock_splintered_region()
432 obj = igt_object_create(mem, &objects, rounddown_pow_of_two(size), in igt_mock_splintered_region()
1115 align = max_t(u32, sizeof(u32), rounddown_pow_of_two(align)); in igt_lmem_write_cpu()
/linux-6.6.21/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c752 new_tx_ring_size = rounddown_pow_of_two(new_tx_ring_size); in vmxnet3_set_ringparam()
753 new_rx_ring_size = rounddown_pow_of_two(new_rx_ring_size); in vmxnet3_set_ringparam()
754 new_rx_ring2_size = rounddown_pow_of_two(new_rx_ring2_size); in vmxnet3_set_ringparam()
/linux-6.6.21/drivers/tty/serial/8250/
D8250_lpss.c86 fuart *= rounddown_pow_of_two(fref / fuart); in byt_set_termios()
D8250_mid.c231 fuart *= rounddown_pow_of_two(mid->board->freq / fuart); in mid8250_set_termios()
/linux-6.6.21/drivers/net/ethernet/amazon/ena/
Dena_ethtool.c509 new_tx_size = rounddown_pow_of_two(new_tx_size); in ena_set_ringparam()
513 new_rx_size = rounddown_pow_of_two(new_rx_size); in ena_set_ringparam()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k.c262 tmp = burst - rounddown_pow_of_two(burst); in cn10k_get_ingress_burst_cfg()
Dotx2_tc.c74 tmp = burst - rounddown_pow_of_two(burst); in otx2_get_egress_burst_cfg()
105 tmp = maxrate - rounddown_pow_of_two(maxrate); in otx2_get_egress_rate_cfg()
/linux-6.6.21/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c508 qs->sq_len = rounddown_pow_of_two(tx_count); in nicvf_set_ringparam()
509 qs->cq_len = rounddown_pow_of_two(rx_count); in nicvf_set_ringparam()
/linux-6.6.21/drivers/gpu/drm/i915/gem/selftests/
Dhuge_pages.c214 const u64 max_len = rounddown_pow_of_two(UINT_MAX); in fake_get_huge_pages()
1254 max_page_size = rounddown_pow_of_two(obj->mm.page_sizes.sg); in igt_write_huge()
1399 size = igt_random_size(&prng, min, rounddown_pow_of_two(size)); in igt_ppgtt_smoke_huge()
/linux-6.6.21/drivers/spi/
Dspi-rzv2m-csi.c221 csi->words_to_transfer = rounddown_pow_of_two(to_transfer); in rzv2m_csi_calc_current_transfer()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_sriov.c497 num_txq = rounddown_pow_of_two(avail_qs); in ice_set_per_vf_res()
505 num_rxq = rounddown_pow_of_two(avail_qs); in ice_set_per_vf_res()
/linux-6.6.21/drivers/net/ethernet/
Dethoc.c985 priv->num_tx = rounddown_pow_of_two(ring->tx_pending); in ethoc_set_ringparam()
1133 priv->num_tx = rounddown_pow_of_two(num_bd >> 1); in ethoc_probe()
/linux-6.6.21/lib/
Dkfifo.c72 size = rounddown_pow_of_two(size); in __kfifo_init()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c201 new_size = rounddown_pow_of_two(ring->actual_size); in mlx4_en_fill_rx_buffers()
259 rounddown_pow_of_two(num_rx_rings); in mlx4_en_set_num_rx_rings()
/linux-6.6.21/drivers/pci/controller/
Dpci-mvebu.c1150 rounddown_pow_of_two(size))); in mvebu_pcie_align_resource()
1153 rounddown_pow_of_two(size))); in mvebu_pcie_align_resource()

123