Lines Matching refs:vd
46 reg Vmdata_t* vd = vm ? vm->data : Vmregion->data; local
49 SETINUSE(vd, inuse);
51 { CLRINUSE(vd, inuse);
54 if(!(vd->mode&VM_TRUST))
55 { if(ISLOCK(vd,0))
56 { CLRINUSE(vd, inuse);
59 SETLOCK(vd,0);
67 if(vd->mode&VM_MTLAST)
69 else if((vd->mode&VM_MTPOOL) && (s = vd->pool) > 0)
71 for(b = vd->free; b; b = SEGLINK(b))
75 for(seg = vd->seg; seg; seg = seg->next)
82 if(vd->mode&(VM_MTDEBUG|VM_MTBEST|VM_MTPROFILE))
92 { if(vd->mode&VM_MTDEBUG)
94 else if(vd->mode&VM_MTPROFILE)
105 else if(vd->mode&VM_MTLAST)
115 else if((vd->mode&VM_MTPOOL) && s > 0)
122 if((vd->mode&VM_MTPOOL) && s > 0)
125 st->s_busy = (st->m_busy = vd->pool)*st->n_busy;
127 st->s_free = (st->m_free = vd->pool)*st->n_free;
130 CLRLOCK(vd,0);
131 CLRINUSE(vd, inuse);