Lines Matching defs:CurrPtr
820 VarErrFlag = (VAR_ERROR_FLAG *) GetVariableDataPtr (Variable.CurrPtr);
878 VarErrFlag = *((VAR_ERROR_FLAG *) GetVariableDataPtr (Variable.CurrPtr));
1017 UINT8 *CurrPtr;
1031 UpdatingVariable = UpdatingPtrTrack->CurrPtr;
1092 CurrPtr = (UINT8 *) GetStartPointer ((VARIABLE_STORE_HEADER *) ValidBuffer);
1102 CopyMem (CurrPtr, (UINT8 *) Variable, VariableSize);
1103 CurrPtr += VariableSize;
1152 CopyMem (CurrPtr, (UINT8 *) Variable, VariableSize);
1153 ((VARIABLE_HEADER *) CurrPtr)->State = VAR_ADDED;
1154 CurrPtr += VariableSize;
1173 if ((UINTN) (CurrPtr - ValidBuffer) + NewVariableSize > VariableStoreHeader->Size) {
1200 CopyMem (CurrPtr, (UINT8 *) NewVariable, NewVariableSize);
1201 ((VARIABLE_HEADER *) CurrPtr)->State = VAR_ADDED;
1203 UpdatingPtrTrack->CurrPtr = (VARIABLE_HEADER *)((UINTN)UpdatingPtrTrack->StartPtr + ((UINTN)CurrPtr - (UINTN)GetStartPointer ((VARIABLE_STORE_HEADER *) ValidBuffer)));
1206 CurrPtr += NewVariableSize;
1214 CopyMem ((UINT8 *) (UINTN) VariableBase, ValidBuffer, (UINTN) (CurrPtr - ValidBuffer));
1215 *LastVariableOffset = (UINTN) (CurrPtr - ValidBuffer);
1226 *LastVariableOffset = (UINTN) (CurrPtr - ValidBuffer);
1296 for ( PtrTrack->CurrPtr = PtrTrack->StartPtr
1297 ; IsValidVariableHeader (PtrTrack->CurrPtr, PtrTrack->EndPtr)
1298 ; PtrTrack->CurrPtr = GetNextVariablePtr (PtrTrack->CurrPtr)
1300 if (PtrTrack->CurrPtr->State == VAR_ADDED ||
1301 PtrTrack->CurrPtr->State == (VAR_IN_DELETED_TRANSITION & VAR_ADDED)
1303 if (IgnoreRtCheck || !AtRuntime () || ((PtrTrack->CurrPtr->Attributes & EFI_VARIABLE_RUNTIME_ACCESS) != 0)) {
1305 if (PtrTrack->CurrPtr->State == (VAR_IN_DELETED_TRANSITION & VAR_ADDED)) {
1306 InDeletedVariable = PtrTrack->CurrPtr;
1312 if (CompareGuid (VendorGuid, GetVendorGuidPtr (PtrTrack->CurrPtr))) {
1313 Point = (VOID *) GetVariableNamePtr (PtrTrack->CurrPtr);
1315 ASSERT (NameSizeOfVariable (PtrTrack->CurrPtr) != 0);
1316 if (CompareMem (VariableName, Point, NameSizeOfVariable (PtrTrack->CurrPtr)) == 0) {
1317 if (PtrTrack->CurrPtr->State == (VAR_IN_DELETED_TRANSITION & VAR_ADDED)) {
1318 InDeletedVariable = PtrTrack->CurrPtr;
1330 PtrTrack->CurrPtr = InDeletedVariable;
1331 return (PtrTrack->CurrPtr == NULL) ? EFI_NOT_FOUND : EFI_SUCCESS;
1808 NextVariable = GetNextVariablePtr (VariablePtrTrack.CurrPtr);
1809 OriginalVarSize = (UINTN) NextVariable - (UINTN) VariablePtrTrack.CurrPtr;
1979 Data = GetVariableDataPtr (Variable.CurrPtr);
1980 DataSize = DataSizeOfVariable (Variable.CurrPtr);
1988 Data = GetVariableDataPtr (Variable.CurrPtr);
1989 DataSize = DataSizeOfVariable (Variable.CurrPtr);
2225 if ((CacheVariable->CurrPtr != NULL) &&
2233 if (CacheVariable->CurrPtr == NULL || EFI_ERROR (Status)) {
2250 if ((CacheVariable->CurrPtr == NULL) || CacheVariable->Volatile) {
2263 Variable->CurrPtr = (VARIABLE_HEADER *)((UINTN)Variable->StartPtr + ((UINTN)CacheVariable->CurrPtr - (UINTN)CacheVariable->StartPtr));
2283 if (Variable->CurrPtr != NULL) {
2300 if ((CacheVariable->CurrPtr->Attributes & EFI_VARIABLE_NON_VOLATILE) == 0) {
2308 if ((CacheVariable->CurrPtr->Attributes & EFI_VARIABLE_RUNTIME_ACCESS) == 0) {
2347 State = CacheVariable->CurrPtr->State;
2355 (UINTN) &Variable->CurrPtr->State,
2362 CacheVariable->CurrPtr->State = State;
2372 if (DataSizeOfVariable (CacheVariable->CurrPtr) == DataSize &&
2373 (CompareMem (Data, GetVariableDataPtr (CacheVariable->CurrPtr), DataSize) == 0) &&
2382 } else if ((CacheVariable->CurrPtr->State == VAR_ADDED) ||
2383 (CacheVariable->CurrPtr->State == (VAR_ADDED & VAR_IN_DELETED_TRANSITION))) {
2393 DataOffset = GetVariableDataOffset (CacheVariable->CurrPtr);
2395 CopyMem (BufferForMerge, (UINT8 *) ((UINTN) CacheVariable->CurrPtr + DataOffset), DataSizeOfVariable (CacheVariable->CurrPtr));
2414 if (DataSizeOfVariable (CacheVariable->CurrPtr) + DataSize > MaxDataSize) {
2421 CopyMem ((UINT8*) ((UINTN) BufferForMerge + DataSizeOfVariable (CacheVariable->CurrPtr)), Data, DataSize);
2422 MergedBufSize = DataSizeOfVariable (CacheVariable->CurrPtr) + DataSize;
2435 State = CacheVariable->CurrPtr->State;
2443 (UINTN) &Variable->CurrPtr->State,
2451 CacheVariable->CurrPtr->State = State;
2508 if (Variable->CurrPtr != NULL) {
2509 if (VariableCompareTimeStampInternal (&(((AUTHENTICATED_VARIABLE_HEADER *) CacheVariable->CurrPtr)->TimeStamp), TimeStamp)) {
2600 if (Variable->CurrPtr != NULL) {
2601 CacheVariable->CurrPtr = (VARIABLE_HEADER *)((UINTN) CacheVariable->StartPtr + ((UINTN) Variable->CurrPtr - (UINTN) Variable->StartPtr));
2729 if (Variable->CurrPtr != NULL) {
2730 CacheVariable->CurrPtr = (VARIABLE_HEADER *)((UINTN) CacheVariable->StartPtr + ((UINTN) Variable->CurrPtr - (UINTN) Variable->StartPtr));
2759 if (!EFI_ERROR (Status) && Variable->CurrPtr != NULL) {
2786 State = Variable->CurrPtr->State;
2794 (UINTN) &Variable->CurrPtr->State,
2799 CacheVariable->CurrPtr->State = State;
2861 if (Variable.CurrPtr == NULL || EFI_ERROR (Status)) {
2868 VarDataSize = DataSizeOfVariable (Variable.CurrPtr);
2877 CopyMem (Data, GetVariableDataPtr (Variable.CurrPtr), VarDataSize);
2879 *Attributes = Variable.CurrPtr->Attributes;
2928 if (Variable.CurrPtr == NULL || EFI_ERROR (Status)) {
2936 Variable.CurrPtr = GetNextVariablePtr (Variable.CurrPtr);
2952 while (!IsValidVariableHeader (Variable.CurrPtr, Variable.EndPtr)) {
2981 Variable.CurrPtr = Variable.StartPtr;
2987 if (Variable.CurrPtr->State == VAR_ADDED || Variable.CurrPtr->State == (VAR_IN_DELETED_TRANSITION & VAR_ADDED)) {
2988 if (!AtRuntime () || ((Variable.CurrPtr->Attributes & EFI_VARIABLE_RUNTIME_ACCESS) != 0)) {
2989 if (Variable.CurrPtr->State == (VAR_IN_DELETED_TRANSITION & VAR_ADDED)) {
2998 GetVariableNamePtr (Variable.CurrPtr),
2999 GetVendorGuidPtr (Variable.CurrPtr),
3003 if (!EFI_ERROR (Status) && VariablePtrTrack.CurrPtr->State == VAR_ADDED) {
3004 Variable.CurrPtr = GetNextVariablePtr (Variable.CurrPtr);
3018 GetVariableNamePtr (Variable.CurrPtr),
3019 GetVendorGuidPtr (Variable.CurrPtr),
3024 Variable.CurrPtr = GetNextVariablePtr (Variable.CurrPtr);
3029 *VariablePtr = Variable.CurrPtr;
3035 Variable.CurrPtr = GetNextVariablePtr (Variable.CurrPtr);
3281 if (((Variable.CurrPtr->Attributes & EFI_VARIABLE_RUNTIME_ACCESS) == 0) && AtRuntime ()) {
3285 if (Attributes != 0 && (Attributes & (~EFI_VARIABLE_APPEND_WRITE)) != Variable.CurrPtr->Attributes) {
3293 DEBUG ((EFI_D_INFO, "[Variable]: Rewritten a preexisting variable(0x%08x) with different attributes(0x%08x) - %g:%s\n", Variable.CurrPtr->Attributes, Attributes, VendorGuid, VariableName));
3465 if (!EFI_ERROR (Status) && VariablePtrTrack.CurrPtr->State != VAR_ADDED) {