Lines Matching refs:pcdev

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