Lines Matching +full:sci +full:- +full:dev +full:- +full:id
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Texas Instruments TI-SCI Processor Controller Helper Functions
5 * Copyright (C) 2018-2020 Texas Instruments Incorporated - https://www.ti.com/
6 * Suman Anna <s-anna@ti.com>
15 * struct ti_sci_proc - structure representing a processor control client
16 * @sci: cached TI-SCI protocol handle
17 * @ops: cached TI-SCI proc ops
18 * @dev: cached client device pointer
19 * @proc_id: processor id for the consumer remoteproc device
20 * @host_id: host id to pass the control over for this consumer remoteproc
24 const struct ti_sci_handle *sci; member
26 struct device *dev; member
35 ret = tsp->ops->request(tsp->sci, tsp->proc_id); in ti_sci_proc_request()
37 dev_err(tsp->dev, "ti-sci processor request failed: %d\n", in ti_sci_proc_request()
46 ret = tsp->ops->release(tsp->sci, tsp->proc_id); in ti_sci_proc_release()
48 dev_err(tsp->dev, "ti-sci processor release failed: %d\n", in ti_sci_proc_release()
57 ret = tsp->ops->handover(tsp->sci, tsp->proc_id, tsp->host_id); in ti_sci_proc_handover()
59 dev_err(tsp->dev, "ti-sci processor handover of %d to %d failed: %d\n", in ti_sci_proc_handover()
60 tsp->proc_id, tsp->host_id, ret); in ti_sci_proc_handover()
70 ret = tsp->ops->set_config(tsp->sci, tsp->proc_id, boot_vector, in ti_sci_proc_set_config()
73 dev_err(tsp->dev, "ti-sci processor set_config failed: %d\n", in ti_sci_proc_set_config()
83 ret = tsp->ops->set_control(tsp->sci, tsp->proc_id, ctrl_set, ctrl_clr); in ti_sci_proc_set_control()
85 dev_err(tsp->dev, "ti-sci processor set_control failed: %d\n", in ti_sci_proc_set_control()
96 ret = tsp->ops->get_status(tsp->sci, tsp->proc_id, boot_vector, in ti_sci_proc_get_status()
99 dev_err(tsp->dev, "ti-sci processor get_status failed: %d\n", in ti_sci_proc_get_status()