/Zephyr-latest/drivers/mm/ |
D | mm_drv_common.h | 33 int sys_mm_drv_page_flag_get(void *virt, uint32_t *flags); 56 static inline bool sys_mm_drv_is_virt_addr_aligned(void *virt) in sys_mm_drv_is_virt_addr_aligned() argument 58 return sys_mm_drv_is_addr_aligned(POINTER_TO_UINT(virt)); in sys_mm_drv_is_virt_addr_aligned() 98 bool sys_mm_drv_is_virt_region_mapped(void *virt, size_t size); 109 bool sys_mm_drv_is_virt_region_unmapped(void *virt, size_t size); 134 int sys_mm_drv_simple_map_region(void *virt, uintptr_t phys, 160 int sys_mm_drv_simple_map_array(void *virt, uintptr_t *phys, 184 int sys_mm_drv_simple_unmap_region(void *virt, size_t size); 294 int sys_mm_drv_simple_update_region_flags(void *virt, size_t size, uint32_t flags);
|
D | mm_drv_intel_adsp_tlb.c | 67 int sys_mm_drv_map_page(void *virt, uintptr_t phys, uint32_t flags) in sys_mm_drv_map_page() argument 83 uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt)); in sys_mm_drv_map_page() 136 sys_cache_data_invd_range(virt, CONFIG_MM_DRV_PAGE_SIZE); in sys_mm_drv_map_page() 144 int sys_mm_drv_map_region(void *virt, uintptr_t phys, in sys_mm_drv_map_region() argument 147 void *va = (__sparse_force void *)sys_cache_cached_ptr_get(virt); in sys_mm_drv_map_region() 152 int sys_mm_drv_map_array(void *virt, uintptr_t *phys, in sys_mm_drv_map_array() argument 155 void *va = (__sparse_force void *)sys_cache_cached_ptr_get(virt); in sys_mm_drv_map_array() 160 int sys_mm_drv_unmap_page(void *virt) in sys_mm_drv_unmap_page() argument 168 uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt)); in sys_mm_drv_unmap_page() 189 sys_cache_data_flush_range(virt, CONFIG_MM_DRV_PAGE_SIZE); in sys_mm_drv_unmap_page() [all …]
|
D | mm_drv_common.c | 47 bool sys_mm_drv_is_virt_region_mapped(void *virt, size_t size) in sys_mm_drv_is_virt_region_mapped() argument 53 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_is_virt_region_mapped() 64 bool sys_mm_drv_is_virt_region_unmapped(void *virt, size_t size) in sys_mm_drv_is_virt_region_unmapped() argument 70 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_is_virt_region_unmapped() 92 static int unmap_locked(void *virt, size_t size, bool is_reset) in unmap_locked() argument 98 uint8_t *va = (uint8_t *)virt + offset; in unmap_locked() 116 int sys_mm_drv_simple_map_region(void *virt, uintptr_t phys, in sys_mm_drv_simple_map_region() argument 124 !sys_mm_drv_is_virt_addr_aligned(virt) || in sys_mm_drv_simple_map_region() 133 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_simple_map_region() 146 (void)unmap_locked(virt, offset, true); in sys_mm_drv_simple_map_region() [all …]
|
D | mm_drv_intel_adsp_mtl_tlb.c | 171 int sys_mm_drv_map_page(void *virt, uintptr_t phys, uint32_t flags) in sys_mm_drv_map_page() argument 188 uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt)); in sys_mm_drv_map_page() 271 arch_mem_map(virt, va, CONFIG_MM_DRV_PAGE_SIZE, flags); in sys_mm_drv_map_page() 277 sys_cache_data_invd_range(virt, CONFIG_MM_DRV_PAGE_SIZE); in sys_mm_drv_map_page() 285 int sys_mm_drv_map_region(void *virt, uintptr_t phys, in sys_mm_drv_map_region() argument 295 !sys_mm_drv_is_virt_addr_aligned(virt) || in sys_mm_drv_map_region() 301 va = (__sparse_force uint8_t *)sys_cache_cached_ptr_get(virt); in sys_mm_drv_map_region() 326 int sys_mm_drv_map_array(void *virt, uintptr_t *phys, in sys_mm_drv_map_array() argument 329 void *va = (__sparse_force void *)sys_cache_cached_ptr_get(virt); in sys_mm_drv_map_array() 334 static int sys_mm_drv_unmap_page_wflush(void *virt, bool flush_data) in sys_mm_drv_unmap_page_wflush() argument [all …]
|
D | mm_drv_ti_rat.c | 98 int sys_mm_drv_page_phys_get(void *virt, uintptr_t *phys) in sys_mm_drv_page_phys_get() argument 100 if (virt == NULL) { in sys_mm_drv_page_phys_get() 103 uintptr_t pa = (uintptr_t) virt; in sys_mm_drv_page_phys_get()
|
/Zephyr-latest/include/zephyr/drivers/mm/ |
D | system_mm.h | 110 int sys_mm_drv_map_page(void *virt, uintptr_t phys, uint32_t flags); 133 int sys_mm_drv_map_region(void *virt, uintptr_t phys, 157 int sys_mm_drv_map_array(void *virt, uintptr_t *phys, 181 int sys_mm_drv_unmap_page(void *virt); 205 int sys_mm_drv_unmap_region(void *virt, size_t size); 349 int sys_mm_drv_update_page_flags(void *virt, uint32_t flags); 372 int sys_mm_drv_update_region_flags(void *virt, size_t size, uint32_t flags); 403 int sys_mm_drv_page_phys_get(void *virt, uintptr_t *phys);
|
/Zephyr-latest/include/zephyr/kernel/internal/ |
D | mm.h | 56 #define K_MEM_PHYS_ADDR(virt) ((virt) - K_MEM_VIRT_OFFSET) argument 97 static inline uintptr_t k_mem_phys_addr(void *virt) in k_mem_phys_addr() argument 99 uintptr_t addr = (uintptr_t)virt; in k_mem_phys_addr() 102 __ASSERT(sys_mm_is_virt_addr_in_range(virt), in k_mem_phys_addr() 103 "address %p not in permanent mappings", virt); in k_mem_phys_addr() 115 "address %p not in permanent mappings", virt); in k_mem_phys_addr() 254 void k_mem_unmap_phys_bare(uint8_t *virt, size_t size);
|
/Zephyr-latest/arch/arm64/core/ |
D | mmu.c | 306 static int set_mapping(uint64_t *top_table, uintptr_t virt, size_t size, in set_mapping() argument 319 pte = &table[XLAT_TABLE_VA_IDX(virt, level)]; in set_mapping() 340 level_size -= (virt & (level_size - 1)); in set_mapping() 347 if ((size < level_size) || (virt & (level_size - 1)) || in set_mapping() 366 virt += level_size; in set_mapping() 378 static void del_mapping(uint64_t *table, uintptr_t virt, size_t size, in del_mapping() argument 384 for ( ; size; virt += step, size -= step) { in del_mapping() 385 step = level_size - (virt & (level_size - 1)); in del_mapping() 389 pte = &table[XLAT_TABLE_VA_IDX(virt, level)]; in del_mapping() 402 del_mapping(subtable, virt, step, level + 1); in del_mapping() [all …]
|
/Zephyr-latest/lib/posix/options/ |
D | mmap.c | 51 void *virt; in mmap() local 67 virt = NULL; in mmap() 68 if (zvfs_ioctl_wrap(fd, ZFD_IOCTL_MMAP, addr, len, prot, flags, off, &virt) < 0) { in mmap() 72 return virt; in mmap() 82 virt = k_mem_map(len, zflags); in mmap() 85 virt = NULL; in mmap() 87 k_mem_map_phys_bare((uint8_t **)&virt, phys, (size_t)ROUND_UP(len, _page_size), in mmap() 91 if (virt == NULL) { in mmap() 96 return virt; in mmap()
|
D | shm.c | 109 void *virt; in shm_ftruncate() local 127 virt = k_mem_map(ROUND_UP(length, _page_size), K_MEM_PERM_RW); in shm_ftruncate() 129 virt = k_calloc(1, length); in shm_ftruncate() 132 if (virt == NULL) { in shm_ftruncate() 137 shm->mem = virt; in shm_ftruncate() 177 void **virt) in shm_mmap() argument 181 __ASSERT_NO_MSG(virt != NULL); in shm_mmap() 204 *virt = shm->mem + off; in shm_mmap()
|
/Zephyr-latest/tests/arch/arm64/arm64_mmu/src/ |
D | main.c | 90 uintptr_t virt = TEST_VIRT_ADDR; in ZTEST() local 94 int tables_used = mem_map_test(virt, phys, size); in ZTEST() 108 uintptr_t virt = TEST_VIRT_ADDR & ~(block_size - 1); in ZTEST() local 111 int tables_used = mem_map_test(virt, phys, block_size); in ZTEST() 126 uintptr_t virt = TEST_VIRT_ADDR & ~(block_size - 1); in ZTEST() local 130 int tables_used = mem_map_test(virt, phys, size); in ZTEST() 145 uintptr_t virt = (TEST_VIRT_ADDR & ~(block_size - 1)) - CONFIG_MMU_PAGE_SIZE; in ZTEST() local 149 int tables_used = mem_map_test(virt, phys, size); in ZTEST() 161 uintptr_t virt = TEST_VIRT_ADDR & ~(block_size - 1); in ZTEST() local 165 arch_mem_map((void *)virt, phys, size, K_MEM_ARM_NORMAL_NC); in ZTEST() [all …]
|
/Zephyr-latest/dts/riscv/qemu/ |
D | virt-riscv.dtsi | 9 * qemu-system-riscv32 -machine virt,dumpdtb=virt.dtb -smp 8 -m 256 10 * dtc virt.dtb > virt.dtsi 44 compatible = "qemu,riscv-virt", "riscv"; 58 compatible = "qemu,riscv-virt", "riscv"; 72 compatible = "qemu,riscv-virt", "riscv"; 86 compatible = "qemu,riscv-virt", "riscv"; 100 compatible = "qemu,riscv-virt", "riscv"; 114 compatible = "qemu,riscv-virt", "riscv"; 128 compatible = "qemu,riscv-virt", "riscv"; 142 compatible = "qemu,riscv-virt", "riscv";
|
/Zephyr-latest/arch/xtensa/core/ |
D | mem_manage.c | 27 __weak bool sys_mm_is_virt_addr_in_range(void *virt) in sys_mm_is_virt_addr_in_range() argument 30 uintptr_t addr = (uintptr_t)virt; in sys_mm_is_virt_addr_in_range() 32 uintptr_t cached = (uintptr_t)sys_cache_cached_ptr_get(virt); in sys_mm_is_virt_addr_in_range()
|
/Zephyr-latest/arch/x86/core/ |
D | x86_mmu.c | 287 static inline int get_index(void *virt, int level) in get_index() argument 289 return (((uintptr_t)virt >> paging_levels[level].shift) % in get_index() 294 static inline pentry_t *get_entry_ptr(pentry_t *ptables, void *virt, int level) in get_entry_ptr() argument 296 return &ptables[get_index(virt, level)]; in get_entry_ptr() 300 static inline pentry_t get_entry(pentry_t *ptables, void *virt, int level) in get_entry() argument 302 return ptables[get_index(virt, level)]; in get_entry() 368 pentry_t *ptables, void *virt) in pentry_get() argument 373 pentry_t entry = get_entry(table, virt, level); in pentry_get() 588 uintptr_t virt = in print_entries() local 593 if (phys == virt) { in print_entries() [all …]
|
/Zephyr-latest/arch/x86/include/ |
D | x86_mmu.h | 81 void z_x86_dump_mmu_flags(pentry_t *ptables, void *virt); 93 void *virt); 142 extern bool z_x86_kpti_is_access_ok(void *virt, pentry_t *ptables) in z_x86_kpti_is_access_ok() argument
|
/Zephyr-latest/boards/qemu/kvm_arm64/ |
D | qemu_kvm_arm64.dts | 10 #include <arm64/qemu/qemu-virt-arm64.dtsi> 14 compatible = "qemu,virt-arm64-kvm";
|
/Zephyr-latest/boards/qemu/cortex_a53/ |
D | board.cmake | 10 set(QEMU_MACH virt,gic-version=3) 12 set(QEMU_MACH virt,secure=on,gic-version=3)
|
/Zephyr-latest/subsys/net/l2/virtual/ |
D | virtual.c | 111 const struct virtual_interface_api *virt; in virtual_enable() local 115 virt = net_if_get_device(iface)->api; in virtual_enable() 116 if (!virt) { in virtual_enable() 147 if (virt->start) { in virtual_enable() 148 ret = virt->start(net_if_get_device(iface)); in virtual_enable() 154 if (virt->stop) { in virtual_enable() 155 ret = virt->stop(net_if_get_device(iface)); in virtual_enable()
|
/Zephyr-latest/include/zephyr/sys/ |
D | mem_manage.h | 57 bool sys_mm_is_virt_addr_in_range(void *virt);
|
/Zephyr-latest/dts/arm64/qemu/ |
D | qemu-virt-arm64.dtsi | 10 * qemu-system-aarch64 -machine virt,gic-version=host,accel=kvm 11 * -cpu cortex-a53 -nographic -machine dumpdtb=virt.dtb 13 * dtc -I dtb -O dts virt.dtb 31 compatible = "arm,cortex-virt"; 37 compatible = "arm,cortex-virt";
|
/Zephyr-latest/kernel/include/ |
D | kernel_arch_interface.h | 316 void arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags); 367 int arch_page_phys_get(void *virt, uintptr_t *phys);
|
/Zephyr-latest/boards/qemu/riscv32/ |
D | board.cmake | 9 -machine virt
|
D | qemu_riscv32.dts | 5 #include <qemu/virt-riscv32.dtsi>
|
D | qemu_riscv32_qemu_virt_riscv32_smp.dts | 5 #include <qemu/virt-riscv32.dtsi>
|
/Zephyr-latest/boards/qemu/riscv64/ |
D | board.cmake | 10 -machine virt
|