/Zephyr-Core-3.5.0/kernel/include/ |
D | mmu.h | 51 #define Z_BOOT_PHYS_TO_VIRT(phys) ((uint8_t *)(((uintptr_t)phys) + Z_VM_OFFSET)) argument 165 static inline void z_assert_phys_aligned(uintptr_t phys) in z_assert_phys_aligned() argument 167 __ASSERT(phys % CONFIG_MMU_PAGE_SIZE == 0U, in z_assert_phys_aligned() 168 "physical address 0x%lx is not page-aligned", phys); in z_assert_phys_aligned() 169 (void)phys; in z_assert_phys_aligned() 186 static inline bool z_is_page_frame(uintptr_t phys) in z_is_page_frame() argument 188 z_assert_phys_aligned(phys); in z_is_page_frame() 189 return (phys >= Z_PHYS_RAM_START) && (phys < Z_PHYS_RAM_END); in z_is_page_frame() 192 static inline struct z_page_frame *z_phys_to_page_frame(uintptr_t phys) in z_phys_to_page_frame() argument 194 __ASSERT(z_is_page_frame(phys), in z_phys_to_page_frame() [all …]
|
/Zephyr-Core-3.5.0/subsys/demand_paging/eviction/ |
D | nru.c | 27 uintptr_t phys; in nru_periodic_update() local 31 Z_PAGE_FRAME_FOREACH(phys, pf) { in nru_periodic_update() 50 uintptr_t flags, phys; in k_mem_paging_eviction_select() local 52 Z_PAGE_FRAME_FOREACH(phys, pf) { in k_mem_paging_eviction_select()
|
/Zephyr-Core-3.5.0/drivers/mm/ |
D | mm_drv_intel_adsp_tlb.c | 68 int sys_mm_drv_map_page(void *virt, uintptr_t phys, uint32_t flags) in sys_mm_drv_map_page() argument 83 uintptr_t pa = POINTER_TO_UINT(z_soc_cached_ptr(UINT_TO_POINTER(phys))); in sys_mm_drv_map_page() 145 int sys_mm_drv_map_region(void *virt, uintptr_t phys, in sys_mm_drv_map_region() argument 150 return sys_mm_drv_simple_map_region(va, phys, size, flags); in sys_mm_drv_map_region() 153 int sys_mm_drv_map_array(void *virt, uintptr_t *phys, in sys_mm_drv_map_array() argument 158 return sys_mm_drv_simple_map_array(va, phys, cnt, flags); in sys_mm_drv_map_array() 210 int sys_mm_drv_page_phys_get(void *virt, uintptr_t *phys) in sys_mm_drv_page_phys_get() argument 236 if (phys != NULL) { in sys_mm_drv_page_phys_get() 237 *phys = (ent & TLB_PADDR_MASK) * CONFIG_MM_DRV_PAGE_SIZE + L2_SRAM_BASE; in sys_mm_drv_page_phys_get()
|
D | mm_drv_intel_adsp_mtl_tlb.c | 168 int sys_mm_drv_map_page(void *virt, uintptr_t phys, uint32_t flags) in sys_mm_drv_map_page() argument 184 uintptr_t pa = POINTER_TO_UINT(z_soc_cached_ptr(UINT_TO_POINTER(phys))); in sys_mm_drv_map_page() 208 if (UINT_TO_POINTER(phys) == NULL) { in sys_mm_drv_map_page() 213 "unable to assign free phys page %d\n", ret); in sys_mm_drv_map_page() 281 int sys_mm_drv_map_region(void *virt, uintptr_t phys, in sys_mm_drv_map_region() argument 290 CHECKIF(!sys_mm_drv_is_addr_aligned(phys) || in sys_mm_drv_map_region() 298 pa = phys; in sys_mm_drv_map_region() 311 if (phys != 0) { in sys_mm_drv_map_region() 322 int sys_mm_drv_map_array(void *virt, uintptr_t *phys, in sys_mm_drv_map_array() argument 327 return sys_mm_drv_simple_map_array(va, phys, cnt, flags); in sys_mm_drv_map_array() [all …]
|
D | mm_drv_common.c | 81 int sys_mm_drv_simple_map_region(void *virt, uintptr_t phys, in sys_mm_drv_simple_map_region() argument 88 CHECKIF(!sys_mm_drv_is_addr_aligned(phys) || in sys_mm_drv_simple_map_region() 99 uintptr_t pa = phys + offset; in sys_mm_drv_simple_map_region() 119 int sys_mm_drv_simple_map_array(void *virt, uintptr_t *phys, in sys_mm_drv_simple_map_array() argument 126 CHECKIF(!sys_mm_drv_is_addr_array_aligned(phys, cnt) || in sys_mm_drv_simple_map_array() 139 int ret2 = sys_mm_drv_map_page(va, phys[idx], flags); in sys_mm_drv_simple_map_array() 142 __ASSERT(false, "cannot map 0x%lx to %p\n", phys[idx], va); in sys_mm_drv_simple_map_array()
|
/Zephyr-Core-3.5.0/kernel/ |
D | mmu.c | 456 * @param[out] phys Physical address mapped to the input virtual address 462 static int virt_to_page_frame(void *virt, uintptr_t *phys) in virt_to_page_frame() argument 472 *phys = z_page_frame_to_phys(pf); in virt_to_page_frame() 504 uintptr_t phys; in map_anon_page() local 532 phys = z_page_frame_to_phys(pf); in map_anon_page() 533 arch_mem_map(addr, phys, CONFIG_MMU_PAGE_SIZE, flags | K_MEM_CACHE_WB); in map_anon_page() 540 LOG_DBG("memory mapping anon page %p -> 0x%lx", addr, phys); in map_anon_page() 612 uintptr_t phys; in k_mem_unmap() local 652 ret = arch_page_phys_get(pos, &phys); in k_mem_unmap() 662 __ASSERT(z_is_page_frame(phys), in k_mem_unmap() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/devicetree/ |
D | can.h | 42 * phys = <&transceiver0>; 64 COND_CODE_1(DT_NODE_HAS_PROP(node_id, phys), \ 65 MIN(DT_PROP(DT_PHANDLE(node_id, phys), max_bitrate), max), \
|
/Zephyr-Core-3.5.0/arch/x86/include/ |
D | x86_mmu.h | 113 * yellow - Identity mapping (virt = phys) 114 * green - Fixed virtual memory mapping (virt = phys + constant) 158 static inline void z_x86_cr3_set(uintptr_t phys) in z_x86_kpti_is_access_ok() 160 __ASSERT((phys & PTABLES_ALIGN) == 0U, "unaligned page tables"); in z_x86_kpti_is_access_ok() 162 __asm__ volatile("movq %0, %%cr3\n\t" : : "r" (phys) : "memory"); in z_x86_kpti_is_access_ok() 164 __asm__ volatile("movl %0, %%cr3\n\t" : : "r" (phys) : "memory"); in z_x86_kpti_is_access_ok()
|
/Zephyr-Core-3.5.0/tests/drivers/virtualization/ivshmem/plain/boards/ |
D | qemu_kvm_arm64.conf | 7 # Hungry PCI requires phys addresses with more than 32 bits
|
/Zephyr-Core-3.5.0/dts/bindings/usb/ |
D | snps,dwc2.yaml | 19 phys:
|
D | st,stm32-otgfs.yaml | 30 phys:
|
D | st,stm32-otghs.yaml | 30 phys:
|
D | st,stm32-usb.yaml | 30 phys:
|
/Zephyr-Core-3.5.0/dts/bindings/can/ |
D | can-controller.yaml | 50 phys: 66 phys = <&transceiver0>;
|
/Zephyr-Core-3.5.0/samples/drivers/ipm/ipm_ivshmem/boards/ |
D | qemu_cortex_a53.conf | 7 # Hungry PCI requires phys addresses with more than 32 bits
|
/Zephyr-Core-3.5.0/boards/arm/arty/support/ |
D | openocd_arty_a7_arm_designstart.cfg | 6 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|
/Zephyr-Core-3.5.0/include/zephyr/drivers/mm/ |
D | system_mm.h | 76 * @param phys Page-aligned source physical address to map 83 int sys_mm_drv_map_page(void *virt, uintptr_t phys, uint32_t flags); 98 * @param phys Page-aligned source physical address to map 106 int sys_mm_drv_map_region(void *virt, uintptr_t phys, 122 * @param phys Array of pge-aligned source physical address to map 130 int sys_mm_drv_map_array(void *virt, uintptr_t *phys, 190 * @param[out] phys Mapped physical address (can be NULL if only checking 197 int sys_mm_drv_page_phys_get(void *virt, uintptr_t *phys);
|
/Zephyr-Core-3.5.0/samples/drivers/virtualization/ivshmem/doorbell/boards/ |
D | qemu_cortex_a53.conf | 7 # Hungry PCI requires phys addresses with more than 32 bits
|
D | qemu_kvm_arm64.conf | 7 # Hungry PCI requires phys addresses with more than 32 bits
|
/Zephyr-Core-3.5.0/tests/bluetooth/controller/ctrl_min_used_chans/src/ |
D | main.c | 71 struct pdu_data_llctrl_min_used_chans_ind local_muc_ind = { .phys = 1, in ZTEST() 74 struct pdu_data_llctrl_min_used_chans_ind remote_muc_ind = { .phys = 1, in ZTEST() 133 struct pdu_data_llctrl_min_used_chans_ind remote_muc_ind = { .phys = 1, in ZTEST()
|
/Zephyr-Core-3.5.0/arch/x86/core/ |
D | x86_mmu.c | 583 uintptr_t phys = get_entry_phys(entry, level); in print_entries() local 589 if (phys == virt) { in print_entries() 592 } else if (phys + Z_MEM_VM_OFFSET == virt) { in print_entries() 613 phys = get_entry_phys(entry, level); in print_entries() 614 if (phys == virt) { in print_entries() 1072 * @param phys Base page-aligned physical memory address for the region. 1088 static int range_map_ptables(pentry_t *ptables, void *virt, uintptr_t phys, in range_map_ptables() argument 1095 CHECKIF(!is_addr_aligned(phys) || !is_size_aligned(size)) { in range_map_ptables() 1118 entry_val = (pentry_t)(phys + offset) | entry_flags; in range_map_ptables() 1136 * The physical region noted from phys to phys + size will be mapped to [all …]
|
/Zephyr-Core-3.5.0/arch/arm64/core/ |
D | mmu.c | 617 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in __add_map() argument 622 MMU_DEBUG("mmap [%s]: virt %lx phys %lx size %lx attr %llx %s overwrite\n", in __add_map() 623 name, virt, phys, size, desc, in __add_map() 625 __ASSERT(((virt | phys | size) & (CONFIG_MMU_PAGE_SIZE - 1)) == 0, in __add_map() 627 desc |= phys; in __add_map() 632 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in add_map() argument 638 ret = __add_map(ptables, name, phys, virt, size, attrs); in add_map() 910 static int __arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags) in __arch_mem_map() argument 970 return add_map(ptables, "generic", phys, (uintptr_t)virt, size, entry_flags); in __arch_mem_map() 973 void arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags) in arch_mem_map() argument [all …]
|
/Zephyr-Core-3.5.0/boards/arm/scobc_module1/support/ |
D | openocd.cfg | 17 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|
D | scobc-module1.cfg | 27 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|
/Zephyr-Core-3.5.0/dts/arm/st/u5/ |
D | stm32u575.dtsi | 24 phys = <&otgfs_phy>;
|