Lines Matching full:seg
229 struct pptseg *seg; in ppt_unmap_all_mmio() local
232 seg = &ppt->mmio[i]; in ppt_unmap_all_mmio()
233 if (seg->len == 0) in ppt_unmap_all_mmio()
235 (void)vm_unmap_mmio(vm, seg->gpa, seg->len); in ppt_unmap_all_mmio()
236 bzero(seg, sizeof(struct pptseg)); in ppt_unmap_all_mmio()
353 struct pptseg *seg; in ppt_is_mmio() local
360 seg = &ppt->mmio[i]; in ppt_is_mmio()
361 if (seg->len == 0) in ppt_is_mmio()
363 if (gpa >= seg->gpa && gpa < seg->gpa + seg->len) in ppt_is_mmio()
488 struct pptseg *seg; in ppt_map_mmio() local
503 seg = &ppt->mmio[i]; in ppt_map_mmio()
504 if (seg->len == 0) { in ppt_map_mmio()
507 seg->gpa = gpa; in ppt_map_mmio()
508 seg->len = len; in ppt_map_mmio()
521 struct pptseg *seg; in ppt_unmap_mmio() local
529 seg = &ppt->mmio[i]; in ppt_unmap_mmio()
530 if (seg->gpa == gpa && seg->len == len) { in ppt_unmap_mmio()
531 error = vm_unmap_mmio(vm, seg->gpa, seg->len); in ppt_unmap_mmio()
533 seg->gpa = 0; in ppt_unmap_mmio()
534 seg->len = 0; in ppt_unmap_mmio()