Lines Matching refs:win
106 unsigned int win, ch_enabled = 0; in decon_clear_channels() local
109 for (win = 0; win < WINDOWS_NR; win++) { in decon_clear_channels()
110 u32 val = readl(ctx->regs + WINCON(win)); in decon_clear_channels()
114 writel(val, ctx->regs + WINCON(win)); in decon_clear_channels()
261 static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, in decon_win_set_pixfmt() argument
267 val = readl(ctx->regs + WINCON(win)); in decon_win_set_pixfmt()
330 writel(val, ctx->regs + WINCON(win)); in decon_win_set_pixfmt()
333 static void decon_win_set_colkey(struct decon_context *ctx, unsigned int win) in decon_win_set_colkey() argument
342 writel(keycon0, ctx->regs + WKEYCON0_BASE(win)); in decon_win_set_colkey()
343 writel(keycon1, ctx->regs + WKEYCON1_BASE(win)); in decon_win_set_colkey()
354 unsigned int win, bool protect) in decon_shadow_protect_win() argument
358 bits = SHADOWCON_WINx_PROTECT(win); in decon_shadow_protect_win()
391 unsigned int win = plane->index; in decon_update_plane() local
410 writel(val, ctx->regs + VIDW_BUF_START(win)); in decon_update_plane()
415 writel(fb->width + padding, ctx->regs + VIDW_WHOLE_X(win)); in decon_update_plane()
416 writel(fb->height, ctx->regs + VIDW_WHOLE_Y(win)); in decon_update_plane()
419 writel(state->src.x, ctx->regs + VIDW_OFFSET_X(win)); in decon_update_plane()
420 writel(state->src.y, ctx->regs + VIDW_OFFSET_Y(win)); in decon_update_plane()
429 writel(val, ctx->regs + VIDOSD_A(win)); in decon_update_plane()
440 writel(val, ctx->regs + VIDOSD_B(win)); in decon_update_plane()
450 writel(alpha, ctx->regs + VIDOSD_C(win)); in decon_update_plane()
456 writel(alpha, ctx->regs + VIDOSD_D(win)); in decon_update_plane()
458 decon_win_set_pixfmt(ctx, win, fb); in decon_update_plane()
461 if (win != 0) in decon_update_plane()
462 decon_win_set_colkey(ctx, win); in decon_update_plane()
465 val = readl(ctx->regs + WINCON(win)); in decon_update_plane()
468 writel(val, ctx->regs + WINCON(win)); in decon_update_plane()
471 decon_shadow_protect_win(ctx, win, false); in decon_update_plane()
482 unsigned int win = plane->index; in decon_disable_plane() local
489 decon_shadow_protect_win(ctx, win, true); in decon_disable_plane()
492 val = readl(ctx->regs + WINCON(win)); in decon_disable_plane()
494 writel(val, ctx->regs + WINCON(win)); in decon_disable_plane()