Lines Matching refs:cmdq_client
54 struct cmdq_client cmdq_client; member
115 static int mtk_drm_cmdq_pkt_create(struct cmdq_client *client, struct cmdq_pkt *pkt, in mtk_drm_cmdq_pkt_create()
144 struct cmdq_client *client = (struct cmdq_client *)pkt->cl; in mtk_drm_cmdq_pkt_destroy()
161 if (mtk_crtc->cmdq_client.chan) { in mtk_drm_crtc_destroy()
162 mbox_free_channel(mtk_crtc->cmdq_client.chan); in mtk_drm_crtc_destroy()
163 mtk_crtc->cmdq_client.chan = NULL; in mtk_drm_crtc_destroy()
290 struct cmdq_client *cmdq_cl = container_of(cl, struct cmdq_client, client); in ddp_cmdq_cb()
291 struct mtk_drm_crtc *mtk_crtc = container_of(cmdq_cl, struct mtk_drm_crtc, cmdq_client); in ddp_cmdq_cb()
590 if (mtk_crtc->cmdq_client.chan) { in mtk_drm_crtc_update_config()
591 mbox_flush(mtk_crtc->cmdq_client.chan, 2000); in mtk_drm_crtc_update_config()
597 dma_sync_single_for_device(mtk_crtc->cmdq_client.chan->mbox->dev, in mtk_drm_crtc_update_config()
610 mbox_send_message(mtk_crtc->cmdq_client.chan, cmdq_handle); in mtk_drm_crtc_update_config()
611 mbox_client_txdone(mtk_crtc->cmdq_client.chan, 0); in mtk_drm_crtc_update_config()
625 if (!priv->data->shadow_register && !mtk_crtc->cmdq_client.chan) in mtk_crtc_ddp_irq()
728 if (mtk_crtc->cmdq_client.chan) in mtk_drm_crtc_atomic_disable()
1020 mtk_crtc->cmdq_client.client.dev = mtk_crtc->mmsys_dev; in mtk_drm_crtc_create()
1021 mtk_crtc->cmdq_client.client.tx_block = false; in mtk_drm_crtc_create()
1022 mtk_crtc->cmdq_client.client.knows_txdone = true; in mtk_drm_crtc_create()
1023 mtk_crtc->cmdq_client.client.rx_callback = ddp_cmdq_cb; in mtk_drm_crtc_create()
1024 mtk_crtc->cmdq_client.chan = in mtk_drm_crtc_create()
1025 mbox_request_channel(&mtk_crtc->cmdq_client.client, i); in mtk_drm_crtc_create()
1026 if (IS_ERR(mtk_crtc->cmdq_client.chan)) { in mtk_drm_crtc_create()
1029 mtk_crtc->cmdq_client.chan = NULL; in mtk_drm_crtc_create()
1032 if (mtk_crtc->cmdq_client.chan) { in mtk_drm_crtc_create()
1040 mbox_free_channel(mtk_crtc->cmdq_client.chan); in mtk_drm_crtc_create()
1041 mtk_crtc->cmdq_client.chan = NULL; in mtk_drm_crtc_create()
1043 ret = mtk_drm_cmdq_pkt_create(&mtk_crtc->cmdq_client, in mtk_drm_crtc_create()
1049 mbox_free_channel(mtk_crtc->cmdq_client.chan); in mtk_drm_crtc_create()
1050 mtk_crtc->cmdq_client.chan = NULL; in mtk_drm_crtc_create()