Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_dec_hw.c122 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vdec_hw_probe() local
139 subdev_dev = devm_kzalloc(dev, sizeof(*subdev_dev), GFP_KERNEL); in mtk_vdec_hw_probe()
140 if (!subdev_dev) in mtk_vdec_hw_probe()
143 subdev_dev->plat_dev = pdev; in mtk_vdec_hw_probe()
144 ret = mtk_vcodec_init_dec_clk(pdev, &subdev_dev->pm); in mtk_vdec_hw_probe()
163 main_dev->subdev_dev[hw_idx] = subdev_dev; in mtk_vdec_hw_probe()
164 subdev_dev->hw_idx = hw_idx; in mtk_vdec_hw_probe()
165 subdev_dev->main_dev = main_dev; in mtk_vdec_hw_probe()
166 subdev_dev->reg_base[VDEC_HW_SYS] = main_dev->reg_base[VDEC_HW_SYS]; in mtk_vdec_hw_probe()
167 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()
150 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_dec_get_pm() local
156 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_get_pm()
[all …]
Dmtk_vcodec_drv.h518 void *subdev_dev[MTK_VDEC_HW_MAX]; member