Lines Matching refs:sdvo

1743 	struct intel_sdvo *sdvo = intel_attached_sdvo(connector);  in intel_sdvo_get_edid()  local
1744 return drm_get_edid(connector, &sdvo->ddc); in intel_sdvo_get_edid()
1815 intel_sdvo_connector_matches_edid(struct intel_sdvo_connector *sdvo, in intel_sdvo_connector_matches_edid() argument
1819 bool connector_is_digital = !!IS_DIGITAL(sdvo); in intel_sdvo_connector_matches_edid()
2211 struct intel_sdvo *sdvo = intel_attached_sdvo(connector); in intel_sdvo_connector_register() local
2219 &sdvo->ddc.dev.kobj, in intel_sdvo_connector_register()
2220 sdvo->ddc.dev.kobj.name); in intel_sdvo_connector_register()
2226 struct intel_sdvo *sdvo = intel_attached_sdvo(connector); in intel_sdvo_connector_unregister() local
2229 sdvo->ddc.dev.kobj.name); in intel_sdvo_connector_unregister()
2305 intel_sdvo_guess_ddc_bus(struct intel_sdvo *sdvo) in intel_sdvo_guess_ddc_bus() argument
2314 switch (sdvo->controlled_output) { in intel_sdvo_guess_ddc_bus()
2336 mask &= sdvo->caps.output_flags; in intel_sdvo_guess_ddc_bus()
2343 sdvo->ddc_bus = 1 << num_bits; in intel_sdvo_guess_ddc_bus()
2355 struct intel_sdvo *sdvo) in intel_sdvo_select_ddc_bus() argument
2359 if (sdvo->port == PORT_B) in intel_sdvo_select_ddc_bus()
2365 sdvo->ddc_bus = 1 << ((mapping->ddc_pin & 0xf0) >> 4); in intel_sdvo_select_ddc_bus()
2367 intel_sdvo_guess_ddc_bus(sdvo); in intel_sdvo_select_ddc_bus()
2372 struct intel_sdvo *sdvo) in intel_sdvo_select_i2c_bus() argument
2377 if (sdvo->port == PORT_B) in intel_sdvo_select_i2c_bus()
2388 sdvo->i2c = intel_gmbus_get_adapter(dev_priv, pin); in intel_sdvo_select_i2c_bus()
2395 intel_gmbus_force_bit(sdvo->i2c, true); in intel_sdvo_select_i2c_bus()
2400 intel_sdvo_unselect_i2c_bus(struct intel_sdvo *sdvo) in intel_sdvo_unselect_i2c_bus() argument
2402 intel_gmbus_force_bit(sdvo->i2c, false); in intel_sdvo_unselect_i2c_bus()
2413 struct intel_sdvo *sdvo) in intel_sdvo_get_slave_addr() argument
2417 if (sdvo->port == PORT_B) { in intel_sdvo_get_slave_addr()
2444 if (sdvo->port == PORT_B) in intel_sdvo_get_slave_addr()
2989 struct intel_sdvo *sdvo = adapter->algo_data; in intel_sdvo_ddc_proxy_xfer() local
2991 if (!__intel_sdvo_set_control_bus_switch(sdvo, sdvo->ddc_bus)) in intel_sdvo_ddc_proxy_xfer()
2994 return sdvo->i2c->algo->master_xfer(sdvo->i2c, msgs, num); in intel_sdvo_ddc_proxy_xfer()
2999 struct intel_sdvo *sdvo = adapter->algo_data; in intel_sdvo_ddc_proxy_func() local
3000 return sdvo->i2c->algo->functionality(sdvo->i2c); in intel_sdvo_ddc_proxy_func()
3011 struct intel_sdvo *sdvo = adapter->algo_data; in proxy_lock_bus() local
3012 sdvo->i2c->lock_ops->lock_bus(sdvo->i2c, flags); in proxy_lock_bus()
3018 struct intel_sdvo *sdvo = adapter->algo_data; in proxy_trylock_bus() local
3019 return sdvo->i2c->lock_ops->trylock_bus(sdvo->i2c, flags); in proxy_trylock_bus()
3025 struct intel_sdvo *sdvo = adapter->algo_data; in proxy_unlock_bus() local
3026 sdvo->i2c->lock_ops->unlock_bus(sdvo->i2c, flags); in proxy_unlock_bus()
3036 intel_sdvo_init_ddc_proxy(struct intel_sdvo *sdvo, in intel_sdvo_init_ddc_proxy() argument
3041 sdvo->ddc.owner = THIS_MODULE; in intel_sdvo_init_ddc_proxy()
3042 sdvo->ddc.class = I2C_CLASS_DDC; in intel_sdvo_init_ddc_proxy()
3043 snprintf(sdvo->ddc.name, I2C_NAME_SIZE, "SDVO DDC proxy"); in intel_sdvo_init_ddc_proxy()
3044 sdvo->ddc.dev.parent = &pdev->dev; in intel_sdvo_init_ddc_proxy()
3045 sdvo->ddc.algo_data = sdvo; in intel_sdvo_init_ddc_proxy()
3046 sdvo->ddc.algo = &intel_sdvo_ddc_proxy; in intel_sdvo_init_ddc_proxy()
3047 sdvo->ddc.lock_ops = &proxy_lock_ops; in intel_sdvo_init_ddc_proxy()
3049 return i2c_add_adapter(&sdvo->ddc) == 0; in intel_sdvo_init_ddc_proxy()