Home
last modified time | relevance | path

Searched refs:mmu_id (Results 1 – 9 of 9) sorted by relevance

/hal_espressif-3.7.0/components/hal/esp32c2/include/hal/
Dmmu_ll.h62 static inline mmu_page_size_t mmu_ll_get_page_size(uint32_t mmu_id) in mmu_ll_get_page_size() argument
64 (void)mmu_id; in mmu_ll_get_page_size()
75 static inline void mmu_ll_set_page_size(uint32_t mmu_id, uint32_t size) in mmu_ll_set_page_size() argument
93 static inline bool mmu_ll_check_valid_ext_vaddr_region(uint32_t mmu_id, uint32_t vaddr_start, uint3… in mmu_ll_check_valid_ext_vaddr_region() argument
95 (void)mmu_id; in mmu_ll_check_valid_ext_vaddr_region()
120 static inline bool mmu_ll_check_valid_paddr_region(uint32_t mmu_id, uint32_t paddr_start, uint32_t … in mmu_ll_check_valid_paddr_region() argument
122 (void)mmu_id; in mmu_ll_check_valid_paddr_region()
123 return (paddr_start < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
124 (len < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
125 ((paddr_start + len - 1) < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)); in mmu_ll_check_valid_paddr_region()
[all …]
/hal_espressif-3.7.0/components/hal/esp32s3/include/hal/
Dmmu_ll.h62 static inline mmu_page_size_t mmu_ll_get_page_size(uint32_t mmu_id) in mmu_ll_get_page_size() argument
65 (void)mmu_id; in mmu_ll_get_page_size()
77 static inline void mmu_ll_set_page_size(uint32_t mmu_id, uint32_t size) in mmu_ll_set_page_size() argument
94 static inline bool mmu_ll_check_valid_ext_vaddr_region(uint32_t mmu_id, uint32_t vaddr_start, uint3… in mmu_ll_check_valid_ext_vaddr_region() argument
96 (void)mmu_id; in mmu_ll_check_valid_ext_vaddr_region()
121 static inline bool mmu_ll_check_valid_paddr_region(uint32_t mmu_id, uint32_t paddr_start, uint32_t … in mmu_ll_check_valid_paddr_region() argument
123 (void)mmu_id; in mmu_ll_check_valid_paddr_region()
124 return (paddr_start < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
125 (len < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
126 ((paddr_start + len - 1) < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)); in mmu_ll_check_valid_paddr_region()
[all …]
/hal_espressif-3.7.0/components/hal/esp32c3/include/hal/
Dmmu_ll.h62 static inline mmu_page_size_t mmu_ll_get_page_size(uint32_t mmu_id) in mmu_ll_get_page_size() argument
65 (void)mmu_id; in mmu_ll_get_page_size()
77 static inline void mmu_ll_set_page_size(uint32_t mmu_id, uint32_t size) in mmu_ll_set_page_size() argument
94 static inline bool mmu_ll_check_valid_ext_vaddr_region(uint32_t mmu_id, uint32_t vaddr_start, uint3… in mmu_ll_check_valid_ext_vaddr_region() argument
96 (void)mmu_id; in mmu_ll_check_valid_ext_vaddr_region()
121 static inline bool mmu_ll_check_valid_paddr_region(uint32_t mmu_id, uint32_t paddr_start, uint32_t … in mmu_ll_check_valid_paddr_region() argument
123 (void)mmu_id; in mmu_ll_check_valid_paddr_region()
124 return (paddr_start < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
125 (len < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
126 ((paddr_start + len - 1) < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)); in mmu_ll_check_valid_paddr_region()
[all …]
/hal_espressif-3.7.0/components/hal/
Dmmu_hal.c35 uint32_t mmu_hal_pages_to_bytes(uint32_t mmu_id, uint32_t page_num) in mmu_hal_pages_to_bytes() argument
37 mmu_page_size_t page_size = mmu_ll_get_page_size(mmu_id); in mmu_hal_pages_to_bytes()
55 uint32_t mmu_hal_bytes_to_pages(uint32_t mmu_id, uint32_t bytes) in mmu_hal_bytes_to_pages() argument
57 mmu_page_size_t page_size = mmu_ll_get_page_size(mmu_id); in mmu_hal_bytes_to_pages()
75 void mmu_hal_map_region(uint32_t mmu_id, mmu_target_t mem_type, uint32_t vaddr, uint32_t paddr, uin… in mmu_hal_map_region() argument
77 uint32_t page_size_in_bytes = mmu_hal_pages_to_bytes(mmu_id, 1); in mmu_hal_map_region()
80 HAL_ASSERT(mmu_ll_check_valid_paddr_region(mmu_id, paddr, len)); in mmu_hal_map_region()
81 …HAL_ASSERT(mmu_hal_check_valid_ext_vaddr_region(mmu_id, vaddr, len, MMU_VADDR_DATA | MMU_VADDR_INS… in mmu_hal_map_region()
87 *out_len = mmu_hal_pages_to_bytes(mmu_id, page_num); in mmu_hal_map_region()
88 mmu_val = mmu_ll_format_paddr(mmu_id, paddr, mem_type); in mmu_hal_map_region()
[all …]
/hal_espressif-3.7.0/components/hal/esp32h2/include/hal/
Dmmu_ll.h67 static inline mmu_page_size_t mmu_ll_get_page_size(uint32_t mmu_id) in mmu_ll_get_page_size() argument
69 (void)mmu_id; in mmu_ll_get_page_size()
83 static inline void mmu_ll_set_page_size(uint32_t mmu_id, uint32_t size) in mmu_ll_set_page_size() argument
104 static inline bool mmu_ll_check_valid_ext_vaddr_region(uint32_t mmu_id, uint32_t vaddr_start, uint3… in mmu_ll_check_valid_ext_vaddr_region() argument
106 (void)mmu_id; in mmu_ll_check_valid_ext_vaddr_region()
123 static inline bool mmu_ll_check_valid_paddr_region(uint32_t mmu_id, uint32_t paddr_start, uint32_t … in mmu_ll_check_valid_paddr_region() argument
125 (void)mmu_id; in mmu_ll_check_valid_paddr_region()
126 return (paddr_start < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
127 (len < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
128 ((paddr_start + len - 1) < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)); in mmu_ll_check_valid_paddr_region()
[all …]
/hal_espressif-3.7.0/components/hal/esp32c6/include/hal/
Dmmu_ll.h64 static inline mmu_page_size_t mmu_ll_get_page_size(uint32_t mmu_id) in mmu_ll_get_page_size() argument
66 (void)mmu_id; in mmu_ll_get_page_size()
80 static inline void mmu_ll_set_page_size(uint32_t mmu_id, uint32_t size) in mmu_ll_set_page_size() argument
101 static inline bool mmu_ll_check_valid_ext_vaddr_region(uint32_t mmu_id, uint32_t vaddr_start, uint3… in mmu_ll_check_valid_ext_vaddr_region() argument
103 (void)mmu_id; in mmu_ll_check_valid_ext_vaddr_region()
119 static inline bool mmu_ll_check_valid_paddr_region(uint32_t mmu_id, uint32_t paddr_start, uint32_t … in mmu_ll_check_valid_paddr_region() argument
121 (void)mmu_id; in mmu_ll_check_valid_paddr_region()
122 return (paddr_start < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
123 (len < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
124 ((paddr_start + len - 1) < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)); in mmu_ll_check_valid_paddr_region()
[all …]
/hal_espressif-3.7.0/components/hal/esp32s2/include/hal/
Dmmu_ll.h62 static inline mmu_page_size_t mmu_ll_get_page_size(uint32_t mmu_id) in mmu_ll_get_page_size() argument
65 (void)mmu_id; in mmu_ll_get_page_size()
77 static inline void mmu_ll_set_page_size(uint32_t mmu_id, uint32_t size) in mmu_ll_set_page_size() argument
94 static inline bool mmu_ll_check_valid_ext_vaddr_region(uint32_t mmu_id, uint32_t vaddr_start, uint3… in mmu_ll_check_valid_ext_vaddr_region() argument
96 (void)mmu_id; in mmu_ll_check_valid_ext_vaddr_region()
121 static inline bool mmu_ll_check_valid_paddr_region(uint32_t mmu_id, uint32_t paddr_start, uint32_t … in mmu_ll_check_valid_paddr_region() argument
123 (void)mmu_id; in mmu_ll_check_valid_paddr_region()
124 return (paddr_start < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
125 (len < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
126 ((paddr_start + len - 1) < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)); in mmu_ll_check_valid_paddr_region()
[all …]
/hal_espressif-3.7.0/components/hal/esp32/include/hal/
Dmmu_ll.h64 static inline mmu_page_size_t mmu_ll_get_page_size(uint32_t mmu_id) in mmu_ll_get_page_size() argument
67 (void)mmu_id; in mmu_ll_get_page_size()
79 static inline void mmu_ll_set_page_size(uint32_t mmu_id, uint32_t size) in mmu_ll_set_page_size() argument
96 static inline bool mmu_ll_check_valid_ext_vaddr_region(uint32_t mmu_id, uint32_t vaddr_start, uint3… in mmu_ll_check_valid_ext_vaddr_region() argument
98 (void)mmu_id; in mmu_ll_check_valid_ext_vaddr_region()
126 static inline bool mmu_ll_check_valid_paddr_region(uint32_t mmu_id, uint32_t paddr_start, uint32_t … in mmu_ll_check_valid_paddr_region() argument
128 (void)mmu_id; in mmu_ll_check_valid_paddr_region()
129 return (paddr_start < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
130 (len < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)) && in mmu_ll_check_valid_paddr_region()
131 ((paddr_start + len - 1) < (mmu_ll_get_page_size(mmu_id) * MMU_MAX_PADDR_PAGE_NUM)); in mmu_ll_check_valid_paddr_region()
[all …]
/hal_espressif-3.7.0/components/hal/include/hal/
Dmmu_hal.h37 uint32_t mmu_hal_pages_to_bytes(uint32_t mmu_id, uint32_t page_num);
50 uint32_t mmu_hal_bytes_to_pages(uint32_t mmu_id, uint32_t bytes);
64 void mmu_hal_map_region(uint32_t mmu_id, mmu_target_t mem_type, uint32_t vaddr, uint32_t paddr, uin…
73 void mmu_hal_unmap_region(uint32_t mmu_id, uint32_t vaddr, uint32_t len);
87 bool mmu_hal_vaddr_to_paddr(uint32_t mmu_id, uint32_t vaddr, uint32_t *out_paddr, mmu_target_t *out…
105 bool mmu_hal_paddr_to_vaddr(uint32_t mmu_id, uint32_t paddr, mmu_target_t target, mmu_vaddr_t type,…
119 bool mmu_hal_check_valid_ext_vaddr_region(uint32_t mmu_id, uint32_t vaddr_start, uint32_t len, mmu_…