Lines Matching refs:v
26 int vpe_run(struct vpe *v) in vpe_run() argument
46 if (list_empty(&v->tc)) { in vpe_run()
52 v->minor); in vpe_run()
57 t = list_first_entry(&v->tc, struct tc, tc); in vpe_run()
81 write_tc_c0_tcrestart((unsigned long)v->__start); in vpe_run()
99 mttgpr(6, v->ntcs); in vpe_run()
141 list_for_each_entry(notifier, &v->notify, list) in vpe_run()
181 struct vpe *v; in vpe_alloc() local
185 v = get_vpe(i); in vpe_alloc()
186 if (v != NULL) { in vpe_alloc()
187 v->state = VPE_STATE_INUSE; in vpe_alloc()
188 return v; in vpe_alloc()
198 struct vpe *v = vpe; in vpe_start() local
200 v->__start = start; in vpe_start()
201 return vpe_run(v); in vpe_start()
208 struct vpe *v = vpe; in vpe_stop() local
214 t = list_entry(v->tc.next, struct tc, tc); in vpe_stop()
229 struct vpe *v = vpe; in vpe_free() local
233 t = list_entry(v->tc.next, struct tc, tc); in vpe_free()
252 v->state = VPE_STATE_UNUSED; in vpe_free()
332 struct vpe *v = NULL; in vpe_module_init() local
413 v = alloc_vpe(tc); in vpe_module_init()
414 if (v == NULL) { in vpe_module_init()
419 v->ntcs = hw_tcs - aprp_cpu_index(); in vpe_module_init()
422 list_add(&t->tc, &v->tc); in vpe_module_init()
449 t->pvpe = v; /* set the parent vpe */ in vpe_module_init()
510 struct vpe *v, *n; in vpe_module_exit() local
517 list_for_each_entry_safe(v, n, &vpecontrol.vpe_list, list) { in vpe_module_exit()
518 if (v->state != VPE_STATE_UNUSED) in vpe_module_exit()
519 release_vpe(v); in vpe_module_exit()