Lines Matching refs:pstatp

1819 	struct ps_state *pstatp;  in ps_fail_handler()  local
1838 for (i = 0, pstatp = &softsp->ps_stats[0]; i < SYS_PS_COUNT; in ps_fail_handler()
1839 i++, pstatp++) { in ps_fail_handler()
1942 if (pstatp->pshadow == PRES_UNKNOWN) { in ps_fail_handler()
1943 pstatp->pshadow = temp_pres ? PRES_IN : PRES_OUT; in ps_fail_handler()
1944 pstatp->dcshadow = temp_pres ? PS_BOOT : PS_OUT; in ps_fail_handler()
1947 if (!temp_pres ^ (pstatp->pshadow == PRES_IN)) { in ps_fail_handler()
1948 pstatp->pctr = 0; in ps_fail_handler()
1951 if (pstatp->pctr == 0) { in ps_fail_handler()
1952 pstatp->pctr = PS_PRES_CHANGE_TICKS; in ps_fail_handler()
1953 } else if (--pstatp->pctr == 0) { in ps_fail_handler()
1954 pstatp->pshadow = temp_pres ? in ps_fail_handler()
1956 pstatp->dcshadow = temp_pres ? in ps_fail_handler()
1972 if ((pstatp->dcshadow == PS_OUT) || in ps_fail_handler()
1973 ((pstatp->dcshadow == PS_OK) && temp_psok) || in ps_fail_handler()
1974 ((pstatp->dcshadow == PS_FAIL) && !temp_psok)) { in ps_fail_handler()
1975 pstatp->dcctr = 0; in ps_fail_handler()
1979 if (pstatp->dcctr == 0) { in ps_fail_handler()
1980 switch (pstatp->dcshadow) { in ps_fail_handler()
1982 pstatp->dcctr = PS_FROM_BOOT_TICKS; in ps_fail_handler()
1986 pstatp->dcctr = is_fan_assy ? in ps_fail_handler()
1992 pstatp->dcctr = is_precharge ? in ps_fail_handler()
1998 pstatp->dcctr = PS_FROM_FAIL_TICKS; in ps_fail_handler()
2003 "Supply State %d", pstatp->dcshadow, in ps_fail_handler()
2009 if (--pstatp->dcctr == 0) { in ps_fail_handler()
2012 if (!((pstatp->dcshadow == PS_BOOT) && in ps_fail_handler()
2026 (pstatp->dcshadow != PS_BOOT) && in ps_fail_handler()
2042 pstatp->dcshadow = temp_psok ? PS_OK : PS_FAIL; in ps_fail_handler()
2063 (pstatp->dcshadow == PS_UNKNOWN) || in ps_fail_handler()
2064 (pstatp->dcshadow == PS_FAIL)) { in ps_fail_handler()