Home
last modified time | relevance | path

Searched full:phys (Results 1 – 25 of 127) sorted by relevance

123456

/Zephyr-Core-3.5.0/kernel/include/
Dmmu.h51 #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/
Dnru.c27 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/
Dmm_drv_intel_adsp_tlb.c68 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()
Dmm_drv_intel_adsp_mtl_tlb.c168 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 …]
Dmm_drv_common.c81 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/
Dmmu.c456 * @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/
Dcan.h42 * 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/
Dx86_mmu.h113 * 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/
Dqemu_kvm_arm64.conf7 # Hungry PCI requires phys addresses with more than 32 bits
/Zephyr-Core-3.5.0/dts/bindings/usb/
Dsnps,dwc2.yaml19 phys:
Dst,stm32-otgfs.yaml30 phys:
Dst,stm32-otghs.yaml30 phys:
Dst,stm32-usb.yaml30 phys:
/Zephyr-Core-3.5.0/dts/bindings/can/
Dcan-controller.yaml50 phys:
66 phys = <&transceiver0>;
/Zephyr-Core-3.5.0/samples/drivers/ipm/ipm_ivshmem/boards/
Dqemu_cortex_a53.conf7 # Hungry PCI requires phys addresses with more than 32 bits
/Zephyr-Core-3.5.0/boards/arm/arty/support/
Dopenocd_arty_a7_arm_designstart.cfg6 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
/Zephyr-Core-3.5.0/include/zephyr/drivers/mm/
Dsystem_mm.h76 * @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/
Dqemu_cortex_a53.conf7 # Hungry PCI requires phys addresses with more than 32 bits
Dqemu_kvm_arm64.conf7 # Hungry PCI requires phys addresses with more than 32 bits
/Zephyr-Core-3.5.0/tests/bluetooth/controller/ctrl_min_used_chans/src/
Dmain.c71 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/
Dx86_mmu.c583 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/
Dmmu.c617 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/
Dopenocd.cfg17 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
Dscobc-module1.cfg27 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
/Zephyr-Core-3.5.0/dts/arm/st/u5/
Dstm32u575.dtsi24 phys = <&otgfs_phy>;

123456