Lines Matching full:vpe

18 #include <asm/vpe.h>
25 /* We are prepared so configure and start the VPE... */
26 int vpe_run(struct vpe *v) in vpe_run()
33 /* check we are the Master VPE */ in vpe_run()
37 pr_warn("VPE loader: only Master VPE's are able to config MT\n"); in vpe_run()
51 pr_warn("VPE loader: No TC's associated with VPE %d\n", in vpe_run()
71 pr_warn("VPE loader: TC %d is already active!\n", in vpe_run()
104 * bind the TC to VPE 1 as late as possible so we only have the final in vpe_run()
105 * VPE registers to set up, and so an EJTAG probe can trigger on it in vpe_run()
119 /* enable this VPE */ in vpe_run()
130 * SMVP kernels manage VPE enable independently, but uniprocessor in vpe_run()
177 /* give me a vpe */
181 struct vpe *v; in vpe_alloc()
183 /* find a vpe */ in vpe_alloc()
196 int vpe_start(void *vpe, unsigned long start) in vpe_start() argument
198 struct vpe *v = vpe; in vpe_start()
206 int vpe_stop(void *vpe) in vpe_stop() argument
208 struct vpe *v = vpe; in vpe_stop()
227 int vpe_free(void *vpe) in vpe_free() argument
229 struct vpe *v = vpe; in vpe_free()
264 struct vpe *vpe = get_vpe(aprp_cpu_index()); in store_kill() local
267 list_for_each_entry(notifier, &vpe->notify, list) in store_kill()
270 release_progmem(vpe->load_addr); in store_kill()
272 vpe_stop(vpe); in store_kill()
273 vpe_free(vpe); in store_kill()
282 struct vpe *vpe = get_vpe(aprp_cpu_index()); in ntcs_show() local
284 return sprintf(buf, "%d\n", vpe->ntcs); in ntcs_show()
290 struct vpe *vpe = get_vpe(aprp_cpu_index()); in ntcs_store() local
301 vpe->ntcs = new; in ntcs_store()
312 ATTRIBUTE_GROUPS(vpe);
320 .name = "vpe",
332 struct vpe *v = NULL; in vpe_module_init()
337 pr_warn("VPE loader: not a MIPS MT capable processor\n"); in vpe_module_init()
342 pr_warn("No VPEs reserved for AP/SP, not initialize VPE loader\n" in vpe_module_init()
349 pr_warn("No TCs reserved for AP/SP, not initialize VPE loader\n" in vpe_module_init()
357 pr_warn("VPE loader: unable to register character device\n"); in vpe_module_init()
409 /* VPE's */ in vpe_module_init()
415 pr_warn("VPE: unable to allocate VPE\n"); in vpe_module_init()
421 /* add the tc to the list of this vpe's tc's. */ in vpe_module_init()
430 /* master VPE */ in vpe_module_init()
449 t->pvpe = v; /* set the parent vpe */ in vpe_module_init()
457 * A TC that is bound to any other VPE gets bound to in vpe_module_init()
460 * VPE. Which is perfectly reasonable. in vpe_module_init()
470 t->pvpe = get_vpe(0); /* set the parent vpe */ in vpe_module_init()
510 struct vpe *v, *n; in vpe_module_exit()