Lines Matching +full:dma +full:- +full:safe +full:- +full:map
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 1995-2005 Russell King
21 #include <linux/dma-map-ops.h>
28 #include <asm/mach-types.h>
41 #include <asm/mach/map.h>
58 phys_initrd_start = __virt_to_phys(tag->u.initrd.start); in parse_tag_initrd()
59 phys_initrd_size = tag->u.initrd.size; in parse_tag_initrd()
67 phys_initrd_start = tag->u.initrd.start; in parse_tag_initrd2()
68 phys_initrd_size = tag->u.initrd.size; in parse_tag_initrd2()
89 * The DMA mask corresponding to the maximum bus address allocatable
90 * using GFP_DMA. The default here places no restriction on DMA
91 * allocations. This must be the smallest DMA mask in the system,
101 if (mdesc->dma_zone_size) { in setup_dma_zone()
102 arm_dma_zone_size = mdesc->dma_zone_size; in setup_dma_zone()
103 arm_dma_limit = PHYS_OFFSET + arm_dma_zone_size - 1; in setup_dma_zone()
136 * memory chunk there still will be a memory map entry for it in pfn_valid()
137 * because we round freed memory map to the pageblock boundaries. in pfn_valid()
177 pr_info("CPU%u: detected I-Cache line size mismatch, workaround enabled\n", in check_cpu_icache_size()
187 memblock_reserve(__pa(KERNEL_START), KERNEL_END - KERNEL_START); in arm_memblock_init()
194 if (mdesc->reserve) in arm_memblock_init()
195 mdesc->reserve(); in arm_memblock_init()
199 /* reserve memory for DMA contiguous allocations */ in arm_memblock_init()
222 * Now free the memory - free_area_init needs in bootmem_init()
236 for (; count != 0; count -= 4) in poison_init_mem()
278 set_max_mapnr(pfn_to_page(max_pfn) - mem_map); in mem_init()
284 /* now that our DMA memory is actually so designated, we can free it */ in mem_init()
285 free_reserved_area(__va(PHYS_OFFSET), swapper_pg_dir, -1, NULL); in mem_init()
315 /* First section-aligned location at or after __start_rodata. */
321 .name = "pre-text NX",
365 * safe to be called with preemption disabled, as under stop_machine().
407 pr_err("BUG: %s section %lx-%lx not aligned to %lx\n", in set_section_perms()
432 if (t->flags & PF_KTHREAD) in update_sections_early()
435 if (s->mm) in update_sections_early()
436 set_section_perms(perms, n, true, s->mm); in update_sections_early()
438 set_section_perms(perms, n, true, current->active_mm); in update_sections_early()
473 poison_init_mem(__init_begin, __init_end - __init_begin); in free_initmem()
475 free_initmem_default(-1); in free_initmem()
486 poison_init_mem((void *)start, PAGE_ALIGN(end) - start); in free_initrd_mem()
487 free_reserved_area((void *)start, (void *)end, -1, "initrd"); in free_initrd_mem()