Lines Matching refs:intel_dvo
98 struct intel_dvo {
107 static struct intel_dvo *enc_to_intel_dvo(struct drm_encoder *encoder)
109 return container_of(encoder, struct intel_dvo, base.base);
112 static struct intel_dvo *intel_attached_dvo(struct drm_connector *connector)
115 struct intel_dvo, base);
120 struct intel_dvo *intel_dvo = intel_attached_dvo(&connector->base);
122 return intel_dvo->dev.dev_ops->get_hw_state(&intel_dvo->dev);
130 struct intel_dvo *intel_dvo = enc_to_intel_dvo(&encoder->base);
133 tmp = I915_READ(intel_dvo->dev.dvo_reg);
147 struct intel_dvo *intel_dvo = enc_to_intel_dvo(&encoder->base);
150 tmp = I915_READ(intel_dvo->dev.dvo_reg);
166 struct intel_dvo *intel_dvo = enc_to_intel_dvo(&encoder->base);
167 u32 dvo_reg = intel_dvo->dev.dvo_reg;
170 intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, false);
178 struct intel_dvo *intel_dvo = enc_to_intel_dvo(&encoder->base);
179 u32 dvo_reg = intel_dvo->dev.dvo_reg;
184 intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, true);
190 struct intel_dvo *intel_dvo = intel_attached_dvo(connector);
203 crtc = intel_dvo->base.base.crtc;
205 intel_dvo->base.connectors_active = false;
212 intel_dvo->base.connectors_active = true;
216 intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, true);
218 intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, false);
220 intel_dvo->base.connectors_active = false;
231 struct intel_dvo *intel_dvo = intel_attached_dvo(connector);
238 if (intel_dvo->panel_fixed_mode) {
239 if (mode->hdisplay > intel_dvo->panel_fixed_mode->hdisplay)
241 if (mode->vdisplay > intel_dvo->panel_fixed_mode->vdisplay)
245 return intel_dvo->dev.dev_ops->mode_valid(&intel_dvo->dev, mode);
252 struct intel_dvo *intel_dvo = enc_to_intel_dvo(encoder);
259 if (intel_dvo->panel_fixed_mode != NULL) {
260 #define C(x) adjusted_mode->x = intel_dvo->panel_fixed_mode->x
273 if (intel_dvo->dev.dev_ops->mode_fixup)
274 return intel_dvo->dev.dev_ops->mode_fixup(&intel_dvo->dev, mode, adjusted_mode);
286 struct intel_dvo *intel_dvo = enc_to_intel_dvo(encoder);
289 u32 dvo_reg = intel_dvo->dev.dvo_reg, dvo_srcdim_reg;
305 intel_dvo->dev.dev_ops->mode_set(&intel_dvo->dev, mode, adjusted_mode);
341 struct intel_dvo *intel_dvo = intel_attached_dvo(connector);
342 return intel_dvo->dev.dev_ops->detect(&intel_dvo->dev);
347 struct intel_dvo *intel_dvo = intel_attached_dvo(connector);
360 if (intel_dvo->panel_fixed_mode != NULL) {
362 mode = drm_mode_duplicate(connector->dev, intel_dvo->panel_fixed_mode);
398 struct intel_dvo *intel_dvo = enc_to_intel_dvo(encoder);
400 if (intel_dvo->dev.dev_ops->destroy)
401 intel_dvo->dev.dev_ops->destroy(&intel_dvo->dev);
403 kfree(intel_dvo->panel_fixed_mode, sizeof(*intel_dvo->panel_fixed_mode));
423 struct intel_dvo *intel_dvo = intel_attached_dvo(connector);
424 uint32_t dvo_val = I915_READ(intel_dvo->dev.dvo_reg);
454 struct intel_dvo *intel_dvo;
459 intel_dvo = kzalloc(sizeof(struct intel_dvo), GFP_KERNEL);
460 if (!intel_dvo)
465 kfree(intel_dvo, sizeof(*intel_dvo));
469 intel_encoder = &intel_dvo->base;
503 intel_dvo->dev = *dvo;
504 if (!dvo->dev_ops->init(&intel_dvo->dev, i2c))
508 intel_encoder->type_size = sizeof(struct intel_dvo);
545 intel_dvo->panel_fixed_mode =
547 intel_dvo->panel_wants_dither = true;
555 kfree(intel_dvo, sizeof(*intel_dvo));