Lines Matching refs:vregion
74 struct vregion *vregion = NULL;
77 vregion = malloc(sizeof(struct vregion));
78 if (!vregion) {
98 err = vregion_map(vregion, si->vspace, &memobj->m, 0, size,
104 err = memobj->m.f.pagefault(&memobj->m, vregion, 0, 0);
110 *retaddr = vregion_get_base_addr(vregion);
114 if (vregion) {
115 free(vregion);
130 struct vregion *vregion = NULL;
133 vregion = malloc(sizeof(struct vregion));
134 if (!vregion) {
154 err = vregion_map_fixed(vregion, si->vspace, &memobj->m, 0, size, addr,
160 err = memobj->m.f.pagefault(&memobj->m, vregion, 0, 0);
169 if (vregion) {
170 free(vregion);
179 * \brief Return memobj and vregion for anonymous type mapping
182 size_t size, struct vregion **vregion,
189 *vregion = malloc(sizeof(struct vregion));
190 if (!*vregion) {
206 err = vregion_map_fixed(*vregion, si->vspace, *memobj, 0, size, addr,
216 if (*vregion) {
217 free(*vregion);