/linux-6.1.9/include/linux/ |
D | log2.h | 217 #define order_base_2(n) \ macro 231 return order_base_2(n) + 1; in __bits_per() 232 return order_base_2(n); in __bits_per()
|
D | hugetlb_cgroup.h | 32 #define HUGETLB_CGROUP_MIN_ORDER order_base_2(__MAX_CGROUP_SUBPAGE_INDEX + 1)
|
/linux-6.1.9/mm/ |
D | percpu-km.c | 65 pages = alloc_pages(gfp, order_base_2(nr_pages)); in pcpu_create_chunk() 98 __free_pages(chunk->data, order_base_2(nr_pages)); in pcpu_destroy_chunk()
|
/linux-6.1.9/drivers/watchdog/ |
D | imgpdc_wdt.c | 120 val |= order_base_2(wdt->wdt_dev.timeout * clk_rate) - 1; in __pdc_wdt_set_timeout() 238 if (order_base_2(clk_rate) > PDC_WDT_CONFIG_DELAY_MASK + 1) { in pdc_wdt_probe() 243 if (order_base_2(clk_rate) == 0) in pdc_wdt_probe()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | params.c | 20 u8 req_page_shift = xsk ? order_base_2(xsk->chunk_size) : PAGE_SHIFT; in mlx5e_mpwrq_page_shift() 278 order_base_2(linear_stride_sz); in mlx5e_mpwqe_log_pkts_per_wqe() 336 log_stride_sz = order_base_2(mlx5e_rx_get_linear_stride_sz(mdev, params, xsk, true)); in mlx5e_rx_mpwqe_is_linear_skb() 380 return order_base_2(DIV_ROUND_UP(MLX5E_RX_MAX_HEAD, MLX5E_SHAMPO_WQ_BASE_HEAD_ENTRY_SIZE)); in mlx5e_shampo_get_log_hd_entry_size() 386 return order_base_2(MLX5E_SHAMPO_WQ_RESRV_SIZE / MLX5E_SHAMPO_WQ_BASE_RESRV_SIZE); in mlx5e_shampo_get_log_rsrv_size() 395 return order_base_2(DIV_ROUND_UP(resrv_size, params->sw_mtu)); in mlx5e_shampo_get_log_pkt_per_rsrv() 403 return order_base_2(mlx5e_rx_get_linear_stride_sz(mdev, params, xsk, true)); in mlx5e_mpwqe_get_log_stride_size() 782 info->log_num_frags = order_base_2(info->num_frags); in mlx5e_build_rq_frags_info() 799 return order_base_2(sz); in mlx5e_get_rqwq_log_stride() 826 return order_base_2((wqe_size / rsrv_size) * wq_size * (pkt_per_rsrv + 1)); in mlx5e_shampo_get_log_cq_size() [all …]
|
/linux-6.1.9/drivers/gpu/drm/etnaviv/ |
D | etnaviv_cmdbuf.c | 93 order = order_base_2(ALIGN(size, SUBALLOC_GRANULE) / SUBALLOC_GRANULE); in etnaviv_cmdbuf_init() 121 int order = order_base_2(ALIGN(cmdbuf->size, SUBALLOC_GRANULE) / in etnaviv_cmdbuf_free()
|
/linux-6.1.9/kernel/ |
D | bounds.c | 26 DEFINE(LRU_GEN_WIDTH, order_base_2(MAX_NR_GENS + 1)); in main()
|
/linux-6.1.9/drivers/infiniband/hw/hns/ |
D | hns_roce_alloc.c | 89 buf->trunk_shift = order_base_2(ALIGN(size, PAGE_SIZE)); in hns_roce_buf_alloc() 92 buf->trunk_shift = order_base_2(ALIGN(page_size, PAGE_SIZE)); in hns_roce_buf_alloc()
|
/linux-6.1.9/drivers/clk/sunxi/ |
D | clk-sun9i-core.c | 161 _p = order_base_2(DIV_ROUND_UP(req->parent_rate, req->rate)); in sun9i_a80_get_ahb_factors() 247 req->p = order_base_2(div); in sun9i_a80_get_apb1_factors()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/abm/ |
D | cls.c | 127 bits_per_prio = roundup_pow_of_two(order_base_2(abm->num_bands)); in nfp_abm_update_band_map() 132 base_shift = 8 - order_base_2(abm->num_prios); in nfp_abm_update_band_map()
|
D | ctrl.c | 319 size = roundup_pow_of_two(order_base_2(abm->num_bands)); in nfp_abm_ctrl_prio_map_size() 392 abm->dscp_mask = GENMASK(7, 8 - order_base_2(abm->num_prios)); in nfp_abm_ctrl_find_addrs()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_mqd_manager_cik.c | 192 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in __update_mqd() 238 m->sdma_rlc_rb_cntl = order_base_2(q->queue_size / 4) in update_mqd_sdma() 359 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in update_mqd_hiq()
|
D | kfd_mqd_manager_v9.c | 217 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in update_mqd() 246 order_base_2(q->eop_ring_buffer_size / 4) - 1); in update_mqd() 395 m->sdmax_rlcx_rb_cntl = order_base_2(q->queue_size / 4) in update_mqd_sdma()
|
D | kfd_mqd_manager_vi.c | 182 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in __update_mqd() 214 order_base_2(q->eop_ring_buffer_size / 4) - 1); in __update_mqd() 372 m->sdmax_rlcx_rb_cntl = order_base_2(q->queue_size / 4) in update_mqd_sdma()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | gpfifonv50.c | 69 ilength = order_base_2(args->v0.ilength / 8); in nv50_fifo_gpfifo_new()
|
D | gpfifog84.c | 69 ilength = order_base_2(args->v0.ilength / 8); in g84_fifo_gpfifo_new()
|
/linux-6.1.9/arch/powerpc/kvm/ |
D | book3s_hv_builtin.c | 59 VM_BUG_ON(order_base_2(nr_pages) < KVM_CMA_CHUNK_ORDER - PAGE_SHIFT); in kvm_alloc_hpt_cma() 61 return cma_alloc(kvm_cma, nr_pages, order_base_2(HPT_ALIGN_PAGES), in kvm_alloc_hpt_cma()
|
/linux-6.1.9/drivers/pci/controller/ |
D | pcie-xilinx.c | 240 hwirq = bitmap_find_free_region(pcie->msi_map, XILINX_NUM_MSI_IRQS, order_base_2(nr_irqs)); in xilinx_msi_domain_alloc() 263 bitmap_release_region(pcie->msi_map, d->hwirq, order_base_2(nr_irqs)); in xilinx_msi_domain_free()
|
D | pcie-iproc-msi.c | 263 order_base_2(msi->nr_cpus * nr_irqs)); in iproc_msi_irq_domain_alloc() 291 order_base_2(msi->nr_cpus * nr_irqs)); in iproc_msi_irq_domain_free()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/core/ |
D | ramht.c | 153 ramht->bits = order_base_2(ramht->size); in nvkm_ramht_new()
|
/linux-6.1.9/drivers/pwm/ |
D | pwm-sl28cpld.c | 138 prescaler = order_base_2(prescaler); in sl28cpld_pwm_apply()
|
/linux-6.1.9/drivers/infiniband/sw/rxe/ |
D | rxe_queue.c | 81 q->log2_elem_size = order_base_2(elem_size); in rxe_queue_init()
|
/linux-6.1.9/drivers/irqchip/ |
D | irq-armada-370-xp.c | 250 order_base_2(nr_irqs)); in armada_370_xp_msi_alloc() 272 bitmap_release_region(msi_used, d->hwirq, order_base_2(nr_irqs)); in armada_370_xp_msi_free()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_bufs.c | 254 map->size, order_base_2(map->size), map->handle); in drm_addmap_core() 741 order = order_base_2(request->size); in drm_legacy_addbufs_agp() 912 order = order_base_2(request->size); in drm_legacy_addbufs_pci() 1132 order = order_base_2(request->size); in drm_legacy_addbufs_sg() 1426 order = order_base_2(request->size); in drm_legacy_markbufs()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ih.c | 48 rb_bufsz = order_base_2(ring_size / 4); in amdgpu_ih_ring_init()
|