Lines Matching refs:CurrPtr
314 UINT8 *CurrPtr; in Reclaim() local
345 CurrPtr = ValidBuffer; in Reclaim()
350 CopyMem (CurrPtr, VariableStoreHeader, sizeof (VARIABLE_STORE_HEADER)); in Reclaim()
351 CurrPtr += sizeof (VARIABLE_STORE_HEADER); in Reclaim()
368 CopyMem (CurrPtr, (UINT8 *) Variable, VariableSize); in Reclaim()
370 CurrPtr += VariableSize; in Reclaim()
383 CopyMem (CurrPtr, (UINT8 *) Variable, VariableSize); in Reclaim()
388 ((VARIABLE_HEADER *)CurrPtr)->State = VAR_ADDED; in Reclaim()
390 CurrPtr += VariableSize; in Reclaim()
496 PtrTrack->CurrPtr = Variable; in FindVariable()
502 PtrTrack->CurrPtr = Variable; in FindVariable()
547 PtrTrack->CurrPtr = InDeleteVariable; in FindVariable()
554 PtrTrack->CurrPtr = NULL; in FindVariable()
956 Data = GetVariableDataPtr (Variable.CurrPtr); in AutoUpdateLangVariable()
957 DataSize = Variable.CurrPtr->DataSize; in AutoUpdateLangVariable()
965 Data = GetVariableDataPtr (Variable.CurrPtr); in AutoUpdateLangVariable()
966 DataSize = Variable.CurrPtr->DataSize; in AutoUpdateLangVariable()
1093 if (Variable->CurrPtr != NULL) { in UpdateVariable()
1110 if (!(Variable->CurrPtr->Attributes & EFI_VARIABLE_NON_VOLATILE)) { in UpdateVariable()
1123 State = Variable->CurrPtr->State; in UpdateVariable()
1128 … VARIABLE_MEMBER_OFFSET (State, (UINTN) Variable->CurrPtr - (UINTN) Variable->StartPtr), in UpdateVariable()
1129 sizeof (Variable->CurrPtr->State), in UpdateVariable()
1144 if ((Variable->CurrPtr->DataSize == DataSize) && in UpdateVariable()
1145 (CompareMem (Data, GetVariableDataPtr (Variable->CurrPtr), DataSize) == 0) in UpdateVariable()
1148 } else if ((Variable->CurrPtr->State == VAR_ADDED) || in UpdateVariable()
1149 (Variable->CurrPtr->State == (VAR_ADDED & VAR_IN_DELETED_TRANSITION))) { in UpdateVariable()
1153 State = Variable->CurrPtr->State; in UpdateVariable()
1158 … VARIABLE_MEMBER_OFFSET (State, (UINTN) Variable->CurrPtr - (UINTN) Variable->StartPtr), in UpdateVariable()
1159 sizeof (Variable->CurrPtr->State), in UpdateVariable()
1242 Status = Reclaim (StorageType, Variable->CurrPtr); in UpdateVariable()
1283 if (!Reclaimed && !EFI_ERROR (Status) && Variable->CurrPtr != NULL) { in UpdateVariable()
1284 State = Variable->CurrPtr->State; in UpdateVariable()
1289 … VARIABLE_MEMBER_OFFSET (State, (UINTN) Variable->CurrPtr - (UINTN) Variable->StartPtr), in UpdateVariable()
1290 sizeof (Variable->CurrPtr->State), in UpdateVariable()
1349 if (Variable.CurrPtr == NULL || EFI_ERROR (Status)) { in DuetGetVariable()
1355 VarDataSize = Variable.CurrPtr->DataSize; in DuetGetVariable()
1360 CopyMem (Data, GetVariableDataPtr (Variable.CurrPtr), VarDataSize); in DuetGetVariable()
1363 *Attributes = Variable.CurrPtr->Attributes; in DuetGetVariable()
1410 if (Variable.CurrPtr == NULL || EFI_ERROR (Status)) { in GetNextVariableName()
1418 Variable.CurrPtr = GetNextVariablePtr (Variable.CurrPtr); in GetNextVariableName()
1427 if (Variable.CurrPtr >= Variable.EndPtr || Variable.CurrPtr == NULL) { in GetNextVariableName()
1442 Variable.CurrPtr = Variable.StartPtr; in GetNextVariableName()
1443 if (!IsValidVariableHeader (Variable.CurrPtr)) { in GetNextVariableName()
1450 if (IsValidVariableHeader (Variable.CurrPtr) && in GetNextVariableName()
1451 ((Variable.CurrPtr->State == VAR_ADDED) || in GetNextVariableName()
1452 (Variable.CurrPtr->State == (VAR_ADDED & VAR_IN_DELETED_TRANSITION)))) { in GetNextVariableName()
1453 if (!EfiAtRuntime () || (Variable.CurrPtr->Attributes & EFI_VARIABLE_RUNTIME_ACCESS)) { in GetNextVariableName()
1454 VarNameSize = Variable.CurrPtr->NameSize; in GetNextVariableName()
1458 GET_VARIABLE_NAME_PTR (Variable.CurrPtr), in GetNextVariableName()
1463 &Variable.CurrPtr->VendorGuid, in GetNextVariableName()
1476 Variable.CurrPtr = GetNextVariablePtr (Variable.CurrPtr); in GetNextVariableName()