/drivers/gpu/drm/i915/display/ |
D | intel_crtc.c | 34 static void assert_vblank_disabled(struct drm_crtc *crtc) in assert_vblank_disabled() argument 36 if (I915_STATE_WARN_ON(drm_crtc_vblank_get(crtc) == 0)) in assert_vblank_disabled() 37 drm_crtc_vblank_put(crtc); in assert_vblank_disabled() 48 struct intel_crtc *crtc; in intel_crtc_for_pipe() local 50 for_each_intel_crtc(&i915->drm, crtc) { in intel_crtc_for_pipe() 51 if (crtc->pipe == pipe) in intel_crtc_for_pipe() 52 return crtc; in intel_crtc_for_pipe() 58 void intel_crtc_wait_for_next_vblank(struct intel_crtc *crtc) in intel_crtc_wait_for_next_vblank() argument 60 drm_crtc_wait_one_vblank(&crtc->base); in intel_crtc_wait_for_next_vblank() 66 struct intel_crtc *crtc = intel_crtc_for_pipe(i915, pipe); in intel_wait_for_vblank_if_active() local [all …]
|
D | intel_drrs.c | 65 intel_drrs_set_refresh_rate_pipeconf(struct intel_crtc *crtc, in intel_drrs_set_refresh_rate_pipeconf() argument 68 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in intel_drrs_set_refresh_rate_pipeconf() 69 enum transcoder cpu_transcoder = crtc->drrs.cpu_transcoder; in intel_drrs_set_refresh_rate_pipeconf() 88 intel_drrs_set_refresh_rate_m_n(struct intel_crtc *crtc, in intel_drrs_set_refresh_rate_m_n() argument 91 intel_cpu_transcoder_set_m1_n1(crtc, crtc->drrs.cpu_transcoder, in intel_drrs_set_refresh_rate_m_n() 93 &crtc->drrs.m2_n2 : &crtc->drrs.m_n); in intel_drrs_set_refresh_rate_m_n() 96 bool intel_drrs_is_active(struct intel_crtc *crtc) in intel_drrs_is_active() argument 98 return crtc->drrs.cpu_transcoder != INVALID_TRANSCODER; in intel_drrs_is_active() 101 static void intel_drrs_set_state(struct intel_crtc *crtc, in intel_drrs_set_state() argument 104 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in intel_drrs_set_state() [all …]
|
D | intel_modeset_setup.c | 28 static void intel_crtc_disable_noatomic(struct intel_crtc *crtc, in intel_crtc_disable_noatomic() argument 32 struct drm_i915_private *i915 = to_i915(crtc->base.dev); in intel_crtc_disable_noatomic() 40 to_intel_crtc_state(crtc->base.state); in intel_crtc_disable_noatomic() 44 enum pipe pipe = crtc->pipe; in intel_crtc_disable_noatomic() 50 for_each_intel_plane_on_crtc(&i915->drm, crtc, plane) { in intel_crtc_disable_noatomic() 55 intel_plane_disable_noatomic(crtc, plane); in intel_crtc_disable_noatomic() 62 crtc->base.base.id, crtc->base.name); in intel_crtc_disable_noatomic() 69 temp_crtc_state = intel_atomic_get_crtc_state(state, crtc); in intel_crtc_disable_noatomic() 70 ret = drm_atomic_add_affected_connectors(state, &crtc->base); in intel_crtc_disable_noatomic() 74 i915->display.funcs.display->crtc_disable(to_intel_atomic_state(state), crtc); in intel_crtc_disable_noatomic() [all …]
|
D | intel_display_trace.h | 22 TP_PROTO(struct intel_crtc *crtc), 23 TP_ARGS(crtc), 31 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); 37 __entry->pipe = crtc->pipe; 48 TP_PROTO(struct intel_crtc *crtc), 49 TP_ARGS(crtc), 58 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); 64 __entry->pipe = crtc->pipe; 75 TP_PROTO(struct intel_crtc *crtc, const u32 *crcs), 76 TP_ARGS(crtc, crcs), [all …]
|
D | hsw_ips.c | 15 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_ips_enable() local 16 struct drm_i915_private *i915 = to_i915(crtc->base.dev); in hsw_ips_enable() 56 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_ips_disable() local 57 struct drm_i915_private *i915 = to_i915(crtc->base.dev); in hsw_ips_disable() 86 struct intel_crtc *crtc) in hsw_ips_need_disable() argument 90 intel_atomic_get_old_crtc_state(state, crtc); in hsw_ips_need_disable() 92 intel_atomic_get_new_crtc_state(state, crtc); in hsw_ips_need_disable() 116 struct intel_crtc *crtc) in hsw_ips_pre_update() argument 119 intel_atomic_get_old_crtc_state(state, crtc); in hsw_ips_pre_update() 121 if (!hsw_ips_need_disable(state, crtc)) in hsw_ips_pre_update() [all …]
|
/drivers/gpu/drm/ |
D | drm_crtc.c | 89 struct drm_crtc *crtc; in drm_crtc_from_index() local 91 drm_for_each_crtc(crtc, dev) in drm_crtc_from_index() 92 if (idx == crtc->index) in drm_crtc_from_index() 93 return crtc; in drm_crtc_from_index() 99 int drm_crtc_force_disable(struct drm_crtc *crtc) in drm_crtc_force_disable() argument 102 .crtc = crtc, in drm_crtc_force_disable() 105 WARN_ON(drm_drv_uses_atomic_modeset(crtc->dev)); in drm_crtc_force_disable() 124 struct drm_crtc *crtc; in drm_crtc_register_all() local 127 drm_for_each_crtc(crtc, dev) { in drm_crtc_register_all() 128 drm_debugfs_crtc_add(crtc); in drm_crtc_register_all() [all …]
|
D | drm_crtc_helper.c | 149 bool drm_helper_crtc_in_use(struct drm_crtc *crtc) in drm_helper_crtc_in_use() argument 152 struct drm_device *dev = crtc->dev; in drm_helper_crtc_in_use() 164 if (encoder->crtc == crtc && drm_helper_encoder_in_use(encoder)) in drm_helper_crtc_in_use() 187 struct drm_crtc *crtc; in __drm_helper_disable_unused_functions() local 195 encoder->crtc = NULL; in __drm_helper_disable_unused_functions() 199 drm_for_each_crtc(crtc, dev) { in __drm_helper_disable_unused_functions() 200 const struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private; in __drm_helper_disable_unused_functions() 202 crtc->enabled = drm_helper_crtc_in_use(crtc); in __drm_helper_disable_unused_functions() 203 if (!crtc->enabled) { in __drm_helper_disable_unused_functions() 205 (*crtc_funcs->disable)(crtc); in __drm_helper_disable_unused_functions() [all …]
|
D | drm_atomic_helper.c | 84 if (old_plane_state->crtc) { in drm_atomic_helper_plane_changed() 86 old_plane_state->crtc); in drm_atomic_helper_plane_changed() 94 if (plane_state->crtc) { in drm_atomic_helper_plane_changed() 95 crtc_state = drm_atomic_get_new_crtc_state(state, plane_state->crtc); in drm_atomic_helper_plane_changed() 123 if (!new_conn_state->crtc) in handle_conflicting_encoders() 177 connector->state->crtc->base.id, in handle_conflicting_encoders() 178 connector->state->crtc->name, in handle_conflicting_encoders() 193 new_conn_state->crtc->base.id, new_conn_state->crtc->name, in handle_conflicting_encoders() 196 crtc_state = drm_atomic_get_new_crtc_state(state, new_conn_state->crtc); in handle_conflicting_encoders() 223 struct drm_crtc *crtc; in set_best_encoder() local [all …]
|
/drivers/gpu/drm/omapdrm/ |
D | omap_crtc.c | 55 struct videomode *omap_crtc_timings(struct drm_crtc *crtc) in omap_crtc_timings() argument 57 struct omap_crtc *omap_crtc = to_omap_crtc(crtc); in omap_crtc_timings() 61 enum omap_channel omap_crtc_channel(struct drm_crtc *crtc) in omap_crtc_channel() argument 63 struct omap_crtc *omap_crtc = to_omap_crtc(crtc); in omap_crtc_channel() 67 static bool omap_crtc_is_pending(struct drm_crtc *crtc) in omap_crtc_is_pending() argument 69 struct omap_crtc *omap_crtc = to_omap_crtc(crtc); in omap_crtc_is_pending() 73 spin_lock_irqsave(&crtc->dev->event_lock, flags); in omap_crtc_is_pending() 75 spin_unlock_irqrestore(&crtc->dev->event_lock, flags); in omap_crtc_is_pending() 80 int omap_crtc_wait_pending(struct drm_crtc *crtc) in omap_crtc_wait_pending() argument 82 struct omap_crtc *omap_crtc = to_omap_crtc(crtc); in omap_crtc_wait_pending() [all …]
|
/drivers/gpu/drm/tidss/ |
D | tidss_crtc.c | 24 struct drm_device *ddev = tcrtc->crtc.dev; in tidss_crtc_finish_page_flip() 52 drm_crtc_send_vblank_event(&tcrtc->crtc, event); in tidss_crtc_finish_page_flip() 56 drm_crtc_vblank_put(&tcrtc->crtc); in tidss_crtc_finish_page_flip() 59 void tidss_crtc_vblank_irq(struct drm_crtc *crtc) in tidss_crtc_vblank_irq() argument 61 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc); in tidss_crtc_vblank_irq() 63 drm_crtc_handle_vblank(crtc); in tidss_crtc_vblank_irq() 68 void tidss_crtc_framedone_irq(struct drm_crtc *crtc) in tidss_crtc_framedone_irq() argument 70 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc); in tidss_crtc_framedone_irq() 75 void tidss_crtc_error_irq(struct drm_crtc *crtc, u64 irqstatus) in tidss_crtc_error_irq() argument 77 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc); in tidss_crtc_error_irq() [all …]
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_crtc.c | 21 static void exynos_drm_crtc_atomic_enable(struct drm_crtc *crtc, in exynos_drm_crtc_atomic_enable() argument 24 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); in exynos_drm_crtc_atomic_enable() 29 drm_crtc_vblank_on(crtc); in exynos_drm_crtc_atomic_enable() 32 static void exynos_drm_crtc_atomic_disable(struct drm_crtc *crtc, in exynos_drm_crtc_atomic_disable() argument 35 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); in exynos_drm_crtc_atomic_disable() 37 drm_crtc_vblank_off(crtc); in exynos_drm_crtc_atomic_disable() 42 spin_lock_irq(&crtc->dev->event_lock); 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() [all …]
|
/drivers/gpu/drm/sun4i/ |
D | sun4i_crtc.c | 37 static struct drm_encoder *sun4i_crtc_get_encoder(struct drm_crtc *crtc) in sun4i_crtc_get_encoder() argument 41 drm_for_each_encoder(encoder, crtc->dev) in sun4i_crtc_get_encoder() 42 if (encoder->crtc == crtc) in sun4i_crtc_get_encoder() 48 static int sun4i_crtc_atomic_check(struct drm_crtc *crtc, in sun4i_crtc_atomic_check() argument 52 crtc); in sun4i_crtc_atomic_check() 53 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_check() 63 static void sun4i_crtc_atomic_begin(struct drm_crtc *crtc, in sun4i_crtc_atomic_begin() argument 67 crtc); in sun4i_crtc_atomic_begin() 68 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_begin() 69 struct drm_device *dev = crtc->dev; in sun4i_crtc_atomic_begin() [all …]
|
/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_crtc.c | 46 static struct dpu_kms *_dpu_crtc_get_kms(struct drm_crtc *crtc) in _dpu_crtc_get_kms() argument 48 struct msm_drm_private *priv = crtc->dev->dev_private; in _dpu_crtc_get_kms() 53 static void dpu_crtc_destroy(struct drm_crtc *crtc) in dpu_crtc_destroy() argument 55 struct dpu_crtc *dpu_crtc = to_dpu_crtc(crtc); in dpu_crtc_destroy() 57 if (!crtc) in dpu_crtc_destroy() 60 drm_crtc_cleanup(crtc); in dpu_crtc_destroy() 64 static struct drm_encoder *get_encoder_from_crtc(struct drm_crtc *crtc) in get_encoder_from_crtc() argument 66 struct drm_device *dev = crtc->dev; in get_encoder_from_crtc() 70 if (encoder->crtc == crtc) in get_encoder_from_crtc() 90 static int dpu_crtc_verify_crc_source(struct drm_crtc *crtc, in dpu_crtc_verify_crc_source() argument [all …]
|
/drivers/gpu/drm/imx/dcss/ |
D | dcss-crtc.c | 15 static int dcss_enable_vblank(struct drm_crtc *crtc) in dcss_enable_vblank() argument 17 struct dcss_crtc *dcss_crtc = container_of(crtc, struct dcss_crtc, in dcss_enable_vblank() 19 struct dcss_dev *dcss = crtc->dev->dev_private; in dcss_enable_vblank() 30 static void dcss_disable_vblank(struct drm_crtc *crtc) in dcss_disable_vblank() argument 32 struct dcss_crtc *dcss_crtc = container_of(crtc, struct dcss_crtc, in dcss_disable_vblank() 55 static void dcss_crtc_atomic_begin(struct drm_crtc *crtc, in dcss_crtc_atomic_begin() argument 58 drm_crtc_vblank_on(crtc); in dcss_crtc_atomic_begin() 61 static void dcss_crtc_atomic_flush(struct drm_crtc *crtc, in dcss_crtc_atomic_flush() argument 64 struct dcss_crtc *dcss_crtc = container_of(crtc, struct dcss_crtc, in dcss_crtc_atomic_flush() 68 spin_lock_irq(&crtc->dev->event_lock); in dcss_crtc_atomic_flush() [all …]
|
/drivers/rtc/ |
D | rtc-cadence.c | 87 static void cdns_rtc_set_enabled(struct cdns_rtc *crtc, bool enabled) in cdns_rtc_set_enabled() argument 91 writel(reg, crtc->regs + CDNS_RTC_CTLR); in cdns_rtc_set_enabled() 94 static bool cdns_rtc_get_enabled(struct cdns_rtc *crtc) in cdns_rtc_get_enabled() argument 96 return !(readl(crtc->regs + CDNS_RTC_CTLR) & CDNS_RTC_CTLR_TIME_CAL); in cdns_rtc_get_enabled() 102 struct cdns_rtc *crtc = dev_get_drvdata(dev); in cdns_rtc_irq_handler() local 105 if (!(readl(crtc->regs + CDNS_RTC_EFLR) & CDNS_RTC_AEI_ALRM)) in cdns_rtc_irq_handler() 108 rtc_update_irq(crtc->rtc_dev, 1, RTC_IRQF | RTC_AF); in cdns_rtc_irq_handler() 128 struct cdns_rtc *crtc = dev_get_drvdata(dev); in cdns_rtc_read_time() local 132 if (!cdns_rtc_get_enabled(crtc)) in cdns_rtc_read_time() 135 cdns_rtc_set_enabled(crtc, false); in cdns_rtc_read_time() [all …]
|
/drivers/gpu/drm/sti/ |
D | sti_crtc.c | 24 static void sti_crtc_atomic_enable(struct drm_crtc *crtc, in sti_crtc_atomic_enable() argument 27 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_atomic_enable() 33 drm_crtc_vblank_on(crtc); in sti_crtc_atomic_enable() 36 static void sti_crtc_atomic_disable(struct drm_crtc *crtc, in sti_crtc_atomic_disable() argument 39 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_atomic_disable() 45 drm_crtc_wait_one_vblank(crtc); in sti_crtc_atomic_disable() 49 sti_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode) in sti_crtc_mode_set() argument 51 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_mode_set() 58 crtc->base.id, sti_mixer_to_str(mixer), mode->name); in sti_crtc_mode_set() 86 sti_vtg_set_config(compo->vtg[mixer->id], &crtc->mode); in sti_crtc_mode_set() [all …]
|
/drivers/gpu/drm/tilcdc/ |
D | tilcdc_crtc.c | 63 static void set_scanout(struct drm_crtc *crtc, struct drm_framebuffer *fb) in set_scanout() argument 65 struct drm_device *dev = crtc->dev; in set_scanout() 74 crtc->y * fb->pitches[0] + in set_scanout() 75 crtc->x * fb->format->cpp[0]; in set_scanout() 77 end = start + (crtc->mode.vdisplay * fb->pitches[0]); in set_scanout() 97 static void tilcdc_crtc_load_palette(struct drm_crtc *crtc) in tilcdc_crtc_load_palette() argument 99 struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); in tilcdc_crtc_load_palette() 100 struct drm_device *dev = crtc->dev; in tilcdc_crtc_load_palette() 177 static void reset(struct drm_crtc *crtc) in reset() argument 179 struct drm_device *dev = crtc->dev; in reset() [all …]
|
/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_crtc.c | 62 static struct mdp4_kms *get_kms(struct drm_crtc *crtc) in get_kms() argument 64 struct msm_drm_private *priv = crtc->dev->dev_private; in get_kms() 68 static void request_pending(struct drm_crtc *crtc, uint32_t pending) in request_pending() argument 70 struct mdp4_crtc *mdp4_crtc = to_mdp4_crtc(crtc); in request_pending() 73 mdp_irq_register(&get_kms(crtc)->base, &mdp4_crtc->vblank); in request_pending() 76 static void crtc_flush(struct drm_crtc *crtc) in crtc_flush() argument 78 struct mdp4_crtc *mdp4_crtc = to_mdp4_crtc(crtc); in crtc_flush() 79 struct mdp4_kms *mdp4_kms = get_kms(crtc); in crtc_flush() 83 drm_atomic_crtc_for_each_plane(plane, crtc) { in crtc_flush() 98 static void complete_flip(struct drm_crtc *crtc, struct drm_file *file) in complete_flip() argument [all …]
|
/drivers/gpu/drm/vkms/ |
D | vkms_crtc.c | 16 struct drm_crtc *crtc = &output->crtc; in vkms_vblank_simulate() local 29 ret = drm_crtc_handle_vblank(crtc); in vkms_vblank_simulate() 37 u64 frame = drm_crtc_accurate_vblank_count(crtc); in vkms_vblank_simulate() 62 static int vkms_enable_vblank(struct drm_crtc *crtc) in vkms_enable_vblank() argument 64 struct drm_device *dev = crtc->dev; in vkms_enable_vblank() 65 unsigned int pipe = drm_crtc_index(crtc); in vkms_enable_vblank() 67 struct vkms_output *out = drm_crtc_to_vkms_output(crtc); in vkms_enable_vblank() 69 drm_calc_timestamping_constants(crtc, &crtc->mode); in vkms_enable_vblank() 79 static void vkms_disable_vblank(struct drm_crtc *crtc) in vkms_disable_vblank() argument 81 struct vkms_output *out = drm_crtc_to_vkms_output(crtc); in vkms_disable_vblank() [all …]
|
/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_crtc.c | 68 static void mdp5_crtc_restore_cursor(struct drm_crtc *crtc); 70 static struct mdp5_kms *get_kms(struct drm_crtc *crtc) in get_kms() argument 72 struct msm_drm_private *priv = crtc->dev->dev_private; in get_kms() 76 static void request_pending(struct drm_crtc *crtc, uint32_t pending) in request_pending() argument 78 struct mdp5_crtc *mdp5_crtc = to_mdp5_crtc(crtc); in request_pending() 81 mdp_irq_register(&get_kms(crtc)->base, &mdp5_crtc->vblank); in request_pending() 84 static void request_pp_done_pending(struct drm_crtc *crtc) in request_pp_done_pending() argument 86 struct mdp5_crtc *mdp5_crtc = to_mdp5_crtc(crtc); in request_pp_done_pending() 90 static u32 crtc_flush(struct drm_crtc *crtc, u32 flush_mask) in crtc_flush() argument 92 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in crtc_flush() [all …]
|
/drivers/gpu/drm/imx/ |
D | ipuv3-crtc.c | 44 static inline struct ipu_crtc *to_ipu_crtc(struct drm_crtc *crtc) in to_ipu_crtc() argument 46 return container_of(crtc, struct ipu_crtc, base); in to_ipu_crtc() 49 static void ipu_crtc_atomic_enable(struct drm_crtc *crtc, in ipu_crtc_atomic_enable() argument 52 struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc); in ipu_crtc_atomic_enable() 81 static void ipu_crtc_atomic_disable(struct drm_crtc *crtc, in ipu_crtc_atomic_disable() argument 85 crtc); in ipu_crtc_atomic_disable() 86 struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc); in ipu_crtc_atomic_disable() 100 drm_crtc_vblank_off(crtc); in ipu_crtc_atomic_disable() 102 spin_lock_irq(&crtc->dev->event_lock); in ipu_crtc_atomic_disable() 103 if (crtc->state->event && !crtc->state->active) { in ipu_crtc_atomic_disable() [all …]
|
/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_crtc.c | 29 if (conn_st->crtc != crtc_st->crtc) in komeda_crtc_get_color_config() 75 komeda_crtc_atomic_check(struct drm_crtc *crtc, in komeda_crtc_atomic_check() argument 79 crtc); in komeda_crtc_atomic_check() 80 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_atomic_check() 201 struct drm_crtc *crtc = &kcrtc->base; in komeda_crtc_handle_event() local 205 drm_crtc_handle_vblank(crtc); in komeda_crtc_handle_event() 224 spin_lock_irqsave(&crtc->dev->event_lock, flags); in komeda_crtc_handle_event() 228 } else if (crtc->state->event) { in komeda_crtc_handle_event() 229 event = crtc->state->event; in komeda_crtc_handle_event() 234 crtc->state->event = NULL; in komeda_crtc_handle_event() [all …]
|
/drivers/gpu/drm/radeon/ |
D | radeon_cursor.c | 32 static void radeon_lock_cursor(struct drm_crtc *crtc, bool lock) in radeon_lock_cursor() argument 34 struct radeon_device *rdev = crtc->dev->dev_private; in radeon_lock_cursor() 35 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_lock_cursor() 62 static void radeon_hide_cursor(struct drm_crtc *crtc) in radeon_hide_cursor() argument 64 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_hide_cursor() 65 struct radeon_device *rdev = crtc->dev->dev_private; in radeon_hide_cursor() 90 static void radeon_show_cursor(struct drm_crtc *crtc) in radeon_show_cursor() argument 92 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_show_cursor() 93 struct radeon_device *rdev = crtc->dev->dev_private; in radeon_show_cursor() 144 static int radeon_cursor_move_locked(struct drm_crtc *crtc, int x, int y) in radeon_cursor_move_locked() argument [all …]
|
/drivers/gpu/drm/vc4/ |
D | vc4_crtc.c | 87 static bool vc4_crtc_get_scanout_position(struct drm_crtc *crtc, in vc4_crtc_get_scanout_position() argument 93 struct drm_device *dev = crtc->dev; in vc4_crtc_get_scanout_position() 96 struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); in vc4_crtc_get_scanout_position() 97 struct vc4_crtc_state *vc4_crtc_state = to_vc4_crtc_state(crtc->state); in vc4_crtc_get_scanout_position() 283 struct drm_encoder *vc4_get_crtc_encoder(struct drm_crtc *crtc, in vc4_get_crtc_encoder() argument 290 drm_for_each_encoder_mask(encoder, crtc->dev, state->encoder_mask) in vc4_get_crtc_encoder() 296 static void vc4_crtc_pixelvalve_reset(struct drm_crtc *crtc) in vc4_crtc_pixelvalve_reset() argument 298 struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); in vc4_crtc_pixelvalve_reset() 299 struct drm_device *dev = crtc->dev; in vc4_crtc_pixelvalve_reset() 312 static void vc4_crtc_config_pv(struct drm_crtc *crtc, struct drm_encoder *encoder, in vc4_crtc_config_pv() argument [all …]
|
/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_crtc.c | 61 drm_crtc_to_atmel_hlcdc_crtc(struct drm_crtc *crtc) in drm_crtc_to_atmel_hlcdc_crtc() argument 63 return container_of(crtc, struct atmel_hlcdc_crtc, base); in drm_crtc_to_atmel_hlcdc_crtc() 68 struct atmel_hlcdc_crtc *crtc = drm_crtc_to_atmel_hlcdc_crtc(c); in atmel_hlcdc_crtc_mode_set_nofb() local 69 struct regmap *regmap = crtc->dc->hlcdc->regmap; in atmel_hlcdc_crtc_mode_set_nofb() 79 ret = clk_prepare_enable(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_mode_set_nofb() 103 prate = clk_get_rate(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_mode_set_nofb() 105 if (!crtc->dc->desc->fixed_clksrc) { in atmel_hlcdc_crtc_mode_set_nofb() 156 clk_disable_unprepare(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_mode_set_nofb() 163 struct atmel_hlcdc_crtc *crtc = drm_crtc_to_atmel_hlcdc_crtc(c); in atmel_hlcdc_crtc_mode_valid() local 165 return atmel_hlcdc_dc_mode_valid(crtc->dc, mode); in atmel_hlcdc_crtc_mode_valid() [all …]
|