Searched refs:vdec_dev (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/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_drv.c | 333 static void mtk_vcodec_dec_get_chip_name(struct mtk_vcodec_dec_dev *vdec_dev) in mtk_vcodec_dec_get_chip_name() argument 335 struct device *dev = &vdec_dev->plat_dev->dev; in mtk_vcodec_dec_get_chip_name() 338 vdec_dev->chip_name = MTK_VDEC_MT8173; in mtk_vcodec_dec_get_chip_name() 340 vdec_dev->chip_name = MTK_VDEC_MT8183; in mtk_vcodec_dec_get_chip_name() 342 vdec_dev->chip_name = MTK_VDEC_MT8192; in mtk_vcodec_dec_get_chip_name() 344 vdec_dev->chip_name = MTK_VDEC_MT8195; in mtk_vcodec_dec_get_chip_name() 346 vdec_dev->chip_name = MTK_VDEC_MT8186; in mtk_vcodec_dec_get_chip_name() 348 vdec_dev->chip_name = MTK_VDEC_MT8188; in mtk_vcodec_dec_get_chip_name() 350 vdec_dev->chip_name = MTK_VDEC_INVAL; in mtk_vcodec_dec_get_chip_name()
|
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 | 298 int (*subdev_prob_done)(struct mtk_vcodec_dec_dev *vdec_dev);
|
/linux-6.12.1/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,
|