Home
last modified time | relevance | path

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

123

/linux/tools/include/linux/
A Dlog2.h168 #define rounddown_pow_of_two(n) \ macro
/linux/fs/pstore/
A Dram.c749 pdata->record_size = rounddown_pow_of_two(pdata->record_size); in ramoops_probe()
751 pdata->console_size = rounddown_pow_of_two(pdata->console_size); in ramoops_probe()
753 pdata->ftrace_size = rounddown_pow_of_two(pdata->ftrace_size); in ramoops_probe()
755 pdata->pmsg_size = rounddown_pow_of_two(pdata->pmsg_size); in ramoops_probe()
/linux/include/linux/
A Dlog2.h191 #define rounddown_pow_of_two(n) \ macro
/linux/drivers/md/bcache/
A 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/drivers/infiniband/core/
A Dumem.c135 return pgsz_bitmap ? rounddown_pow_of_two(pgsz_bitmap) : 0; in ib_umem_find_best_pgsz()
/linux/drivers/hwtracing/intel_th/
A Dsth.c81 size = rounddown_pow_of_two(size); in sth_stm_packet()
/linux/drivers/gpu/drm/nouveau/dispnv04/
A Darb.c180 fifo->burst = rounddown_pow_of_two(fifo->burst); in nv10_calc_arb()
/linux/drivers/gpu/drm/i915/selftests/
A Dintel_memory_region.c404 expected_order = get_order(rounddown_pow_of_two(size)); in igt_mock_splintered_region()
430 obj = igt_object_create(mem, &objects, rounddown_pow_of_two(size), in igt_mock_splintered_region()
939 align = max_t(u32, sizeof(u32), rounddown_pow_of_two(align)); in igt_lmem_write_cpu()
/linux/drivers/net/ethernet/amazon/ena/
A Dena_ethtool.c486 new_tx_size = rounddown_pow_of_two(new_tx_size); in ena_set_ringparam()
490 new_rx_size = rounddown_pow_of_two(new_rx_size); in ena_set_ringparam()
/linux/drivers/tty/serial/8250/
A D8250_lpss.c86 fuart *= rounddown_pow_of_two(fref / fuart); in byt_set_termios()
A D8250_mid.c222 fuart *= rounddown_pow_of_two(mid->board->freq / fuart); in mid8250_set_termios()
/linux/drivers/net/ethernet/cavium/thunder/
A Dnicvf_ethtool.c504 qs->sq_len = rounddown_pow_of_two(tx_count); in nicvf_set_ringparam()
505 qs->cq_len = rounddown_pow_of_two(rx_count); in nicvf_set_ringparam()
/linux/drivers/gpu/drm/i915/
A Di915_buddy.c121 root_size = rounddown_pow_of_two(size); in i915_buddy_init()
/linux/drivers/gpu/drm/i915/gem/selftests/
A Dhuge_pages.c191 const u64 max_len = rounddown_pow_of_two(UINT_MAX); in fake_get_huge_pages()
1167 max_page_size = rounddown_pow_of_two(obj->mm.page_sizes.sg); in igt_write_huge()
1306 size = igt_random_size(&prng, min, rounddown_pow_of_two(size)); in igt_ppgtt_smoke_huge()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_tc.c92 tmp = burst - rounddown_pow_of_two(burst); in otx2_get_egress_burst_cfg()
123 tmp = maxrate - rounddown_pow_of_two(maxrate); in otx2_get_egress_rate_cfg()
A Dcn10k.c261 tmp = burst - rounddown_pow_of_two(burst); in cn10k_get_ingress_burst_cfg()
/linux/drivers/pci/controller/
A Dpci-mvebu.c705 rounddown_pow_of_two(size))); in mvebu_pcie_align_resource()
708 rounddown_pow_of_two(size))); in mvebu_pcie_align_resource()
/linux/drivers/net/ethernet/
A Dethoc.c981 priv->num_tx = rounddown_pow_of_two(ring->tx_pending); in ethoc_set_ringparam()
1132 priv->num_tx = rounddown_pow_of_two(num_bd >> 1); in ethoc_probe()
/linux/lib/
A Dkfifo.c72 size = rounddown_pow_of_two(size); in __kfifo_init()
/linux/drivers/net/ethernet/mellanox/mlx4/
A 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/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_vram_mgr.c447 pages = rounddown_pow_of_two(pages); in amdgpu_vram_mgr_new()
/linux/drivers/ntb/hw/mscc/
A Dntb_hw_switchtec.c1207 sndev->nr_lut_mw = rounddown_pow_of_two(sndev->nr_lut_mw); in switchtec_ntb_init_mw()
1217 sndev->peer_nr_lut_mw = rounddown_pow_of_two(sndev->peer_nr_lut_mw); in switchtec_ntb_init_mw()
/linux/drivers/misc/eeprom/
A Dat24.c854 at24_io_limit = rounddown_pow_of_two(at24_io_limit); in at24_init()
/linux/drivers/infiniband/hw/hfi1/
A Dinit.c1859 rounddown_pow_of_two(rcd->egrbufs.size / 8)); in hfi1_setup_eagerbufs()
1948 rounddown_pow_of_two(rcd->egrbufs.alloced / 2); in hfi1_setup_eagerbufs()
A Duser_exp_rcv.c565 rounddown_pow_of_two(bufsize) >> in find_phys_blocks()

Completed in 75 milliseconds

123