Lines Matching refs:r2
172 struct vm_region *r2 = NULL; in rem_um_region() local
186 r2 = TAILQ_NEXT(r, link); in rem_um_region()
187 if (r2) in rem_um_region()
188 last = MIN(last, ROUNDDOWN(r2->va, CORE_MMU_PGDIR_SIZE)); in rem_um_region()
190 r2 = TAILQ_PREV(r, vm_region_head, link); in rem_um_region()
191 if (r2) in rem_um_region()
193 ROUNDUP(r2->va + r2->size, CORE_MMU_PGDIR_SIZE)); in rem_um_region()
379 struct vm_region *r2 = NULL; in split_vm_region() local
384 r2 = calloc(1, sizeof(*r2)); in split_vm_region()
385 if (!r2) in split_vm_region()
392 free(r2); in split_vm_region()
397 r2->mobj = mobj_get(r->mobj); in split_vm_region()
398 r2->offset = r->offset + diff; in split_vm_region()
399 r2->va = va; in split_vm_region()
400 r2->size = r->size - diff; in split_vm_region()
401 r2->attr = r->attr; in split_vm_region()
402 r2->flags = r->flags; in split_vm_region()
406 TAILQ_INSERT_AFTER(&uctx->vm_info.regions, r, r2, link); in split_vm_region()