Lines Matching refs:mapop
645 gnttab_unmap_grant_ref_t mapop[SEGMF_MAX_GREFS]; in segmf_release_grefs() local
662 bzero(mapop, sizeof (gnttab_unmap_grant_ref_t) * cnt); in segmf_release_grefs()
673 mapop[n].handle = map[i].u.g.g_handle; in segmf_release_grefs()
674 mapop[n].host_addr = map[i].u.g.g_ptep; in segmf_release_grefs()
675 mapop[n].dev_bus_addr = 0; in segmf_release_grefs()
686 e = HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref, &mapop, n); in segmf_release_grefs()
711 gnttab_map_grant_ref_t mapop[SEGMF_MAX_GREFS]; in segmf_fault_gref_range() local
727 bzero(mapop, sizeof (gnttab_map_grant_ref_t) * cnt); in segmf_fault_gref_range()
736 mapop[i].host_addr = map[i].u.g.g_ptep; in segmf_fault_gref_range()
737 mapop[i].dom = data->domid; in segmf_fault_gref_range()
738 mapop[i].ref = map[i].u.g.g_gref; in segmf_fault_gref_range()
739 mapop[i].flags = GNTMAP_host_map | GNTMAP_application_map | in segmf_fault_gref_range()
742 mapop[i].flags |= GNTMAP_readonly; in segmf_fault_gref_range()
745 e = xen_map_gref(GNTTABOP_map_grant_ref, mapop, cnt, B_TRUE); in segmf_fault_gref_range()
746 if ((e != 0) || (mapop[0].status != GNTST_okay)) { in segmf_fault_gref_range()
752 ASSERT(mapop[i].status == GNTST_okay); in segmf_fault_gref_range()
753 map[i].u.g.g_handle = mapop[i].handle; in segmf_fault_gref_range()