Lines Matching defs:intel_dvo

1 /*	$NetBSD: intel_dvo.c,v 1.2 2021/12/18 23:45:30 riastradh Exp $	*/
31 __KERNEL_RCSID(0, "$NetBSD: intel_dvo.c,v 1.2 2021/12/18 23:45:30 riastradh Exp $");
43 #include "intel_dvo.h"
118 struct intel_dvo {
128 static struct intel_dvo *enc_to_dvo(struct intel_encoder *encoder)
130 return container_of(encoder, struct intel_dvo, base);
133 static struct intel_dvo *intel_attached_dvo(struct intel_connector *connector)
142 struct intel_dvo *intel_dvo = intel_attached_dvo(connector);
145 tmp = I915_READ(intel_dvo->dev.dvo_reg);
150 return intel_dvo->dev.dev_ops->get_hw_state(&intel_dvo->dev);
157 struct intel_dvo *intel_dvo = enc_to_dvo(encoder);
160 tmp = I915_READ(intel_dvo->dev.dvo_reg);
171 struct intel_dvo *intel_dvo = enc_to_dvo(encoder);
176 tmp = I915_READ(intel_dvo->dev.dvo_reg);
196 struct intel_dvo *intel_dvo = enc_to_dvo(encoder);
197 i915_reg_t dvo_reg = intel_dvo->dev.dvo_reg;
200 intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, false);
210 struct intel_dvo *intel_dvo = enc_to_dvo(encoder);
211 i915_reg_t dvo_reg = intel_dvo->dev.dvo_reg;
214 intel_dvo->dev.dev_ops->mode_set(&intel_dvo->dev,
221 intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, true);
228 struct intel_dvo *intel_dvo = intel_attached_dvo(to_intel_connector(connector));
251 return intel_dvo->dev.dev_ops->mode_valid(&intel_dvo->dev, mode);
258 struct intel_dvo *intel_dvo = enc_to_dvo(encoder);
260 intel_dvo->attached_connector->panel.fixed_mode;
287 struct intel_dvo *intel_dvo = enc_to_dvo(encoder);
290 i915_reg_t dvo_reg = intel_dvo->dev.dvo_reg;
291 i915_reg_t dvo_srcdim_reg = intel_dvo->dev.dvo_srcdim_reg;
319 struct intel_dvo *intel_dvo = intel_attached_dvo(to_intel_connector(connector));
322 return intel_dvo->dev.dev_ops->detect(&intel_dvo->dev);
371 struct intel_dvo *intel_dvo = enc_to_dvo(to_intel_encoder(encoder));
373 if (intel_dvo->dev.dev_ops->destroy)
374 intel_dvo->dev.dev_ops->destroy(&intel_dvo->dev);
417 struct intel_dvo *intel_dvo;
422 intel_dvo = kzalloc(sizeof(*intel_dvo), GFP_KERNEL);
423 if (!intel_dvo)
428 kfree(intel_dvo);
432 intel_dvo->attached_connector = intel_connector;
434 intel_encoder = &intel_dvo->base;
474 intel_dvo->dev = *dvo;
493 dvoinit = dvo->dev_ops->init(&intel_dvo->dev, i2c);
552 intel_dvo->panel_wants_dither = true;
558 kfree(intel_dvo);