Home
last modified time | relevance | path

Searched refs:phys (Results 1 – 25 of 47) sorted by relevance

12

/Zephyr-Core-2.7.6/kernel/include/
Dmmu.h51 #define Z_BOOT_PHYS_TO_VIRT(phys) ((uint8_t *)(((uintptr_t)phys) + Z_VM_OFFSET)) argument
158 static inline void z_assert_phys_aligned(uintptr_t phys) in z_assert_phys_aligned() argument
160 __ASSERT(phys % CONFIG_MMU_PAGE_SIZE == 0U, in z_assert_phys_aligned()
161 "physical address 0x%lx is not page-aligned", phys); in z_assert_phys_aligned()
162 (void)phys; in z_assert_phys_aligned()
179 static inline bool z_is_page_frame(uintptr_t phys) in z_is_page_frame() argument
181 z_assert_phys_aligned(phys); in z_is_page_frame()
182 return (phys >= Z_PHYS_RAM_START) && (phys < Z_PHYS_RAM_END); in z_is_page_frame()
185 static inline struct z_page_frame *z_phys_to_page_frame(uintptr_t phys) in z_phys_to_page_frame() argument
187 __ASSERT(z_is_page_frame(phys), in z_phys_to_page_frame()
[all …]
Dkernel_arch_interface.h285 void arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags);
336 int arch_page_phys_get(void *virt, uintptr_t *phys);
391 void arch_mem_page_in(void *addr, uintptr_t phys);
407 void arch_mem_scratch(uintptr_t phys);
/Zephyr-Core-2.7.6/include/sys/
Dmem_manage.h68 #define Z_MEM_VIRT_ADDR(phys) ((phys) + Z_MEM_VM_OFFSET) argument
150 static inline void *z_mem_virt_addr(uintptr_t phys) in z_mem_virt_addr() argument
152 __ASSERT((phys >= CONFIG_SRAM_BASE_ADDRESS) && in z_mem_virt_addr()
153 (phys < (CONFIG_SRAM_BASE_ADDRESS + in z_mem_virt_addr()
155 "physical address 0x%lx not in RAM", (unsigned long)phys); in z_mem_virt_addr()
161 return (void *)Z_MEM_VIRT_ADDR(phys); in z_mem_virt_addr()
209 void z_phys_map(uint8_t **virt_ptr, uintptr_t phys, size_t size,
/Zephyr-Core-2.7.6/kernel/
Dmmu.c382 static int virt_to_page_frame(void *virt, uintptr_t *phys) in virt_to_page_frame() argument
392 *phys = z_page_frame_to_phys(pf); in virt_to_page_frame()
422 uintptr_t phys; in map_anon_page() local
450 phys = z_page_frame_to_phys(pf); in map_anon_page()
451 arch_mem_map(addr, phys, CONFIG_MMU_PAGE_SIZE, flags | K_MEM_CACHE_WB); in map_anon_page()
458 LOG_DBG("memory mapping anon page %p -> 0x%lx", addr, phys); in map_anon_page()
530 uintptr_t phys; in k_mem_unmap() local
570 ret = arch_page_phys_get(pos, &phys); in k_mem_unmap()
580 __ASSERT(z_is_page_frame(phys), in k_mem_unmap()
581 "%s: 0x%lx is not a page frame", __func__, phys); in k_mem_unmap()
[all …]
/Zephyr-Core-2.7.6/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-2.7.6/arch/x86/include/
Dx86_mmu.h158 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-2.7.6/arch/x86/core/
Dx86_mmu.c540 uintptr_t phys = get_entry_phys(entry, level); in print_entries() local
546 if (phys == virt) { in print_entries()
549 } else if (phys + Z_MEM_VM_OFFSET == virt) { in print_entries()
570 phys = get_entry_phys(entry, level); in print_entries()
571 if (phys == virt) { in print_entries()
1017 static void range_map_ptables(pentry_t *ptables, void *virt, uintptr_t phys, in range_map_ptables() argument
1023 assert_addr_aligned(phys); in range_map_ptables()
1041 entry_val = (pentry_t)(phys + offset) | entry_flags; in range_map_ptables()
1072 static void range_map(void *virt, uintptr_t phys, size_t size, in range_map() argument
1076 PRI_ENTRY " opt 0x%x", __func__, (void *)phys, virt, size, in range_map()
[all …]
/Zephyr-Core-2.7.6/arch/arm64/core/
Dmmu.c578 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in __add_map() argument
584 name, virt, phys, size, desc); in __add_map()
585 __ASSERT(((virt | phys | size) & (CONFIG_MMU_PAGE_SIZE - 1)) == 0, in __add_map()
587 desc |= phys; in __add_map()
592 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in add_map() argument
598 ret = __add_map(ptables, name, phys, virt, size, attrs); in add_map()
840 static int __arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags) in __arch_mem_map() argument
883 return add_map(ptables, "generic", phys, (uintptr_t)virt, size, entry_flags); in __arch_mem_map()
886 void arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags) in arch_mem_map() argument
888 int ret = __arch_mem_map(virt, phys, size, flags); in arch_mem_map()
[all …]
/Zephyr-Core-2.7.6/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-2.7.6/dts/arm/st/l4/
Dstm32l475.dtsi19 phys = <&otgfs_phy>;
Dstm32l412.dtsi19 phys = <&usb_fs_phy>;
Dstm32l432.dtsi65 phys = <&usb_fs_phy>;
/Zephyr-Core-2.7.6/dts/arm/st/l0/
Dstm32l053.dtsi19 phys = <&otgfs_phy>;
Dstm32l072.dtsi23 phys = <&otgfs_phy>;
/Zephyr-Core-2.7.6/dts/arm/st/f7/
Dstm32f723.dtsi31 phys = <&usbphyc>;
/Zephyr-Core-2.7.6/dts/arm/st/f0/
Dstm32f070.dtsi35 phys = <&usb_fs_phy>;
Dstm32f072.dtsi65 phys = <&usb_fs_phy>;
/Zephyr-Core-2.7.6/boards/riscv/hifive_unleashed/support/
Dopenocd_hifive_unleashed.cfg20 $_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
/Zephyr-Core-2.7.6/boards/riscv/hifive_unmatched/support/
Dopenocd_hifive_unleashed.cfg20 $_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
/Zephyr-Core-2.7.6/boards/arm/v2m_beetle/support/
Dopenocd.cfg33 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x1000 -work-area-backup 0
/Zephyr-Core-2.7.6/dts/arm/st/f1/
Dstm32f103X8.dtsi47 phys = <&usb_fs_phy>;
/Zephyr-Core-2.7.6/dts/arm/st/h7/
Dstm32h743.dtsi31 phys = <&otghs_fs_phy>;
/Zephyr-Core-2.7.6/dts/arm/st/g0/
Dstm32g0b0.dtsi105 phys = <&usb_fs_phy>;
Dstm32g0b1.dtsi116 phys = <&usb_fs_phy>;
/Zephyr-Core-2.7.6/boards/riscv/rv32m1_vega/support/
Dopenocd_rv32m1_vega_zero_riscy.cfg41 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0

12