Lines Matching refs:Size

178     return Entry->Size ? Entry : NULL;  in GetXmsHandleRecord()
208 static UCHAR XmsAlloc(WORD Size, PWORD Handle) in XmsAlloc() argument
216 if (Size > FreeBlocks) return XMS_STATUS_OUT_OF_MEMORY; in XmsAlloc()
256 if (RunSize >= HandleEntry->Size) in XmsAlloc()
261 HandleEntry->Size = Size; in XmsAlloc()
264 FreeBlocks -= Size; in XmsAlloc()
265 RtlSetBits(&AllocBitmap, RunStart, HandleEntry->Size); in XmsAlloc()
294 if (NewSize < HandleEntry->Size) in XmsRealloc()
297 RtlClearBits(&AllocBitmap, BlockNumber + NewSize, HandleEntry->Size - NewSize); in XmsRealloc()
298 FreeBlocks += HandleEntry->Size - NewSize; in XmsRealloc()
299 HandleEntry->Size = NewSize; in XmsRealloc()
301 else if (NewSize > HandleEntry->Size) in XmsRealloc()
305 BlockNumber + HandleEntry->Size, in XmsRealloc()
306 NewSize - HandleEntry->Size)) in XmsRealloc()
310 BlockNumber + HandleEntry->Size, in XmsRealloc()
311 NewSize - HandleEntry->Size); in XmsRealloc()
312 FreeBlocks -= NewSize - HandleEntry->Size; in XmsRealloc()
313 HandleEntry->Size = NewSize; in XmsRealloc()
320 RtlClearBits(&AllocBitmap, BlockNumber, HandleEntry->Size); in XmsRealloc()
336 HandleEntry->Size * XMS_BLOCK_SIZE); in XmsRealloc()
340 HandleEntry->Size = NewSize; in XmsRealloc()
343 FreeBlocks -= NewSize - HandleEntry->Size; in XmsRealloc()
353 RtlSetBits(&AllocBitmap, BlockNumber, HandleEntry->Size); in XmsRealloc()
372 RtlClearBits(&AllocBitmap, BlockNumber, HandleEntry->Size); in XmsFree()
375 FreeBlocks += HandleEntry->Size; in XmsFree()
607 if (CopyData->SourceOffset >= HandleEntry->Size * XMS_BLOCK_SIZE) in XmsBopProcedure()
631 if (CopyData->DestOffset >= HandleEntry->Size * XMS_BLOCK_SIZE) in XmsBopProcedure()
708 setDX(HandleEntry->Size); in XmsBopProcedure()
727 USHORT Size = getDX(); /* Size is in paragraphs */ in XmsBopProcedure() local
729 Result = UmaDescReserve(&Segment, &Size); in XmsBopProcedure()
733 setBL(Size > 0 ? XMS_STATUS_SMALLER_UMB : XMS_STATUS_OUT_OF_UMBS); in XmsBopProcedure()
735 setDX(Size); in XmsBopProcedure()
759 USHORT Size = getBX(); /* Size is in paragraphs */ in XmsBopProcedure() local
761 Result = UmaDescReallocate(Segment, &Size); in XmsBopProcedure()
764 if (Size > 0) in XmsBopProcedure()
767 setDX(Size); in XmsBopProcedure()