/linux/tools/include/linux/ |
A D | log2.h | 168 #define rounddown_pow_of_two(n) \ macro
|
/linux/fs/pstore/ |
A D | ram.c | 749 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 D | log2.h | 191 #define rounddown_pow_of_two(n) \ macro
|
/linux/drivers/md/bcache/ |
A 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/drivers/infiniband/core/ |
A D | umem.c | 135 return pgsz_bitmap ? rounddown_pow_of_two(pgsz_bitmap) : 0; in ib_umem_find_best_pgsz()
|
/linux/drivers/hwtracing/intel_th/ |
A D | sth.c | 81 size = rounddown_pow_of_two(size); in sth_stm_packet()
|
/linux/drivers/gpu/drm/nouveau/dispnv04/ |
A D | arb.c | 180 fifo->burst = rounddown_pow_of_two(fifo->burst); in nv10_calc_arb()
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | intel_memory_region.c | 404 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 D | ena_ethtool.c | 486 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 D | 8250_lpss.c | 86 fuart *= rounddown_pow_of_two(fref / fuart); in byt_set_termios()
|
A D | 8250_mid.c | 222 fuart *= rounddown_pow_of_two(mid->board->freq / fuart); in mid8250_set_termios()
|
/linux/drivers/net/ethernet/cavium/thunder/ |
A D | nicvf_ethtool.c | 504 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 D | i915_buddy.c | 121 root_size = rounddown_pow_of_two(size); in i915_buddy_init()
|
/linux/drivers/gpu/drm/i915/gem/selftests/ |
A D | huge_pages.c | 191 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 D | otx2_tc.c | 92 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 D | cn10k.c | 261 tmp = burst - rounddown_pow_of_two(burst); in cn10k_get_ingress_burst_cfg()
|
/linux/drivers/pci/controller/ |
A D | pci-mvebu.c | 705 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 D | ethoc.c | 981 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 D | kfifo.c | 72 size = rounddown_pow_of_two(size); in __kfifo_init()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A 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/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_vram_mgr.c | 447 pages = rounddown_pow_of_two(pages); in amdgpu_vram_mgr_new()
|
/linux/drivers/ntb/hw/mscc/ |
A D | ntb_hw_switchtec.c | 1207 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 D | at24.c | 854 at24_io_limit = rounddown_pow_of_two(at24_io_limit); in at24_init()
|
/linux/drivers/infiniband/hw/hfi1/ |
A D | init.c | 1859 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 D | user_exp_rcv.c | 565 rounddown_pow_of_two(bufsize) >> in find_phys_blocks()
|