Searched refs:subdev_dev (Results 1 – 4 of 4) sorted by relevance
126 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vdec_hw_probe() local143 subdev_dev = devm_kzalloc(dev, sizeof(*subdev_dev), GFP_KERNEL); in mtk_vdec_hw_probe()144 if (!subdev_dev) in mtk_vdec_hw_probe()147 subdev_dev->plat_dev = pdev; in mtk_vdec_hw_probe()148 ret = mtk_vcodec_init_dec_clk(pdev, &subdev_dev->pm); in mtk_vdec_hw_probe()167 main_dev->subdev_dev[hw_idx] = subdev_dev; in mtk_vdec_hw_probe()168 subdev_dev->hw_idx = hw_idx; in mtk_vdec_hw_probe()169 subdev_dev->main_dev = main_dev; in mtk_vdec_hw_probe()170 subdev_dev->reg_base[VDEC_HW_SYS] = main_dev->reg_base[VDEC_HW_SYS]; in mtk_vdec_hw_probe()171 set_bit(subdev_dev->hw_idx, main_dev->subdev_bitmap); in mtk_vdec_hw_probe()[all …]
79 if (hw_idx >= MTK_VDEC_HW_MAX || hw_idx < 0 || !dev->subdev_dev[hw_idx]) { in mtk_vcodec_get_hw_dev()84 return dev->subdev_dev[hw_idx]; in mtk_vcodec_get_hw_dev()92 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_set_curr_ctx() local96 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_set_curr_ctx()97 if (!subdev_dev) { in mtk_vcodec_set_curr_ctx()102 subdev_dev->curr_ctx = ctx; in mtk_vcodec_set_curr_ctx()115 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_get_curr_ctx() local119 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_get_curr_ctx()120 if (!subdev_dev) { in mtk_vcodec_get_curr_ctx()125 ctx = subdev_dev->curr_ctx; in mtk_vcodec_get_curr_ctx()
113 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_dec_enable_irq() local119 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_enable_irq()120 if (subdev_dev) in mtk_vcodec_dec_enable_irq()121 enable_irq(subdev_dev->dec_irq); in mtk_vcodec_dec_enable_irq()131 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_dec_disable_irq() local137 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_disable_irq()138 if (subdev_dev) in mtk_vcodec_dec_disable_irq()139 disable_irq(subdev_dev->dec_irq); in mtk_vcodec_dec_disable_irq()178 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_dec_get_pm() local184 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_get_pm()[all …]
515 void *subdev_dev[MTK_VDEC_HW_MAX]; member