Lines Matching refs:pSen
122 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()
159 pSen->SenState = SK_SEN_IDLE ; in SkLm80ReadSensor()
173 pSen->SenValue = (Value * SK_LM80_TEMP_LSB) + in SkLm80ReadSensor()
174 (pSen->SenValue % SK_LM80_TEMP_LSB); in SkLm80ReadSensor()
177 SK_I2C_CTL(IoC, I2C_READ, pSen->SenDev, I2C_025K_DEV, LM80_TEMP_CTRL, 0); in SkLm80ReadSensor()
179 pSen->SenState = SK_SEN_VALEXT ; in SkLm80ReadSensor()
188 pSen->SenValue = ((pSen->SenValue / SK_LM80_TEMP_LSB) * in SkLm80ReadSensor()
191 if (pSen->SenValue < 0) { in SkLm80ReadSensor()
193 pSen->SenValue -= ((Value >> 7) * SK_LM80_TEMPEXT_LSB); in SkLm80ReadSensor()
197 pSen->SenValue += ((Value >> 7) * SK_LM80_TEMPEXT_LSB); in SkLm80ReadSensor()
200 pSen->SenState = SK_SEN_IDLE ; in SkLm80ReadSensor()