Lines Matching defs:st
36 int vmstat(Vmalloc_t* vm, Vmstat_t* st)
38 int vmstat(vm, st)
40 Vmstat_t* st;
50 if(!st)
62 st->n_busy = st->n_free = 0;
63 st->s_busy = st->s_free = st->m_busy = st->m_free = 0;
64 st->n_seg = 0;
65 st->extent = 0;
66 st->mode = vd->mode;
69 st->n_busy = 0;
73 st->n_free += 1;
77 { st->n_seg += 1;
78 st->extent += seg->extent;
87 { if(s > st->m_free)
88 st->m_free = s;
89 st->s_free += s;
90 st->n_free += 1;
100 if(s > st->m_busy)
101 st->m_busy = s;
102 st->s_busy += s;
103 st->n_busy += 1;
111 { st->s_free += s;
112 st->n_free += 1;
115 { st->s_busy += s;
116 st->n_busy += 1;
121 st->n_free += ((int)SIZE(seg->free)+sizeof(Head_t))/(int)s;
122 st->n_busy += ((int)(seg->baddr - (Vmuchar_t*)b) - sizeof(Head_t))/(int)s;
127 { st->n_busy -= st->n_free;
128 if(st->n_busy > 0)
129 st->s_busy = (st->m_busy = vd->pool)*st->n_busy;
130 if(st->n_free > 0)
131 st->s_free = (st->m_free = vd->pool)*st->n_free;