Searched refs:vdec_dev (Results 1 – 5 of 5) sorted by relevance
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/ |
D | mtk_vcodec_dec_pm.c | 108 static void mtk_vcodec_dec_enable_irq(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) in mtk_vcodec_dec_enable_irq() argument 112 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap)) in mtk_vcodec_dec_enable_irq() 115 if (vdec_dev->vdec_pdata->is_subdev_supported) { in mtk_vcodec_dec_enable_irq() 116 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_enable_irq() 120 dev_err(&vdec_dev->plat_dev->dev, "Failed to get hw dev\n"); in mtk_vcodec_dec_enable_irq() 122 enable_irq(vdec_dev->dec_irq); in mtk_vcodec_dec_enable_irq() 126 static void mtk_vcodec_dec_disable_irq(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) in mtk_vcodec_dec_disable_irq() argument 130 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap)) in mtk_vcodec_dec_disable_irq() 133 if (vdec_dev->vdec_pdata->is_subdev_supported) { in mtk_vcodec_dec_disable_irq() 134 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_disable_irq() [all …]
|
D | mtk_vcodec_dec_hw.c | 37 static int mtk_vdec_hw_prob_done(struct mtk_vcodec_dec_dev *vdec_dev) in mtk_vdec_hw_prob_done() argument 39 struct platform_device *pdev = vdec_dev->plat_dev; in mtk_vdec_hw_prob_done() 55 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap)) { in mtk_vdec_hw_prob_done()
|
D | mtk_vcodec_dec_drv.h | 284 int (*subdev_prob_done)(struct mtk_vcodec_dec_dev *vdec_dev);
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/common/ |
D | mtk_vcodec_util.c | 127 void mtk_vcodec_set_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev, in mtk_vcodec_set_curr_ctx() argument 133 spin_lock_irqsave(&vdec_dev->irqlock, flags); in mtk_vcodec_set_curr_ctx() 134 if (vdec_dev->vdec_pdata->is_subdev_supported) { in mtk_vcodec_set_curr_ctx() 135 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_set_curr_ctx() 137 dev_err(&vdec_dev->plat_dev->dev, "Failed to get hw dev"); in mtk_vcodec_set_curr_ctx() 138 spin_unlock_irqrestore(&vdec_dev->irqlock, flags); in mtk_vcodec_set_curr_ctx() 143 vdec_dev->curr_ctx = ctx; in mtk_vcodec_set_curr_ctx() 145 spin_unlock_irqrestore(&vdec_dev->irqlock, flags); in mtk_vcodec_set_curr_ctx() 149 struct mtk_vcodec_dec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev, in mtk_vcodec_get_curr_ctx() argument 156 spin_lock_irqsave(&vdec_dev->irqlock, flags); in mtk_vcodec_get_curr_ctx() [all …]
|
D | mtk_vcodec_util.h | 69 void mtk_vcodec_set_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev, 71 struct mtk_vcodec_dec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev,
|