Home
last modified time | relevance | path

Searched refs:selected_size (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/kernel/dma/
Dcontiguous.c169 phys_addr_t selected_size = 0; in dma_contiguous_reserve() local
177 selected_size = size_cmdline; in dma_contiguous_reserve()
184 selected_size = size_bytes; in dma_contiguous_reserve()
186 selected_size = cma_early_percent_memory(); in dma_contiguous_reserve()
188 selected_size = min(size_bytes, cma_early_percent_memory()); in dma_contiguous_reserve()
190 selected_size = max(size_bytes, cma_early_percent_memory()); in dma_contiguous_reserve()
194 if (selected_size && !dma_contiguous_default_area) { in dma_contiguous_reserve()
196 (unsigned long)selected_size / SZ_1M); in dma_contiguous_reserve()
198 dma_contiguous_reserve_area(selected_size, selected_base, in dma_contiguous_reserve()
/Linux-v5.10/arch/powerpc/kvm/
Dbook3s_hv_builtin.c98 phys_addr_t selected_size; in kvm_cma_reserve() local
106 selected_size = PAGE_ALIGN(memblock_phys_mem_size() * kvm_cma_resv_ratio / 100); in kvm_cma_reserve()
107 if (selected_size) { in kvm_cma_reserve()
109 (unsigned long)selected_size / SZ_1M); in kvm_cma_reserve()
111 cma_declare_contiguous(0, selected_size, 0, align_size, in kvm_cma_reserve()