Lines Matching refs:buf_id
672 static int gsc_src_set_buf_seq(struct gsc_context *ctx, u32 buf_id, in gsc_src_set_buf_seq() argument
678 u32 mask = 0x00000001 << buf_id; in gsc_src_set_buf_seq()
681 buf_id, buf_type); in gsc_src_set_buf_seq()
700 cfg |= masked << buf_id; in gsc_src_set_buf_seq()
709 struct drm_exynos_ipp_buf_info *buf_info, u32 buf_id, in gsc_src_set_addr() argument
725 property->prop_id, buf_id, buf_type); in gsc_src_set_addr()
727 if (buf_id > GSC_MAX_SRC) { in gsc_src_set_addr()
728 dev_info(ippdrv->dev, "inavlid buf_id %d.\n", buf_id); in gsc_src_set_addr()
736 GSC_IN_BASE_ADDR_Y(buf_id)); in gsc_src_set_addr()
738 GSC_IN_BASE_ADDR_CB(buf_id)); in gsc_src_set_addr()
740 GSC_IN_BASE_ADDR_CR(buf_id)); in gsc_src_set_addr()
743 gsc_write(0x0, GSC_IN_BASE_ADDR_Y(buf_id)); in gsc_src_set_addr()
744 gsc_write(0x0, GSC_IN_BASE_ADDR_CB(buf_id)); in gsc_src_set_addr()
745 gsc_write(0x0, GSC_IN_BASE_ADDR_CR(buf_id)); in gsc_src_set_addr()
752 return gsc_src_set_buf_seq(ctx, buf_id, buf_type); in gsc_src_set_addr()
1112 static int gsc_dst_set_buf_seq(struct gsc_context *ctx, u32 buf_id, in gsc_dst_set_buf_seq() argument
1118 u32 mask = 0x00000001 << buf_id; in gsc_dst_set_buf_seq()
1122 buf_id, buf_type); in gsc_dst_set_buf_seq()
1144 cfg |= masked << buf_id; in gsc_dst_set_buf_seq()
1165 struct drm_exynos_ipp_buf_info *buf_info, u32 buf_id, in gsc_dst_set_addr() argument
1181 property->prop_id, buf_id, buf_type); in gsc_dst_set_addr()
1183 if (buf_id > GSC_MAX_DST) { in gsc_dst_set_addr()
1184 dev_info(ippdrv->dev, "inavlid buf_id %d.\n", buf_id); in gsc_dst_set_addr()
1192 GSC_OUT_BASE_ADDR_Y(buf_id)); in gsc_dst_set_addr()
1194 GSC_OUT_BASE_ADDR_CB(buf_id)); in gsc_dst_set_addr()
1196 GSC_OUT_BASE_ADDR_CR(buf_id)); in gsc_dst_set_addr()
1199 gsc_write(0x0, GSC_OUT_BASE_ADDR_Y(buf_id)); in gsc_dst_set_addr()
1200 gsc_write(0x0, GSC_OUT_BASE_ADDR_CB(buf_id)); in gsc_dst_set_addr()
1201 gsc_write(0x0, GSC_OUT_BASE_ADDR_CR(buf_id)); in gsc_dst_set_addr()
1208 return gsc_dst_set_buf_seq(ctx, buf_id, buf_type); in gsc_dst_set_addr()
1236 u32 buf_id = GSC_MAX_SRC; in gsc_get_src_buf_index() local
1246 buf_id = i; in gsc_get_src_buf_index()
1251 if (buf_id == GSC_MAX_SRC) { in gsc_get_src_buf_index()
1256 ret = gsc_src_set_buf_seq(ctx, buf_id, IPP_BUF_DEQUEUE); in gsc_get_src_buf_index()
1263 curr_index, buf_id); in gsc_get_src_buf_index()
1265 return buf_id; in gsc_get_src_buf_index()
1271 u32 buf_id = GSC_MAX_DST; in gsc_get_dst_buf_index() local
1281 buf_id = i; in gsc_get_dst_buf_index()
1286 if (buf_id == GSC_MAX_DST) { in gsc_get_dst_buf_index()
1291 ret = gsc_dst_set_buf_seq(ctx, buf_id, IPP_BUF_DEQUEUE); in gsc_get_dst_buf_index()
1298 curr_index, buf_id); in gsc_get_dst_buf_index()
1300 return buf_id; in gsc_get_dst_buf_index()
1311 int buf_id[EXYNOS_DRM_OPS_MAX]; in gsc_irq_handler() local
1326 buf_id[EXYNOS_DRM_OPS_SRC] = gsc_get_src_buf_index(ctx); in gsc_irq_handler()
1327 if (buf_id[EXYNOS_DRM_OPS_SRC] < 0) in gsc_irq_handler()
1330 buf_id[EXYNOS_DRM_OPS_DST] = gsc_get_dst_buf_index(ctx); in gsc_irq_handler()
1331 if (buf_id[EXYNOS_DRM_OPS_DST] < 0) in gsc_irq_handler()
1335 buf_id[EXYNOS_DRM_OPS_SRC], buf_id[EXYNOS_DRM_OPS_DST]); in gsc_irq_handler()
1338 event_work->buf_id[EXYNOS_DRM_OPS_SRC] = in gsc_irq_handler()
1339 buf_id[EXYNOS_DRM_OPS_SRC]; in gsc_irq_handler()
1340 event_work->buf_id[EXYNOS_DRM_OPS_DST] = in gsc_irq_handler()
1341 buf_id[EXYNOS_DRM_OPS_DST]; in gsc_irq_handler()