Lines Matching defs:Region
272 static Vmalloc_t *Region[64]; /* list of concurrent regions */
275 static Vmalloc_t* Region[1]; /* list of concurrent regions */
289 if(regmax >= Regnum && regmax <= sizeof(Region)/sizeof(Region[0]))
304 { if(!Region[k])
306 if(vmstat(Region[k], &vmst) < 0 )
341 if(Region[k] && vmaddr(Region[k], addr) == 0 )
342 return Region[k];
351 if(Region[k] && Region[k]->data == vd)
352 return Region[k];
437 asoincint(&Regprobe); /* probe Region[] to find an open region */
441 { if(Region[p] && asocasint(&Region[p]->data->lock, 0, 1) == 0 )
444 return Region[p];
463 /**/ASSERT(Region[p] == NIL(Vmalloc_t*));
468 return (Region[p] = vm);
470 else Region[p] = Vmregion; /* better than nothing */
474 vm = Region[pos] ? Region[pos] : Vmregion;