Lines Matching refs:pSen
446 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()
931 SK_SENSOR *pSen) in SkI2cCheckSensor() argument
954 TooHigh = (pSen->SenValue > pSen->SenThreErrHigh); in SkI2cCheckSensor()
955 TooLow = (pSen->SenValue < pSen->SenThreErrLow); in SkI2cCheckSensor()
966 if (pSen->SenErrFlag == SK_SEN_ERR_ERR) { in SkI2cCheckSensor()
970 if (pSen->SenLastErrTrapTS + SK_SEN_ERR_TR_HOLD > in SkI2cCheckSensor()
980 if (pSen->SenLastErrLogTS + SK_SEN_ERR_LOG_HOLD > in SkI2cCheckSensor()
991 pSen->SenBegErrTS = CurrTime; in SkI2cCheckSensor()
992 pSen->SenErrFlag = SK_SEN_ERR_ERR; in SkI2cCheckSensor()
997 pSen->SenLastErrTrapTS = CurrTime; in SkI2cCheckSensor()
998 pSen->SenErrCts++; in SkI2cCheckSensor()
1009 pSen->SenLastErrLogTS = CurrTime; in SkI2cCheckSensor()
1011 if (pSen->SenType == SK_SEN_TEMP) { in SkI2cCheckSensor()
1014 else if (pSen->SenType == SK_SEN_VOLT) { in SkI2cCheckSensor()
1025 TooHigh = (pSen->SenValue > pSen->SenThreWarnHigh); in SkI2cCheckSensor()
1026 TooLow = (pSen->SenValue < pSen->SenThreWarnLow); in SkI2cCheckSensor()
1033 if (pSen->SenErrFlag == SK_SEN_ERR_WARN) { in SkI2cCheckSensor()
1037 if (pSen->SenLastWarnTrapTS + SK_SEN_WARN_TR_HOLD > CurrTime) { in SkI2cCheckSensor()
1046 if (pSen->SenLastWarnLogTS + SK_SEN_WARN_LOG_HOLD > CurrTime) { in SkI2cCheckSensor()
1056 pSen->SenBegWarnTS = CurrTime; in SkI2cCheckSensor()
1057 pSen->SenErrFlag = SK_SEN_ERR_WARN; in SkI2cCheckSensor()
1062 pSen->SenLastWarnTrapTS = CurrTime; in SkI2cCheckSensor()
1063 pSen->SenWarnCts++; in SkI2cCheckSensor()
1074 pSen->SenLastWarnLogTS = CurrTime; in SkI2cCheckSensor()
1076 if (pSen->SenType == SK_SEN_TEMP) { in SkI2cCheckSensor()
1079 else if (pSen->SenType == SK_SEN_VOLT) { in SkI2cCheckSensor()
1091 pSen->SenErrFlag = SK_SEN_ERR_OK; in SkI2cCheckSensor()
1099 if (pSen->SenInit == SK_SEN_DYN_INIT_PCI_IO) { in SkI2cCheckSensor()
1101 pSen->SenInit = SK_SEN_DYN_INIT_NONE; in SkI2cCheckSensor()
1103 if (pSen->SenValue > SK_SEN_PCI_IO_RANGE_LIMITER) { in SkI2cCheckSensor()
1105 pSen->SenThreWarnLow = SK_SEN_PCI_IO_5V_LOW_WARN; in SkI2cCheckSensor()
1106 pSen->SenThreErrLow = SK_SEN_PCI_IO_5V_LOW_ERR; in SkI2cCheckSensor()
1110 pSen->SenThreWarnHigh = SK_SEN_PCI_IO_3V3_HIGH_WARN; in SkI2cCheckSensor()
1111 pSen->SenThreErrHigh = SK_SEN_PCI_IO_3V3_HIGH_ERR; in SkI2cCheckSensor()
1117 if (pSen->SenInit == SK_SEN_DYN_INIT_VAUX) { in SkI2cCheckSensor()
1119 pSen->SenInit = SK_SEN_DYN_INIT_NONE; in SkI2cCheckSensor()
1122 if (pSen->SenValue > SK_SEN_VAUX_RANGE_LIMITER) { in SkI2cCheckSensor()
1123 pSen->SenThreWarnLow = SK_SEN_VAUX_3V3_LOW_WARN; in SkI2cCheckSensor()
1124 pSen->SenThreErrLow = SK_SEN_VAUX_3V3_LOW_ERR; in SkI2cCheckSensor()
1128 pSen->SenThreWarnHigh = SK_SEN_VAUX_0V_WARN_ERR; in SkI2cCheckSensor()
1129 pSen->SenThreErrHigh = SK_SEN_VAUX_0V_WARN_ERR; in SkI2cCheckSensor()
1137 if (!pSen->SenInit && pSen->SenReg == LM80_VT1_IN && in SkI2cCheckSensor()
1138 pSen->SenValue > SK_SEN_WARNLOW2C && in SkI2cCheckSensor()
1139 pSen->SenValue < SK_SEN_WARNHIGH2) { in SkI2cCheckSensor()
1140 pSen->SenThreErrLow = SK_SEN_ERRLOW2C; in SkI2cCheckSensor()
1141 pSen->SenThreWarnLow = SK_SEN_WARNLOW2C; in SkI2cCheckSensor()
1142 pSen->SenInit = SK_TRUE; in SkI2cCheckSensor()
1145 if (!pSen->SenInit && pSen->SenReg == LM80_VT1_IN && in SkI2cCheckSensor()
1146 pSen->SenValue > SK_SEN_WARNLOW2 && in SkI2cCheckSensor()
1147 pSen->SenValue < SK_SEN_WARNHIGH2C) { in SkI2cCheckSensor()
1148 pSen->SenThreErrHigh = SK_SEN_ERRHIGH2C; in SkI2cCheckSensor()
1149 pSen->SenThreWarnHigh = SK_SEN_WARNHIGH2C; in SkI2cCheckSensor()
1150 pSen->SenInit = SK_TRUE; in SkI2cCheckSensor()
1154 if (pSen->SenInit != SK_SEN_DYN_INIT_NONE) { in SkI2cCheckSensor()
1171 SK_SENSOR *pSen; in SkI2cEvent() local
1183 pSen = &pAC->I2c.SenTable[pAC->I2c.CurrSens]; in SkI2cEvent()
1184 ReadComplete = SkI2cReadSensor(pAC, IoC, pSen); in SkI2cEvent()
1188 SkI2cCheckSensor(pAC, pSen); in SkI2cEvent()
1224 pSen = &pAC->I2c.SenTable[pAC->I2c.CurrSens]; in SkI2cEvent()
1225 ReadComplete = SkI2cReadSensor(pAC, IoC, pSen); in SkI2cEvent()
1229 SkI2cCheckSensor(pAC, pSen); in SkI2cEvent()
1251 pSen = &pAC->I2c.SenTable[pAC->I2c.CurrSens]; in SkI2cEvent()
1252 pSen->SenErrFlag = SK_SEN_ERR_FAULTY; in SkI2cEvent()