Lines Matching refs:intel_dvo

109 struct intel_dvo {  struct
117 static struct intel_dvo *enc_to_dvo(struct intel_encoder *encoder) in enc_to_dvo() argument
119 return container_of(encoder, struct intel_dvo, base); in enc_to_dvo()
122 static struct intel_dvo *intel_attached_dvo(struct intel_connector *connector) in intel_attached_dvo()
131 struct intel_dvo *intel_dvo = enc_to_dvo(encoder); in intel_dvo_connector_get_hw_state() local
140 return intel_dvo->dev.dev_ops->get_hw_state(&intel_dvo->dev); in intel_dvo_connector_get_hw_state()
187 struct intel_dvo *intel_dvo = enc_to_dvo(encoder); in intel_disable_dvo() local
190 intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, false); in intel_disable_dvo()
202 struct intel_dvo *intel_dvo = enc_to_dvo(encoder); in intel_enable_dvo() local
205 intel_dvo->dev.dev_ops->mode_set(&intel_dvo->dev, in intel_enable_dvo()
212 intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, true); in intel_enable_dvo()
221 struct intel_dvo *intel_dvo = intel_attached_dvo(connector); in intel_dvo_mode_valid() local
250 return intel_dvo->dev.dev_ops->mode_valid(&intel_dvo->dev, mode); in intel_dvo_mode_valid()
257 struct intel_dvo *intel_dvo = enc_to_dvo(encoder); in intel_dvo_compute_config() local
261 intel_panel_fixed_mode(intel_dvo->attached_connector, adjusted_mode); in intel_dvo_compute_config()
323 struct intel_dvo *intel_dvo = intel_attached_dvo(connector); in intel_dvo_detect() local
331 return intel_dvo->dev.dev_ops->detect(&intel_dvo->dev); in intel_dvo_detect()
371 struct intel_dvo *intel_dvo = enc_to_dvo(to_intel_encoder(encoder)); in intel_dvo_enc_destroy() local
373 if (intel_dvo->dev.dev_ops->destroy) in intel_dvo_enc_destroy()
374 intel_dvo->dev.dev_ops->destroy(&intel_dvo->dev); in intel_dvo_enc_destroy()
412 struct intel_dvo *intel_dvo, in intel_dvo_init_dev() argument
440 intel_dvo->dev = *dvo; in intel_dvo_init_dev()
457 ret = dvo->dev_ops->init(&intel_dvo->dev, i2c); in intel_dvo_init_dev()
470 struct intel_dvo *intel_dvo) in intel_dvo_probe() argument
476 if (intel_dvo_init_dev(i915, intel_dvo, in intel_dvo_probe()
488 struct intel_dvo *intel_dvo; in intel_dvo_init() local
490 intel_dvo = kzalloc(sizeof(*intel_dvo), GFP_KERNEL); in intel_dvo_init()
491 if (!intel_dvo) in intel_dvo_init()
496 kfree(intel_dvo); in intel_dvo_init()
500 intel_dvo->attached_connector = connector; in intel_dvo_init()
502 encoder = &intel_dvo->base; in intel_dvo_init()
512 if (!intel_dvo_probe(i915, intel_dvo)) { in intel_dvo_init()
513 kfree(intel_dvo); in intel_dvo_init()
518 assert_port_valid(i915, intel_dvo->dev.port); in intel_dvo_init()
522 encoder->port = intel_dvo->dev.port; in intel_dvo_init()
525 if (intel_dvo->dev.type != INTEL_DVO_CHIP_LVDS) in intel_dvo_init()
531 intel_dvo_encoder_type(&intel_dvo->dev), in intel_dvo_init()
536 intel_dvo->dev.name); in intel_dvo_init()
538 if (intel_dvo->dev.type == INTEL_DVO_CHIP_TMDS) in intel_dvo_init()
544 intel_dvo_connector_type(&intel_dvo->dev)); in intel_dvo_init()
552 if (intel_dvo->dev.type == INTEL_DVO_CHIP_LVDS) { in intel_dvo_init()