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()
95 * We don't pass the memsize here, so VPE programs need to be in vpe_run()
103 * bind the TC to VPE 1 as late as possible so we only have the final in vpe_run()
104 * VPE registers to set up, and so an EJTAG probe can trigger on it in vpe_run()
118 /* enable this VPE */ in vpe_run()
129 * SMVP kernels manage VPE enable independently, but uniprocessor in vpe_run()
176 /* give me a vpe */
180 struct vpe *v; in vpe_alloc()
182 /* find a vpe */ in vpe_alloc()
195 int vpe_start(void *vpe, unsigned long start) in vpe_start() argument
197 struct vpe *v = vpe; in vpe_start()
205 int vpe_stop(void *vpe) in vpe_stop() argument
207 struct vpe *v = vpe; in vpe_stop()
226 int vpe_free(void *vpe) in vpe_free() argument
228 struct vpe *v = vpe; in vpe_free()
263 struct vpe *vpe = get_vpe(aprp_cpu_index()); in store_kill() local
266 list_for_each_entry(notifier, &vpe->notify, list) in store_kill()
269 release_progmem(vpe->load_addr); in store_kill()
271 vpe_stop(vpe); in store_kill()
272 vpe_free(vpe); in store_kill()
281 struct vpe *vpe = get_vpe(aprp_cpu_index()); in ntcs_show() local
283 return sprintf(buf, "%d\n", vpe->ntcs); in ntcs_show()
289 struct vpe *vpe = get_vpe(aprp_cpu_index()); in ntcs_store() local
300 vpe->ntcs = new; in ntcs_store()
311 ATTRIBUTE_GROUPS(vpe);
318 .name = "vpe",
329 struct vpe *v = NULL; in vpe_module_init()
334 pr_warn("VPE loader: not a MIPS MT capable processor\n"); in vpe_module_init()
339 pr_warn("No VPEs reserved for AP/SP, not initialize VPE loader\n" in vpe_module_init()
346 pr_warn("No TCs reserved for AP/SP, not initialize VPE loader\n" in vpe_module_init()
354 pr_warn("VPE loader: unable to register character device\n"); in vpe_module_init()
406 /* VPE's */ in vpe_module_init()
412 pr_warn("VPE: unable to allocate VPE\n"); in vpe_module_init()
418 /* add the tc to the list of this vpe's tc's. */ in vpe_module_init()
427 /* master VPE */ in vpe_module_init()
446 t->pvpe = v; /* set the parent vpe */ in vpe_module_init()
454 * A TC that is bound to any other VPE gets bound to in vpe_module_init()
457 * VPE. Which is perfectly reasonable. in vpe_module_init()
467 t->pvpe = get_vpe(0); /* set the parent vpe */ in vpe_module_init()
508 struct vpe *v, *n; in vpe_module_exit()