/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_crtc.c | 86 struct drm_crtc *crtc; in drm_crtc_from_index() local 88 drm_for_each_crtc(crtc, dev) in drm_crtc_from_index() 89 if (idx == crtc->index) in drm_crtc_from_index() 90 return crtc; in drm_crtc_from_index() 96 int drm_crtc_force_disable(struct drm_crtc *crtc) in drm_crtc_force_disable() argument 99 .crtc = crtc, in drm_crtc_force_disable() 102 WARN_ON(drm_drv_uses_atomic_modeset(crtc->dev)); in drm_crtc_force_disable() 121 struct drm_crtc *crtc; in drm_crtc_register_all() local 124 drm_for_each_crtc(crtc, dev) { in drm_crtc_register_all() 125 drm_debugfs_crtc_add(crtc); in drm_crtc_register_all() [all …]
|
D | drm_crtc_helper.c | 136 bool drm_helper_crtc_in_use(struct drm_crtc *crtc) in drm_helper_crtc_in_use() argument 139 struct drm_device *dev = crtc->dev; in drm_helper_crtc_in_use() 151 if (encoder->crtc == crtc && drm_helper_encoder_in_use(encoder)) in drm_helper_crtc_in_use() 174 struct drm_crtc *crtc; in __drm_helper_disable_unused_functions() local 182 encoder->crtc = NULL; in __drm_helper_disable_unused_functions() 186 drm_for_each_crtc(crtc, dev) { in __drm_helper_disable_unused_functions() 187 const struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private; in __drm_helper_disable_unused_functions() 189 crtc->enabled = drm_helper_crtc_in_use(crtc); in __drm_helper_disable_unused_functions() 190 if (!crtc->enabled) { in __drm_helper_disable_unused_functions() 192 (*crtc_funcs->disable)(crtc); in __drm_helper_disable_unused_functions() [all …]
|
D | drm_atomic_helper.c | 82 if (old_plane_state->crtc) { in drm_atomic_helper_plane_changed() 84 old_plane_state->crtc); in drm_atomic_helper_plane_changed() 92 if (plane_state->crtc) { in drm_atomic_helper_plane_changed() 93 crtc_state = drm_atomic_get_new_crtc_state(state, plane_state->crtc); in drm_atomic_helper_plane_changed() 121 if (!new_conn_state->crtc) in handle_conflicting_encoders() 172 connector->state->crtc->base.id, in handle_conflicting_encoders() 173 connector->state->crtc->name, in handle_conflicting_encoders() 187 new_conn_state->crtc->base.id, new_conn_state->crtc->name, in handle_conflicting_encoders() 190 crtc_state = drm_atomic_get_new_crtc_state(state, new_conn_state->crtc); in handle_conflicting_encoders() 217 struct drm_crtc *crtc; in set_best_encoder() local [all …]
|
D | drm_trace.h | 16 TP_PROTO(int crtc, unsigned int seq, ktime_t time, bool high_prec), 17 TP_ARGS(crtc, seq, time, high_prec), 19 __field(int, crtc) 25 __entry->crtc = crtc; 31 __entry->crtc, __entry->seq, __entry->time, 36 TP_PROTO(struct drm_file *file, int crtc, unsigned int seq), 37 TP_ARGS(file, crtc, seq), 40 __field(int, crtc) 45 __entry->crtc = crtc; 48 TP_printk("file=%p, crtc=%d, seq=%u", __entry->file, __entry->crtc, \ [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tidss/ |
D | tidss_crtc.c | 26 struct drm_device *ddev = tcrtc->crtc.dev; in tidss_crtc_finish_page_flip() 54 drm_crtc_send_vblank_event(&tcrtc->crtc, event); in tidss_crtc_finish_page_flip() 58 drm_crtc_vblank_put(&tcrtc->crtc); in tidss_crtc_finish_page_flip() 61 void tidss_crtc_vblank_irq(struct drm_crtc *crtc) in tidss_crtc_vblank_irq() argument 63 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc); in tidss_crtc_vblank_irq() 65 drm_crtc_handle_vblank(crtc); in tidss_crtc_vblank_irq() 70 void tidss_crtc_framedone_irq(struct drm_crtc *crtc) in tidss_crtc_framedone_irq() argument 72 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc); in tidss_crtc_framedone_irq() 77 void tidss_crtc_error_irq(struct drm_crtc *crtc, u64 irqstatus) in tidss_crtc_error_irq() argument 79 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc); in tidss_crtc_error_irq() [all …]
|
/kernel/linux/linux-5.10/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 if (crtc->state->event && !crtc->state->active) { in exynos_drm_crtc_atomic_disable() 43 spin_lock_irq(&crtc->dev->event_lock); in exynos_drm_crtc_atomic_disable() 44 drm_crtc_send_vblank_event(crtc, crtc->state->event); in exynos_drm_crtc_atomic_disable() 45 spin_unlock_irq(&crtc->dev->event_lock); in exynos_drm_crtc_atomic_disable() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
D | omap_crtc.c | 56 struct videomode *omap_crtc_timings(struct drm_crtc *crtc) in omap_crtc_timings() argument 58 struct omap_crtc *omap_crtc = to_omap_crtc(crtc); in omap_crtc_timings() 62 enum omap_channel omap_crtc_channel(struct drm_crtc *crtc) in omap_crtc_channel() argument 64 struct omap_crtc *omap_crtc = to_omap_crtc(crtc); in omap_crtc_channel() 68 static bool omap_crtc_is_pending(struct drm_crtc *crtc) in omap_crtc_is_pending() argument 70 struct omap_crtc *omap_crtc = to_omap_crtc(crtc); in omap_crtc_is_pending() 74 spin_lock_irqsave(&crtc->dev->event_lock, flags); in omap_crtc_is_pending() 76 spin_unlock_irqrestore(&crtc->dev->event_lock, flags); in omap_crtc_is_pending() 81 int omap_crtc_wait_pending(struct drm_crtc *crtc) in omap_crtc_wait_pending() argument 83 struct omap_crtc *omap_crtc = to_omap_crtc(crtc); in omap_crtc_wait_pending() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
D | sun4i_crtc.c | 36 static struct drm_encoder *sun4i_crtc_get_encoder(struct drm_crtc *crtc) in sun4i_crtc_get_encoder() argument 40 drm_for_each_encoder(encoder, crtc->dev) in sun4i_crtc_get_encoder() 41 if (encoder->crtc == crtc) in sun4i_crtc_get_encoder() 47 static int sun4i_crtc_atomic_check(struct drm_crtc *crtc, in sun4i_crtc_atomic_check() argument 50 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_check() 60 static void sun4i_crtc_atomic_begin(struct drm_crtc *crtc, in sun4i_crtc_atomic_begin() argument 63 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_begin() 64 struct drm_device *dev = crtc->dev; in sun4i_crtc_atomic_begin() 68 if (crtc->state->event) { in sun4i_crtc_atomic_begin() 69 WARN_ON(drm_crtc_vblank_get(crtc) != 0); in sun4i_crtc_atomic_begin() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/dcss/ |
D | dcss-crtc.c | 14 static int dcss_enable_vblank(struct drm_crtc *crtc) in dcss_enable_vblank() argument 16 struct dcss_crtc *dcss_crtc = container_of(crtc, struct dcss_crtc, in dcss_enable_vblank() 18 struct dcss_dev *dcss = crtc->dev->dev_private; in dcss_enable_vblank() 29 static void dcss_disable_vblank(struct drm_crtc *crtc) in dcss_disable_vblank() argument 31 struct dcss_crtc *dcss_crtc = container_of(crtc, struct dcss_crtc, in dcss_disable_vblank() 54 static void dcss_crtc_atomic_begin(struct drm_crtc *crtc, in dcss_crtc_atomic_begin() argument 57 drm_crtc_vblank_on(crtc); in dcss_crtc_atomic_begin() 60 static void dcss_crtc_atomic_flush(struct drm_crtc *crtc, in dcss_crtc_atomic_flush() argument 63 struct dcss_crtc *dcss_crtc = container_of(crtc, struct dcss_crtc, in dcss_crtc_atomic_flush() 67 spin_lock_irq(&crtc->dev->event_lock); in dcss_crtc_atomic_flush() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_crtc.c | 48 static struct dpu_kms *_dpu_crtc_get_kms(struct drm_crtc *crtc) in _dpu_crtc_get_kms() argument 50 struct msm_drm_private *priv = crtc->dev->dev_private; in _dpu_crtc_get_kms() 55 static void dpu_crtc_destroy(struct drm_crtc *crtc) in dpu_crtc_destroy() argument 57 struct dpu_crtc *dpu_crtc = to_dpu_crtc(crtc); in dpu_crtc_destroy() 61 if (!crtc) in dpu_crtc_destroy() 64 drm_crtc_cleanup(crtc); in dpu_crtc_destroy() 94 static void _dpu_crtc_program_lm_output_roi(struct drm_crtc *crtc) in _dpu_crtc_program_lm_output_roi() argument 99 crtc_state = to_dpu_crtc_state(crtc->state); in _dpu_crtc_program_lm_output_roi() 118 static void _dpu_crtc_blend_setup_mixer(struct drm_crtc *crtc, in _dpu_crtc_blend_setup_mixer() argument 124 struct dpu_crtc_state *cstate = to_dpu_crtc_state(crtc->state); in _dpu_crtc_blend_setup_mixer() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sti/ |
D | sti_crtc.c | 25 static void sti_crtc_atomic_enable(struct drm_crtc *crtc, in sti_crtc_atomic_enable() argument 28 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_atomic_enable() 34 drm_crtc_vblank_on(crtc); in sti_crtc_atomic_enable() 37 static void sti_crtc_atomic_disable(struct drm_crtc *crtc, in sti_crtc_atomic_disable() argument 40 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_atomic_disable() 46 drm_crtc_wait_one_vblank(crtc); in sti_crtc_atomic_disable() 50 sti_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode) in sti_crtc_mode_set() argument 52 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_mode_set() 59 crtc->base.id, sti_mixer_to_str(mixer), mode->name); in sti_crtc_mode_set() 87 sti_vtg_set_config(compo->vtg[mixer->id], &crtc->mode); in sti_crtc_mode_set() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vkms/ |
D | vkms_crtc.c | 14 struct drm_crtc *crtc = &output->crtc; in vkms_vblank_simulate() local 25 ret = drm_crtc_handle_vblank(crtc); in vkms_vblank_simulate() 33 u64 frame = drm_crtc_accurate_vblank_count(crtc); in vkms_vblank_simulate() 56 static int vkms_enable_vblank(struct drm_crtc *crtc) in vkms_enable_vblank() argument 58 struct drm_device *dev = crtc->dev; in vkms_enable_vblank() 59 unsigned int pipe = drm_crtc_index(crtc); in vkms_enable_vblank() 61 struct vkms_output *out = drm_crtc_to_vkms_output(crtc); in vkms_enable_vblank() 63 drm_calc_timestamping_constants(crtc, &crtc->mode); in vkms_enable_vblank() 73 static void vkms_disable_vblank(struct drm_crtc *crtc) in vkms_disable_vblank() argument 75 struct vkms_output *out = drm_crtc_to_vkms_output(crtc); in vkms_disable_vblank() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tilcdc/ |
D | tilcdc_crtc.c | 62 static void set_scanout(struct drm_crtc *crtc, struct drm_framebuffer *fb) in set_scanout() argument 64 struct drm_device *dev = crtc->dev; in set_scanout() 73 crtc->y * fb->pitches[0] + in set_scanout() 74 crtc->x * fb->format->cpp[0]; in set_scanout() 76 end = start + (crtc->mode.vdisplay * fb->pitches[0]); in set_scanout() 96 static void tilcdc_crtc_load_palette(struct drm_crtc *crtc) in tilcdc_crtc_load_palette() argument 98 struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); in tilcdc_crtc_load_palette() 99 struct drm_device *dev = crtc->dev; in tilcdc_crtc_load_palette() 179 static void reset(struct drm_crtc *crtc) in reset() argument 181 struct drm_device *dev = crtc->dev; in reset() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_crtc.c | 61 static struct mdp4_kms *get_kms(struct drm_crtc *crtc) in get_kms() argument 63 struct msm_drm_private *priv = crtc->dev->dev_private; in get_kms() 67 static void request_pending(struct drm_crtc *crtc, uint32_t pending) in request_pending() argument 69 struct mdp4_crtc *mdp4_crtc = to_mdp4_crtc(crtc); in request_pending() 72 mdp_irq_register(&get_kms(crtc)->base, &mdp4_crtc->vblank); in request_pending() 75 static void crtc_flush(struct drm_crtc *crtc) in crtc_flush() argument 77 struct mdp4_crtc *mdp4_crtc = to_mdp4_crtc(crtc); in crtc_flush() 78 struct mdp4_kms *mdp4_kms = get_kms(crtc); in crtc_flush() 82 drm_atomic_crtc_for_each_plane(plane, crtc) { in crtc_flush() 97 static void complete_flip(struct drm_crtc *crtc, struct drm_file *file) in complete_flip() argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_crtc.c | 65 static void mdp5_crtc_restore_cursor(struct drm_crtc *crtc); 67 static struct mdp5_kms *get_kms(struct drm_crtc *crtc) in get_kms() argument 69 struct msm_drm_private *priv = crtc->dev->dev_private; in get_kms() 73 static void request_pending(struct drm_crtc *crtc, uint32_t pending) in request_pending() argument 75 struct mdp5_crtc *mdp5_crtc = to_mdp5_crtc(crtc); in request_pending() 78 mdp_irq_register(&get_kms(crtc)->base, &mdp5_crtc->vblank); in request_pending() 81 static void request_pp_done_pending(struct drm_crtc *crtc) in request_pp_done_pending() argument 83 struct mdp5_crtc *mdp5_crtc = to_mdp5_crtc(crtc); in request_pp_done_pending() 87 static u32 crtc_flush(struct drm_crtc *crtc, u32 flush_mask) in crtc_flush() argument 89 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in crtc_flush() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_crtc.c | 60 drm_crtc_to_atmel_hlcdc_crtc(struct drm_crtc *crtc) in drm_crtc_to_atmel_hlcdc_crtc() argument 62 return container_of(crtc, struct atmel_hlcdc_crtc, base); in drm_crtc_to_atmel_hlcdc_crtc() 67 struct atmel_hlcdc_crtc *crtc = drm_crtc_to_atmel_hlcdc_crtc(c); in atmel_hlcdc_crtc_mode_set_nofb() local 68 struct regmap *regmap = crtc->dc->hlcdc->regmap; in atmel_hlcdc_crtc_mode_set_nofb() 78 ret = clk_prepare_enable(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_mode_set_nofb() 102 prate = clk_get_rate(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_mode_set_nofb() 104 if (!crtc->dc->desc->fixed_clksrc) { in atmel_hlcdc_crtc_mode_set_nofb() 155 clk_disable_unprepare(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_mode_set_nofb() 162 struct atmel_hlcdc_crtc *crtc = drm_crtc_to_atmel_hlcdc_crtc(c); in atmel_hlcdc_crtc_mode_valid() local 164 return atmel_hlcdc_dc_mode_valid(crtc->dc, mode); in atmel_hlcdc_crtc_mode_valid() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_crtc.c | 30 if (conn_st->crtc != crtc_st->crtc) in komeda_crtc_get_color_config() 76 komeda_crtc_atomic_check(struct drm_crtc *crtc, in komeda_crtc_atomic_check() argument 79 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_atomic_check() 200 struct drm_crtc *crtc = &kcrtc->base; in komeda_crtc_handle_event() local 204 drm_crtc_handle_vblank(crtc); in komeda_crtc_handle_event() 223 spin_lock_irqsave(&crtc->dev->event_lock, flags); in komeda_crtc_handle_event() 227 } else if (crtc->state->event) { in komeda_crtc_handle_event() 228 event = crtc->state->event; in komeda_crtc_handle_event() 233 crtc->state->event = NULL; in komeda_crtc_handle_event() 234 drm_crtc_send_vblank_event(crtc, event); in komeda_crtc_handle_event() [all …]
|
/kernel/linux/linux-5.10/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 84 struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc); in ipu_crtc_atomic_disable() 98 drm_crtc_vblank_off(crtc); in ipu_crtc_atomic_disable() 100 spin_lock_irq(&crtc->dev->event_lock); in ipu_crtc_atomic_disable() 101 if (crtc->state->event && !crtc->state->active) { in ipu_crtc_atomic_disable() 102 drm_crtc_send_vblank_event(crtc, crtc->state->event); in ipu_crtc_atomic_disable() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/include/drm/ |
D | drm_crtc.h | 101 struct drm_crtc *crtc; member 420 void (*reset)(struct drm_crtc *crtc); 443 int (*cursor_set)(struct drm_crtc *crtc, struct drm_file *file_priv, 465 int (*cursor_set2)(struct drm_crtc *crtc, struct drm_file *file_priv, 485 int (*cursor_move)(struct drm_crtc *crtc, int x, int y); 500 int (*gamma_set)(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, 511 void (*destroy)(struct drm_crtc *crtc); 583 int (*page_flip)(struct drm_crtc *crtc, 602 int (*page_flip_target)(struct drm_crtc *crtc, 622 int (*set_property)(struct drm_crtc *crtc, [all …]
|
D | drm_vblank.h | 230 u64 drm_crtc_vblank_count(struct drm_crtc *crtc); 231 u64 drm_crtc_vblank_count_and_time(struct drm_crtc *crtc, 233 void drm_crtc_send_vblank_event(struct drm_crtc *crtc, 235 void drm_crtc_arm_vblank_event(struct drm_crtc *crtc, 241 bool drm_crtc_handle_vblank(struct drm_crtc *crtc); 242 int drm_crtc_vblank_get(struct drm_crtc *crtc); 243 void drm_crtc_vblank_put(struct drm_crtc *crtc); 245 void drm_crtc_wait_one_vblank(struct drm_crtc *crtc); 246 void drm_crtc_vblank_off(struct drm_crtc *crtc); 247 void drm_crtc_vblank_reset(struct drm_crtc *crtc); [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
D | vc4_crtc.c | 82 static bool vc4_crtc_get_scanout_position(struct drm_crtc *crtc, in vc4_crtc_get_scanout_position() argument 88 struct drm_device *dev = crtc->dev; in vc4_crtc_get_scanout_position() 90 struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); in vc4_crtc_get_scanout_position() 91 struct vc4_crtc_state *vc4_crtc_state = to_vc4_crtc_state(crtc->state); in vc4_crtc_get_scanout_position() 204 void vc4_crtc_destroy(struct drm_crtc *crtc) in vc4_crtc_destroy() argument 206 drm_crtc_cleanup(crtc); in vc4_crtc_destroy() 282 static struct drm_encoder *vc4_get_crtc_encoder(struct drm_crtc *crtc) in vc4_get_crtc_encoder() argument 287 drm_connector_list_iter_begin(crtc->dev, &conn_iter); in vc4_get_crtc_encoder() 289 if (connector->state->crtc == crtc) { in vc4_get_crtc_encoder() 299 static void vc4_crtc_pixelvalve_reset(struct drm_crtc *crtc) in vc4_crtc_pixelvalve_reset() argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_color.c | 152 static void ilk_update_pipe_csc(struct intel_crtc *crtc, in ilk_update_pipe_csc() argument 157 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in ilk_update_pipe_csc() 158 enum pipe pipe = crtc->pipe; in ilk_update_pipe_csc() 186 static void icl_update_output_csc(struct intel_crtc *crtc, in icl_update_output_csc() argument 191 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in icl_update_output_csc() 192 enum pipe pipe = crtc->pipe; in icl_update_output_csc() 220 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in ilk_csc_limited_range() 285 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in ilk_load_csc_matrix() local 286 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in ilk_load_csc_matrix() 293 ilk_update_pipe_csc(crtc, ilk_csc_off_zero, coeff, in ilk_load_csc_matrix() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/ |
D | mtk_drm_crtc.c | 84 struct drm_crtc *crtc = &mtk_crtc->base; in mtk_drm_crtc_finish_page_flip() local 87 spin_lock_irqsave(&crtc->dev->event_lock, flags); in mtk_drm_crtc_finish_page_flip() 88 drm_crtc_send_vblank_event(crtc, mtk_crtc->event); in mtk_drm_crtc_finish_page_flip() 89 drm_crtc_vblank_put(crtc); in mtk_drm_crtc_finish_page_flip() 91 spin_unlock_irqrestore(&crtc->dev->event_lock, flags); in mtk_drm_crtc_finish_page_flip() 103 static void mtk_drm_crtc_destroy(struct drm_crtc *crtc) in mtk_drm_crtc_destroy() argument 105 struct mtk_drm_crtc *mtk_crtc = to_mtk_crtc(crtc); in mtk_drm_crtc_destroy() 109 drm_crtc_cleanup(crtc); in mtk_drm_crtc_destroy() 112 static void mtk_drm_crtc_reset(struct drm_crtc *crtc) in mtk_drm_crtc_reset() argument 116 if (crtc->state) in mtk_drm_crtc_reset() [all …]
|