Lines Matching refs:tsp
102 struct ti_sci_proc tsp; member
134 ret = ti_sci_proc_request(&cluster->cores[i]->tsp); in k3_r5f_proc_request()
139 ret = ti_sci_proc_request(&core->tsp); in k3_r5f_proc_request()
146 ti_sci_proc_release(&cluster->cores[i]->tsp); in k3_r5f_proc_request()
159 ti_sci_proc_release(&cluster->cores[i]->tsp); in k3_r5f_proc_release()
161 ti_sci_proc_release(&core->tsp); in k3_r5f_proc_release()
171 ret = ti_sci_proc_power_domain_on(&cluster->cores[c]->tsp); in k3_r5f_lockstep_release()
193 ti_sci_proc_power_domain_off(&cluster->cores[c]->tsp); in k3_r5f_lockstep_release()
206 ret = ti_sci_proc_power_domain_on(&core->tsp); in k3_r5f_split_release()
217 if (ti_sci_proc_power_domain_off(&core->tsp)) in k3_r5f_split_release()
251 core->tsp.proc_id); in k3_r5f_core_sanity_check()
264 core->tsp.proc_id); in k3_r5f_core_sanity_check()
317 ret = ti_sci_proc_get_status(&core->tsp, &boot_vector, &cfg, &ctrl, in k3_r5f_load()
326 core->tsp.proc_id); in k3_r5f_load()
342 ret = ti_sci_proc_set_config(&core->tsp, boot_vector, 0, 0); in k3_r5f_load()
354 ret = ti_sci_proc_set_control(&core->tsp, in k3_r5f_core_halt()
358 core->tsp.proc_id); in k3_r5f_core_halt()
367 ret = ti_sci_proc_set_control(&core->tsp, in k3_r5f_core_run()
371 core->tsp.proc_id); in k3_r5f_core_run()
409 core->tsp.proc_id); in k3_r5f_start()
444 if (ti_sci_proc_power_domain_off(&core->tsp)) in k3_r5f_split_reset()
462 if (ti_sci_proc_power_domain_off(&cluster->cores[c]->tsp)) in k3_r5f_lockstep_reset()
588 ret = ti_sci_proc_request(&core->tsp); in k3_r5f_rproc_configure()
595 ret = ti_sci_proc_get_status(&core->tsp, &boot_vec, &cfg, &ctrl, &sts); in k3_r5f_rproc_configure()
637 ret = ti_sci_proc_set_config(&core->tsp, boot_vec, set_cfg, clr_cfg); in k3_r5f_rproc_configure()
639 ti_sci_proc_release(&core->tsp); in k3_r5f_rproc_configure()
643 static int ti_sci_proc_of_to_priv(struct udevice *dev, struct ti_sci_proc *tsp) in ti_sci_proc_of_to_priv() argument
650 tsp->sci = ti_sci_get_by_phandle(dev, "ti,sci"); in ti_sci_proc_of_to_priv()
651 if (IS_ERR(tsp->sci)) { in ti_sci_proc_of_to_priv()
652 dev_err(dev, "ti_sci get failed: %ld\n", PTR_ERR(tsp->sci)); in ti_sci_proc_of_to_priv()
653 return PTR_ERR(tsp->sci); in ti_sci_proc_of_to_priv()
662 tsp->ops = &tsp->sci->ops.proc_ops; in ti_sci_proc_of_to_priv()
663 tsp->proc_id = ids[0]; in ti_sci_proc_of_to_priv()
664 tsp->host_id = ids[1]; in ti_sci_proc_of_to_priv()
665 tsp->dev_id = dev_read_u32_default(dev, "ti,sci-dev-id", in ti_sci_proc_of_to_priv()
667 if (tsp->dev_id == TI_SCI_RESOURCE_NULL) { in ti_sci_proc_of_to_priv()
685 ret = ti_sci_proc_of_to_priv(core->dev, &core->tsp); in k3_r5f_of_to_priv()
807 ret = core->tsp.sci->ops.dev_ops.is_on(core->tsp.sci, core->tsp.dev_id, in k3_r5f_probe()
814 core->tsp.proc_id); in k3_r5f_probe()
840 ti_sci_proc_release(&core->tsp); in k3_r5f_remove()