Lines Matching refs:state
69 register State_t* state = (State_t*)handle; in key() local
73 *pn = state->vs.extent; in key()
75 *pn = integralof(state->vm); in key()
77 *pn = state->vs.n_seg; in key()
79 *pn = state->vs.s_busy; in key()
81 *pn = state->vs.n_busy; in key()
83 *pn = state->vs.m_busy; in key()
85 *pn = state->vs.s_free; in key()
87 *pn = state->vs.n_free; in key()
89 *pn = state->vs.m_free; in key()
91 *ps = (char*)state->format; in key()
103 State_t* state = (State_t*)handle; in visit() local
106 if (vm != state->vm) in visit()
108 state->vm = vm; in visit()
109 if (state->regions < elementsof(state->region)) in visit()
110 state->region[state->regions++] = vm; in visit()
119 State_t state; in b_vmstate() local
121 memset(&state, 0, sizeof(state)); in b_vmstate()
128 state.format = opt_info.arg; in b_vmstate()
142 if (!state.format) in b_vmstate()
143 state.format = FORMAT; in b_vmstate()
149 vmwalk(NiL, visit, &state); in b_vmstate()
155 for (i = 0; i < state.regions; i++) in b_vmstate()
157 state.vm = state.region[i]; in b_vmstate()
158 vmstat(state.vm, &state.vs); in b_vmstate()
159 sfkeyprintf(sfstdout, &state, state.format, key, NiL); in b_vmstate()