Lines Matching +full:ipc +full:- +full:3
1 // SPDX-License-Identifier: GPL-2.0+
7 * File containing client-side RPC functions for the MISC service. These
43 * @param[in] ipc IPC handle
51 int imx_sc_misc_set_control(struct imx_sc_ipc *ipc, u32 resource, in imx_sc_misc_set_control() argument
57 hdr->ver = IMX_SC_RPC_VERSION; in imx_sc_misc_set_control()
58 hdr->svc = (uint8_t)IMX_SC_RPC_SVC_MISC; in imx_sc_misc_set_control()
59 hdr->func = (uint8_t)IMX_SC_MISC_FUNC_SET_CONTROL; in imx_sc_misc_set_control()
60 hdr->size = 4; in imx_sc_misc_set_control()
66 return imx_scu_call_rpc(ipc, &msg, true); in imx_sc_misc_set_control()
73 * @param[in] ipc IPC handle
81 int imx_sc_misc_get_control(struct imx_sc_ipc *ipc, u32 resource, in imx_sc_misc_get_control() argument
89 hdr->ver = IMX_SC_RPC_VERSION; in imx_sc_misc_get_control()
90 hdr->svc = (uint8_t)IMX_SC_RPC_SVC_MISC; in imx_sc_misc_get_control()
91 hdr->func = (uint8_t)IMX_SC_MISC_FUNC_GET_CONTROL; in imx_sc_misc_get_control()
92 hdr->size = 3; in imx_sc_misc_get_control()
97 ret = imx_scu_call_rpc(ipc, &msg, true); in imx_sc_misc_get_control()
103 *val = resp->val; in imx_sc_misc_get_control()
112 * @param[in] ipc IPC handle
119 int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource, in imx_sc_pm_cpu_start() argument
125 hdr->ver = IMX_SC_RPC_VERSION; in imx_sc_pm_cpu_start()
126 hdr->svc = IMX_SC_RPC_SVC_PM; in imx_sc_pm_cpu_start()
127 hdr->func = IMX_SC_PM_FUNC_CPU_START; in imx_sc_pm_cpu_start()
128 hdr->size = 4; in imx_sc_pm_cpu_start()
135 return imx_scu_call_rpc(ipc, &msg, true); in imx_sc_pm_cpu_start()