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