Home
last modified time | relevance | path

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

/drivers/media/platform/mediatek/vcodec/decoder/
Dmtk_vcodec_dec_hw.c123 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vdec_hw_probe() local
140 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 …]
Dmtk_vcodec_dec_pm.c110 struct mtk_vdec_hw_dev *subdev_dev; in mtk_vcodec_dec_enable_irq() local
116 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() local
134 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() local
181 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_get_pm()
[all …]
Dmtk_vcodec_dec_drv.h285 void *subdev_dev[MTK_VDEC_HW_MAX]; member
/drivers/media/platform/mediatek/vcodec/common/
Dmtk_vcodec_util.c118 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() local
135 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() local
158 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()