Home
last modified time | relevance | path

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

1234567

/Zephyr-latest/boards/sifive/hifive_unleashed/support/
Dopenocd_hifive_unleashed.cfg20 $_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
21 $_TARGETNAME.1 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
22 $_TARGETNAME.2 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
23 $_TARGETNAME.3 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
24 $_TARGETNAME.4 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
/Zephyr-latest/boards/sifive/hifive_unmatched/support/
Dopenocd_hifive_unmatched.cfg20 $_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
21 $_TARGETNAME.1 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
22 $_TARGETNAME.2 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
23 $_TARGETNAME.3 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
24 $_TARGETNAME.4 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 1
/Zephyr-latest/arch/xtensa/core/
Dmem_manage.c13 __weak bool sys_mm_is_phys_addr_in_range(uintptr_t phys) in sys_mm_is_phys_addr_in_range() argument
16 uintptr_t cached = (uintptr_t)sys_cache_cached_ptr_get((void *)phys); in sys_mm_is_phys_addr_in_range()
18 valid = ((phys >= CONFIG_SRAM_BASE_ADDRESS) && in sys_mm_is_phys_addr_in_range()
19 (phys < (CONFIG_SRAM_BASE_ADDRESS + (CONFIG_SRAM_SIZE * 1024UL)))); in sys_mm_is_phys_addr_in_range()
/Zephyr-latest/include/zephyr/kernel/internal/
Dmm.h63 * @param phys Physical address
67 #define K_MEM_VIRT_ADDR(phys) ((phys) + K_MEM_VIRT_OFFSET) argument
146 * @param phys Physical address
150 static inline void *k_mem_virt_addr(uintptr_t phys) in k_mem_virt_addr() argument
153 __ASSERT(sys_mm_is_phys_addr_in_range(phys), in k_mem_virt_addr()
154 "physical address 0x%lx not in RAM", (unsigned long)phys); in k_mem_virt_addr()
158 (phys >= CONFIG_SRAM_BASE_ADDRESS) && in k_mem_virt_addr()
161 (phys < (CONFIG_SRAM_BASE_ADDRESS + in k_mem_virt_addr()
166 "physical address 0x%lx not in RAM", (unsigned long)phys); in k_mem_virt_addr()
173 return (void *)K_MEM_VIRT_ADDR(phys); in k_mem_virt_addr()
[all …]
/Zephyr-latest/tests/arch/arm64/arm64_mmu/src/
Dmain.c91 uintptr_t phys = TEST_PHYS_ADDR; in ZTEST() local
94 int tables_used = mem_map_test(virt, phys, size); in ZTEST()
109 uintptr_t phys = TEST_PHYS_ADDR & ~(block_size - 1); in ZTEST() local
111 int tables_used = mem_map_test(virt, phys, block_size); in ZTEST()
127 uintptr_t phys = TEST_PHYS_ADDR & ~(block_size - 1); in ZTEST() local
130 int tables_used = mem_map_test(virt, phys, size); in ZTEST()
146 uintptr_t phys = (TEST_PHYS_ADDR & ~(block_size - 1)) - CONFIG_MMU_PAGE_SIZE; in ZTEST() local
149 int tables_used = mem_map_test(virt, phys, size); in ZTEST()
162 uintptr_t phys = TEST_PHYS_ADDR & ~(block_size - 1); in ZTEST() local
165 arch_mem_map((void *)virt, phys, size, K_MEM_ARM_NORMAL_NC); in ZTEST()
/Zephyr-latest/kernel/include/
Dmmu.h74 * @param phys Physical address.
78 #define K_MEM_BOOT_PHYS_TO_VIRT(phys) ((uint8_t *)(((uintptr_t)(phys)) + K_MEM_VM_OFFSET)) argument
254 static inline void k_mem_assert_phys_aligned(uintptr_t phys) in k_mem_assert_phys_aligned() argument
256 __ASSERT(phys % CONFIG_MMU_PAGE_SIZE == 0U, in k_mem_assert_phys_aligned()
257 "physical address 0x%lx is not page-aligned", phys); in k_mem_assert_phys_aligned()
258 (void)phys; in k_mem_assert_phys_aligned()
277 static inline bool k_mem_is_page_frame(uintptr_t phys) in k_mem_is_page_frame() argument
279 k_mem_assert_phys_aligned(phys); in k_mem_is_page_frame()
280 return IN_RANGE(phys, (uintptr_t)K_MEM_PHYS_RAM_START, in k_mem_is_page_frame()
284 static inline struct k_mem_page_frame *k_mem_phys_to_page_frame(uintptr_t phys) in k_mem_phys_to_page_frame() argument
[all …]
/Zephyr-latest/lib/posix/options/
Dmmap.c52 uintptr_t phys; in mmap() local
86 phys = POINTER_TO_UINT(addr); in mmap()
87 k_mem_map_phys_bare((uint8_t **)&virt, phys, (size_t)ROUND_UP(len, _page_size), in mmap()
121 uintptr_t phys = 0; in munmap() local
123 if (arch_page_phys_get(addr, &phys) == 0) { in munmap()
/Zephyr-latest/include/zephyr/devicetree/
Dcan.h43 * phys = <&transceiver0>;
75 COND_CODE_1(DT_NODE_HAS_PROP(node_id, phys), \
76 MAX(DT_PROP_OR(DT_PHANDLE(node_id, phys), min_bitrate, 0), min), \
96 * phys = <&transceiver0>;
118 COND_CODE_1(DT_NODE_HAS_PROP(node_id, phys), \
119 MIN(DT_PROP(DT_PHANDLE(node_id, phys), max_bitrate), max), \
/Zephyr-latest/drivers/mm/
Dmm_drv_intel_adsp_tlb.c67 int sys_mm_drv_map_page(void *virt, uintptr_t phys, uint32_t flags) in sys_mm_drv_map_page() argument
82 uintptr_t pa = POINTER_TO_UINT(sys_cache_cached_ptr_get(UINT_TO_POINTER(phys))); 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
149 return sys_mm_drv_simple_map_region(va, phys, size, flags); 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
157 return sys_mm_drv_simple_map_array(va, phys, cnt, flags); in sys_mm_drv_map_array()
209 int sys_mm_drv_page_phys_get(void *virt, uintptr_t *phys) in sys_mm_drv_page_phys_get() argument
235 if (phys != NULL) { in sys_mm_drv_page_phys_get()
236 *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.c171 int sys_mm_drv_map_page(void *virt, uintptr_t phys, uint32_t flags) in sys_mm_drv_map_page() argument
187 uintptr_t pa = POINTER_TO_UINT(sys_cache_cached_ptr_get(UINT_TO_POINTER(phys))); in sys_mm_drv_map_page()
209 if (UINT_TO_POINTER(phys) == NULL) { in sys_mm_drv_map_page()
214 "unable to assign free phys page %d\n", ret); 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
294 CHECKIF(!sys_mm_drv_is_addr_aligned(phys) || in sys_mm_drv_map_region()
302 pa = phys; in sys_mm_drv_map_region()
315 if (phys != 0) { 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
331 return sys_mm_drv_simple_map_array(va, phys, cnt, flags); in sys_mm_drv_map_array()
[all …]
/Zephyr-latest/kernel/
Dmmu.c473 * @param[out] phys Physical address mapped to the input virtual address
479 static int virt_to_page_frame(void *virt, uintptr_t *phys) in virt_to_page_frame() argument
489 if (phys != NULL) { in virt_to_page_frame()
490 *phys = k_mem_page_frame_to_phys(pf); in virt_to_page_frame()
523 uintptr_t phys; in map_anon_page() local
551 phys = k_mem_page_frame_to_phys(pf); in map_anon_page()
552 arch_mem_map(addr, phys, CONFIG_MMU_PAGE_SIZE, flags); in map_anon_page()
564 LOG_DBG("memory mapping anon page %p -> 0x%lx", addr, phys); in map_anon_page()
569 void *k_mem_map_phys_guard(uintptr_t phys, size_t size, uint32_t flags, bool is_anon) in k_mem_map_phys_guard() argument
662 arch_mem_map(dst, phys, size, flags); in k_mem_map_phys_guard()
[all …]
/Zephyr-latest/dts/bindings/mdio/
Dmdio-controller.yaml32 on what the PHYs connected to the mdio bus can support. Default of 2.5MHz
33 is the standard and should supported by all PHYs.
/Zephyr-latest/subsys/demand_paging/eviction/
Dnru.c29 uintptr_t phys; in nru_periodic_update() local
33 K_MEM_PAGE_FRAME_FOREACH(phys, pf) { in nru_periodic_update()
131 void k_mem_paging_eviction_accessed(uintptr_t phys) in k_mem_paging_eviction_accessed() argument
133 ARG_UNUSED(phys); in k_mem_paging_eviction_accessed()
/Zephyr-latest/arch/arm64/core/
Dmmu.c739 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in __add_map() argument
744 MMU_DEBUG("mmap [%s]: virt %lx phys %lx size %lx attr %llx %s overwrite\n", in __add_map()
745 name, virt, phys, size, desc, in __add_map()
747 __ASSERT(((virt | phys | size) & (CONFIG_MMU_PAGE_SIZE - 1)) == 0, in __add_map()
749 desc |= phys; in __add_map()
754 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in add_map() argument
760 ret = __add_map(ptables, name, phys, virt, size, attrs); in add_map()
1045 static int __arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags) in __arch_mem_map() argument
1109 return add_map(ptables, "generic", phys, (uintptr_t)virt, size, entry_flags); in __arch_mem_map()
1112 void arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags) in arch_mem_map() argument
[all …]
/Zephyr-latest/include/zephyr/sys/
Dmem_manage.h34 * @param phys Physical address to be checked.
38 bool sys_mm_is_phys_addr_in_range(uintptr_t phys);
/Zephyr-latest/dts/bindings/can/
Dcan-controller.yaml27 phys:
43 phys = <&transceiver0>;
/Zephyr-latest/tests/drivers/virtualization/ivshmem/plain/boards/
Dqemu_kvm_arm64.conf7 # Hungry PCI requires phys addresses with more than 32 bits
/Zephyr-latest/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-latest/dts/bindings/usb/renesas/
Drenesas,ra-usb.yaml14 phys:
/Zephyr-latest/samples/drivers/ipm/ipm_ivshmem/boards/
Dqemu_cortex_a53.conf7 # Hungry PCI requires phys addresses with more than 32 bits
/Zephyr-latest/boards/digilent/arty_a7/support/
Dopenocd_arty_a7_arm_designstart.cfg6 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
/Zephyr-latest/drivers/mdio/
DKconfig.nxp_enet11 if all ethernet PHYs being used with ENET are not managed by MDIO bus.
/Zephyr-latest/boards/wch/ch32v003evt/support/
Dopenocd.cfg10 $_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1
/Zephyr-latest/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

1234567