diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2015-08-03 01:38:05 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-08-15 21:23:34 -0400 |
commit | 9cc7610a2375a94ec967f771ce74b51db0d43d1c (patch) | |
tree | 3b8e41f9782dae6a618f8586dee7f09b2415e93a /drivers/gpu | |
parent | f59a89d05f1290d0cdaa588d29871e05cdec159b (diff) |
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: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos7_drm_decon.c | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.h | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_plane.c | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_vidi.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_mixer.c | 10 |
7 files changed, 32 insertions, 32 deletions
diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index b00800b72950..83fbf387f4d8 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c | |||
@@ -219,7 +219,7 @@ static void decon_shadow_protect_win(struct decon_context *ctx, int win, | |||
219 | writel(val, ctx->addr + DECON_SHADOWCON); | 219 | writel(val, ctx->addr + DECON_SHADOWCON); |
220 | } | 220 | } |
221 | 221 | ||
222 | static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) | 222 | static void decon_update_plane(struct exynos_drm_crtc *crtc, unsigned int win) |
223 | { | 223 | { |
224 | struct decon_context *ctx = crtc->ctx; | 224 | struct decon_context *ctx = crtc->ctx; |
225 | struct exynos_drm_plane *plane; | 225 | struct exynos_drm_plane *plane; |
@@ -277,7 +277,7 @@ static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) | |||
277 | atomic_set(&ctx->win_updated, 1); | 277 | atomic_set(&ctx->win_updated, 1); |
278 | } | 278 | } |
279 | 279 | ||
280 | static void decon_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) | 280 | static void decon_disable_plane(struct exynos_drm_crtc *crtc, unsigned int win) |
281 | { | 281 | { |
282 | struct decon_context *ctx = crtc->ctx; | 282 | struct decon_context *ctx = crtc->ctx; |
283 | struct exynos_drm_plane *plane; | 283 | struct exynos_drm_plane *plane; |
@@ -378,7 +378,7 @@ static void decon_disable(struct exynos_drm_crtc *crtc) | |||
378 | * a destroyed buffer later. | 378 | * a destroyed buffer later. |
379 | */ | 379 | */ |
380 | for (i = 0; i < WINDOWS_NR; i++) | 380 | for (i = 0; i < WINDOWS_NR; i++) |
381 | decon_win_disable(crtc, i); | 381 | decon_disable_plane(crtc, i); |
382 | 382 | ||
383 | decon_swreset(ctx); | 383 | decon_swreset(ctx); |
384 | 384 | ||
@@ -460,8 +460,8 @@ static struct exynos_drm_crtc_ops decon_crtc_ops = { | |||
460 | .enable_vblank = decon_enable_vblank, | 460 | .enable_vblank = decon_enable_vblank, |
461 | .disable_vblank = decon_disable_vblank, | 461 | .disable_vblank = decon_disable_vblank, |
462 | .commit = decon_commit, | 462 | .commit = decon_commit, |
463 | .win_commit = decon_win_commit, | 463 | .update_plane = decon_update_plane, |
464 | .win_disable = decon_win_disable, | 464 | .disable_plane = decon_disable_plane, |
465 | .te_handler = decon_te_irq_handler, | 465 | .te_handler = decon_te_irq_handler, |
466 | }; | 466 | }; |
467 | 467 | ||
diff --git a/drivers/gpu/drm/exynos/exynos7_drm_decon.c b/drivers/gpu/drm/exynos/exynos7_drm_decon.c index fe31e413324f..31210bef3ece 100644 --- a/drivers/gpu/drm/exynos/exynos7_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos7_drm_decon.c | |||
@@ -383,7 +383,7 @@ static void decon_shadow_protect_win(struct decon_context *ctx, | |||
383 | writel(val, ctx->regs + SHADOWCON); | 383 | writel(val, ctx->regs + SHADOWCON); |
384 | } | 384 | } |
385 | 385 | ||
386 | static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) | 386 | static void decon_update_plane(struct exynos_drm_crtc *crtc, unsigned int win) |
387 | { | 387 | { |
388 | struct decon_context *ctx = crtc->ctx; | 388 | struct decon_context *ctx = crtc->ctx; |
389 | struct drm_display_mode *mode = &crtc->base.state->adjusted_mode; | 389 | 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 | writel(val, ctx->regs + DECON_UPDATE); | 493 | writel(val, ctx->regs + DECON_UPDATE); |
494 | } | 494 | } |
495 | 495 | ||
496 | static void decon_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) | 496 | static void decon_disable_plane(struct exynos_drm_crtc *crtc, unsigned int win) |
497 | { | 497 | { |
498 | struct decon_context *ctx = crtc->ctx; | 498 | struct decon_context *ctx = crtc->ctx; |
499 | struct exynos_drm_plane *plane; | 499 | struct exynos_drm_plane *plane; |
@@ -599,7 +599,7 @@ static void decon_disable(struct exynos_drm_crtc *crtc) | |||
599 | * a destroyed buffer later. | 599 | * a destroyed buffer later. |
600 | */ | 600 | */ |
601 | for (i = 0; i < WINDOWS_NR; i++) | 601 | for (i = 0; i < WINDOWS_NR; i++) |
602 | decon_win_disable(crtc, i); | 602 | decon_disable_plane(crtc, i); |
603 | 603 | ||
604 | clk_disable_unprepare(ctx->vclk); | 604 | clk_disable_unprepare(ctx->vclk); |
605 | clk_disable_unprepare(ctx->eclk); | 605 | clk_disable_unprepare(ctx->eclk); |
@@ -619,8 +619,8 @@ static const struct exynos_drm_crtc_ops decon_crtc_ops = { | |||
619 | .enable_vblank = decon_enable_vblank, | 619 | .enable_vblank = decon_enable_vblank, |
620 | .disable_vblank = decon_disable_vblank, | 620 | .disable_vblank = decon_disable_vblank, |
621 | .wait_for_vblank = decon_wait_for_vblank, | 621 | .wait_for_vblank = decon_wait_for_vblank, |
622 | .win_commit = decon_win_commit, | 622 | .update_plane = decon_update_plane, |
623 | .win_disable = decon_win_disable, | 623 | .disable_plane = decon_disable_plane, |
624 | }; | 624 | }; |
625 | 625 | ||
626 | 626 | ||
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 7da593fd081f..ac7eb317cc88 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h | |||
@@ -153,8 +153,8 @@ struct exynos_drm_display { | |||
153 | * @disable_vblank: specific driver callback for disabling vblank interrupt. | 153 | * @disable_vblank: specific driver callback for disabling vblank interrupt. |
154 | * @wait_for_vblank: wait for vblank interrupt to make sure that | 154 | * @wait_for_vblank: wait for vblank interrupt to make sure that |
155 | * hardware overlay is updated. | 155 | * hardware overlay is updated. |
156 | * @win_commit: apply hardware specific overlay data to registers. | 156 | * @update_plane: apply hardware specific overlay data to registers. |
157 | * @win_disable: disable hardware specific overlay. | 157 | * @disable_plane: disable hardware specific overlay. |
158 | * @te_handler: trigger to transfer video image at the tearing effect | 158 | * @te_handler: trigger to transfer video image at the tearing effect |
159 | * synchronization signal if there is a page flip request. | 159 | * synchronization signal if there is a page flip request. |
160 | * @clock_enable: optional function enabling/disabling display domain clock, | 160 | * @clock_enable: optional function enabling/disabling display domain clock, |
@@ -173,8 +173,8 @@ struct exynos_drm_crtc_ops { | |||
173 | int (*enable_vblank)(struct exynos_drm_crtc *crtc); | 173 | int (*enable_vblank)(struct exynos_drm_crtc *crtc); |
174 | void (*disable_vblank)(struct exynos_drm_crtc *crtc); | 174 | void (*disable_vblank)(struct exynos_drm_crtc *crtc); |
175 | void (*wait_for_vblank)(struct exynos_drm_crtc *crtc); | 175 | void (*wait_for_vblank)(struct exynos_drm_crtc *crtc); |
176 | void (*win_commit)(struct exynos_drm_crtc *crtc, unsigned int zpos); | 176 | void (*update_plane)(struct exynos_drm_crtc *crtc, unsigned int zpos); |
177 | void (*win_disable)(struct exynos_drm_crtc *crtc, unsigned int zpos); | 177 | void (*disable_plane)(struct exynos_drm_crtc *crtc, unsigned int zpos); |
178 | void (*te_handler)(struct exynos_drm_crtc *crtc); | 178 | void (*te_handler)(struct exynos_drm_crtc *crtc); |
179 | void (*clock_enable)(struct exynos_drm_crtc *crtc, bool enable); | 179 | void (*clock_enable)(struct exynos_drm_crtc *crtc, bool enable); |
180 | }; | 180 | }; |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 785101210d22..81bc34253510 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c | |||
@@ -607,7 +607,7 @@ static void fimd_shadow_protect_win(struct fimd_context *ctx, | |||
607 | writel(val, ctx->regs + reg); | 607 | writel(val, ctx->regs + reg); |
608 | } | 608 | } |
609 | 609 | ||
610 | static void fimd_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) | 610 | static void fimd_update_plane(struct exynos_drm_crtc *crtc, unsigned int win) |
611 | { | 611 | { |
612 | struct fimd_context *ctx = crtc->ctx; | 612 | struct fimd_context *ctx = crtc->ctx; |
613 | struct exynos_drm_plane *plane; | 613 | struct exynos_drm_plane *plane; |
@@ -715,7 +715,7 @@ static void fimd_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) | |||
715 | atomic_set(&ctx->win_updated, 1); | 715 | atomic_set(&ctx->win_updated, 1); |
716 | } | 716 | } |
717 | 717 | ||
718 | static void fimd_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) | 718 | static void fimd_disable_plane(struct exynos_drm_crtc *crtc, unsigned int win) |
719 | { | 719 | { |
720 | struct fimd_context *ctx = crtc->ctx; | 720 | struct fimd_context *ctx = crtc->ctx; |
721 | struct exynos_drm_plane *plane; | 721 | struct exynos_drm_plane *plane; |
@@ -785,7 +785,7 @@ static void fimd_disable(struct exynos_drm_crtc *crtc) | |||
785 | * a destroyed buffer later. | 785 | * a destroyed buffer later. |
786 | */ | 786 | */ |
787 | for (i = 0; i < WINDOWS_NR; i++) | 787 | for (i = 0; i < WINDOWS_NR; i++) |
788 | fimd_win_disable(crtc, i); | 788 | fimd_disable_plane(crtc, i); |
789 | 789 | ||
790 | fimd_enable_vblank(crtc); | 790 | fimd_enable_vblank(crtc); |
791 | fimd_wait_for_vblank(crtc); | 791 | fimd_wait_for_vblank(crtc); |
@@ -880,8 +880,8 @@ static const struct exynos_drm_crtc_ops fimd_crtc_ops = { | |||
880 | .enable_vblank = fimd_enable_vblank, | 880 | .enable_vblank = fimd_enable_vblank, |
881 | .disable_vblank = fimd_disable_vblank, | 881 | .disable_vblank = fimd_disable_vblank, |
882 | .wait_for_vblank = fimd_wait_for_vblank, | 882 | .wait_for_vblank = fimd_wait_for_vblank, |
883 | .win_commit = fimd_win_commit, | 883 | .update_plane = fimd_update_plane, |
884 | .win_disable = fimd_win_disable, | 884 | .disable_plane = fimd_disable_plane, |
885 | .te_handler = fimd_te_handler, | 885 | .te_handler = fimd_te_handler, |
886 | .clock_enable = fimd_dp_clock_enable, | 886 | .clock_enable = fimd_dp_clock_enable, |
887 | }; | 887 | }; |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c index a729980d3c2f..eb9eec944326 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_plane.c +++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c | |||
@@ -179,8 +179,8 @@ static void exynos_plane_atomic_update(struct drm_plane *plane, | |||
179 | state->src_x >> 16, state->src_y >> 16, | 179 | state->src_x >> 16, state->src_y >> 16, |
180 | state->src_w >> 16, state->src_h >> 16); | 180 | state->src_w >> 16, state->src_h >> 16); |
181 | 181 | ||
182 | if (exynos_crtc->ops->win_commit) | 182 | if (exynos_crtc->ops->update_plane) |
183 | exynos_crtc->ops->win_commit(exynos_crtc, exynos_plane->zpos); | 183 | exynos_crtc->ops->update_plane(exynos_crtc, exynos_plane->zpos); |
184 | } | 184 | } |
185 | 185 | ||
186 | static void exynos_plane_atomic_disable(struct drm_plane *plane, | 186 | static void exynos_plane_atomic_disable(struct drm_plane *plane, |
@@ -192,9 +192,9 @@ static void exynos_plane_atomic_disable(struct drm_plane *plane, | |||
192 | if (!old_state->crtc) | 192 | if (!old_state->crtc) |
193 | return; | 193 | return; |
194 | 194 | ||
195 | if (exynos_crtc->ops->win_disable) | 195 | if (exynos_crtc->ops->disable_plane) |
196 | exynos_crtc->ops->win_disable(exynos_crtc, | 196 | exynos_crtc->ops->disable_plane(exynos_crtc, |
197 | exynos_plane->zpos); | 197 | exynos_plane->zpos); |
198 | } | 198 | } |
199 | 199 | ||
200 | static const struct drm_plane_helper_funcs plane_helper_funcs = { | 200 | static const struct drm_plane_helper_funcs plane_helper_funcs = { |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c index 9b97105ddc54..59d85ef04650 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c | |||
@@ -100,7 +100,7 @@ static int vidi_enable_vblank(struct exynos_drm_crtc *crtc) | |||
100 | /* | 100 | /* |
101 | * in case of page flip request, vidi_finish_pageflip function | 101 | * in case of page flip request, vidi_finish_pageflip function |
102 | * will not be called because direct_vblank is true and then | 102 | * will not be called because direct_vblank is true and then |
103 | * that function will be called by crtc_ops->win_commit callback | 103 | * that function will be called by crtc_ops->update_plane callback |
104 | */ | 104 | */ |
105 | schedule_work(&ctx->work); | 105 | schedule_work(&ctx->work); |
106 | 106 | ||
@@ -118,7 +118,7 @@ static void vidi_disable_vblank(struct exynos_drm_crtc *crtc) | |||
118 | ctx->vblank_on = false; | 118 | ctx->vblank_on = false; |
119 | } | 119 | } |
120 | 120 | ||
121 | static void vidi_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) | 121 | static void vidi_update_plane(struct exynos_drm_crtc *crtc, unsigned int win) |
122 | { | 122 | { |
123 | struct vidi_context *ctx = crtc->ctx; | 123 | struct vidi_context *ctx = crtc->ctx; |
124 | struct exynos_drm_plane *plane; | 124 | struct exynos_drm_plane *plane; |
@@ -179,7 +179,7 @@ static const struct exynos_drm_crtc_ops vidi_crtc_ops = { | |||
179 | .disable = vidi_disable, | 179 | .disable = vidi_disable, |
180 | .enable_vblank = vidi_enable_vblank, | 180 | .enable_vblank = vidi_enable_vblank, |
181 | .disable_vblank = vidi_disable_vblank, | 181 | .disable_vblank = vidi_disable_vblank, |
182 | .win_commit = vidi_win_commit, | 182 | .update_plane = vidi_update_plane, |
183 | }; | 183 | }; |
184 | 184 | ||
185 | static void vidi_fake_vblank_handler(struct work_struct *work) | 185 | static void vidi_fake_vblank_handler(struct work_struct *work) |
diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c index ca12540e384b..72bdded845f4 100644 --- a/drivers/gpu/drm/exynos/exynos_mixer.c +++ b/drivers/gpu/drm/exynos/exynos_mixer.c | |||
@@ -927,7 +927,7 @@ static void mixer_disable_vblank(struct exynos_drm_crtc *crtc) | |||
927 | mixer_reg_writemask(res, MXR_INT_EN, 0, MXR_INT_EN_VSYNC); | 927 | mixer_reg_writemask(res, MXR_INT_EN, 0, MXR_INT_EN_VSYNC); |
928 | } | 928 | } |
929 | 929 | ||
930 | static void mixer_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) | 930 | static void mixer_update_plane(struct exynos_drm_crtc *crtc, unsigned int win) |
931 | { | 931 | { |
932 | struct mixer_context *mixer_ctx = crtc->ctx; | 932 | struct mixer_context *mixer_ctx = crtc->ctx; |
933 | 933 | ||
@@ -942,7 +942,7 @@ static void mixer_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) | |||
942 | mixer_graph_buffer(mixer_ctx, win); | 942 | mixer_graph_buffer(mixer_ctx, win); |
943 | } | 943 | } |
944 | 944 | ||
945 | static void mixer_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) | 945 | static void mixer_disable_plane(struct exynos_drm_crtc *crtc, unsigned int win) |
946 | { | 946 | { |
947 | struct mixer_context *mixer_ctx = crtc->ctx; | 947 | struct mixer_context *mixer_ctx = crtc->ctx; |
948 | struct mixer_resources *res = &mixer_ctx->mixer_res; | 948 | struct mixer_resources *res = &mixer_ctx->mixer_res; |
@@ -1053,7 +1053,7 @@ static void mixer_disable(struct exynos_drm_crtc *crtc) | |||
1053 | mixer_regs_dump(ctx); | 1053 | mixer_regs_dump(ctx); |
1054 | 1054 | ||
1055 | for (i = 0; i < MIXER_WIN_NR; i++) | 1055 | for (i = 0; i < MIXER_WIN_NR; i++) |
1056 | mixer_win_disable(crtc, i); | 1056 | mixer_disable_plane(crtc, i); |
1057 | 1057 | ||
1058 | clear_bit(MXR_BIT_POWERED, &ctx->flags); | 1058 | clear_bit(MXR_BIT_POWERED, &ctx->flags); |
1059 | 1059 | ||
@@ -1094,8 +1094,8 @@ static const struct exynos_drm_crtc_ops mixer_crtc_ops = { | |||
1094 | .enable_vblank = mixer_enable_vblank, | 1094 | .enable_vblank = mixer_enable_vblank, |
1095 | .disable_vblank = mixer_disable_vblank, | 1095 | .disable_vblank = mixer_disable_vblank, |
1096 | .wait_for_vblank = mixer_wait_for_vblank, | 1096 | .wait_for_vblank = mixer_wait_for_vblank, |
1097 | .win_commit = mixer_win_commit, | 1097 | .update_plane = mixer_update_plane, |
1098 | .win_disable = mixer_win_disable, | 1098 | .disable_plane = mixer_disable_plane, |
1099 | }; | 1099 | }; |
1100 | 1100 | ||
1101 | static struct mixer_drv_data exynos5420_mxr_drv_data = { | 1101 | static struct mixer_drv_data exynos5420_mxr_drv_data = { |