• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/barrelfish/vspace/

Lines Matching refs:vregion

35 static errval_t map_region(struct memobj *memobj, struct vregion *vregion)
40 assert(memobj->size >= (vregion->offset + vregion->size));
42 /* the vregion must start at one of the backed frames */
43 if (vregion->offset % fixed->chunk_size) {
47 if (fixed->vregion) {
51 fixed->vregion = vregion;
62 static errval_t unmap_region(struct memobj *memobj, struct vregion *vregion)
67 if (fixed->vregion != vregion) {
71 struct vspace *vspace = vregion_get_vspace(vregion);
74 genvaddr_t vregion_base = vregion_get_base_addr(vregion);
75 genvaddr_t vregion_offset = vregion_get_offset(vregion);
77 err = pmap->f.unmap(pmap, vregion_base + vregion_offset, vregion->size,
83 fixed->vregion = NULL;
92 * \param region The vregion to modify the mappings on
98 struct vregion *vregion,
103 struct vspace *vspace = vregion_get_vspace(vregion);
105 genvaddr_t base = vregion_get_base_addr(vregion);
106 genvaddr_t vregion_offset = vregion_get_offset(vregion);
122 * \param region The vregion to modify the state on
127 struct vregion *vregion,
138 * \param region The vregion to modify the state on
143 struct vregion *vregion,
207 if (fixed->vregion) {
208 struct vregion *vregion = fixed->vregion;
210 struct vspace *vspace = vregion_get_vspace(vregion);
212 genvaddr_t vregion_base = vregion_get_base_addr(vregion);
213 genvaddr_t vregion_offset = vregion_get_offset(vregion);
241 * \param region The associated vregion
249 struct vregion *vregion,
258 size_t slot = (vregion->offset + offset) / fixed->chunk_size;
268 struct vspace *vspace = vregion_get_vspace(vregion);
271 genvaddr_t base = vregion_get_base_addr(vregion);
272 genvaddr_t vregion_offset = vregion_get_offset(vregion);
273 vregion_flags_t flags = vregion_get_flags(vregion);
343 fixed->vregion = NULL;
370 struct vregion *vregion = NULL;
372 err = vregion_destroy(vregion);