Lines Matching +full:sc +full:- +full:resource
1 // SPDX-License-Identifier: GPL-2.0+
5 * File containing client-side RPC functions for the RM service. These
6 * function are ported to clients that communicate to the SC.
13 u16 resource; member
17 * This function check @resource is owned by current partition or not
20 * @param[in] resource resource the control is associated with
24 bool imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource) in imx_sc_rm_is_resource_owned() argument
29 hdr->ver = IMX_SC_RPC_VERSION; in imx_sc_rm_is_resource_owned()
30 hdr->svc = IMX_SC_RPC_SVC_RM; in imx_sc_rm_is_resource_owned()
31 hdr->func = IMX_SC_RM_FUNC_IS_RESOURCE_OWNED; in imx_sc_rm_is_resource_owned()
32 hdr->size = 2; in imx_sc_rm_is_resource_owned()
34 msg.resource = resource; in imx_sc_rm_is_resource_owned()
38 * for resource owned check which means not owned or owned. in imx_sc_rm_is_resource_owned()
43 return hdr->func; in imx_sc_rm_is_resource_owned()
51 u16 resource; member
60 * This function get @resource partition number
63 * @param[in] resource resource the control is associated with
68 int imx_sc_rm_get_resource_owner(struct imx_sc_ipc *ipc, u16 resource, u8 *pt) in imx_sc_rm_get_resource_owner() argument
74 hdr->ver = IMX_SC_RPC_VERSION; in imx_sc_rm_get_resource_owner()
75 hdr->svc = IMX_SC_RPC_SVC_RM; in imx_sc_rm_get_resource_owner()
76 hdr->func = IMX_SC_RM_FUNC_GET_RESOURCE_OWNER; in imx_sc_rm_get_resource_owner()
77 hdr->size = 2; in imx_sc_rm_get_resource_owner()
79 msg.data.req.resource = resource; in imx_sc_rm_get_resource_owner()