| /linux/drivers/net/can/spi/mcp251xfd/ |
| H A D | mcp251xfd-ram.c | 46 n = min_t(u8, rounddown_pow_of_two(val), in can_ram_rounddown_pow_of_two() 123 num_rx_coalesce = rounddown_pow_of_two(num_rx_coalesce); in can_ram_get_layout() 146 num_tx_coalesce = rounddown_pow_of_two(num_tx_coalesce); in can_ram_get_layout()
|
| /linux/tools/include/linux/ |
| H A D | log2.h | 168 #define rounddown_pow_of_two(n) \ macro
|
| /linux/drivers/net/ethernet/intel/libeth/ |
| H A D | rx.c | 136 max = min(rounddown_pow_of_two(fq->buf_len ? : U32_MAX), in libeth_rx_page_pool_params_zc()
|
| H A D | xdp.c | 372 low = rounddown_pow_of_two(quarter); in libeth_xdp_queue_threshold()
|
| /linux/drivers/md/bcache/ |
| H 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/gpu/drm/nouveau/dispnv04/ |
| H A D | arb.c | 180 fifo->burst = rounddown_pow_of_two(fifo->burst); in nv10_calc_arb()
|
| /linux/drivers/infiniband/core/ |
| H A D | umem.c | 152 return pgsz_bitmap ? rounddown_pow_of_two(pgsz_bitmap) : 0; in ib_umem_find_best_pgsz()
|
| /linux/sound/hda/codecs/side-codecs/ |
| H A D | tas2781_hda_spi.c | 255 mask = rounddown_pow_of_two(max); in tasdevice_spi_amp_putvol() 283 mask = rounddown_pow_of_two(max);
|
| /linux/drivers/tty/serial/8250/ |
| H A D | 8250_lpss.c | 86 fuart *= rounddown_pow_of_two(fref / fuart); in byt_set_termios()
|
| H A D | 8250_mid.c | 229 fuart *= rounddown_pow_of_two(mid->board->freq / fuart); in mid8250_set_termios()
|
| /linux/fs/xfs/ |
| H A D | xfs_mount.c | 673 return rounddown_pow_of_two(XFS_B_TO_FSB(mp, MAX_RW_COUNT)); in xfs_calc_atomic_write_max() 699 return rounddown_pow_of_two(g->blocks); in xfs_calc_group_awu_max()
|
| /linux/drivers/gpu/drm/i915/gem/selftests/ |
| H A 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/drivers/dma/dw/ |
| H A D | core.c | 792 rounddown_pow_of_two(dwc->dma_sconfig.src_maxburst); in dwc_verify_maxburst() 794 rounddown_pow_of_two(dwc->dma_sconfig.dst_maxburst); in dwc_verify_maxburst()
|
| /linux/drivers/pci/controller/ |
| H A 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()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_sriov.c | 406 num_txq = rounddown_pow_of_two(avail_qs); in ice_set_per_vf_res() 414 num_rxq = rounddown_pow_of_two(avail_qs); in ice_set_per_vf_res()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_rx.c | 175 new_size = rounddown_pow_of_two(ring->actual_size); in mlx4_en_fill_rx_buffers() 233 rounddown_pow_of_two(num_rx_rings); in mlx4_en_set_num_rx_rings()
|
| H A D | en_ethtool.c | 1212 return rounddown_pow_of_two(priv->rx_ring_num); in mlx4_en_get_rxfh_indir_size() 1250 rss_rings = rounddown_pow_of_two(rss_rings); in mlx4_en_get_rxfh()
|
| /linux/security/selinux/ss/ |
| H A D | avtab.c | 240 nslot = nrules > 3 ? rounddown_pow_of_two(nrules / 2) : 2; in avtab_alloc()
|
| /linux/drivers/ntb/hw/mscc/ |
| H A D | ntb_hw_switchtec.c | 1206 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/block/ |
| H A D | bio.c | 1291 *size = rounddown_pow_of_two(*size - 1); in folio_alloc_greedy() 1327 this_len = rounddown_pow_of_two(this_len); in bio_iov_iter_bounce_write()
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-stm.c | 436 size = rounddown_pow_of_two(size); in stm_generic_packet()
|
| /linux/drivers/net/ethernet/amazon/ena/ |
| H A D | ena_netdev.c | 2944 max_tx_queue_size = rounddown_pow_of_two(max_tx_queue_size); in ena_calc_io_queue_size() 2945 max_rx_queue_size = rounddown_pow_of_two(max_rx_queue_size); in ena_calc_io_queue_size() 2982 tx_queue_size = rounddown_pow_of_two(tx_queue_size); in ena_calc_io_queue_size() 2983 rx_queue_size = rounddown_pow_of_two(rx_queue_size); in ena_calc_io_queue_size()
|
| /linux/drivers/net/wireguard/ |
| H A D | noise.c | 509 rounddown_pow_of_two(NSEC_PER_SEC / INITIATIONS_PER_SECOND)); in tai64n_now()
|
| /linux/drivers/md/ |
| H A D | dm-snap.c | 849 unsigned int chunk_size = rounddown_pow_of_two(UINT_MAX); in __minimum_chunk_size() 891 hash_size = rounddown_pow_of_two(hash_size); in init_hash_tables()
|
| /linux/lib/ |
| H A D | rhashtable.c | 1084 ht->p.max_size = rounddown_pow_of_two(params->max_size); in rhashtable_init_noprof()
|