Lines Matching refs:intel_dvo
80 struct intel_dvo { struct
89 static struct intel_dvo *enc_to_intel_dvo(struct drm_encoder *encoder) in enc_to_intel_dvo() argument
91 return container_of(encoder, struct intel_dvo, base.base); in enc_to_intel_dvo()
94 static struct intel_dvo *intel_attached_dvo(struct drm_connector *connector) in intel_attached_dvo()
97 struct intel_dvo, base); in intel_attached_dvo()
103 struct intel_dvo *intel_dvo = enc_to_intel_dvo(encoder); in intel_dvo_dpms() local
104 u32 dvo_reg = intel_dvo->dev.dvo_reg; in intel_dvo_dpms()
110 intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, mode); in intel_dvo_dpms()
112 intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, mode); in intel_dvo_dpms()
121 struct intel_dvo *intel_dvo = intel_attached_dvo(connector); in intel_dvo_mode_valid() local
128 if (intel_dvo->panel_fixed_mode) { in intel_dvo_mode_valid()
129 if (mode->hdisplay > intel_dvo->panel_fixed_mode->hdisplay) in intel_dvo_mode_valid()
131 if (mode->vdisplay > intel_dvo->panel_fixed_mode->vdisplay) in intel_dvo_mode_valid()
135 return intel_dvo->dev.dev_ops->mode_valid(&intel_dvo->dev, mode); in intel_dvo_mode_valid()
142 struct intel_dvo *intel_dvo = enc_to_intel_dvo(encoder); in intel_dvo_mode_fixup() local
149 if (intel_dvo->panel_fixed_mode != NULL) { in intel_dvo_mode_fixup()
150 #define C(x) adjusted_mode->x = intel_dvo->panel_fixed_mode->x in intel_dvo_mode_fixup()
164 if (intel_dvo->dev.dev_ops->mode_fixup) in intel_dvo_mode_fixup()
165 return intel_dvo->dev.dev_ops->mode_fixup(&intel_dvo->dev, mode, adjusted_mode); in intel_dvo_mode_fixup()
177 struct intel_dvo *intel_dvo = enc_to_intel_dvo(encoder); in intel_dvo_mode_set() local
180 u32 dvo_reg = intel_dvo->dev.dvo_reg, dvo_srcdim_reg; in intel_dvo_mode_set()
196 intel_dvo->dev.dev_ops->mode_set(&intel_dvo->dev, mode, adjusted_mode); in intel_dvo_mode_set()
232 struct intel_dvo *intel_dvo = intel_attached_dvo(connector); in intel_dvo_detect() local
233 return intel_dvo->dev.dev_ops->detect(&intel_dvo->dev); in intel_dvo_detect()
238 struct intel_dvo *intel_dvo = intel_attached_dvo(connector); in intel_dvo_get_modes() local
251 if (intel_dvo->panel_fixed_mode != NULL) { in intel_dvo_get_modes()
253 mode = drm_mode_duplicate(connector->dev, intel_dvo->panel_fixed_mode); in intel_dvo_get_modes()
293 struct intel_dvo *intel_dvo = enc_to_intel_dvo(encoder); in intel_dvo_enc_destroy() local
295 if (intel_dvo->dev.dev_ops->destroy) in intel_dvo_enc_destroy()
296 intel_dvo->dev.dev_ops->destroy(&intel_dvo->dev); in intel_dvo_enc_destroy()
298 kfree(intel_dvo->panel_fixed_mode); in intel_dvo_enc_destroy()
318 struct intel_dvo *intel_dvo = intel_attached_dvo(connector); in intel_dvo_get_current_mode() local
319 uint32_t dvo_val = I915_READ(intel_dvo->dev.dvo_reg); in intel_dvo_get_current_mode()
349 struct intel_dvo *intel_dvo; in intel_dvo_init() local
354 intel_dvo = kzalloc(sizeof(struct intel_dvo), GFP_KERNEL); in intel_dvo_init()
355 if (!intel_dvo) in intel_dvo_init()
360 kfree(intel_dvo); in intel_dvo_init()
364 intel_encoder = &intel_dvo->base; in intel_dvo_init()
392 intel_dvo->dev = *dvo; in intel_dvo_init()
393 if (!dvo->dev_ops->init(&intel_dvo->dev, i2c)) in intel_dvo_init()
436 intel_dvo->panel_fixed_mode = in intel_dvo_init()
438 intel_dvo->panel_wants_dither = true; in intel_dvo_init()
446 kfree(intel_dvo); in intel_dvo_init()