Searched refs:subdev_dev (Results 1 – 4 of 4) sorted by relevance
123 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vdec_hw_probe() local140 subdev_dev = devm_kzalloc(dev, sizeof(*subdev_dev), GFP_KERNEL); in mtk_vdec_hw_probe()141 if (!subdev_dev) in mtk_vdec_hw_probe()144 subdev_dev->plat_dev = pdev; in mtk_vdec_hw_probe()145 ret = mtk_vcodec_init_dec_clk(pdev, &subdev_dev->pm); in mtk_vdec_hw_probe()165 main_dev->subdev_dev[hw_idx] = subdev_dev; in mtk_vdec_hw_probe()166 subdev_dev->hw_idx = hw_idx; in mtk_vdec_hw_probe()167 subdev_dev->main_dev = main_dev; in mtk_vdec_hw_probe()168 subdev_dev->reg_base[VDEC_HW_SYS] = main_dev->reg_base[VDEC_HW_SYS]; in mtk_vdec_hw_probe()169 set_bit(subdev_dev->hw_idx, main_dev->subdev_bitmap); in mtk_vdec_hw_probe()[all …]
110 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_dec_enable_irq() local116 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_enable_irq()117 if (subdev_dev) in mtk_vcodec_dec_enable_irq()118 enable_irq(subdev_dev->dec_irq); in mtk_vcodec_dec_enable_irq()128 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_dec_disable_irq() local134 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_disable_irq()135 if (subdev_dev) in mtk_vcodec_dec_disable_irq()136 disable_irq(subdev_dev->dec_irq); in mtk_vcodec_dec_disable_irq()175 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_dec_get_pm() local181 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_get_pm()[all …]
285 void *subdev_dev[MTK_VDEC_HW_MAX]; member
118 if (hw_idx >= MTK_VDEC_HW_MAX || hw_idx < 0 || !dev->subdev_dev[hw_idx]) { in mtk_vcodec_get_hw_dev()123 return dev->subdev_dev[hw_idx]; in mtk_vcodec_get_hw_dev()131 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_set_curr_ctx() local135 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_set_curr_ctx()136 if (!subdev_dev) { in mtk_vcodec_set_curr_ctx()141 subdev_dev->curr_ctx = ctx; in mtk_vcodec_set_curr_ctx()154 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_get_curr_ctx() local158 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_get_curr_ctx()159 if (!subdev_dev) { in mtk_vcodec_get_curr_ctx()164 ctx = subdev_dev->curr_ctx; in mtk_vcodec_get_curr_ctx()