/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_drrs.c | 66 intel_drrs_set_refresh_rate_pipeconf(struct intel_crtc *crtc, in intel_drrs_set_refresh_rate_pipeconf() argument 69 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in intel_drrs_set_refresh_rate_pipeconf() 70 enum transcoder cpu_transcoder = crtc->drrs.cpu_transcoder; in intel_drrs_set_refresh_rate_pipeconf() 83 intel_drrs_set_refresh_rate_m_n(struct intel_crtc *crtc, in intel_drrs_set_refresh_rate_m_n() argument 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() 91 bool intel_drrs_is_active(struct intel_crtc *crtc) in intel_drrs_is_active() argument 93 return crtc->drrs.cpu_transcoder != INVALID_TRANSCODER; in intel_drrs_is_active() 96 static void intel_drrs_set_state(struct intel_crtc *crtc, in intel_drrs_set_state() argument 99 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in intel_drrs_set_state() [all …]
|
H A D | intel_crtc.c | 36 static void assert_vblank_disabled(struct drm_crtc *crtc) in assert_vblank_disabled() argument 38 struct drm_i915_private *i915 = to_i915(crtc->dev); in assert_vblank_disabled() 40 if (I915_STATE_WARN(i915, drm_crtc_vblank_get(crtc) == 0, in assert_vblank_disabled() 41 "[CRTC:%d:%s] vblank assertion failure (expected off, current on)\n", in assert_vblank_disabled() 42 crtc->base.id, crtc->name)) in assert_vblank_disabled() 43 drm_crtc_vblank_put(crtc); in assert_vblank_disabled() 54 struct intel_crtc *crtc; in intel_crtc_for_pipe() local 56 for_each_intel_crtc(&i915->drm, crtc) { in intel_crtc_for_pipe() 57 if (crtc->pipe == pipe) in intel_crtc_for_pipe() 58 return crtc; in intel_crtc_for_pipe() [all …]
|
H A D | intel_display_trace.h | 25 TP_PROTO(struct intel_crtc *crtc), 26 TP_ARGS(crtc), 29 __string(dev, __dev_name_kms(crtc)) 35 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); 37 __assign_str(dev, __dev_name_kms(crtc)); 42 __entry->pipe = crtc->pipe; 53 TP_PROTO(struct intel_crtc *crtc), 54 TP_ARGS(crtc), 57 __string(dev, __dev_name_kms(crtc)) 64 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); [all …]
|
H A D | intel_modeset_setup.c | 35 static void intel_crtc_disable_noatomic_begin(struct intel_crtc *crtc, in intel_crtc_disable_noatomic_begin() argument 38 struct drm_i915_private *i915 = to_i915(crtc->base.dev); in intel_crtc_disable_noatomic_begin() 40 to_intel_crtc_state(crtc->base.state); in intel_crtc_disable_noatomic_begin() 44 enum pipe pipe = crtc->pipe; in intel_crtc_disable_noatomic_begin() 49 for_each_intel_plane_on_crtc(&i915->drm, crtc, plane) { in intel_crtc_disable_noatomic_begin() 54 intel_plane_disable_noatomic(crtc, plane); in intel_crtc_disable_noatomic_begin() 60 "failed to disable [CRTC:%d:%s], out of memory", in intel_crtc_disable_noatomic_begin() 61 crtc->base.base.id, crtc->base.name); in intel_crtc_disable_noatomic_begin() 81 i915->display.funcs.display->crtc_disable(to_intel_atomic_state(state), crtc); in intel_crtc_disable_noatomic_begin() 86 "[CRTC:%d:%s] hw state adjusted, was enabled, now disabled\n", in intel_crtc_disable_noatomic_begin() [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_crtc.c | 6 * DRM core CRTC related functions 58 * A CRTC represents the overall display pipeline. It receives pixel data from 60 * to the CRTC, specifying display timings. On the output side the data is fed 64 * To create a CRTC, a KMS drivers allocates and zeroes an instances of 68 * The CRTC is also the entry point for legacy modeset operations, see 77 * drm_crtc_from_index - find the registered CRTC at an index 79 * @idx: index of registered CRTC to find for 81 * Given a CRTC index, return the registered CRTC from DRM device's 89 struct drm_crtc *crtc; in drm_crtc_from_index() local 91 drm_for_each_crtc(crtc, dev) in drm_crtc_from_index() [all …]
|
H A D | drm_crtc_helper.c | 5 * DRM core CRTC related functions 68 * The CRTC modeset helper library provides a default set_config implementation 81 * to the CRTC state. For easier transition this library provides functions to 82 * implement the old semantics required by the CRTC helpers using the new plane 138 * drm_helper_crtc_in_use - check if a given CRTC is in a mode_config 139 * @crtc: CRTC to check 141 * Checks whether @crtc is with the current mode setting output configuration 146 * True if @crtc is used, false otherwise. 148 bool drm_helper_crtc_in_use(struct drm_crtc *crtc) in drm_helper_crtc_in_use() argument 151 struct drm_device *dev = crtc->dev; in drm_helper_crtc_in_use() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_crtc.c | 47 static struct dpu_kms *_dpu_crtc_get_kms(struct drm_crtc *crtc) in _dpu_crtc_get_kms() argument 49 struct msm_drm_private *priv = crtc->dev->dev_private; in _dpu_crtc_get_kms() 54 static void dpu_crtc_destroy(struct drm_crtc *crtc) in dpu_crtc_destroy() argument 56 struct dpu_crtc *dpu_crtc = to_dpu_crtc(crtc); in dpu_crtc_destroy() 58 if (!crtc) in dpu_crtc_destroy() 61 drm_crtc_cleanup(crtc); in dpu_crtc_destroy() 65 static struct drm_encoder *get_encoder_from_crtc(struct drm_crtc *crtc) in get_encoder_from_crtc() argument 67 struct drm_device *dev = crtc->dev; in get_encoder_from_crtc() 71 if (encoder->crtc == crtc) in get_encoder_from_crtc() 91 static int dpu_crtc_verify_crc_source(struct drm_crtc *crtc, in dpu_crtc_verify_crc_source() argument [all …]
|
H A D | dpu_crtc.h | 23 * enum dpu_crtc_client_type: crtc client type 88 * struct dpu_crtc_mixer: stores the map for each virtual pipeline in the CRTC 103 * struct dpu_crtc_frame_event: stores crtc frame event for crtc processing 105 * @crtc: Pointer to crtc handling this event 112 struct drm_crtc *crtc; member 124 * struct dpu_crtc - virtualized CRTC data structure 125 * @base : Base drm crtc structure 126 * @name : ASCII description of this crtc 134 * @play_count : frame count between crtc enable and disable 136 * @enabled : whether the DPU CRTC is currently enabled. updated in the [all …]
|
H A D | dpu_core_perf.c | 35 * _dpu_core_perf_calc_bw() - to calculate BW per crtc 37 * @crtc: pointer to a crtc 38 * Return: returns aggregated BW for all planes in crtc. 41 struct drm_crtc *crtc) in _dpu_core_perf_calc_bw() argument 48 drm_atomic_crtc_for_each_plane(plane, crtc) { in _dpu_core_perf_calc_bw() 66 * _dpu_core_perf_calc_clk() - to calculate clock per crtc 68 * @crtc: pointer to a crtc 69 * @state: pointer to a crtc state 70 * Return: returns max clk for all planes in crtc. 73 struct drm_crtc *crtc, struct drm_crtc_state *state) in _dpu_core_perf_calc_clk() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/tidss/ |
H A D | tidss_crtc.c | 23 struct drm_device *ddev = tcrtc->crtc.dev; in tidss_crtc_finish_page_flip() 51 drm_crtc_send_vblank_event(&tcrtc->crtc, event); in tidss_crtc_finish_page_flip() 55 drm_crtc_vblank_put(&tcrtc->crtc); in tidss_crtc_finish_page_flip() 58 void tidss_crtc_vblank_irq(struct drm_crtc *crtc) in tidss_crtc_vblank_irq() argument 60 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc); in tidss_crtc_vblank_irq() 62 drm_crtc_handle_vblank(crtc); in tidss_crtc_vblank_irq() 67 void tidss_crtc_framedone_irq(struct drm_crtc *crtc) in tidss_crtc_framedone_irq() argument 69 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc); in tidss_crtc_framedone_irq() 74 void tidss_crtc_error_irq(struct drm_crtc *crtc, u64 irqstatus) in tidss_crtc_error_irq() argument 76 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc); in tidss_crtc_error_irq() [all …]
|
/openbmc/linux/drivers/gpu/drm/sun4i/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/exynos/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/omapdrm/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/imx/dcss/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/vkms/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp4/ |
H A 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 …]
|
/openbmc/linux/drivers/rtc/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/sti/ |
H A 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() 57 DRM_DEBUG_KMS("CRTC:%d (%s) mode: (%s)\n", in sti_crtc_mode_set() 58 crtc->base.id, sti_mixer_to_str(mixer), mode->name); in sti_crtc_mode_set() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_crc.c | 36 "crtc", 37 "crtc dither", 47 if (!strcmp(source, "auto") || !strcmp(source, "crtc")) in dm_parse_crc_source() 51 if (!strcmp(source, "crtc dither")) in dm_parse_crc_source() 78 const char *const *amdgpu_dm_crtc_get_crc_sources(struct drm_crtc *crtc, in amdgpu_dm_crtc_get_crc_sources() argument 86 static void amdgpu_dm_set_crc_window_default(struct drm_crtc *crtc, struct dc_stream_state *stream) in amdgpu_dm_set_crc_window_default() argument 88 struct drm_device *drm_dev = crtc->dev; in amdgpu_dm_set_crc_window_default() 90 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); in amdgpu_dm_set_crc_window_default() 106 /* stop ROI update on this crtc */ in amdgpu_dm_set_crc_window_default() 107 flush_work(&dm->secure_display_ctxs[crtc->index].notify_ta_work); in amdgpu_dm_set_crc_window_default() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | crtc.c | 53 nv04_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y, 57 crtc_wr_cio_state(struct drm_crtc *crtc, struct nv04_crtc_reg *crtcstate, int index) in crtc_wr_cio_state() argument 59 NVWriteVgaCrtc(crtc->dev, nouveau_crtc(crtc)->index, index, in crtc_wr_cio_state() 60 crtcstate->CRTC[index]); in crtc_wr_cio_state() 63 static void nv_crtc_set_digital_vibrance(struct drm_crtc *crtc, int level) in nv_crtc_set_digital_vibrance() argument 65 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv_crtc_set_digital_vibrance() 66 struct drm_device *dev = crtc->dev; in nv_crtc_set_digital_vibrance() 69 regp->CRTC[NV_CIO_CRE_CSB] = nv_crtc->saturation = level; in nv_crtc_set_digital_vibrance() 70 if (nv_crtc->saturation && nv_gf4_disp_arch(crtc->dev)) { in nv_crtc_set_digital_vibrance() 71 regp->CRTC[NV_CIO_CRE_CSB] = 0x80; in nv_crtc_set_digital_vibrance() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/imx/ipuv3/ |
H A 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 …]
|
/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() 66 * @crtc: DRM crtc 67 * @state: the crtc state object 77 komeda_crtc_atomic_check(struct drm_crtc *crtc, in komeda_crtc_atomic_check() argument 81 crtc); in komeda_crtc_atomic_check() 82 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_atomic_check() 107 /* For active a crtc, mainly need two parts of preparation 203 struct drm_crtc *crtc = &kcrtc->base; in komeda_crtc_handle_event() local 207 drm_crtc_handle_vblank(crtc); in komeda_crtc_handle_event() 215 DRM_WARN("CRTC[%d]: EOW happen but no wb_connector.\n", in komeda_crtc_handle_event() [all …]
|
/openbmc/linux/drivers/gpu/drm/atmel-hlcdc/ |
H A D | atmel_hlcdc_crtc.c | 29 * struct atmel_hlcdc_crtc_state - Atmel HLCDC CRTC state structure 31 * @base: base CRTC state 46 * struct atmel_hlcdc_crtc - Atmel HLCDC CRTC structure 48 * @base: base DRM CRTC structure 51 * @id: CRTC id (returned by drm_crtc_index) 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() 83 /* get encoder from crtc */ in atmel_hlcdc_crtc_mode_set_nofb() [all …]
|
/openbmc/linux/drivers/gpu/drm/tilcdc/ |
H A 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 …]
|