Commit 9cc7610a authored by Gustavo Padovan's avatar Gustavo Padovan Committed by Inki Dae

drm/exynos: rename win_commit/disable to atomic-like names

Rename win_commit() helper to update_plane() and win_disable() to
disable_plane().
Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: default avatarJoonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent f59a89d0
...@@ -219,7 +219,7 @@ static void decon_shadow_protect_win(struct decon_context *ctx, int win, ...@@ -219,7 +219,7 @@ static void decon_shadow_protect_win(struct decon_context *ctx, int win,
writel(val, ctx->addr + DECON_SHADOWCON); writel(val, ctx->addr + DECON_SHADOWCON);
} }
static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) static void decon_update_plane(struct exynos_drm_crtc *crtc, unsigned int win)
{ {
struct decon_context *ctx = crtc->ctx; struct decon_context *ctx = crtc->ctx;
struct exynos_drm_plane *plane; struct exynos_drm_plane *plane;
...@@ -277,7 +277,7 @@ static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) ...@@ -277,7 +277,7 @@ static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win)
atomic_set(&ctx->win_updated, 1); atomic_set(&ctx->win_updated, 1);
} }
static void decon_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) static void decon_disable_plane(struct exynos_drm_crtc *crtc, unsigned int win)
{ {
struct decon_context *ctx = crtc->ctx; struct decon_context *ctx = crtc->ctx;
struct exynos_drm_plane *plane; struct exynos_drm_plane *plane;
...@@ -378,7 +378,7 @@ static void decon_disable(struct exynos_drm_crtc *crtc) ...@@ -378,7 +378,7 @@ static void decon_disable(struct exynos_drm_crtc *crtc)
* a destroyed buffer later. * a destroyed buffer later.
*/ */
for (i = 0; i < WINDOWS_NR; i++) for (i = 0; i < WINDOWS_NR; i++)
decon_win_disable(crtc, i); decon_disable_plane(crtc, i);
decon_swreset(ctx); decon_swreset(ctx);
...@@ -460,8 +460,8 @@ static struct exynos_drm_crtc_ops decon_crtc_ops = { ...@@ -460,8 +460,8 @@ static struct exynos_drm_crtc_ops decon_crtc_ops = {
.enable_vblank = decon_enable_vblank, .enable_vblank = decon_enable_vblank,
.disable_vblank = decon_disable_vblank, .disable_vblank = decon_disable_vblank,
.commit = decon_commit, .commit = decon_commit,
.win_commit = decon_win_commit, .update_plane = decon_update_plane,
.win_disable = decon_win_disable, .disable_plane = decon_disable_plane,
.te_handler = decon_te_irq_handler, .te_handler = decon_te_irq_handler,
}; };
......
...@@ -383,7 +383,7 @@ static void decon_shadow_protect_win(struct decon_context *ctx, ...@@ -383,7 +383,7 @@ static void decon_shadow_protect_win(struct decon_context *ctx,
writel(val, ctx->regs + SHADOWCON); writel(val, ctx->regs + SHADOWCON);
} }
static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) static void decon_update_plane(struct exynos_drm_crtc *crtc, unsigned int win)
{ {
struct decon_context *ctx = crtc->ctx; struct decon_context *ctx = crtc->ctx;
struct drm_display_mode *mode = &crtc->base.state->adjusted_mode; struct drm_display_mode *mode = &crtc->base.state->adjusted_mode;
...@@ -493,7 +493,7 @@ static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) ...@@ -493,7 +493,7 @@ static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win)
writel(val, ctx->regs + DECON_UPDATE); writel(val, ctx->regs + DECON_UPDATE);
} }
static void decon_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) static void decon_disable_plane(struct exynos_drm_crtc *crtc, unsigned int win)
{ {
struct decon_context *ctx = crtc->ctx; struct decon_context *ctx = crtc->ctx;
struct exynos_drm_plane *plane; struct exynos_drm_plane *plane;
...@@ -599,7 +599,7 @@ static void decon_disable(struct exynos_drm_crtc *crtc) ...@@ -599,7 +599,7 @@ static void decon_disable(struct exynos_drm_crtc *crtc)
* a destroyed buffer later. * a destroyed buffer later.
*/ */
for (i = 0; i < WINDOWS_NR; i++) for (i = 0; i < WINDOWS_NR; i++)
decon_win_disable(crtc, i); decon_disable_plane(crtc, i);
clk_disable_unprepare(ctx->vclk); clk_disable_unprepare(ctx->vclk);
clk_disable_unprepare(ctx->eclk); clk_disable_unprepare(ctx->eclk);
...@@ -619,8 +619,8 @@ static const struct exynos_drm_crtc_ops decon_crtc_ops = { ...@@ -619,8 +619,8 @@ static const struct exynos_drm_crtc_ops decon_crtc_ops = {
.enable_vblank = decon_enable_vblank, .enable_vblank = decon_enable_vblank,
.disable_vblank = decon_disable_vblank, .disable_vblank = decon_disable_vblank,
.wait_for_vblank = decon_wait_for_vblank, .wait_for_vblank = decon_wait_for_vblank,
.win_commit = decon_win_commit, .update_plane = decon_update_plane,
.win_disable = decon_win_disable, .disable_plane = decon_disable_plane,
}; };
......
...@@ -153,8 +153,8 @@ struct exynos_drm_display { ...@@ -153,8 +153,8 @@ struct exynos_drm_display {
* @disable_vblank: specific driver callback for disabling vblank interrupt. * @disable_vblank: specific driver callback for disabling vblank interrupt.
* @wait_for_vblank: wait for vblank interrupt to make sure that * @wait_for_vblank: wait for vblank interrupt to make sure that
* hardware overlay is updated. * hardware overlay is updated.
* @win_commit: apply hardware specific overlay data to registers. * @update_plane: apply hardware specific overlay data to registers.
* @win_disable: disable hardware specific overlay. * @disable_plane: disable hardware specific overlay.
* @te_handler: trigger to transfer video image at the tearing effect * @te_handler: trigger to transfer video image at the tearing effect
* synchronization signal if there is a page flip request. * synchronization signal if there is a page flip request.
* @clock_enable: optional function enabling/disabling display domain clock, * @clock_enable: optional function enabling/disabling display domain clock,
...@@ -173,8 +173,8 @@ struct exynos_drm_crtc_ops { ...@@ -173,8 +173,8 @@ struct exynos_drm_crtc_ops {
int (*enable_vblank)(struct exynos_drm_crtc *crtc); int (*enable_vblank)(struct exynos_drm_crtc *crtc);
void (*disable_vblank)(struct exynos_drm_crtc *crtc); void (*disable_vblank)(struct exynos_drm_crtc *crtc);
void (*wait_for_vblank)(struct exynos_drm_crtc *crtc); void (*wait_for_vblank)(struct exynos_drm_crtc *crtc);
void (*win_commit)(struct exynos_drm_crtc *crtc, unsigned int zpos); void (*update_plane)(struct exynos_drm_crtc *crtc, unsigned int zpos);
void (*win_disable)(struct exynos_drm_crtc *crtc, unsigned int zpos); void (*disable_plane)(struct exynos_drm_crtc *crtc, unsigned int zpos);
void (*te_handler)(struct exynos_drm_crtc *crtc); void (*te_handler)(struct exynos_drm_crtc *crtc);
void (*clock_enable)(struct exynos_drm_crtc *crtc, bool enable); void (*clock_enable)(struct exynos_drm_crtc *crtc, bool enable);
}; };
......
...@@ -607,7 +607,7 @@ static void fimd_shadow_protect_win(struct fimd_context *ctx, ...@@ -607,7 +607,7 @@ static void fimd_shadow_protect_win(struct fimd_context *ctx,
writel(val, ctx->regs + reg); writel(val, ctx->regs + reg);
} }
static void fimd_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) static void fimd_update_plane(struct exynos_drm_crtc *crtc, unsigned int win)
{ {
struct fimd_context *ctx = crtc->ctx; struct fimd_context *ctx = crtc->ctx;
struct exynos_drm_plane *plane; struct exynos_drm_plane *plane;
...@@ -715,7 +715,7 @@ static void fimd_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) ...@@ -715,7 +715,7 @@ static void fimd_win_commit(struct exynos_drm_crtc *crtc, unsigned int win)
atomic_set(&ctx->win_updated, 1); atomic_set(&ctx->win_updated, 1);
} }
static void fimd_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) static void fimd_disable_plane(struct exynos_drm_crtc *crtc, unsigned int win)
{ {
struct fimd_context *ctx = crtc->ctx; struct fimd_context *ctx = crtc->ctx;
struct exynos_drm_plane *plane; struct exynos_drm_plane *plane;
...@@ -785,7 +785,7 @@ static void fimd_disable(struct exynos_drm_crtc *crtc) ...@@ -785,7 +785,7 @@ static void fimd_disable(struct exynos_drm_crtc *crtc)
* a destroyed buffer later. * a destroyed buffer later.
*/ */
for (i = 0; i < WINDOWS_NR; i++) for (i = 0; i < WINDOWS_NR; i++)
fimd_win_disable(crtc, i); fimd_disable_plane(crtc, i);
fimd_enable_vblank(crtc); fimd_enable_vblank(crtc);
fimd_wait_for_vblank(crtc); fimd_wait_for_vblank(crtc);
...@@ -880,8 +880,8 @@ static const struct exynos_drm_crtc_ops fimd_crtc_ops = { ...@@ -880,8 +880,8 @@ static const struct exynos_drm_crtc_ops fimd_crtc_ops = {
.enable_vblank = fimd_enable_vblank, .enable_vblank = fimd_enable_vblank,
.disable_vblank = fimd_disable_vblank, .disable_vblank = fimd_disable_vblank,
.wait_for_vblank = fimd_wait_for_vblank, .wait_for_vblank = fimd_wait_for_vblank,
.win_commit = fimd_win_commit, .update_plane = fimd_update_plane,
.win_disable = fimd_win_disable, .disable_plane = fimd_disable_plane,
.te_handler = fimd_te_handler, .te_handler = fimd_te_handler,
.clock_enable = fimd_dp_clock_enable, .clock_enable = fimd_dp_clock_enable,
}; };
......
...@@ -179,8 +179,8 @@ static void exynos_plane_atomic_update(struct drm_plane *plane, ...@@ -179,8 +179,8 @@ static void exynos_plane_atomic_update(struct drm_plane *plane,
state->src_x >> 16, state->src_y >> 16, state->src_x >> 16, state->src_y >> 16,
state->src_w >> 16, state->src_h >> 16); state->src_w >> 16, state->src_h >> 16);
if (exynos_crtc->ops->win_commit) if (exynos_crtc->ops->update_plane)
exynos_crtc->ops->win_commit(exynos_crtc, exynos_plane->zpos); exynos_crtc->ops->update_plane(exynos_crtc, exynos_plane->zpos);
} }
static void exynos_plane_atomic_disable(struct drm_plane *plane, static void exynos_plane_atomic_disable(struct drm_plane *plane,
...@@ -192,8 +192,8 @@ static void exynos_plane_atomic_disable(struct drm_plane *plane, ...@@ -192,8 +192,8 @@ static void exynos_plane_atomic_disable(struct drm_plane *plane,
if (!old_state->crtc) if (!old_state->crtc)
return; return;
if (exynos_crtc->ops->win_disable) if (exynos_crtc->ops->disable_plane)
exynos_crtc->ops->win_disable(exynos_crtc, exynos_crtc->ops->disable_plane(exynos_crtc,
exynos_plane->zpos); exynos_plane->zpos);
} }
......
...@@ -100,7 +100,7 @@ static int vidi_enable_vblank(struct exynos_drm_crtc *crtc) ...@@ -100,7 +100,7 @@ static int vidi_enable_vblank(struct exynos_drm_crtc *crtc)
/* /*
* in case of page flip request, vidi_finish_pageflip function * in case of page flip request, vidi_finish_pageflip function
* will not be called because direct_vblank is true and then * will not be called because direct_vblank is true and then
* that function will be called by crtc_ops->win_commit callback * that function will be called by crtc_ops->update_plane callback
*/ */
schedule_work(&ctx->work); schedule_work(&ctx->work);
...@@ -118,7 +118,7 @@ static void vidi_disable_vblank(struct exynos_drm_crtc *crtc) ...@@ -118,7 +118,7 @@ static void vidi_disable_vblank(struct exynos_drm_crtc *crtc)
ctx->vblank_on = false; ctx->vblank_on = false;
} }
static void vidi_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) static void vidi_update_plane(struct exynos_drm_crtc *crtc, unsigned int win)
{ {
struct vidi_context *ctx = crtc->ctx; struct vidi_context *ctx = crtc->ctx;
struct exynos_drm_plane *plane; struct exynos_drm_plane *plane;
...@@ -179,7 +179,7 @@ static const struct exynos_drm_crtc_ops vidi_crtc_ops = { ...@@ -179,7 +179,7 @@ static const struct exynos_drm_crtc_ops vidi_crtc_ops = {
.disable = vidi_disable, .disable = vidi_disable,
.enable_vblank = vidi_enable_vblank, .enable_vblank = vidi_enable_vblank,
.disable_vblank = vidi_disable_vblank, .disable_vblank = vidi_disable_vblank,
.win_commit = vidi_win_commit, .update_plane = vidi_update_plane,
}; };
static void vidi_fake_vblank_handler(struct work_struct *work) static void vidi_fake_vblank_handler(struct work_struct *work)
......
...@@ -927,7 +927,7 @@ static void mixer_disable_vblank(struct exynos_drm_crtc *crtc) ...@@ -927,7 +927,7 @@ static void mixer_disable_vblank(struct exynos_drm_crtc *crtc)
mixer_reg_writemask(res, MXR_INT_EN, 0, MXR_INT_EN_VSYNC); mixer_reg_writemask(res, MXR_INT_EN, 0, MXR_INT_EN_VSYNC);
} }
static void mixer_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) static void mixer_update_plane(struct exynos_drm_crtc *crtc, unsigned int win)
{ {
struct mixer_context *mixer_ctx = crtc->ctx; struct mixer_context *mixer_ctx = crtc->ctx;
...@@ -942,7 +942,7 @@ static void mixer_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) ...@@ -942,7 +942,7 @@ static void mixer_win_commit(struct exynos_drm_crtc *crtc, unsigned int win)
mixer_graph_buffer(mixer_ctx, win); mixer_graph_buffer(mixer_ctx, win);
} }
static void mixer_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) static void mixer_disable_plane(struct exynos_drm_crtc *crtc, unsigned int win)
{ {
struct mixer_context *mixer_ctx = crtc->ctx; struct mixer_context *mixer_ctx = crtc->ctx;
struct mixer_resources *res = &mixer_ctx->mixer_res; struct mixer_resources *res = &mixer_ctx->mixer_res;
...@@ -1053,7 +1053,7 @@ static void mixer_disable(struct exynos_drm_crtc *crtc) ...@@ -1053,7 +1053,7 @@ static void mixer_disable(struct exynos_drm_crtc *crtc)
mixer_regs_dump(ctx); mixer_regs_dump(ctx);
for (i = 0; i < MIXER_WIN_NR; i++) for (i = 0; i < MIXER_WIN_NR; i++)
mixer_win_disable(crtc, i); mixer_disable_plane(crtc, i);
clear_bit(MXR_BIT_POWERED, &ctx->flags); clear_bit(MXR_BIT_POWERED, &ctx->flags);
...@@ -1094,8 +1094,8 @@ static const struct exynos_drm_crtc_ops mixer_crtc_ops = { ...@@ -1094,8 +1094,8 @@ static const struct exynos_drm_crtc_ops mixer_crtc_ops = {
.enable_vblank = mixer_enable_vblank, .enable_vblank = mixer_enable_vblank,
.disable_vblank = mixer_disable_vblank, .disable_vblank = mixer_disable_vblank,
.wait_for_vblank = mixer_wait_for_vblank, .wait_for_vblank = mixer_wait_for_vblank,
.win_commit = mixer_win_commit, .update_plane = mixer_update_plane,
.win_disable = mixer_win_disable, .disable_plane = mixer_disable_plane,
}; };
static struct mixer_drv_data exynos5420_mxr_drv_data = { static struct mixer_drv_data exynos5420_mxr_drv_data = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment