Lines Matching defs:map
29 * map pages of other domains or Xen (e.g. during save/restore). ioctl()s on
30 * the privcmd driver provide the MFN values backing each mapping, and we map
99 segmf_map_t *map;
133 data->map = kmem_alloc(npages * sizeof (segmf_map_t), KM_SLEEP);
135 data->map[i].t_type = SEGMF_MAP_EMPTY;
167 ndata->map = kmem_alloc(sz, KM_SLEEP);
168 bcopy(data->map, ndata->map, sz);
212 kmem_free(data->map, npages * sizeof (segmf_map_t));
228 segmf_map_t *map;
233 map = &data->map[idx];
234 ASSERT(map->t_type == SEGMF_MAP_MFN);
236 mfn = map->u.m.m_mfn;
560 data->map[base + i].t_type = SEGMF_MAP_MFN;
561 data->map[base + i].u.m.m_mfn = mfn++;
570 data->map[base + i].t_type = SEGMF_MAP_EMPTY;
584 segmf_map_t *map;
606 map = &data->map[idx];
621 map[i].t_type = SEGMF_MAP_GREF;
622 map[i].u.g.g_gref = grefs[i];
623 map[i].u.g.g_handle = 0;
624 map[i].u.g.g_flags = 0;
626 map[i].u.g.g_flags |= SEGMF_GFLAGS_WR;
633 data->map[i].t_type = SEGMF_MAP_EMPTY;
647 segmf_map_t *map;
660 map = &data->map[idx];
670 ASSERT(map[i].t_type != SEGMF_MAP_MFN);
671 if ((map[i].t_type == SEGMF_MAP_GREF) &&
672 (map[i].u.g.g_flags & SEGMF_GFLAGS_MAPPED)) {
673 mapop[n].handle = map[i].u.g.g_handle;
674 mapop[n].host_addr = map[i].u.g.g_ptep;
678 map[i].t_type = SEGMF_MAP_EMPTY;
704 data->map[idx].u.g.g_ptep = pte_ma;
713 segmf_map_t *map;
725 map = &data->map[idx];
729 ASSERT(map->t_type == SEGMF_MAP_GREF);
732 * map in each page passed in into the user apps AS. We do this by
736 mapop[i].host_addr = map[i].u.g.g_ptep;
738 mapop[i].ref = map[i].u.g.g_gref;
741 if (!(map[i].u.g.g_flags & SEGMF_GFLAGS_WR)) {
753 map[i].u.g.g_handle = mapop[i].handle;
754 map[i].u.g.g_flags |= SEGMF_GFLAGS_MAPPED;