Lines Matching refs:offset
49 size_t offset; in sys_mm_drv_is_virt_region_mapped() local
52 for (offset = 0; offset < size; offset += CONFIG_MM_DRV_PAGE_SIZE) { in sys_mm_drv_is_virt_region_mapped()
53 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_is_virt_region_mapped()
66 size_t offset; in sys_mm_drv_is_virt_region_unmapped() local
69 for (offset = 0; offset < size; offset += CONFIG_MM_DRV_PAGE_SIZE) { in sys_mm_drv_is_virt_region_unmapped()
70 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_is_virt_region_unmapped()
95 size_t offset; in unmap_locked() local
97 for (offset = 0; offset < size; offset += CONFIG_MM_DRV_PAGE_SIZE) { in unmap_locked()
98 uint8_t *va = (uint8_t *)virt + offset; in unmap_locked()
121 size_t offset; in sys_mm_drv_simple_map_region() local
132 for (offset = 0; offset < size; offset += CONFIG_MM_DRV_PAGE_SIZE) { in sys_mm_drv_simple_map_region()
133 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_simple_map_region()
134 uintptr_t pa = phys + offset; in sys_mm_drv_simple_map_region()
146 (void)unmap_locked(virt, offset, true); in sys_mm_drv_simple_map_region()
166 size_t idx, offset; in sys_mm_drv_simple_map_array() local
176 offset = 0; 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()
196 offset += CONFIG_MM_DRV_PAGE_SIZE; in sys_mm_drv_simple_map_array()
236 size_t offset; in sys_mm_drv_simple_remap_region() local
260 for (offset = 0; offset < size; offset += CONFIG_MM_DRV_PAGE_SIZE) { in sys_mm_drv_simple_remap_region()
261 uint8_t *va_old = (uint8_t *)virt_old + offset; in sys_mm_drv_simple_remap_region()
262 uint8_t *va_new = (uint8_t *)virt_new + offset; in sys_mm_drv_simple_remap_region()
279 (void)unmap_locked(virt_new, offset, true); in sys_mm_drv_simple_remap_region()
297 (void)unmap_locked(virt_new, offset, true); in sys_mm_drv_simple_remap_region()
311 (void)unmap_locked(virt_new, offset, true); in sys_mm_drv_simple_remap_region()
333 size_t offset; in sys_mm_drv_simple_move_region() local
358 for (offset = 0; offset < size; offset += CONFIG_MM_DRV_PAGE_SIZE) { in sys_mm_drv_simple_move_region()
359 uint8_t *va_old = (uint8_t *)virt_old + offset; in sys_mm_drv_simple_move_region()
360 uint8_t *va_new = (uint8_t *)virt_new + offset; in sys_mm_drv_simple_move_region()
361 uintptr_t pa = phys_new + offset; in sys_mm_drv_simple_move_region()
373 (void)unmap_locked(virt_new, offset, true); in sys_mm_drv_simple_move_region()
391 (void)unmap_locked(virt_new, offset, true); in sys_mm_drv_simple_move_region()
418 size_t idx, offset; in sys_mm_drv_simple_move_array() local
443 offset = 0; in sys_mm_drv_simple_move_array()
446 uint8_t *va_old = (uint8_t *)virt_old + offset; in sys_mm_drv_simple_move_array()
447 uint8_t *va_new = (uint8_t *)virt_new + offset; in sys_mm_drv_simple_move_array()
459 (void)unmap_locked(virt_new, offset, true); in sys_mm_drv_simple_move_array()
479 (void)unmap_locked(virt_new, offset, true); in sys_mm_drv_simple_move_array()
484 offset += CONFIG_MM_DRV_PAGE_SIZE; in sys_mm_drv_simple_move_array()
508 size_t offset; in sys_mm_drv_simple_update_region_flags() local
518 for (offset = 0; offset < size; offset += CONFIG_MM_DRV_PAGE_SIZE) { in sys_mm_drv_simple_update_region_flags()
519 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_simple_update_region_flags()