Lines Matching +full:ram +full:- +full:region

4  * SPDX-License-Identifier: Apache-2.0
24 * kernel's permanent mapping of RAM, to obtain its physical address.
41 #define K_MEM_VIRT_OFFSET ((CONFIG_KERNEL_VM_BASE + CONFIG_KERNEL_VM_OFFSET) - \
50 * This only works in the kernel's permanent mapping of RAM.
56 #define K_MEM_PHYS_ADDR(virt) ((virt) - K_MEM_VIRT_OFFSET)
61 * This only works in the kernel's permanent mapping of RAM.
89 * This only works in the kernel's permanent mapping of RAM.
117 /* Should be identity-mapped */ in k_mem_phys_addr()
128 "physical address 0x%lx not in RAM", in k_mem_phys_addr()
142 * This only works in the kernel's permanent mapping of RAM.
154 "physical address 0x%lx not in RAM", (unsigned long)phys); in k_mem_virt_addr()
166 "physical address 0x%lx not in RAM", (unsigned long)phys); in k_mem_virt_addr()
181 * Map a physical memory region into the kernel's virtual address space
183 * This function is intended for mapping memory-mapped I/O regions into
185 * linear address representing the base of where the physical region is mapped
200 * A caching mode must be selected. By default, the region is read-only
209 * It is highly discouraged to use this function to map system RAM page
211 * and produce undefined behavior. Do not use this for RAM unless you know
220 * @param[in] phys Physical address base of the memory region
221 * @param[in] size Size of the memory region
228 * Unmap a virtual memory region from kernel's virtual address space.
251 * @param virt Starting address of the virtual address region to be unmapped.
252 * @param size Size of the virtual address region
263 * This function maps a contiguous physical memory region into kernel's
266 * the base of where the physical region is mapped in the virtual address
274 * K_MEM_PERM_USER flags here; instead manage the region's permissions
281 * The returned virtual memory pointer will be page-aligned. The size
282 * parameter, and any base address for re-mapping purposes must be page-
286 * and after the requested region. The total size of the allocation will be
294 * @param phys Physical address base of the memory region if not requesting
295 * anonymous memory. Must be page-aligned.
296 * @param size Size of the memory mapping. This must be page-aligned.
307 * Un-map memory mapped via k_mem_map_phys_guard().
309 * This removes the memory mappings for the provided page-aligned region,
310 * and the two guard pages surrounding the region.
317 * @note Calling this function on a region which was not mapped via
320 * @param addr Page-aligned memory region base virtual address
321 * @param size Page-aligned memory region size