/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_drrs.c | 86 intel_cpu_transcoder_set_m1_n1(crtc, crtc->drrs.cpu_transcoder, in intel_drrs_set_refresh_rate_m_n() 88 &crtc->drrs.m2_n2 : &crtc->drrs.m_n); in intel_drrs_set_refresh_rate_m_n() 121 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_drrs_frontbuffer_bits() local 142 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_drrs_activate() local 153 mutex_lock(&crtc->drrs.mutex); in intel_drrs_activate() 174 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_drrs_deactivate() local 185 mutex_lock(&crtc->drrs.mutex); in intel_drrs_deactivate() 201 struct intel_crtc *crtc = container_of(work, typeof(*crtc), drrs.work.work); in intel_drrs_downclock_work() local 203 mutex_lock(&crtc->drrs.mutex); in intel_drrs_downclock_work() 205 if (intel_drrs_is_active(crtc) && !crtc->drrs.busy_frontbuffer_bits) in intel_drrs_downclock_work() [all …]
|
H A D | intel_crtc.c | 42 crtc->base.id, crtc->name)) in assert_vblank_disabled() 58 return crtc; in intel_crtc_for_pipe() 89 return crtc->base.funcs->get_vblank_counter(&crtc->base); in intel_crtc_get_vblank_counter() 185 crtc = kzalloc(sizeof(*crtc), GFP_KERNEL); in intel_crtc_alloc() 186 if (!crtc) in intel_crtc_alloc() 191 kfree(crtc); in intel_crtc_alloc() 198 return crtc; in intel_crtc_alloc() 203 intel_crtc_destroy_state(&crtc->base, crtc->base.state); in intel_crtc_free() 204 kfree(crtc); in intel_crtc_free() 214 kfree(crtc); in intel_crtc_destroy() [all …]
|
H A D | hsw_ips.c | 15 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_ips_enable() local 62 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_ips_disable() local 92 struct intel_crtc *crtc) in hsw_ips_need_disable() argument 121 struct intel_crtc *crtc) in hsw_ips_pre_update() argument 133 struct intel_crtc *crtc) in hsw_ips_need_enable() argument 169 struct intel_crtc *crtc) in hsw_ips_post_update() argument 183 return HAS_IPS(to_i915(crtc->base.dev)) && crtc->pipe == PIPE_A; in hsw_crtc_supports_ips() 188 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_crtc_state_ips_capable() local 216 struct intel_crtc *crtc) in hsw_ips_compute_config() argument 259 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_ips_get_config() local [all …]
|
H A D | intel_display_trace.h | 26 TP_ARGS(crtc), 54 TP_ARGS(crtc), 83 TP_ARGS(crtc, crcs), 174 __entry->frame[crtc->pipe] = intel_crtc_get_vblank_counter(crtc); 175 __entry->scanline[crtc->pipe] = intel_get_crtc_scanline(crtc); 190 TP_ARGS(crtc, wm), 241 TP_ARGS(crtc, wm), 481 TP_ARGS(crtc), 504 TP_ARGS(crtc), 527 TP_ARGS(crtc), [all …]
|
H A D | intel_vblank.c | 135 &crtc->base.dev->vblank[drm_crtc_index(&crtc->base)]; in intel_crtc_scanlines_since_frame_timestamp() 154 PIPE_FRMTMSTMP(crtc->pipe)); in intel_crtc_scanlines_since_frame_timestamp() 163 PIPE_FRMTMSTMP(crtc->pipe)); in intel_crtc_scanlines_since_frame_timestamp() 181 &crtc->base.dev->vblank[drm_crtc_index(&crtc->base)]; in __intel_get_crtc_scanline_from_timestamp() 204 enum pipe pipe = crtc->pipe; in __intel_get_crtc_scanline() 207 if (!crtc->active) in __intel_get_crtc_scanline() 210 vblank = &crtc->base.dev->vblank[drm_crtc_index(&crtc->base)]; in __intel_get_crtc_scanline() 263 enum pipe pipe = crtc->pipe; in i915_get_crtc_scanoutpos() 424 enum pipe pipe = crtc->pipe; in wait_for_pipe_scanline_moving() 493 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_crtc_update_active_timings() local [all …]
|
H A D | intel_modeset_setup.c | 61 crtc->base.base.id, crtc->base.name); in intel_crtc_disable_noatomic_begin() 87 crtc->base.base.id, crtc->base.name); in intel_crtc_disable_noatomic_begin() 89 crtc->active = false; in intel_crtc_disable_noatomic_begin() 103 if (conn_state->crtc) in set_encoder_for_connector() 108 conn_state->crtc = encoder->base.crtc; in set_encoder_for_connector() 430 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_sanitize_fifo_underrun_reporting() local 563 struct intel_crtc *crtc = to_intel_crtc(encoder->base.crtc); in intel_sanitize_encoder() local 710 crtc->base.base.id, crtc->base.name, in intel_modeset_readout_hw_state() 728 encoder->base.crtc = &crtc->base; in intel_modeset_readout_hw_state() 781 crtc = to_intel_crtc(encoder->base.crtc); in intel_modeset_readout_hw_state() [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_crtc.c | 102 .crtc = crtc, in drm_crtc_force_disable() 131 ret = crtc->funcs->late_register(crtc); in drm_crtc_register_all() 145 crtc->funcs->early_unregister(crtc); in drm_crtc_unregister_all() 205 crtc->fence_context, ++crtc->fence_seqno); in drm_crtc_create_fence() 292 "CRTC:%d-%s", crtc->base.id, crtc->name); in __drm_crtc_init_with_planes() 294 crtc->base.properties = &crtc->properties; in __drm_crtc_init_with_planes() 518 crtc->funcs->atomic_destroy_state(crtc, crtc->state); in drm_crtc_cleanup() 522 memset(crtc, 0, sizeof(*crtc)); in drm_crtc_cleanup() 601 struct drm_crtc *crtc = set->crtc; in __drm_mode_set_config_internal() local 625 plane->crtc = fb ? crtc : NULL; in __drm_mode_set_config_internal() [all …]
|
H A D | drm_crtc_helper.c | 201 crtc->enabled = drm_helper_crtc_in_use(crtc); in __drm_helper_disable_unused_functions() 302 crtc->enabled = drm_helper_crtc_in_use(crtc); in drm_crtc_helper_set_mode() 330 if (encoder->crtc != crtc) in drm_crtc_helper_set_mode() 361 if (encoder->crtc != crtc) in drm_crtc_helper_set_mode() 386 if (encoder->crtc != crtc) in drm_crtc_helper_set_mode() 404 if (encoder->crtc != crtc) in drm_crtc_helper_set_mode() 473 if (encoder->crtc != crtc) in drm_crtc_helper_disable() 634 save_set.crtc = set->crtc; in drm_crtc_helper_set_config() 995 crtc->x, crtc->y, crtc->primary->fb); in drm_helper_resume_force_mode() 1005 if(encoder->crtc != crtc) in drm_helper_resume_force_mode() [all …]
|
H A D | drm_atomic_helper.c | 245 crtc = conn_state->crtc; in set_best_encoder() 536 crtc->base.id, crtc->name); in mode_valid_path() 736 crtc->base.id, crtc->name, in drm_atomic_helper_check_modeset() 871 WARN_ON(plane_state->crtc && plane_state->crtc != crtc_state->crtc); in drm_atomic_helper_check_plane_state() 1272 crtc = new_conn_state->crtc; in drm_atomic_helper_update_legacy_modeset_state() 1277 if (crtc && crtc->state->active) in drm_atomic_helper_update_legacy_modeset_state() 1680 crtc->base.id, crtc->name); in drm_atomic_helper_wait_for_vblanks() 1720 crtc->base.id, crtc->name); in drm_atomic_helper_wait_for_flip_done() 2176 crtc->base.id, crtc->name); in stall_checks() 2199 commit->crtc = crtc; in init_commit() [all …]
|
/openbmc/linux/drivers/gpu/drm/tidss/ |
H A D | tidss_crtc.c | 88 crtc); in tidss_crtc_atomic_check() 140 if (pstate->crtc != crtc || !pstate->visible) in tidss_crtc_position_planes() 166 crtc); in tidss_crtc_atomic_flush() 173 __func__, crtc->name, crtc->state->active ? "" : "not ", in tidss_crtc_atomic_flush() 175 crtc->state->event); in tidss_crtc_atomic_flush() 219 crtc); in tidss_crtc_atomic_enable() 253 drm_crtc_send_vblank_event(crtc, crtc->state->event); in tidss_crtc_atomic_enable() 293 drm_crtc_send_vblank_event(crtc, crtc->state->event); in tidss_crtc_atomic_disable() 357 if (crtc->state) in tidss_crtc_reset() 360 kfree(crtc->state); in tidss_crtc_reset() [all …]
|
/openbmc/linux/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_crtc.c | 29 drm_crtc_vblank_on(crtc); in exynos_drm_crtc_atomic_enable() 37 drm_crtc_vblank_off(crtc); in exynos_drm_crtc_atomic_disable() 43 if (crtc->state->event && !crtc->state->active) { in exynos_drm_crtc_atomic_disable() 44 drm_crtc_send_vblank_event(crtc, crtc->state->event); in exynos_drm_crtc_atomic_disable() 45 crtc->state->event = NULL; in exynos_drm_crtc_atomic_disable() 54 crtc); in exynos_crtc_atomic_check() 140 drm_crtc_cleanup(crtc); in exynos_drm_crtc_destroy() 180 struct drm_crtc *crtc; in exynos_drm_crtc_create() local 211 struct drm_crtc *crtc; in exynos_drm_crtc_get_by_type() local 226 if (IS_ERR(crtc)) in exynos_drm_set_possible_crtcs() [all …]
|
/openbmc/linux/drivers/gpu/drm/omapdrm/ |
H A D | omap_crtc.c | 184 struct drm_crtc *crtc = priv->channels[channel]->crtc; in omap_crtc_dss_enable() local 196 struct drm_crtc *crtc = priv->channels[channel]->crtc; in omap_crtc_dss_disable() local 206 struct drm_crtc *crtc = priv->channels[channel]->crtc; in omap_crtc_dss_set_timings() local 217 struct drm_crtc *crtc = priv->channels[channel]->crtc; in omap_crtc_dss_set_lcd_config() local 229 struct drm_crtc *crtc = priv->channels[channel]->crtc; in omap_crtc_dss_register_framedone() local 248 struct drm_crtc *crtc = priv->channels[channel]->crtc; in omap_crtc_dss_unregister_framedone() local 484 drm_crtc_send_vblank_event(crtc, crtc->state->event); in omap_crtc_atomic_disable() 582 crtc); in omap_crtc_atomic_check() 713 if (crtc->state) in omap_crtc_reset() 845 omap_plane_install_properties(crtc->primary, &crtc->base); in omap_crtc_init() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_crtc.c | 58 if (!crtc) in dpu_crtc_destroy() 71 if (encoder->crtc == crtc) in get_encoder_from_crtc() 628 struct drm_crtc *crtc = fevent->crtc; in dpu_crtc_frame_event_work() local 713 fevent->crtc = crtc; in dpu_crtc_frame_event_cb() 811 crtc->base.id, crtc->state->enable); in dpu_crtc_atomic_begin() 817 _dpu_crtc_setup_lm_bounds(crtc, crtc->state); in dpu_crtc_atomic_begin() 856 crtc->base.id, crtc->state->enable); in dpu_crtc_atomic_flush() 998 dpu_crtc_destroy_state(crtc, crtc->state); in dpu_crtc_reset() 1115 if (crtc->state->event && !crtc->state->active) { in dpu_crtc_disable() 1117 drm_crtc_send_vblank_event(crtc, crtc->state->event); in dpu_crtc_disable() [all …]
|
/openbmc/linux/drivers/gpu/drm/sun4i/ |
H A D | sun4i_crtc.c | 42 if (encoder->crtc == crtc) in sun4i_crtc_get_encoder() 52 crtc); in sun4i_crtc_atomic_check() 67 crtc); in sun4i_crtc_atomic_begin() 73 if (crtc->state->event) { in sun4i_crtc_atomic_begin() 79 crtc->state->event = NULL; in sun4i_crtc_atomic_begin() 97 crtc->state->event = NULL; in sun4i_crtc_atomic_flush() 116 drm_crtc_vblank_off(crtc); in sun4i_crtc_atomic_disable() 120 if (crtc->state->event && !crtc->state->active) { in sun4i_crtc_atomic_disable() 122 drm_crtc_send_vblank_event(crtc, crtc->state->event); in sun4i_crtc_atomic_disable() 125 crtc->state->event = NULL; in sun4i_crtc_atomic_disable() [all …]
|
/openbmc/linux/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-crtc.c | 58 drm_crtc_vblank_on(crtc); in dcss_crtc_atomic_begin() 69 if (crtc->state->event) { in dcss_crtc_atomic_flush() 71 drm_crtc_arm_vblank_event(crtc, crtc->state->event); in dcss_crtc_atomic_flush() 84 crtc); in dcss_crtc_atomic_enable() 120 crtc); in dcss_crtc_atomic_disable() 131 drm_crtc_send_vblank_event(crtc, crtc->state->event); in dcss_crtc_atomic_disable() 190 crtc->plane[0] = dcss_plane_init(drm, drm_crtc_mask(&crtc->base), in dcss_crtc_init() 198 ret = drm_crtc_init_with_planes(drm, &crtc->base, &crtc->plane[0]->base, in dcss_crtc_init() 206 if (crtc->irq < 0) in dcss_crtc_init() 207 return crtc->irq; in dcss_crtc_init() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-cadence.c | 257 struct cdns_rtc *crtc; in cdns_rtc_probe() local 261 crtc = devm_kzalloc(&pdev->dev, sizeof(*crtc), GFP_KERNEL); in cdns_rtc_probe() 262 if (!crtc) in cdns_rtc_probe() 266 if (IS_ERR(crtc->regs)) in cdns_rtc_probe() 267 return PTR_ERR(crtc->regs); in cdns_rtc_probe() 270 if (crtc->irq < 0) in cdns_rtc_probe() 274 if (IS_ERR(crtc->pclk)) { in cdns_rtc_probe() 275 ret = PTR_ERR(crtc->pclk); in cdns_rtc_probe() 282 if (IS_ERR(crtc->ref_clk)) { in cdns_rtc_probe() 290 if (IS_ERR(crtc->rtc_dev)) in cdns_rtc_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/vkms/ |
H A D | vkms_crtc.c | 16 struct drm_crtc *crtc = &output->crtc; in vkms_vblank_simulate() local 69 drm_calc_timestamping_constants(crtc, &crtc->mode); in vkms_enable_vblank() 123 if (WARN_ON(!crtc->state)) in vkms_atomic_crtc_duplicate_state() 154 if (crtc->state) in vkms_atomic_crtc_reset() 155 vkms_atomic_crtc_destroy_state(crtc, crtc->state); in vkms_atomic_crtc_reset() 180 crtc); in vkms_crtc_atomic_check() 227 drm_crtc_vblank_on(crtc); in vkms_crtc_atomic_enable() 233 drm_crtc_vblank_off(crtc); in vkms_crtc_atomic_disable() 252 if (crtc->state->event) { in vkms_crtc_atomic_flush() 256 drm_crtc_send_vblank_event(crtc, crtc->state->event); in vkms_crtc_atomic_flush() [all …]
|
/openbmc/linux/drivers/gpu/drm/sti/ |
H A D | sti_crtc.c | 33 drm_crtc_vblank_on(crtc); in sti_crtc_atomic_enable() 45 drm_crtc_wait_one_vblank(crtc); in sti_crtc_atomic_disable() 114 drm_crtc_vblank_off(crtc); in sti_crtc_disable() 131 sti_crtc_mode_set(crtc, &crtc->state->adjusted_mode); in sti_crtc_mode_set_nofb() 153 if (p->state->crtc != crtc) in sti_crtc_atomic_flush() 208 event = crtc->state->event; in sti_crtc_atomic_flush() 210 crtc->state->event = NULL; in sti_crtc_atomic_flush() 231 drm_crtc_cleanup(crtc); in sti_crtc_destroy() 246 struct drm_crtc *crtc = data; in sti_crtc_vblank_cb() local 250 pipe = drm_crtc_index(crtc); in sti_crtc_vblank_cb() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp4/ |
H A D | mdp4_crtc.c | 130 drm_crtc_cleanup(crtc); in mdp4_crtc_destroy() 156 struct drm_crtc *crtc; in setup_mixer() local 285 if (crtc->state->event && !crtc->state->active) { in mdp4_crtc_atomic_disable() 288 drm_crtc_send_vblank_event(crtc, crtc->state->event); in mdp4_crtc_atomic_disable() 314 crtc_flush(crtc); in mdp4_crtc_atomic_enable() 351 blend_setup(crtc); in mdp4_crtc_atomic_flush() 352 crtc_flush(crtc); in mdp4_crtc_atomic_flush() 479 crtc_flush(crtc); in mdp4_crtc_cursor_move() 533 crtc_flush(crtc); in mdp4_crtc_err_irq() 608 blend_setup(crtc); in mdp4_crtc_set_intf() [all …]
|
/openbmc/linux/drivers/gpu/drm/tilcdc/ |
H A D | tilcdc_crtc.c | 74 crtc->y * fb->pitches[0] + in set_scanout() 435 set_scanout(crtc, fb); in tilcdc_crtc_set_mode() 437 drm_mode_copy(&crtc->hwmode, &crtc->state->adjusted_mode); in tilcdc_crtc_set_mode() 457 reset(crtc); in tilcdc_crtc_enable() 523 drm_crtc_send_vblank_event(crtc, crtc->state->event); in tilcdc_crtc_off() 555 drm_crtc_send_vblank_event(crtc, crtc->state->event); in tilcdc_crtc_atomic_flush() 567 return crtc->state && crtc->state->enable && crtc->state->active; in tilcdc_crtc_is_on() 674 crtc); in tilcdc_crtc_atomic_check() 681 state->planes[0].state->crtc != crtc) { in tilcdc_crtc_atomic_check() 1021 struct drm_crtc *crtc; in tilcdc_crtc_create() local [all …]
|
/openbmc/linux/drivers/gpu/drm/imx/ipuv3/ |
H A D | ipuv3-crtc.c | 85 crtc); in ipu_crtc_atomic_disable() 103 if (crtc->state->event && !crtc->state->active) { in ipu_crtc_atomic_disable() 104 drm_crtc_send_vblank_event(crtc, crtc->state->event); in ipu_crtc_atomic_disable() 114 if (crtc->state) in imx_drm_crtc_reset() 118 crtc->state = NULL; in imx_drm_crtc_reset() 135 WARN_ON(state->base.crtc != crtc); in imx_drm_crtc_duplicate_state() 136 state->base.crtc = crtc; in imx_drm_crtc_duplicate_state() 232 crtc); in ipu_crtc_atomic_check() 277 if (encoder->crtc == crtc) in ipu_crtc_mode_set_nofb() 371 struct drm_crtc *crtc; in ipu_drm_bind() local [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/ |
H A D | mdp5_crtc.c | 419 if (encoder->crtc == crtc) in get_encoder_from_crtc() 513 if (crtc->state->event && !crtc->state->active) { in mdp5_crtc_atomic_disable() 516 drm_crtc_send_vblank_event(crtc, crtc->state->event); in mdp5_crtc_atomic_disable() 699 crtc); in mdp5_crtc_atomic_check() 806 DBG("%s: event: %p", crtc->name, crtc->state->event); in mdp5_crtc_atomic_flush() 824 blend_setup(crtc); in mdp5_crtc_atomic_flush() 1139 if (crtc->state) in mdp5_crtc_reset() 1140 mdp5_crtc_destroy_state(crtc, crtc->state); in mdp5_crtc_reset() 1292 if (WARN_ON(!crtc)) in mdp5_crtc_get_mixer() 1305 if (WARN_ON(!crtc)) in mdp5_crtc_get_pipeline() [all …]
|
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_crtc.c | 31 if (conn_st->crtc != crtc_st->crtc) in komeda_crtc_get_color_config() 81 crtc); in komeda_crtc_atomic_check() 259 drm_crtc_index(crtc), in komeda_crtc_do_flush() 282 crtc); in komeda_crtc_atomic_enable() 330 crtc); in komeda_crtc_atomic_disable() 392 crtc); in komeda_crtc_atomic_flush() 394 crtc); in komeda_crtc_atomic_flush() 419 struct drm_crtc *crtc = kcrtc_st->base.crtc; in komeda_crtc_get_aclk() local 499 if (crtc->state) in komeda_crtc_reset() 503 crtc->state = NULL; in komeda_crtc_reset() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_cursor.c | 156 x += crtc->x; in radeon_cursor_move_locked() 157 y += crtc->y; in radeon_cursor_move_locked() 166 x += crtc->x; in radeon_cursor_move_locked() 167 y += crtc->y; in radeon_cursor_move_locked() 169 DRM_DEBUG("x %d y %d c->x %d c->y %d\n", x, y, crtc->x, crtc->y); in radeon_cursor_move_locked() 193 frame_end = crtc->x + crtc->mode.crtc_hdisplay; in radeon_cursor_move_locked() 209 if (x <= (crtc->x - w) || y <= (crtc->y - radeon_crtc->cursor_height) || in radeon_cursor_move_locked() 210 x >= (crtc->x + crtc->mode.hdisplay) || in radeon_cursor_move_locked() 211 y >= (crtc->y + crtc->mode.vdisplay)) in radeon_cursor_move_locked() 228 x -= crtc->x; in radeon_cursor_move_locked() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_crc.c | 118 struct drm_crtc *crtc; in amdgpu_dm_crtc_notify_ta_to_read() local 124 crtc = secure_display_ctx->crtc; in amdgpu_dm_crtc_notify_ta_to_read() 126 if (!crtc) in amdgpu_dm_crtc_notify_ta_to_read() 169 crtc = secure_display_ctx->crtc; in amdgpu_dm_forward_crc_window() 171 if (!crtc) in amdgpu_dm_forward_crc_window() 326 if (!connector->state || connector->state->crtc != crtc) in amdgpu_dm_crtc_set_crc_source() 428 if (crtc == NULL) in amdgpu_dm_crtc_handle_crc_irq() 434 drm_dev = crtc->dev; in amdgpu_dm_crtc_handle_crc_irq() 475 if (crtc == NULL) in amdgpu_dm_crtc_handle_crc_window_irq() 499 if (WARN_ON(secure_display_ctx->crtc != crtc)) { in amdgpu_dm_crtc_handle_crc_window_irq() [all …]
|