Lines Matching +full:ch +full:- +full:func
1 // SPDX-License-Identifier: GPL-2.0+
9 #include <dt-bindings/firmware/imx/rsrc.h>
123 hdr->ver = IMX_SC_RPC_VERSION; in imx_scu_irq_get_status()
124 hdr->svc = IMX_SC_RPC_SVC_IRQ; in imx_scu_irq_get_status()
125 hdr->func = IMX_SC_IRQ_FUNC_STATUS; in imx_scu_irq_get_status()
126 hdr->size = 2; in imx_scu_irq_get_status()
149 return -EPROBE_DEFER; in imx_scu_irq_group_enable()
151 hdr->ver = IMX_SC_RPC_VERSION; in imx_scu_irq_group_enable()
152 hdr->svc = IMX_SC_RPC_SVC_IRQ; in imx_scu_irq_group_enable()
153 hdr->func = IMX_SC_IRQ_FUNC_ENABLE; in imx_scu_irq_group_enable()
154 hdr->size = 3; in imx_scu_irq_group_enable()
203 struct mbox_chan *ch; in imx_scu_enable_general_irq_channel() local
212 return -ENOMEM; in imx_scu_enable_general_irq_channel()
214 cl->dev = dev; in imx_scu_enable_general_irq_channel()
215 cl->rx_callback = imx_scu_irq_callback; in imx_scu_enable_general_irq_channel()
218 ch = mbox_request_channel_byname(cl, "gip3"); in imx_scu_enable_general_irq_channel()
219 if (IS_ERR(ch)) { in imx_scu_enable_general_irq_channel()
220 ret = PTR_ERR(ch); in imx_scu_enable_general_irq_channel()
228 if (!of_parse_phandle_with_args(dev->of_node, "mboxes", in imx_scu_enable_general_irq_channel()
229 "#mbox-cells", 0, &spec)) in imx_scu_enable_general_irq_channel()
241 ret = -ENOMEM; in imx_scu_enable_general_irq_channel()
255 mbox_free_channel(ch); in imx_scu_enable_general_irq_channel()