Home
last modified time | relevance | path

Searched refs:pSen (Results 1 – 4 of 4) sorted by relevance

/linux-2.4.37.9/drivers/net/sk98lin/
Dsklm80.c122 SK_SENSOR *pSen) /* Sensor to be read */ in SkLm80ReadSensor() argument
126 switch (pSen->SenState) { in SkLm80ReadSensor()
129 SK_I2C_CTL(IoC, I2C_READ, pSen->SenDev, I2C_025K_DEV, pSen->SenReg, 0); in SkLm80ReadSensor()
131 pSen->SenState = SK_SEN_VALUE ; in SkLm80ReadSensor()
143 if (pSen->SenType == SK_SEN_VOLT) { in SkLm80ReadSensor()
145 pSen->SenValue = Value * SK_LM80_VT_LSB; in SkLm80ReadSensor()
146 pSen->SenState = SK_SEN_IDLE ; in SkLm80ReadSensor()
150 if (pSen->SenType == SK_SEN_FAN) { in SkLm80ReadSensor()
153 pSen->SenValue = SK_LM80_FAN_FAKTOR/Value; in SkLm80ReadSensor()
157 pSen->SenValue = 0; in SkLm80ReadSensor()
[all …]
Dski2c.c446 SK_SENSOR *pSen; in SkI2cWaitIrq() local
450 pSen = &pAC->I2c.SenTable[pAC->I2c.CurrSens]; in SkI2cWaitIrq()
452 if (pSen->SenState == SK_SEN_IDLE) { in SkI2cWaitIrq()
472 pSen->SenState = SK_SEN_IDLE; in SkI2cWaitIrq()
542 SK_SENSOR *pSen) /* Sensor to be read */ in SkI2cReadSensor() argument
544 if (pSen->SenRead != NULL) { in SkI2cReadSensor()
545 return((*pSen->SenRead)(pAC, IoC, pSen)); in SkI2cReadSensor()
840 SK_SENSOR *pSen; in SkI2cInit2() local
848 pSen = &pAC->I2c.SenTable[pAC->I2c.CurrSens]; in SkI2cInit2()
849 ReadComplete = SkI2cReadSensor(pAC, IoC, pSen); in SkI2cInit2()
[all …]
/linux-2.4.37.9/drivers/net/sk98lin/h/
Dski2c.h144 int (*SenRead)(SK_AC *pAC, SK_IOC IoC, struct s_Sensor *pSen);
165 extern int SkI2cReadSensor(SK_AC *pAC, SK_IOC IoC, SK_SENSOR *pSen);
Dskgei2c.h207 extern int SkLm80ReadSensor(SK_AC *pAC, SK_IOC IoC, SK_SENSOR *pSen);