Lines Matching refs:win

262 static void decon_win_set_bldeq(struct decon_context *ctx, unsigned int win,  in decon_win_set_bldeq()  argument
285 decon_set_bits(ctx, DECON_BLENDERQx(win), mask, val); in decon_win_set_bldeq()
288 static void decon_win_set_bldmod(struct decon_context *ctx, unsigned int win, in decon_win_set_bldmod() argument
305 decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_BLEND_MODE_MASK, val); in decon_win_set_bldmod()
311 decon_set_bits(ctx, DECON_VIDOSDxC(win), in decon_win_set_bldmod()
317 static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, in decon_win_set_pixfmt() argument
320 struct exynos_drm_plane plane = ctx->planes[win]; in decon_win_set_pixfmt()
332 val = readl(ctx->addr + DECON_WINCONx(win)); in decon_win_set_pixfmt()
373 decon_set_bits(ctx, DECON_WINCONx(win), ~WINCONx_BLEND_MODE_MASK, val); in decon_win_set_pixfmt()
375 if (win > 0) { in decon_win_set_pixfmt()
376 decon_win_set_bldmod(ctx, win, alpha, pixel_alpha); in decon_win_set_pixfmt()
377 decon_win_set_bldeq(ctx, win, alpha, pixel_alpha); in decon_win_set_pixfmt()
405 unsigned int win = plane->index; in decon_update_plane() local
414 writel(val, ctx->addr + DECON_VIDOSDxA(win)); in decon_update_plane()
418 writel(val, ctx->addr + DECON_VIDOSDxB(win)); in decon_update_plane()
421 writel(val, ctx->addr + DECON_VIDOSDxA(win)); in decon_update_plane()
425 writel(val, ctx->addr + DECON_VIDOSDxB(win)); in decon_update_plane()
430 writel(val, ctx->addr + DECON_VIDOSDxC(win)); in decon_update_plane()
434 writel(val, ctx->addr + DECON_VIDOSDxD(win)); in decon_update_plane()
436 writel(dma_addr, ctx->addr + DECON_VIDW0xADD0B0(win)); in decon_update_plane()
439 writel(val, ctx->addr + DECON_VIDW0xADD1B0(win)); in decon_update_plane()
447 writel(val, ctx->addr + DECON_VIDW0xADD2(win)); in decon_update_plane()
449 decon_win_set_pixfmt(ctx, win, fb); in decon_update_plane()
452 decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_ENWIN_F, ~0); in decon_update_plane()
459 unsigned int win = plane->index; in decon_disable_plane() local
461 decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_ENWIN_F, 0); in decon_disable_plane()
567 int win, i, ret; in decon_clear_channels() local
576 for (win = 0; win < WINDOWS_NR; win++) in decon_clear_channels()
577 decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_ENWIN_F, 0); in decon_clear_channels()
624 unsigned int win; in decon_bind() local
629 for (win = ctx->first_win; win < WINDOWS_NR; win++) { in decon_bind()
630 ctx->configs[win].pixel_formats = decon_formats; in decon_bind()
631 ctx->configs[win].num_pixel_formats = ARRAY_SIZE(decon_formats); in decon_bind()
632 ctx->configs[win].zpos = win - ctx->first_win; in decon_bind()
633 ctx->configs[win].type = decon_win_types[win]; in decon_bind()
634 ctx->configs[win].capabilities = capabilities[win]; in decon_bind()
636 ret = exynos_plane_init(drm_dev, &ctx->planes[win], win, in decon_bind()
637 &ctx->configs[win]); in decon_bind()