Lines Matching refs:sdvo

1235 	struct psb_intel_sdvo *sdvo;
1244 sdvo = iout->dev_priv;
1246 if (sdvo->sdvo_reg == SDVOB && sdvoB)
1249 if (sdvo->sdvo_reg == SDVOC && !sdvoB)
1309 struct psb_intel_sdvo *sdvo = intel_attached_sdvo(connector); in psb_intel_sdvo_get_edid() local
1310 return drm_get_edid(connector, &sdvo->ddc); in psb_intel_sdvo_get_edid()
1815 struct psb_intel_sdvo *sdvo = to_psb_intel_sdvo(&gma_encoder->base); in psb_intel_sdvo_save() local
1817 sdvo->saveSDVO = REG_READ(sdvo->sdvo_reg); in psb_intel_sdvo_save()
1824 struct psb_intel_sdvo *sdvo = to_psb_intel_sdvo(encoder); in psb_intel_sdvo_restore() local
1827 REG_WRITE(sdvo->sdvo_reg, sdvo->saveSDVO); in psb_intel_sdvo_restore()
1875 psb_intel_sdvo_guess_ddc_bus(struct psb_intel_sdvo *sdvo) in psb_intel_sdvo_guess_ddc_bus() argument
1881 sdvo->ddc_bus = 2; in psb_intel_sdvo_guess_ddc_bus()
1890 switch (sdvo->controlled_output) { in psb_intel_sdvo_guess_ddc_bus()
1907 mask &= sdvo->caps.output_flags; in psb_intel_sdvo_guess_ddc_bus()
1914 sdvo->ddc_bus = 1 << num_bits; in psb_intel_sdvo_guess_ddc_bus()
1927 struct psb_intel_sdvo *sdvo, u32 reg) in psb_intel_sdvo_select_ddc_bus() argument
1937 sdvo->ddc_bus = 1 << ((mapping->ddc_pin & 0xf0) >> 4); in psb_intel_sdvo_select_ddc_bus()
1939 psb_intel_sdvo_guess_ddc_bus(sdvo); in psb_intel_sdvo_select_ddc_bus()
1944 struct psb_intel_sdvo *sdvo, u32 reg) in psb_intel_sdvo_select_i2c_bus() argument
1962 sdvo->i2c = &dev_priv->gmbus[pin].adapter; in psb_intel_sdvo_select_i2c_bus()
1963 gma_intel_gmbus_set_speed(sdvo->i2c, speed); in psb_intel_sdvo_select_i2c_bus()
1964 gma_intel_gmbus_force_bit(sdvo->i2c, true); in psb_intel_sdvo_select_i2c_bus()
1966 sdvo->i2c = &dev_priv->gmbus[GMBUS_PORT_DPB].adapter; in psb_intel_sdvo_select_i2c_bus()
2480 struct psb_intel_sdvo *sdvo = adapter->algo_data; in psb_intel_sdvo_ddc_proxy_xfer() local
2482 if (!psb_intel_sdvo_set_control_bus_switch(sdvo, sdvo->ddc_bus)) in psb_intel_sdvo_ddc_proxy_xfer()
2485 return sdvo->i2c->algo->master_xfer(sdvo->i2c, msgs, num); in psb_intel_sdvo_ddc_proxy_xfer()
2490 struct psb_intel_sdvo *sdvo = adapter->algo_data; in psb_intel_sdvo_ddc_proxy_func() local
2491 return sdvo->i2c->algo->functionality(sdvo->i2c); in psb_intel_sdvo_ddc_proxy_func()
2500 psb_intel_sdvo_init_ddc_proxy(struct psb_intel_sdvo *sdvo, in psb_intel_sdvo_init_ddc_proxy() argument
2503 sdvo->ddc.owner = THIS_MODULE; in psb_intel_sdvo_init_ddc_proxy()
2504 sdvo->ddc.class = I2C_CLASS_DDC; in psb_intel_sdvo_init_ddc_proxy()
2505 snprintf(sdvo->ddc.name, I2C_NAME_SIZE, "SDVO DDC proxy"); in psb_intel_sdvo_init_ddc_proxy()
2506 sdvo->ddc.dev.parent = &dev->pdev->dev; in psb_intel_sdvo_init_ddc_proxy()
2507 sdvo->ddc.algo_data = sdvo; in psb_intel_sdvo_init_ddc_proxy()
2508 sdvo->ddc.algo = &psb_intel_sdvo_ddc_proxy; in psb_intel_sdvo_init_ddc_proxy()
2510 return i2c_add_adapter(&sdvo->ddc) == 0; in psb_intel_sdvo_init_ddc_proxy()