Lines Matching refs:cdx_mcdi
26 int cdx_rpmsg_send(struct cdx_mcdi *cdx_mcdi, in cdx_rpmsg_send() argument
40 ret = rpmsg_send(cdx_mcdi->ept, send_buf, hdr_len + sdu_len); in cdx_rpmsg_send()
50 struct cdx_mcdi *cdx_mcdi; in cdx_attach_to_rproc() local
57 cdx_mcdi = cdx_c->priv; in cdx_attach_to_rproc()
79 cdx_mcdi->r5_rproc = rp; in cdx_attach_to_rproc()
88 struct cdx_mcdi *cdx_mcdi; in cdx_detach_to_r5() local
91 cdx_mcdi = cdx_c->priv; in cdx_detach_to_r5()
93 rproc_detach(cdx_mcdi->r5_rproc); in cdx_detach_to_r5()
94 rproc_put(cdx_mcdi->r5_rproc); in cdx_detach_to_r5()
101 struct cdx_mcdi *cdx_mcdi = cdx_c->priv; in cdx_rpmsg_cb() local
106 cdx_mcdi_process_cmd(cdx_mcdi, (struct cdx_dword *)data, len); in cdx_rpmsg_cb()
114 struct cdx_mcdi *cdx_mcdi; in cdx_rpmsg_post_probe_work() local
116 cdx_mcdi = container_of(work, struct cdx_mcdi, work); in cdx_rpmsg_post_probe_work()
117 cdx_c = dev_get_drvdata(&cdx_mcdi->rpdev->dev); in cdx_rpmsg_post_probe_work()
125 struct cdx_mcdi *cdx_mcdi; in cdx_rpmsg_probe() local
128 cdx_mcdi = cdx_c->priv; in cdx_rpmsg_probe()
135 cdx_mcdi->ept = rpmsg_create_ept(rpdev, cdx_rpmsg_cb, NULL, chinfo); in cdx_rpmsg_probe()
136 if (!cdx_mcdi->ept) { in cdx_rpmsg_probe()
143 cdx_mcdi->rpdev = rpdev; in cdx_rpmsg_probe()
146 schedule_work(&cdx_mcdi->work); in cdx_rpmsg_probe()
153 struct cdx_mcdi *cdx_mcdi = cdx_c->priv; in cdx_rpmsg_remove() local
155 flush_work(&cdx_mcdi->work); in cdx_rpmsg_remove()
158 rpmsg_destroy_ept(cdx_mcdi->ept); in cdx_rpmsg_remove()
173 struct cdx_mcdi *cdx_mcdi; in cdx_setup_rpmsg() local
182 cdx_mcdi = cdx_c->priv; in cdx_setup_rpmsg()
187 INIT_WORK(&cdx_mcdi->work, cdx_rpmsg_post_probe_work); in cdx_setup_rpmsg()