Lines Matching refs:virt
47 bool sys_mm_drv_is_virt_region_mapped(void *virt, size_t size) in sys_mm_drv_is_virt_region_mapped() argument
53 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_is_virt_region_mapped()
64 bool sys_mm_drv_is_virt_region_unmapped(void *virt, size_t size) in sys_mm_drv_is_virt_region_unmapped() argument
70 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_is_virt_region_unmapped()
92 static int unmap_locked(void *virt, size_t size, bool is_reset) in unmap_locked() argument
98 uint8_t *va = (uint8_t *)virt + offset; in unmap_locked()
116 int sys_mm_drv_simple_map_region(void *virt, uintptr_t phys, in sys_mm_drv_simple_map_region() argument
124 !sys_mm_drv_is_virt_addr_aligned(virt) || in sys_mm_drv_simple_map_region()
133 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_simple_map_region()
146 (void)unmap_locked(virt, offset, true); in sys_mm_drv_simple_map_region()
161 int sys_mm_drv_simple_map_array(void *virt, uintptr_t *phys, in sys_mm_drv_simple_map_array() argument
169 !sys_mm_drv_is_virt_addr_aligned(virt)) { in sys_mm_drv_simple_map_array()
179 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_simple_map_array()
191 (void)unmap_locked(virt, offset, true); in sys_mm_drv_simple_map_array()
208 int sys_mm_drv_simple_unmap_region(void *virt, size_t size) in sys_mm_drv_simple_unmap_region() argument
213 CHECKIF(!sys_mm_drv_is_virt_addr_aligned(virt) || in sys_mm_drv_simple_unmap_region()
221 ret = unmap_locked(virt, size, false); in sys_mm_drv_simple_unmap_region()
504 int sys_mm_drv_simple_update_region_flags(void *virt, size_t size, uint32_t flags) in sys_mm_drv_simple_update_region_flags() argument
510 CHECKIF(!sys_mm_drv_is_virt_addr_aligned(virt) || in sys_mm_drv_simple_update_region_flags()
519 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_simple_update_region_flags()