Home
last modified time | relevance | path

Searched refs:subdev_dev (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_dec_hw.c126 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vdec_hw_probe() local
143 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 …]
Dmtk_vcodec_util.c79 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() local
96 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() local
119 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()
Dmtk_vcodec_dec_pm.c113 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_dec_enable_irq() local
119 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() local
137 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() local
184 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_get_pm()
[all …]
Dmtk_vcodec_drv.h515 void *subdev_dev[MTK_VDEC_HW_MAX]; member