Lines Matching refs:pcdev
151 struct deinterlace_dev *pcdev = ctx->dev; in deinterlace_job_ready() local
156 dprintk(pcdev, "Task ready\n"); in deinterlace_job_ready()
160 dprintk(pcdev, "Task not ready to run\n"); in deinterlace_job_ready()
168 struct deinterlace_dev *pcdev = ctx->dev; in deinterlace_job_abort() local
172 dprintk(pcdev, "Aborting task\n"); in deinterlace_job_abort()
174 v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->fh.m2m_ctx); in deinterlace_job_abort()
180 struct deinterlace_dev *pcdev = curr_ctx->dev; in dma_callback() local
183 atomic_set(&pcdev->busy, 0); in dma_callback()
197 v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->fh.m2m_ctx); in dma_callback()
199 dprintk(pcdev, "dma transfers completed.\n"); in dma_callback()
207 struct deinterlace_dev *pcdev = ctx->dev; in deinterlace_issue_dma() local
208 struct dma_chan *chan = pcdev->dma_chan; in deinterlace_issue_dma()
228 v4l2_err(&pcdev->v4l2_dev, in deinterlace_issue_dma()
330 v4l2_warn(&pcdev->v4l2_dev, "DMA interleaved prep error\n"); in deinterlace_issue_dma()
341 v4l2_warn(&pcdev->v4l2_dev, in deinterlace_issue_dma()
843 struct deinterlace_dev *pcdev = video_drvdata(file); in deinterlace_open() local
852 ctx->dev = pcdev; in deinterlace_open()
854 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(pcdev->m2m_dev, ctx, &queue_init); in deinterlace_open()
872 dprintk(pcdev, "Created instance %p, m2m_ctx: %p\n", in deinterlace_open()
880 struct deinterlace_dev *pcdev = video_drvdata(file); in deinterlace_release() local
883 dprintk(pcdev, "Releasing instance %p\n", ctx); in deinterlace_release()
921 struct deinterlace_dev *pcdev; in deinterlace_probe() local
926 pcdev = devm_kzalloc(&pdev->dev, sizeof(*pcdev), GFP_KERNEL); in deinterlace_probe()
927 if (!pcdev) in deinterlace_probe()
930 spin_lock_init(&pcdev->irqlock); in deinterlace_probe()
934 pcdev->dma_chan = dma_request_channel(mask, NULL, pcdev); in deinterlace_probe()
935 if (!pcdev->dma_chan) in deinterlace_probe()
938 if (!dma_has_cap(DMA_INTERLEAVE, pcdev->dma_chan->device->cap_mask)) { in deinterlace_probe()
944 ret = v4l2_device_register(&pdev->dev, &pcdev->v4l2_dev); in deinterlace_probe()
948 atomic_set(&pcdev->busy, 0); in deinterlace_probe()
949 mutex_init(&pcdev->dev_mutex); in deinterlace_probe()
951 vfd = &pcdev->vfd; in deinterlace_probe()
953 vfd->lock = &pcdev->dev_mutex; in deinterlace_probe()
954 vfd->v4l2_dev = &pcdev->v4l2_dev; in deinterlace_probe()
958 v4l2_err(&pcdev->v4l2_dev, "Failed to register video device\n"); in deinterlace_probe()
962 video_set_drvdata(vfd, pcdev); in deinterlace_probe()
963 v4l2_info(&pcdev->v4l2_dev, MEM2MEM_TEST_MODULE_NAME in deinterlace_probe()
966 platform_set_drvdata(pdev, pcdev); in deinterlace_probe()
968 pcdev->m2m_dev = v4l2_m2m_init(&m2m_ops); in deinterlace_probe()
969 if (IS_ERR(pcdev->m2m_dev)) { in deinterlace_probe()
970 v4l2_err(&pcdev->v4l2_dev, "Failed to init mem2mem device\n"); in deinterlace_probe()
971 ret = PTR_ERR(pcdev->m2m_dev); in deinterlace_probe()
978 video_unregister_device(&pcdev->vfd); in deinterlace_probe()
980 v4l2_device_unregister(&pcdev->v4l2_dev); in deinterlace_probe()
982 dma_release_channel(pcdev->dma_chan); in deinterlace_probe()
989 struct deinterlace_dev *pcdev = platform_get_drvdata(pdev); in deinterlace_remove() local
991 v4l2_info(&pcdev->v4l2_dev, "Removing " MEM2MEM_TEST_MODULE_NAME); in deinterlace_remove()
992 v4l2_m2m_release(pcdev->m2m_dev); in deinterlace_remove()
993 video_unregister_device(&pcdev->vfd); in deinterlace_remove()
994 v4l2_device_unregister(&pcdev->v4l2_dev); in deinterlace_remove()
995 dma_release_channel(pcdev->dma_chan); in deinterlace_remove()