/linux-6.6.21/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-ram.c | 46 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()
|
D | mcp251xfd-ring.c | 498 rx_obj_num = min_t(u8, rounddown_pow_of_two(rem), in mcp251xfd_ring_alloc()
|
/linux-6.6.21/tools/include/linux/ |
D | log2.h | 168 #define rounddown_pow_of_two(n) \ macro
|
/linux-6.6.21/include/linux/ |
D | log2.h | 191 #define rounddown_pow_of_two(n) \ macro
|
/linux-6.6.21/fs/pstore/ |
D | ram.c | 763 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/ |
D | pci_io.h | 141 return rounddown_pow_of_two(size); in zpci_get_max_io_size()
|
/linux-6.6.21/drivers/md/bcache/ |
D | bset.c | 478 (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/ |
D | sth.c | 81 size = rounddown_pow_of_two(size); in sth_stm_packet()
|
/linux-6.6.21/drivers/infiniband/core/ |
D | umem.c | 130 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/ |
D | arb.c | 180 fifo->burst = rounddown_pow_of_two(fifo->burst); in nv10_calc_arb()
|
/linux-6.6.21/drivers/gpu/drm/i915/selftests/ |
D | intel_memory_region.c | 406 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/ |
D | vmxnet3_ethtool.c | 752 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/ |
D | 8250_lpss.c | 86 fuart *= rounddown_pow_of_two(fref / fuart); in byt_set_termios()
|
D | 8250_mid.c | 231 fuart *= rounddown_pow_of_two(mid->board->freq / fuart); in mid8250_set_termios()
|
/linux-6.6.21/drivers/net/ethernet/amazon/ena/ |
D | ena_ethtool.c | 509 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/ |
D | cn10k.c | 262 tmp = burst - rounddown_pow_of_two(burst); in cn10k_get_ingress_burst_cfg()
|
D | otx2_tc.c | 74 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/ |
D | nicvf_ethtool.c | 508 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/ |
D | huge_pages.c | 214 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/ |
D | spi-rzv2m-csi.c | 221 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/ |
D | ice_sriov.c | 497 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/ |
D | ethoc.c | 985 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/ |
D | kfifo.c | 72 size = rounddown_pow_of_two(size); in __kfifo_init()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/ |
D | en_rx.c | 201 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/ |
D | pci-mvebu.c | 1150 rounddown_pow_of_two(size))); in mvebu_pcie_align_resource() 1153 rounddown_pow_of_two(size))); in mvebu_pcie_align_resource()
|