• Home
  • Raw
  • Download

Lines Matching refs:sdvo

1229 	struct psb_intel_sdvo *sdvo;
1238 sdvo = iout->dev_priv;
1240 if (sdvo->sdvo_reg == SDVOB && sdvoB)
1243 if (sdvo->sdvo_reg == SDVOC && !sdvoB)
1303 struct psb_intel_sdvo *sdvo = intel_attached_sdvo(connector); in psb_intel_sdvo_get_edid() local
1304 return drm_get_edid(connector, &sdvo->ddc); in psb_intel_sdvo_get_edid()
1809 struct psb_intel_sdvo *sdvo = to_psb_intel_sdvo(&gma_encoder->base); in psb_intel_sdvo_save() local
1811 sdvo->saveSDVO = REG_READ(sdvo->sdvo_reg); in psb_intel_sdvo_save()
1818 struct psb_intel_sdvo *sdvo = to_psb_intel_sdvo(encoder); in psb_intel_sdvo_restore() local
1821 REG_WRITE(sdvo->sdvo_reg, sdvo->saveSDVO); in psb_intel_sdvo_restore()
1871 psb_intel_sdvo_guess_ddc_bus(struct psb_intel_sdvo *sdvo) in psb_intel_sdvo_guess_ddc_bus() argument
1877 sdvo->ddc_bus = 2; in psb_intel_sdvo_guess_ddc_bus()
1886 switch (sdvo->controlled_output) { in psb_intel_sdvo_guess_ddc_bus()
1903 mask &= sdvo->caps.output_flags; in psb_intel_sdvo_guess_ddc_bus()
1910 sdvo->ddc_bus = 1 << num_bits; in psb_intel_sdvo_guess_ddc_bus()
1923 struct psb_intel_sdvo *sdvo, u32 reg) in psb_intel_sdvo_select_ddc_bus() argument
1933 sdvo->ddc_bus = 1 << ((mapping->ddc_pin & 0xf0) >> 4); in psb_intel_sdvo_select_ddc_bus()
1935 psb_intel_sdvo_guess_ddc_bus(sdvo); in psb_intel_sdvo_select_ddc_bus()
1940 struct psb_intel_sdvo *sdvo, u32 reg) in psb_intel_sdvo_select_i2c_bus() argument
1958 sdvo->i2c = &dev_priv->gmbus[pin].adapter; in psb_intel_sdvo_select_i2c_bus()
1959 gma_intel_gmbus_set_speed(sdvo->i2c, speed); in psb_intel_sdvo_select_i2c_bus()
1960 gma_intel_gmbus_force_bit(sdvo->i2c, true); in psb_intel_sdvo_select_i2c_bus()
1962 sdvo->i2c = &dev_priv->gmbus[GMBUS_PORT_DPB].adapter; in psb_intel_sdvo_select_i2c_bus()
2473 struct psb_intel_sdvo *sdvo = adapter->algo_data; in psb_intel_sdvo_ddc_proxy_xfer() local
2475 if (!psb_intel_sdvo_set_control_bus_switch(sdvo, sdvo->ddc_bus)) in psb_intel_sdvo_ddc_proxy_xfer()
2478 return sdvo->i2c->algo->master_xfer(sdvo->i2c, msgs, num); in psb_intel_sdvo_ddc_proxy_xfer()
2483 struct psb_intel_sdvo *sdvo = adapter->algo_data; in psb_intel_sdvo_ddc_proxy_func() local
2484 return sdvo->i2c->algo->functionality(sdvo->i2c); in psb_intel_sdvo_ddc_proxy_func()
2493 psb_intel_sdvo_init_ddc_proxy(struct psb_intel_sdvo *sdvo, in psb_intel_sdvo_init_ddc_proxy() argument
2496 sdvo->ddc.owner = THIS_MODULE; in psb_intel_sdvo_init_ddc_proxy()
2497 sdvo->ddc.class = I2C_CLASS_DDC; in psb_intel_sdvo_init_ddc_proxy()
2498 snprintf(sdvo->ddc.name, I2C_NAME_SIZE, "SDVO DDC proxy"); in psb_intel_sdvo_init_ddc_proxy()
2499 sdvo->ddc.dev.parent = &dev->pdev->dev; in psb_intel_sdvo_init_ddc_proxy()
2500 sdvo->ddc.algo_data = sdvo; in psb_intel_sdvo_init_ddc_proxy()
2501 sdvo->ddc.algo = &psb_intel_sdvo_ddc_proxy; in psb_intel_sdvo_init_ddc_proxy()
2503 return i2c_add_adapter(&sdvo->ddc) == 0; in psb_intel_sdvo_init_ddc_proxy()