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()
450 dev_err(ctx->bdisp_dev->dev, "Invalid frame (%p)\n", frame); in bdisp_queue_setup()
455 dev_err(ctx->bdisp_dev->dev, "Invalid format\n"); in bdisp_queue_setup()
464 allocators[0] = ctx->bdisp_dev->alloc_ctx; in bdisp_queue_setup()
475 dev_err(ctx->bdisp_dev->dev, "Invalid frame (%p)\n", frame); in bdisp_buf_prepare()
492 dev_dbg(ctx->bdisp_dev->dev, "0 data buffer, skip it\n"); in bdisp_buf_queue()
505 int ret = pm_runtime_get_sync(ctx->bdisp_dev->dev); in bdisp_start_streaming()
508 dev_err(ctx->bdisp_dev->dev, "failed to set runtime PM\n"); in bdisp_start_streaming()
530 pm_runtime_put(ctx->bdisp_dev->dev); in bdisp_stop_streaming()
557 src_vq->lock = &ctx->bdisp_dev->lock; in queue_init()
571 dst_vq->lock = &ctx->bdisp_dev->lock; in queue_init()
578 struct bdisp_dev *bdisp = video_drvdata(file); in bdisp_open()
591 ctx->bdisp_dev = bdisp; in bdisp_open()
651 struct bdisp_dev *bdisp = ctx->bdisp_dev; in bdisp_release()
690 struct bdisp_dev *bdisp = ctx->bdisp_dev; in bdisp_querycap()
716 dev_dbg(ctx->bdisp_dev->dev, "No YU12 on capture\n"); in bdisp_enum_fmt()
731 dev_err(ctx->bdisp_dev->dev, "Invalid frame (%p)\n", frame); in bdisp_g_fmt()
757 dev_dbg(ctx->bdisp_dev->dev, "Unknown format 0x%x\n", in bdisp_try_fmt()
765 dev_dbg(ctx->bdisp_dev->dev, "No YU12 on capture\n"); in bdisp_try_fmt()
785 dev_dbg(ctx->bdisp_dev->dev, in bdisp_try_fmt()
809 dev_err(ctx->bdisp_dev->dev, "Cannot set format\n"); in bdisp_s_fmt()
815 dev_err(ctx->bdisp_dev->dev, "queue (%d) busy\n", f->type); in bdisp_s_fmt()
824 dev_err(ctx->bdisp_dev->dev, "Unknown format 0x%x\n", in bdisp_s_fmt()
858 dev_err(ctx->bdisp_dev->dev, "Invalid frame (%p)\n", frame); in bdisp_g_selection()
878 dev_err(ctx->bdisp_dev->dev, "Invalid target\n"); in bdisp_g_selection()
899 dev_err(ctx->bdisp_dev->dev, "Invalid target\n"); in bdisp_g_selection()
905 dev_err(ctx->bdisp_dev->dev, "Invalid type\n"); in bdisp_g_selection()
945 dev_err(ctx->bdisp_dev->dev, "Invalid type / target\n"); in bdisp_s_selection()
951 dev_err(ctx->bdisp_dev->dev, "Invalid frame (%p)\n", frame); in bdisp_s_selection()
964 dev_err(ctx->bdisp_dev->dev, in bdisp_s_selection()
977 dev_err(ctx->bdisp_dev->dev, in bdisp_s_selection()
993 dev_dbg(ctx->bdisp_dev->dev, in bdisp_s_selection()
1013 dev_err(ctx->bdisp_dev->dev, "src not defined\n"); in bdisp_streamon()
1019 dev_err(ctx->bdisp_dev->dev, "dst not defined\n"); in bdisp_streamon()
1050 static int bdisp_register_device(struct bdisp_dev *bdisp) in bdisp_register_device()
1086 static void bdisp_unregister_device(struct bdisp_dev *bdisp) in bdisp_unregister_device()
1099 struct bdisp_dev *bdisp = priv; in bdisp_irq_thread()
1140 if (bdisp_hw_get_and_clear_irq((struct bdisp_dev *)priv)) in bdisp_irq_handler()
1149 struct bdisp_dev *bdisp = container_of(twork, struct bdisp_dev, in bdisp_irq_timeout()
1155 dev_err(ctx->bdisp_dev->dev, "Device work timeout\n"); in bdisp_irq_timeout()
1166 static int bdisp_m2m_suspend(struct bdisp_dev *bdisp) in bdisp_m2m_suspend()
1194 static int bdisp_m2m_resume(struct bdisp_dev *bdisp) in bdisp_m2m_resume()
1212 struct bdisp_dev *bdisp = dev_get_drvdata(dev); in bdisp_runtime_resume()
1223 struct bdisp_dev *bdisp = dev_get_drvdata(dev); in bdisp_runtime_suspend()
1234 struct bdisp_dev *bdisp = dev_get_drvdata(dev); in bdisp_resume()
1268 struct bdisp_dev *bdisp = platform_get_drvdata(pdev); in bdisp_remove()
1292 struct bdisp_dev *bdisp; in bdisp_probe()
1299 bdisp = devm_kzalloc(dev, sizeof(struct bdisp_dev), GFP_KERNEL); in bdisp_probe()