Home
last modified time | relevance | path

Searched refs:crtc (Results 51 – 75 of 636) sorted by relevance

12345678910>>...26

/openbmc/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Dcrtc.c59 NVWriteVgaCrtc(crtc->dev, nouveau_crtc(crtc)->index, index, in crtc_wr_cio_state()
264 if (encoder->crtc == crtc && in nv_crtc_mode_set_vga()
477 if (encoder->crtc != crtc) in nv_crtc_mode_set_regs()
732 nv04_crtc_mode_set_base(crtc, crtc->x, crtc->y, NULL); in nv_crtc_commit()
744 drm_crtc_vblank_on(crtc); in nv_crtc_commit()
755 drm_crtc_cleanup(crtc); in nv_crtc_destroy()
779 r = crtc->gamma_store; in nv_crtc_gamma_load()
780 g = r + crtc->gamma_size; in nv_crtc_gamma_load()
781 b = g + crtc->gamma_size; in nv_crtc_gamma_load()
1035 struct drm_crtc *crtc; member
[all …]
H A Dcursor.c33 NVWriteVgaCrtc(crtc->dev, nouveau_crtc(crtc)->index, index, in crtc_wr_cio_state()
43 struct drm_crtc *crtc = &nv_crtc->base; in nv04_cursor_set_offset() local
50 if (crtc->mode.flags & DRM_MODE_FLAG_DBLSCAN) in nv04_cursor_set_offset()
55 crtc_wr_cio_state(crtc, regp, NV_CIO_CRE_HCUR_ADDR0_INDEX); in nv04_cursor_set_offset()
56 crtc_wr_cio_state(crtc, regp, NV_CIO_CRE_HCUR_ADDR1_INDEX); in nv04_cursor_set_offset()
57 crtc_wr_cio_state(crtc, regp, NV_CIO_CRE_HCUR_ADDR2_INDEX); in nv04_cursor_set_offset()
63 nv04_cursor_init(struct nouveau_crtc *crtc) in nv04_cursor_init() argument
65 crtc->cursor.set_offset = nv04_cursor_set_offset; in nv04_cursor_init()
66 crtc->cursor.set_pos = nv04_cursor_set_pos; in nv04_cursor_init()
67 crtc->cursor.hide = nv04_cursor_hide; in nv04_cursor_init()
[all …]
/openbmc/linux/drivers/gpu/drm/loongson/
H A Dlsdc_crtc.c395 if (crtc->state) in lsdc_crtc_reset()
396 crtc->funcs->atomic_destroy_state(crtc, crtc->state); in lsdc_crtc_reset()
844 if (!crtc->state || !crtc->state->event) in lsdc_crtc_send_vblank()
850 drm_crtc_send_vblank_event(crtc, crtc->state->event); in lsdc_crtc_send_vblank()
851 crtc->state->event = NULL; in lsdc_crtc_send_vblank()
861 drm_crtc_vblank_on(crtc); in lsdc_crtc_atomic_enable()
872 drm_crtc_vblank_off(crtc); in lsdc_crtc_atomic_disable()
887 if (crtc->state->event) { in lsdc_crtc_atomic_flush()
889 drm_crtc_arm_vblank_event(crtc, crtc->state->event); in lsdc_crtc_atomic_flush()
891 drm_crtc_send_vblank_event(crtc, crtc->state->event); in lsdc_crtc_atomic_flush()
[all …]
/openbmc/linux/drivers/gpu/drm/gma500/
H A Dgma_display.c38 if (connector->encoder && connector->encoder->crtc == crtc) { in gma_pipe_has_type()
155 if (!crtc->enabled) in gma_crtc_load_lut()
158 r = crtc->gamma_store; in gma_crtc_load_lut()
159 g = r + crtc->gamma_size; in gma_crtc_load_lut()
160 b = g + crtc->gamma_size; in gma_crtc_load_lut()
186 gma_crtc_load_lut(crtc); in gma_crtc_gamma_set()
493 if (crtc->primary->fb) { in gma_crtc_disable()
507 drm_crtc_cleanup(crtc); in gma_crtc_destroy()
529 crtc->primary->fb = fb; in gma_crtc_page_flip()
540 ret = crtc_funcs->mode_set_base(crtc, crtc->x, crtc->y, old_fb); in gma_crtc_page_flip()
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_mode_config.c198 crtc->funcs->reset(crtc); in drm_mode_config_reset()
531 crtc->funcs->destroy(crtc); in drm_mode_config_cleanup()
655 crtc->base.id, crtc->name); in drm_mode_config_validate()
657 WARN(crtc->cursor && crtc->funcs->cursor_set, in drm_mode_config_validate()
659 crtc->base.id, crtc->name); in drm_mode_config_validate()
660 WARN(crtc->cursor && crtc->funcs->cursor_set2, in drm_mode_config_validate()
662 crtc->base.id, crtc->name); in drm_mode_config_validate()
663 WARN(crtc->cursor && crtc->funcs->cursor_move, in drm_mode_config_validate()
665 crtc->base.id, crtc->name); in drm_mode_config_validate()
671 crtc->base.id, crtc->name); in drm_mode_config_validate()
[all …]
H A Ddrm_atomic.c225 crtc->funcs->atomic_destroy_state(crtc, in drm_atomic_state_default_clear()
395 crtc->base.id, crtc->name); in drm_atomic_crtc_check()
407 crtc->base.id, crtc->name); in drm_atomic_crtc_check()
415 crtc->base.id, crtc->name); in drm_atomic_crtc_check()
433 crtc->base.id, crtc->name); in drm_atomic_crtc_check()
443 struct drm_crtc *crtc = state->crtc; in drm_atomic_crtc_print_state() local
632 crtc->base.id, crtc->name, in drm_atomic_plane_check()
1423 crtc->base.id, crtc->name); in drm_atomic_check_only()
1451 crtc->base.id, crtc->name); in drm_atomic_check_only()
1622 if (crtc == set->crtc) in update_output_state()
[all …]
H A Ddrm_atomic_uapi.c69 struct drm_crtc *crtc = state->crtc; in drm_atomic_set_mode_for_crtc() local
123 struct drm_crtc *crtc = state->crtc; in drm_atomic_set_mode_prop_for_crtc() local
139 crtc->base.id, crtc->name, in drm_atomic_set_mode_prop_for_crtc()
149 crtc->base.id, crtc->name, in drm_atomic_set_mode_prop_for_crtc()
193 if (plane_state->crtc == crtc) in drm_atomic_set_crtc_for_plane()
204 plane_state->crtc = crtc; in drm_atomic_set_crtc_for_plane()
218 crtc->base.id, crtc->name); in drm_atomic_set_crtc_for_plane()
279 if (conn_state->crtc == crtc) in drm_atomic_set_crtc_for_connector()
302 conn_state->crtc = crtc; in drm_atomic_set_crtc_for_connector()
467 crtc->base.id, crtc->name, in drm_atomic_crtc_set_property()
[all …]
H A Ddrm_plane_helper.c68 struct drm_device *dev = crtc->dev; in get_connectors_for_crtc()
82 if (connector->encoder && connector->encoder->crtc == crtc) { in get_connectors_for_crtc()
95 struct drm_crtc *crtc, in drm_plane_helper_check_update() argument
108 .crtc = crtc, in drm_plane_helper_check_update()
121 .crtc = crtc, in drm_plane_helper_check_update()
122 .enable = crtc->enabled, in drm_plane_helper_check_update()
123 .mode = crtc->mode, in drm_plane_helper_check_update()
173 .crtc = crtc, in drm_plane_helper_update_primary()
175 .mode = &crtc->mode, in drm_plane_helper_update_primary()
236 ret = crtc->funcs->set_config(&set, ctx); in drm_plane_helper_update_primary()
[all …]
/openbmc/linux/drivers/gpu/drm/imx/lcdc/
H A Dimx-lcdc.c140 struct drm_crtc *crtc = &pipe->crtc; in imx_lcdc_update_hw_registers() local
156 if (old_state && old_state->crtc && old_state->crtc->enabled) in imx_lcdc_update_hw_registers()
167 FIELD_PREP(IMX21LCDC_LHCR_HBPORCH, crtc->mode.htotal - crtc->mode.hsync_end - 3); in imx_lcdc_update_hw_registers()
172 FIELD_PREP(IMX21LCDC_LVCR_VWIDTH, crtc->mode.vsync_end - crtc->mode.vsync_start) | in imx_lcdc_update_hw_registers()
173 FIELD_PREP(IMX21LCDC_LVCR_VBPORCH, crtc->mode.vtotal - crtc->mode.vsync_end); in imx_lcdc_update_hw_registers()
253 struct drm_crtc *crtc = &lcdc->pipe.crtc; in imx_lcdc_pipe_disable() local
259 if (pipe->crtc.enabled) in imx_lcdc_pipe_disable()
299 struct drm_crtc *crtc = &pipe->crtc; in imx_lcdc_pipe_update() local
309 else if (old_crtc != crtc) in imx_lcdc_pipe_update()
319 if (crtc->state->active && drm_crtc_vblank_get(crtc) == 0) in imx_lcdc_pipe_update()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_color.c274 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in ilk_read_csc() local
282 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in skl_read_csc() local
367 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in icl_read_csc() local
525 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in ilk_load_csc_matrix() local
562 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in icl_load_csc_matrix() local
661 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in vlv_read_csc() local
757 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in chv_read_csc() local
994 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in ilk_color_commit_arm() local
1006 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_color_commit_arm() local
1018 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in skl_color_commit_arm() local
[all …]
H A Dintel_modeset_verify.c54 I915_STATE_WARN(i915, conn_state->crtc != encoder->base.crtc, in intel_connector_verify_state()
66 struct intel_crtc *crtc) in verify_connector_state() argument
76 if (new_conn_state->crtc != &crtc->base) in verify_connector_state()
79 if (crtc) in verify_connector_state()
136 new_conn_state->crtc != encoder->base.crtc, in verify_encoder_state()
145 !!encoder->base.crtc, enabled); in verify_encoder_state()
147 if (!encoder->base.crtc) { in verify_encoder_state()
159 verify_crtc_state(struct intel_crtc *crtc, in verify_crtc_state() argument
163 struct drm_device *dev = crtc->base.dev; in verify_crtc_state()
176 crtc->base.name); in verify_crtc_state()
[all …]
H A Dintel_pipe_crc.h16 void intel_crtc_crc_init(struct intel_crtc *crtc);
17 int intel_crtc_set_crc_source(struct drm_crtc *crtc, const char *source_name);
18 int intel_crtc_verify_crc_source(struct drm_crtc *crtc,
20 const char *const *intel_crtc_get_crc_sources(struct drm_crtc *crtc,
22 void intel_crtc_disable_pipe_crc(struct intel_crtc *crtc);
23 void intel_crtc_enable_pipe_crc(struct intel_crtc *crtc);
25 static inline void intel_crtc_crc_init(struct intel_crtc *crtc) {} in intel_crtc_crc_init() argument
29 static inline void intel_crtc_disable_pipe_crc(struct intel_crtc *crtc) in intel_crtc_disable_pipe_crc() argument
33 static inline void intel_crtc_enable_pipe_crc(struct intel_crtc *crtc) in intel_crtc_enable_pipe_crc() argument
H A Dintel_dsb.c31 struct intel_crtc *crtc; member
87 struct intel_crtc *crtc = dsb->crtc; in assert_dsb_has_room() local
93 crtc->base.base.id, crtc->base.name, dsb->id); in assert_dsb_has_room()
231 struct intel_crtc *crtc = dsb->crtc; in intel_dsb_commit() local
233 enum pipe pipe = crtc->pipe; in intel_dsb_commit()
242 crtc->base.base.id, crtc->base.name, dsb->id); in intel_dsb_commit()
257 struct intel_crtc *crtc = dsb->crtc; in intel_dsb_wait() local
259 enum pipe pipe = crtc->pipe; in intel_dsb_wait()
264 crtc->base.base.id, crtc->base.name, dsb->id); in intel_dsb_wait()
326 dsb->crtc = crtc; in intel_dsb_prepare()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vkms.c58 ret = drm_crtc_handle_vblank(crtc); in amdgpu_vkms_vblank_simulate()
74 drm_calc_timestamping_constants(crtc, &crtc->mode); in amdgpu_vkms_enable_vblank()
95 unsigned int pipe = crtc->index; in amdgpu_vkms_get_vblank_timestamp()
137 drm_crtc_vblank_on(crtc); in amdgpu_vkms_crtc_atomic_enable()
143 drm_crtc_vblank_off(crtc); in amdgpu_vkms_crtc_atomic_disable()
150 if (crtc->state->event) { in amdgpu_vkms_crtc_atomic_flush()
154 drm_crtc_send_vblank_event(crtc, crtc->state->event); in amdgpu_vkms_crtc_atomic_flush()
156 drm_crtc_arm_vblank_event(crtc, crtc->state->event); in amdgpu_vkms_crtc_atomic_flush()
160 crtc->state->event = NULL; in amdgpu_vkms_crtc_atomic_flush()
439 struct drm_crtc *crtc = &output->crtc.base; in amdgpu_vkms_output_init() local
[all …]
/openbmc/linux/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_crtc.c355 if (plane->plane.state->crtc != &rcrtc->crtc || in rcar_du_crtc_update_planes()
614 struct drm_crtc *crtc = &rcrtc->crtc; in rcar_du_crtc_disable_planes() local
642 struct drm_crtc *crtc = &rcrtc->crtc; in rcar_du_crtc_stop() local
694 crtc); in rcar_du_crtc_atomic_check()
773 crtc); in rcar_du_crtc_atomic_disable()
807 drm_crtc_send_vblank_event(crtc, crtc->state->event); in rcar_du_crtc_atomic_disable()
835 if (crtc->state->color_mgmt_changed && !crtc->state->active_changed) in rcar_du_crtc_atomic_begin()
1003 if (crtc->state) { in rcar_du_crtc_reset()
1004 rcar_du_crtc_atomic_destroy_state(crtc, crtc->state); in rcar_du_crtc_reset()
1005 crtc->state = NULL; in rcar_du_crtc_reset()
[all …]
H A Drcar_du_vsp.c42 drm_crtc_handle_vblank(&crtc->crtc); in rcar_du_vsp_complete()
49 drm_crtc_add_crc_entry(&crtc->crtc, false, 0, &crc); in rcar_du_vsp_complete()
54 const struct drm_display_mode *mode = &crtc->crtc.state->adjusted_mode; in rcar_du_vsp_enable()
66 .crtc = &crtc->crtc, in rcar_du_vsp_enable()
89 vsp1_du_setup_lif(crtc->vsp->vsp, crtc->vsp_pipe, &cfg); in rcar_du_vsp_enable()
94 vsp1_du_setup_lif(crtc->vsp->vsp, crtc->vsp_pipe, NULL); in rcar_du_vsp_disable()
99 vsp1_du_atomic_begin(crtc->vsp->vsp, crtc->vsp_pipe); in rcar_du_vsp_atomic_begin()
107 state = to_rcar_crtc_state(crtc->crtc.state); in rcar_du_vsp_atomic_flush()
112 vsp1_du_atomic_flush(crtc->vsp->vsp, crtc->vsp_pipe, &cfg); in rcar_du_vsp_atomic_flush()
223 struct rcar_du_crtc *crtc = to_rcar_crtc(state->state.crtc); in rcar_du_vsp_plane_setup() local
[all …]
/openbmc/linux/drivers/gpu/drm/renesas/shmobile/
H A Dshmob_drm_crtc.c66 struct drm_crtc *crtc = &scrtc->crtc; in shmob_drm_crtc_setup_geometry() local
157 struct drm_crtc *crtc = &scrtc->crtc; in shmob_drm_crtc_start() local
245 if (plane->crtc == crtc) in shmob_drm_crtc_start()
259 struct drm_crtc *crtc = &scrtc->crtc; in shmob_drm_crtc_stop() local
293 struct drm_crtc *crtc = &scrtc->crtc; in shmob_drm_crtc_compute_base() local
314 struct drm_crtc *crtc = &scrtc->crtc; in shmob_drm_crtc_update_base() local
317 shmob_drm_crtc_compute_base(scrtc, crtc->x, crtc->y); in shmob_drm_crtc_update_base()
405 drm_crtc_vblank_put(&scrtc->crtc); in shmob_drm_crtc_finish_page_flip()
427 crtc->primary->fb = fb; in shmob_drm_crtc_page_flip()
432 drm_crtc_vblank_get(&scrtc->crtc); in shmob_drm_crtc_page_flip()
[all …]
/openbmc/linux/drivers/gpu/drm/hisilicon/hibmc/
H A Dhibmc_drm_de.c61 struct drm_crtc *crtc = new_plane_state->crtc; in hibmc_plane_atomic_check() local
66 if (!crtc || !fb) in hibmc_plane_atomic_check()
189 drm_crtc_vblank_on(crtc); in hibmc_crtc_atomic_enable()
200 drm_crtc_vblank_off(crtc); in hibmc_crtc_atomic_disable()
421 if (crtc->state->event) in hibmc_crtc_atomic_flush()
422 drm_crtc_send_vblank_event(crtc, crtc->state->event); in hibmc_crtc_atomic_flush()
423 crtc->state->event = NULL; in hibmc_crtc_atomic_flush()
453 r = crtc->gamma_store; in hibmc_crtc_load_lut()
454 g = r + crtc->gamma_size; in hibmc_crtc_load_lut()
455 b = g + crtc->gamma_size; in hibmc_crtc_load_lut()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv50/
H A Dcrc.c87 struct drm_device *dev = crtc->dev; in nv50_crc_ctx_flip_work()
209 drm_crtc_vblank_count(crtc) in nv50_crc_handle_vblank()
241 struct drm_crtc *crtc; in nv50_crc_atomic_stop_reporting() local
256 drm_crtc_vblank_put(crtc); in nv50_crc_atomic_stop_reporting()
273 struct drm_crtc *crtc; in nv50_crc_atomic_init_notifier_contexts() local
297 struct drm_crtc *crtc; in nv50_crc_atomic_release_notifier_contexts() local
320 struct drm_crtc *crtc; in nv50_crc_atomic_start_reporting() local
332 drm_crtc_vblank_get(crtc); in nv50_crc_atomic_start_reporting()
381 struct drm_crtc *crtc; in nv50_crc_atomic_check_outp() local
737 struct drm_crtc *crtc; in nv50_crc_init() local
[all …]
/openbmc/linux/include/drm/
H A Ddrm_modeset_helper_vtables.h82 void (*dpms)(struct drm_crtc *crtc, int mode);
97 void (*prepare)(struct drm_crtc *crtc);
112 void (*commit)(struct drm_crtc *crtc);
191 bool (*mode_fixup)(struct drm_crtc *crtc,
233 void (*mode_set_nofb)(struct drm_crtc *crtc);
304 void (*disable)(struct drm_crtc *crtc);
356 int (*atomic_check)(struct drm_crtc *crtc,
377 void (*atomic_begin)(struct drm_crtc *crtc,
401 void (*atomic_flush)(struct drm_crtc *crtc,
423 void (*atomic_enable)(struct drm_crtc *crtc,
[all …]
/openbmc/linux/drivers/gpu/drm/tve200/
H A Dtve200_display.c125 struct drm_crtc *crtc = &pipe->crtc; in tve200_display_enable() local
127 struct drm_device *drm = crtc->dev; in tve200_display_enable()
239 drm_crtc_vblank_on(crtc); in tve200_display_enable()
244 struct drm_crtc *crtc = &pipe->crtc; in tve200_display_disable() local
245 struct drm_device *drm = crtc->dev; in tve200_display_disable()
248 drm_crtc_vblank_off(crtc); in tve200_display_disable()
260 struct drm_crtc *crtc = &pipe->crtc; in tve200_display_update() local
283 crtc->state->event = NULL; in tve200_display_update()
286 if (crtc->state->active && drm_crtc_vblank_get(crtc) == 0) in tve200_display_update()
296 struct drm_crtc *crtc = &pipe->crtc; in tve200_display_enable_vblank() local
[all …]
/openbmc/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_drv.h65 struct exynos_drm_rect crtc; member
138 int (*enable_vblank)(struct exynos_drm_crtc *crtc);
142 bool (*mode_fixup)(struct exynos_drm_crtc *crtc,
145 int (*atomic_check)(struct exynos_drm_crtc *crtc,
147 void (*atomic_begin)(struct exynos_drm_crtc *crtc);
148 void (*update_plane)(struct exynos_drm_crtc *crtc,
150 void (*disable_plane)(struct exynos_drm_crtc *crtc,
152 void (*atomic_flush)(struct exynos_drm_crtc *crtc);
153 void (*te_handler)(struct exynos_drm_crtc *crtc);
181 if (crtc->pipe_clk) in exynos_drm_pipe_clk_enable()
[all …]
H A Dexynos5433_drm_decon.c60 struct exynos_drm_crtc *crtc; member
109 if (crtc->i80_mode) in decon_enable_vblank()
218 if (crtc->i80_mode) { in decon_commit()
234 if (!crtc->i80_mode) { in decon_commit()
418 val = COORDINATE_X(state->crtc.x + state->crtc.w - 1) | in decon_update_plane()
419 COORDINATE_Y((state->crtc.y + state->crtc.h) / 2 - 1); in decon_update_plane()
422 val = COORDINATE_X(state->crtc.x) | COORDINATE_Y(state->crtc.y); in decon_update_plane()
425 val = COORDINATE_X(state->crtc.x + state->crtc.w - 1) | in decon_update_plane()
426 COORDINATE_Y(state->crtc.y + state->crtc.h - 1); in decon_update_plane()
530 decon_commit(ctx->crtc); in decon_atomic_enable()
[all …]
/openbmc/linux/drivers/gpu/drm/mxsfb/
H A Dlcdif_kms.c429 crtc); in lcdif_crtc_atomic_check()
516 event = crtc->state->event; in lcdif_crtc_atomic_flush()
517 crtc->state->event = NULL; in lcdif_crtc_atomic_flush()
557 drm_crtc_vblank_on(crtc); in lcdif_crtc_atomic_enable()
567 drm_crtc_vblank_off(crtc); in lcdif_crtc_atomic_disable()
593 if (crtc->state) in lcdif_crtc_reset()
594 lcdif_crtc_atomic_destroy_state(crtc, crtc->state); in lcdif_crtc_reset()
596 crtc->state = NULL; in lcdif_crtc_reset()
609 if (WARN_ON(!crtc->state)) in lcdif_crtc_atomic_duplicate_state()
675 &lcdif->crtc); in lcdif_plane_atomic_check()
[all …]
/openbmc/linux/drivers/gpu/drm/radeon/
H A Datombios_crtc.c42 struct drm_device *dev = crtc->dev; in atombios_overscan_setup()
281 drm_crtc_vblank_on(crtc); in atombios_crtc_dpms()
282 radeon_crtc_load_lut(crtc); in atombios_crtc_dpms()
288 drm_crtc_vblank_off(crtc); in atombios_crtc_dpms()
1731 if (crtc == test_crtc) in radeon_get_pll_use_mask()
1758 if (crtc == test_crtc) in radeon_get_shared_dp_ppll()
1798 if (crtc == test_crtc) in radeon_get_shared_nondp_ppll()
2076 atombios_scaler_setup(crtc); in atombios_crtc_mode_set()
2077 radeon_cursor_reset(crtc); in atombios_crtc_mode_set()
2094 if (encoder->crtc == crtc) { in atombios_crtc_mode_fixup()
[all …]

12345678910>>...26