Lines Matching refs:bdisp_dev
124 spin_lock_irqsave(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_lock_set()
126 spin_unlock_irqrestore(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_lock_set()
133 spin_lock_irqsave(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_lock_clear()
135 spin_unlock_irqrestore(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_lock_clear()
143 spin_lock_irqsave(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_is_set()
145 spin_unlock_irqrestore(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_is_set()
173 dev_err(ctx->bdisp_dev->dev, in ctx_get_frame()
188 dev_dbg(ctx->bdisp_dev->dev, "%s\n", __func__); in bdisp_job_finish()
203 v4l2_m2m_job_finish(ctx->bdisp_dev->m2m.m2m_dev, in bdisp_job_finish()
211 struct bdisp_dev *bdisp = ctx->bdisp_dev; in bdisp_ctx_stop_req()
214 dev_dbg(ctx->bdisp_dev->dev, "%s\n", __func__); in bdisp_ctx_stop_req()
229 dev_err(ctx->bdisp_dev->dev, "%s IRQ timeout\n", __func__); in bdisp_ctx_stop_req()
272 dev_dbg(ctx->bdisp_dev->dev, "ignoring some planes\n"); in bdisp_get_addr()
274 dev_dbg(ctx->bdisp_dev->dev, in bdisp_get_addr()
308 struct bdisp_dev *bdisp; in bdisp_device_run()
315 bdisp = ctx->bdisp_dev; in bdisp_device_run()
381 dev_err(ctx->bdisp_dev->dev, "unknown control %d\n", ctrl->id); in __bdisp_s_ctrl()
397 spin_lock_irqsave(&ctx->bdisp_dev->slock, flags); in bdisp_s_ctrl()
399 spin_unlock_irqrestore(&ctx->bdisp_dev->slock, flags); in bdisp_s_ctrl()
448 dev_err(ctx->bdisp_dev->dev, "Invalid frame (%p)\n", frame); in bdisp_queue_setup()
453 dev_err(ctx->bdisp_dev->dev, "Invalid format\n"); in bdisp_queue_setup()
472 dev_err(ctx->bdisp_dev->dev, "Invalid frame (%p)\n", frame); in bdisp_buf_prepare()
489 dev_dbg(ctx->bdisp_dev->dev, "0 data buffer, skip it\n"); in bdisp_buf_queue()
502 int ret = pm_runtime_resume_and_get(ctx->bdisp_dev->dev); in bdisp_start_streaming()
505 dev_err(ctx->bdisp_dev->dev, "failed to set runtime PM\n"); in bdisp_start_streaming()
527 pm_runtime_put(ctx->bdisp_dev->dev); in bdisp_stop_streaming()
554 src_vq->lock = &ctx->bdisp_dev->lock; in queue_init()
555 src_vq->dev = ctx->bdisp_dev->v4l2_dev.dev; in queue_init()
569 dst_vq->lock = &ctx->bdisp_dev->lock; in queue_init()
570 dst_vq->dev = ctx->bdisp_dev->v4l2_dev.dev; in queue_init()
577 struct bdisp_dev *bdisp = video_drvdata(file); in bdisp_open()
590 ctx->bdisp_dev = bdisp; in bdisp_open()
650 struct bdisp_dev *bdisp = ctx->bdisp_dev; in bdisp_release()
688 struct bdisp_dev *bdisp = ctx->bdisp_dev; in bdisp_querycap()
709 dev_dbg(ctx->bdisp_dev->dev, "No YU12 on capture\n"); in bdisp_enum_fmt()
724 dev_err(ctx->bdisp_dev->dev, "Invalid frame (%p)\n", frame); in bdisp_g_fmt()
750 dev_dbg(ctx->bdisp_dev->dev, "Unknown format 0x%x\n", in bdisp_try_fmt()
758 dev_dbg(ctx->bdisp_dev->dev, "No YU12 on capture\n"); in bdisp_try_fmt()
778 dev_dbg(ctx->bdisp_dev->dev, in bdisp_try_fmt()
802 dev_err(ctx->bdisp_dev->dev, "Cannot set format\n"); in bdisp_s_fmt()
808 dev_err(ctx->bdisp_dev->dev, "queue (%d) busy\n", f->type); in bdisp_s_fmt()
817 dev_err(ctx->bdisp_dev->dev, "Unknown format 0x%x\n", in bdisp_s_fmt()
851 dev_err(ctx->bdisp_dev->dev, "Invalid frame (%p)\n", frame); in bdisp_g_selection()
871 dev_err(ctx->bdisp_dev->dev, "Invalid target\n"); in bdisp_g_selection()
892 dev_err(ctx->bdisp_dev->dev, "Invalid target\n"); in bdisp_g_selection()
898 dev_err(ctx->bdisp_dev->dev, "Invalid type\n"); in bdisp_g_selection()
938 dev_err(ctx->bdisp_dev->dev, "Invalid type / target\n"); in bdisp_s_selection()
944 dev_err(ctx->bdisp_dev->dev, "Invalid frame (%p)\n", frame); in bdisp_s_selection()
957 dev_err(ctx->bdisp_dev->dev, in bdisp_s_selection()
970 dev_err(ctx->bdisp_dev->dev, in bdisp_s_selection()
986 dev_dbg(ctx->bdisp_dev->dev, in bdisp_s_selection()
1006 dev_err(ctx->bdisp_dev->dev, "src not defined\n"); in bdisp_streamon()
1012 dev_err(ctx->bdisp_dev->dev, "dst not defined\n"); in bdisp_streamon()
1043 static int bdisp_register_device(struct bdisp_dev *bdisp) in bdisp_register_device()
1080 static void bdisp_unregister_device(struct bdisp_dev *bdisp) in bdisp_unregister_device()
1093 struct bdisp_dev *bdisp = priv; in bdisp_irq_thread()
1134 if (bdisp_hw_get_and_clear_irq((struct bdisp_dev *)priv)) in bdisp_irq_handler()
1143 struct bdisp_dev *bdisp = container_of(twork, struct bdisp_dev, in bdisp_irq_timeout()
1149 dev_err(ctx->bdisp_dev->dev, "Device work timeout\n"); in bdisp_irq_timeout()
1160 static int bdisp_m2m_suspend(struct bdisp_dev *bdisp) in bdisp_m2m_suspend()
1188 static int bdisp_m2m_resume(struct bdisp_dev *bdisp) in bdisp_m2m_resume()
1206 struct bdisp_dev *bdisp = dev_get_drvdata(dev); in bdisp_runtime_resume()
1217 struct bdisp_dev *bdisp = dev_get_drvdata(dev); in bdisp_runtime_suspend()
1228 struct bdisp_dev *bdisp = dev_get_drvdata(dev); in bdisp_resume()
1262 struct bdisp_dev *bdisp = platform_get_drvdata(pdev); in bdisp_remove()
1284 struct bdisp_dev *bdisp; in bdisp_probe()
1290 bdisp = devm_kzalloc(dev, sizeof(struct bdisp_dev), GFP_KERNEL); in bdisp_probe()