Lines Matching refs:dsp_ipc
62 struct mbox_chan *imx_dsp_request_channel(struct imx_dsp_ipc *dsp_ipc, int idx) in imx_dsp_request_channel() argument
69 dsp_chan = &dsp_ipc->chans[idx]; in imx_dsp_request_channel()
75 void imx_dsp_free_channel(struct imx_dsp_ipc *dsp_ipc, int idx) in imx_dsp_free_channel() argument
82 dsp_chan = &dsp_ipc->chans[idx]; in imx_dsp_free_channel()
87 static int imx_dsp_setup_channels(struct imx_dsp_ipc *dsp_ipc) in imx_dsp_setup_channels() argument
89 struct device *dev = dsp_ipc->dev; in imx_dsp_setup_channels()
105 dsp_chan = &dsp_ipc->chans[i]; in imx_dsp_setup_channels()
113 dsp_chan->ipc = dsp_ipc; in imx_dsp_setup_channels()
131 dsp_chan = &dsp_ipc->chans[j]; in imx_dsp_setup_channels()
142 struct imx_dsp_ipc *dsp_ipc; in imx_dsp_probe() local
147 dsp_ipc = devm_kzalloc(dev, sizeof(*dsp_ipc), GFP_KERNEL); in imx_dsp_probe()
148 if (!dsp_ipc) in imx_dsp_probe()
151 dsp_ipc->dev = dev; in imx_dsp_probe()
152 dev_set_drvdata(dev, dsp_ipc); in imx_dsp_probe()
154 ret = imx_dsp_setup_channels(dsp_ipc); in imx_dsp_probe()
166 struct imx_dsp_ipc *dsp_ipc; in imx_dsp_remove() local
169 dsp_ipc = dev_get_drvdata(&pdev->dev); in imx_dsp_remove()
172 dsp_chan = &dsp_ipc->chans[i]; in imx_dsp_remove()