Home
last modified time | relevance | path

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

/Linux-v4.19/kernel/dma/
Dcontiguous.c105 phys_addr_t selected_size = 0; in dma_contiguous_reserve() local
113 selected_size = size_cmdline; in dma_contiguous_reserve()
120 selected_size = size_bytes; in dma_contiguous_reserve()
122 selected_size = cma_early_percent_memory(); in dma_contiguous_reserve()
124 selected_size = min(size_bytes, cma_early_percent_memory()); in dma_contiguous_reserve()
126 selected_size = max(size_bytes, cma_early_percent_memory()); in dma_contiguous_reserve()
130 if (selected_size && !dma_contiguous_default_area) { in dma_contiguous_reserve()
132 (unsigned long)selected_size / SZ_1M); in dma_contiguous_reserve()
134 dma_contiguous_reserve_area(selected_size, selected_base, in dma_contiguous_reserve()
/Linux-v4.19/arch/powerpc/kvm/
Dbook3s_hv_builtin.c102 phys_addr_t selected_size = 0; in kvm_cma_reserve() local
114 selected_size += memblock_region_memory_end_pfn(reg) - in kvm_cma_reserve()
117 selected_size = (selected_size * kvm_cma_resv_ratio / 100) << PAGE_SHIFT; in kvm_cma_reserve()
118 if (selected_size) { in kvm_cma_reserve()
120 (unsigned long)selected_size / SZ_1M); in kvm_cma_reserve()
122 cma_declare_contiguous(0, selected_size, 0, align_size, in kvm_cma_reserve()