Lines Matching refs:hw_idx
116 void *mtk_vcodec_get_hw_dev(struct mtk_vcodec_dec_dev *dev, int hw_idx)
118 if (hw_idx >= MTK_VDEC_HW_MAX || hw_idx < 0 || !dev->subdev_dev[hw_idx]) {
119 dev_err(&dev->plat_dev->dev, "hw idx is out of range:%d", hw_idx);
123 return dev->subdev_dev[hw_idx];
128 struct mtk_vcodec_dec_ctx *ctx, int hw_idx)
135 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx);
150 unsigned int hw_idx)
158 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx);