Lines Matching defs:vm
42 static Void_t* poolalloc(Vmalloc_t* vm, reg size_t size, int local)
44 static Void_t* poolalloc(vm, size, local )
45 Vmalloc_t* vm;
53 reg Vmdata_t *vd = vm->data;
64 SETLOCK(vm, local);
80 if((tp = (*_Vmextend)(vm,ROUND(size,vd->incr),NIL(Vmsearch_f))) )
106 (*_Vmtrace)(vm,NIL(Vmuchar_t*),(Vmuchar_t*)tp,vd->pool,0);
108 CLRLOCK(vm, local);
114 static long pooladdr(Vmalloc_t* vm, reg Void_t* addr, int local)
116 static long pooladdr(vm, addr, local)
117 Vmalloc_t* vm;
127 Vmdata_t* vd = vm->data;
129 SETLOCK(vm, local);
153 CLRLOCK(vm, local);
159 static int poolfree(reg Vmalloc_t* vm, reg Void_t* data, int local )
161 static int poolfree(vm, data, local)
162 Vmalloc_t* vm;
168 Vmdata_t *vd = vm->data;
175 SETLOCK(vm, local);
177 /**/ASSERT(KPVADDR(vm, data, pooladdr) == 0);
184 (*_Vmtrace)(vm, (Vmuchar_t*)data, NIL(Vmuchar_t*), vd->pool, 0);
186 CLRLOCK(vm, local);
192 static Void_t* poolresize(Vmalloc_t* vm, Void_t* data, size_t size, int type, int local )
194 static Void_t* poolresize(vm, data, size, type, local )
195 Vmalloc_t* vm;
202 Vmdata_t *vd = vm->data;
207 { data = poolalloc(vm, size, local);
213 { (void)poolfree(vm, data, local);
219 SETLOCK(vm, local);
221 /**/ASSERT(KPVADDR(vm, data, pooladdr) == 0);
224 (*_Vmtrace)(vm, (Vmuchar_t*)data, (Vmuchar_t*)data, size, 0);
226 CLRLOCK(vm, local);
232 static long poolsize(Vmalloc_t* vm, Void_t* addr, int local)
234 static long poolsize(vm, addr, local)
235 Vmalloc_t* vm;
240 return pooladdr(vm, addr, local) == 0 ? (long)vm->data->pool : -1L;
244 static int poolcompact(Vmalloc_t* vm, int local)
246 static int poolcompact(vm, local)
247 Vmalloc_t* vm;
254 Vmdata_t *vd = vm->data;
256 SETLOCK(vm, local);
269 if((*_Vmtruncate)(vm,seg,s,1) == s)
274 (*_Vmtrace)(vm, (Vmuchar_t*)0, (Vmuchar_t*)0, 0, 0);
276 CLRLOCK(vm, local);
282 static Void_t* poolalign(Vmalloc_t* vm, size_t size, size_t align, int local)
284 static Void_t* poolalign(vm, size, align, local)
285 Vmalloc_t* vm;
291 NOTUSED(vm);