Lines Matching refs:gp
26 gp.failedTries = 0; in DAPreInstall_Init()
27 gp.maxTries = 3; in DAPreInstall_Init()
28 gp.recoveryTime = 1000; // in seconds (~16.67 minutes) in DAPreInstall_Init()
29 gp.lockoutRecovery = 1000; // in seconds in DAPreInstall_Init()
30 gp.lockOutAuthEnabled = TRUE; // Use of lockoutAuth is enabled in DAPreInstall_Init()
32 NvWriteReserved(NV_FAILED_TRIES, &gp.failedTries); in DAPreInstall_Init()
33 NvWriteReserved(NV_MAX_TRIES, &gp.maxTries); in DAPreInstall_Init()
34 NvWriteReserved(NV_RECOVERY_TIME, &gp.recoveryTime); in DAPreInstall_Init()
35 NvWriteReserved(NV_LOCKOUT_RECOVERY, &gp.lockoutRecovery); in DAPreInstall_Init()
36 NvWriteReserved(NV_LOCKOUT_AUTH_ENABLED, &gp.lockOutAuthEnabled); in DAPreInstall_Init()
56 if(gp.lockoutRecovery == 0) in DAStartup()
58 gp.lockOutAuthEnabled = TRUE; in DAStartup()
60 NvWriteReserved(NV_LOCKOUT_AUTH_ENABLED, &gp.lockOutAuthEnabled); in DAStartup()
65 if( gp.recoveryTime != 0 in DAStartup()
67 && gp.failedTries < gp.maxTries) in DAStartup()
69 gp.failedTries++; in DAStartup()
71 NvWriteReserved(NV_FAILED_TRIES, &gp.failedTries); in DAStartup()
115 if(gp.failedTries != 0) in DASelfHeal()
119 if(gp.recoveryTime == 0) in DASelfHeal()
121 gp.failedTries = 0; in DASelfHeal()
123 NvWriteReserved(NV_FAILED_TRIES, &gp.failedTries); in DASelfHeal()
130 if(gp.failedTries > gp.maxTries) in DASelfHeal()
131 gp.failedTries = gp.maxTries; in DASelfHeal()
133 decreaseCount = ((g_time - s_selfHealTimer) / 1000) / gp.recoveryTime; in DASelfHeal()
134 if(gp.failedTries <= (UINT32) decreaseCount) in DASelfHeal()
136 gp.failedTries = 0; in DASelfHeal()
138 gp.failedTries -= (UINT32) decreaseCount; in DASelfHeal()
140 s_selfHealTimer += (decreaseCount * (UINT64)gp.recoveryTime) * 1000; in DASelfHeal()
144 NvWriteReserved(NV_FAILED_TRIES, &gp.failedTries); in DASelfHeal()
150 if(!gp.lockOutAuthEnabled) in DASelfHeal()
155 if(gp.lockoutRecovery != 0) in DASelfHeal()
158 if(((g_time - s_lockoutTimer)/1000) >= gp.lockoutRecovery) in DASelfHeal()
160 gp.lockOutAuthEnabled = TRUE; in DASelfHeal()
162 NvWriteReserved(NV_LOCKOUT_AUTH_ENABLED, &gp.lockOutAuthEnabled); in DASelfHeal()