Lines Matching refs:tsp

35 	struct ti_sci_proc *tsp;  in ti_sci_proc_of_get_tsp()  local
44 tsp = devm_kzalloc(dev, sizeof(*tsp), GFP_KERNEL); in ti_sci_proc_of_get_tsp()
45 if (!tsp) in ti_sci_proc_of_get_tsp()
48 tsp->dev = dev; in ti_sci_proc_of_get_tsp()
49 tsp->sci = sci; in ti_sci_proc_of_get_tsp()
50 tsp->ops = &sci->ops.proc_ops; in ti_sci_proc_of_get_tsp()
51 tsp->proc_id = temp[0]; in ti_sci_proc_of_get_tsp()
52 tsp->host_id = temp[1]; in ti_sci_proc_of_get_tsp()
54 return tsp; in ti_sci_proc_of_get_tsp()
57 static inline int ti_sci_proc_request(struct ti_sci_proc *tsp) in ti_sci_proc_request() argument
61 ret = tsp->ops->request(tsp->sci, tsp->proc_id); in ti_sci_proc_request()
63 dev_err(tsp->dev, "ti-sci processor request failed: %d\n", in ti_sci_proc_request()
68 static inline int ti_sci_proc_release(struct ti_sci_proc *tsp) in ti_sci_proc_release() argument
72 ret = tsp->ops->release(tsp->sci, tsp->proc_id); in ti_sci_proc_release()
74 dev_err(tsp->dev, "ti-sci processor release failed: %d\n", in ti_sci_proc_release()
79 static inline int ti_sci_proc_handover(struct ti_sci_proc *tsp) in ti_sci_proc_handover() argument
83 ret = tsp->ops->handover(tsp->sci, tsp->proc_id, tsp->host_id); in ti_sci_proc_handover()
85 dev_err(tsp->dev, "ti-sci processor handover of %d to %d failed: %d\n", in ti_sci_proc_handover()
86 tsp->proc_id, tsp->host_id, ret); in ti_sci_proc_handover()
90 static inline int ti_sci_proc_set_config(struct ti_sci_proc *tsp, in ti_sci_proc_set_config() argument
96 ret = tsp->ops->set_config(tsp->sci, tsp->proc_id, boot_vector, in ti_sci_proc_set_config()
99 dev_err(tsp->dev, "ti-sci processor set_config failed: %d\n", in ti_sci_proc_set_config()
104 static inline int ti_sci_proc_set_control(struct ti_sci_proc *tsp, in ti_sci_proc_set_control() argument
109 ret = tsp->ops->set_control(tsp->sci, tsp->proc_id, ctrl_set, ctrl_clr); in ti_sci_proc_set_control()
111 dev_err(tsp->dev, "ti-sci processor set_control failed: %d\n", in ti_sci_proc_set_control()
116 static inline int ti_sci_proc_get_status(struct ti_sci_proc *tsp, in ti_sci_proc_get_status() argument
122 ret = tsp->ops->get_status(tsp->sci, tsp->proc_id, boot_vector, in ti_sci_proc_get_status()
125 dev_err(tsp->dev, "ti-sci processor get_status failed: %d\n", in ti_sci_proc_get_status()