Lines Matching refs:gNextAddress
966 static unsigned int gNextAddress = 0;
989 if (gAddressBase && (gNextAddress - gAddressBase))
992 gNextAddress - gAddressBase,
1055 gNextAddress = gAddressBase =
1058 } else if (AlignPage (gNextAddress + size) > (gAddressBase +
1070 gAddressBase = gNextAddress =
1086 if ((size + gNextAddress) > AlignPage (gNextAddress))
1089 res = VirtualAlloc ((void*)AlignPage (gNextAddress),
1090 (size + gNextAddress -
1091 AlignPage (gNextAddress)),
1096 tmp = (void*)gNextAddress;
1097 gNextAddress = (unsigned int)tmp + size;
1102 unsigned int alignedGoal = AlignPage (gNextAddress + size);
1106 VirtualFree ((void*)alignedGoal, gNextAddress - alignedGoal,
1108 gNextAddress = gNextAddress + size;
1109 return (void*)gNextAddress;
1113 VirtualFree ((void*)gAddressBase, gNextAddress - gAddressBase,
1115 gNextAddress = gAddressBase;
1121 return (void*)gNextAddress;