Lines Matching defs:anon
37 struct memobj_anon *anon = (struct memobj_anon*)memobj;
40 struct vregion_list *data = slab_alloc(&anon->vregion_slab);
41 if (slab_freecount(&anon->vregion_slab) <= 1 && !anon->vregion_slab_refilling) { // Grow
42 anon->vregion_slab_refilling = true;
48 slab_grow(&anon->vregion_slab, buf,
51 data = slab_alloc(&anon->vregion_slab);
53 anon->vregion_slab_refilling = false;
61 struct vregion_list *walk = anon->vregion_list;
62 anon->vregion_list = data;
76 struct memobj_anon *anon = (struct memobj_anon*)memobj;
90 struct memobj_frame_list *fwalk = anon->frame_list;
111 for (struct vregion_list *elt = anon->vregion_list; elt != NULL;
115 assert(elt == anon->vregion_list);
116 anon->vregion_list = elt->next;
121 slab_free(&anon->vregion_slab, elt);
146 struct memobj_anon *anon = (struct memobj_anon*)memobj;
175 struct memobj_frame_list *fwalk = anon->frame_list;
245 struct memobj_anon *anon = (struct memobj_anon*)memobj;
256 struct memobj_frame_list *new = slab_alloc(&anon->frame_slab);
262 if (slab_freecount(&anon->frame_slab) <= 1 && !anon->frame_slab_refilling) {
263 anon->frame_slab_refilling = true;
269 slab_grow(&anon->frame_slab, buf,
272 new = slab_alloc(&anon->frame_slab);
274 anon->frame_slab_refilling = false;
294 struct memobj_frame_list *walk = anon->frame_list;
300 slab_free(&anon->frame_slab, new);
307 assert(walk == anon->frame_list);
308 anon->frame_list = new;
317 slab_free(&anon->frame_slab, new);
323 assert(anon->frame_list == NULL);
324 anon->frame_list = new;
350 struct memobj_anon *anon = (struct memobj_anon*)memobj;
353 struct memobj_frame_list *fwalk = anon->frame_list;
370 struct vregion_list *vwalk = anon->vregion_list;
399 anon->frame_list = fwalk->next;
401 slab_free(&anon->frame_slab, fwalk);
420 struct memobj_anon *anon = (struct memobj_anon*)memobj;
423 struct memobj_frame_list *walk = anon->frame_list;
471 errval_t memobj_create_anon(struct memobj_anon *anon, size_t size,
474 struct memobj *memobj = &anon->m;
493 /* anon specific portion */
494 slab_init(&anon->vregion_slab, sizeof(struct vregion_list), NULL);
495 slab_init(&anon->frame_slab, sizeof(struct memobj_frame_list), NULL);
497 anon->vregion_slab_refilling = false;
498 anon->frame_slab_refilling = false;
500 anon->vregion_list = NULL;
501 anon->frame_list = NULL;