Lines Matching defs:i2c
78 /* Clear the i2c map to invalid */
282 I2CBusPtr i2c;
285 i2c = xf86CreateI2CBusRec();
286 if(!i2c) return NULL;
288 i2c->BusName = strdup(name);
289 i2c->scrnIndex = pScrn->scrnIndex;
291 i2c->pScrn = pScrn;
293 i2c->I2CPutBits = G80_I2CPutBits;
294 i2c->I2CGetBits = G80_I2CGetBits;
295 i2c->ByteTimeout = 2200; /* VESA DDC spec 3 p. 43 (+10 %) */
296 i2c->StartTimeout = 550;
297 i2c->BitTimeout = 40;
298 i2c->ByteTimeout = 40;
299 i2c->AcknTimeout = 40;
300 i2c->DriverPrivate.val = port;
302 if(xf86I2CBusInit(i2c)) {
303 return i2c;
305 free(i2c);
340 ProbeDDC(I2CBusPtr i2c)
342 ScrnInfoPtr pScrn = xf86Screens[i2c->scrnIndex];
345 const int bus = i2c->DriverPrivate.val;
353 monInfo = xf86DoEEDID(XF86_SCRN_ARG(pScrn), i2c, TRUE);
355 monInfo = xf86DoEDID_DDC2(XF86_SCRN_ARG(pScrn), i2c);
372 * Read an EDID from the i2c port. Perform load detection on the DAC (if
376 void G80OutputPartnersDetect(xf86OutputPtr dac, xf86OutputPtr sor, I2CBusPtr i2c)
378 xf86MonPtr monInfo = ProbeDDC(i2c);
439 xf86DestroyI2CBusRec(pPriv->i2c, TRUE, TRUE);
440 pPriv->i2c = NULL;
456 I2CBusPtr i2c;
464 i2c = G80I2CInit(pScrn, i2cName, i);
465 if(!i2c) {
481 pPriv->i2c = i2c;
488 pPriv->i2c = i2c;
505 pPriv->i2c = G80I2CInit(pScrn, i2cName, pNv->lvds.i2cPort);
506 if(!pPriv->i2c) {