Lines Matching refs:adesc
44 * adesc - Entry in the allocation descriptors map.
50 allocmapentry_alloc_begins(const AllocMapEntry* adesc)
52 return adesc->desc.malloc_desc.ptr;
58 * adesc - Entry in the allocation descriptors map.
63 allocmapentry_alloc_ends(const AllocMapEntry* adesc)
65 return mallocdesc_get_alloc_end(&adesc->desc.malloc_desc);
107 AllocMapEntry* adesc,
110 AllocMapEntry* existing = AllocMap_RB_INSERT(map, adesc);
125 AllocMap_RB_INSERT(map, adesc);
144 AllocMapEntry adesc;
145 adesc.desc.malloc_desc.ptr = address;
146 adesc.desc.malloc_desc.requested_bytes = block_size;
147 adesc.desc.malloc_desc.prefix_size = 0;
148 adesc.desc.malloc_desc.suffix_size = 0;
149 return AllocMap_RB_FIND((AllocMap*)map, &adesc);
168 AllocMapEntry* adesc = qemu_malloc(sizeof(AllocMapEntry));
169 if (adesc == NULL) {
173 memcpy(&adesc->desc, desc, sizeof(MallocDescEx));
176 ret = allocmap_insert_desc(map, adesc, replaced);
181 qemu_free(adesc);
189 AllocMapEntry* adesc = allocmap_find_entry(map, address, block_size);
190 return adesc != NULL ? &adesc->desc : NULL;
196 AllocMapEntry* adesc = allocmap_find_entry(map, address, 1);
197 if (adesc != NULL) {
198 memcpy(pulled, &adesc->desc, sizeof(MallocDescEx));
199 AllocMap_RB_REMOVE(map, adesc);
200 qemu_free(adesc);