Lines Matching +full:linear +full:- +full:mapping +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
9 * PPC44x/36-bit changes by Matt Porter (mporter@mvista.com)
18 #include <linux/dma-direct.h>
60 return -ENODEV; in create_section_mapping()
65 return -ENODEV; in remove_section_mapping()
76 params->pgprot); in arch_create_linear_mapping()
79 pr_warn("Unable to create linear mapping for 0x%llx..0x%llx: %d\n", in arch_create_linear_mapping()
81 return -EFAULT; in arch_create_linear_mapping()
97 pr_warn("Unable to remove linear mapping for 0x%llx..0x%llx: %d\n", in arch_remove_linear_mapping()
177 * We setup ZONE_DMA to be 31-bits on all platforms and ZONE_NORMAL to be
181 * By using 31-bit unconditionally, we can exploit zone_dma_bits to inform the
182 * generic DMA mapping code. 32-bit only devices (if not handled by an IOMMU
189 * paging_init() sets up the page tables - in fact we've already done this.
210 (long int)((top_of_ram - total_ram) >> 20)); in paging_init()
213 * Allow 30-bit DMA for very limited Broadcom wifi chips on many in paging_init()
223 1UL << (zone_dma_bits - PAGE_SHIFT)); in paging_init()
239 * a 4-bit field for slices. in mem_init()
245 * Some platforms (e.g. 85xx) limit DMA-able memory way below in mem_init()
246 * 4G. We force memblock to bottom-up mode to ensure that the in mem_init()
247 * memory allocated in swiotlb_init() is DMA-able. in mem_init()
249 * back to to-down. in mem_init()
282 * functions.... do it here for the non-smp case. in mem_init()
285 (mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY) - 1; in mem_init()
335 res->name = "System RAM"; in add_system_ram_resources()
336 res->start = start; in add_system_ram_resources()
342 res->end = end - 1; in add_system_ram_resources()
343 res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY; in add_system_ram_resources()
357 * Access has to be given to non-kernel-ram areas as well, these contain the