Home
last modified time | relevance | path

Searched refs:vdec_dev (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_dec_pm.c111 static void mtk_vcodec_dec_enable_irq(struct mtk_vcodec_dev *vdec_dev, int hw_idx) in mtk_vcodec_dec_enable_irq() argument
115 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap)) in mtk_vcodec_dec_enable_irq()
118 if (vdec_dev->vdec_pdata->is_subdev_supported) { in mtk_vcodec_dec_enable_irq()
119 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_enable_irq()
125 enable_irq(vdec_dev->dec_irq); in mtk_vcodec_dec_enable_irq()
129 static void mtk_vcodec_dec_disable_irq(struct mtk_vcodec_dev *vdec_dev, int hw_idx) in mtk_vcodec_dec_disable_irq() argument
133 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap)) in mtk_vcodec_dec_disable_irq()
136 if (vdec_dev->vdec_pdata->is_subdev_supported) { in mtk_vcodec_dec_disable_irq()
137 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_disable_irq()
143 disable_irq(vdec_dev->dec_irq); in mtk_vcodec_dec_disable_irq()
[all …]
Dmtk_vcodec_util.c88 void mtk_vcodec_set_curr_ctx(struct mtk_vcodec_dev *vdec_dev, in mtk_vcodec_set_curr_ctx() argument
94 spin_lock_irqsave(&vdec_dev->irqlock, flags); in mtk_vcodec_set_curr_ctx()
95 if (vdec_dev->vdec_pdata->is_subdev_supported) { in mtk_vcodec_set_curr_ctx()
96 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_set_curr_ctx()
99 spin_unlock_irqrestore(&vdec_dev->irqlock, flags); in mtk_vcodec_set_curr_ctx()
104 vdec_dev->curr_ctx = ctx; in mtk_vcodec_set_curr_ctx()
106 spin_unlock_irqrestore(&vdec_dev->irqlock, flags); in mtk_vcodec_set_curr_ctx()
110 struct mtk_vcodec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dev *vdec_dev, in mtk_vcodec_get_curr_ctx() argument
117 spin_lock_irqsave(&vdec_dev->irqlock, flags); in mtk_vcodec_get_curr_ctx()
118 if (vdec_dev->vdec_pdata->is_subdev_supported) { in mtk_vcodec_get_curr_ctx()
[all …]
Dmtk_vcodec_util.h57 void mtk_vcodec_set_curr_ctx(struct mtk_vcodec_dev *vdec_dev,
59 struct mtk_vcodec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dev *vdec_dev,
Dmtk_vcodec_dec_hw.c39 static int mtk_vdec_hw_prob_done(struct mtk_vcodec_dev *vdec_dev) in mtk_vdec_hw_prob_done() argument
41 struct platform_device *pdev = vdec_dev->plat_dev; in mtk_vdec_hw_prob_done()
57 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap)) { in mtk_vdec_hw_prob_done()
Dmtk_vcodec_drv.h516 int (*subdev_prob_done)(struct mtk_vcodec_dev *vdec_dev);