Lines Matching refs:Range
95 sizeof(Range), 0, NULL, NULL, NULL); in InitObject()
106 Range* range = new(fRangesObjectCache, 0) Range(fBase, size, in InitObject()
107 Range::RANGE_FREE); in InitObject()
124 Range* range = fRangeList.Head(); in FirstArea()
125 while (range != NULL && range->type != Range::RANGE_AREA) in FirstArea()
134 Range* range = static_cast<VMKernelArea*>(_area)->Range(); in NextArea()
137 } while (range != NULL && range->type != Range::RANGE_AREA); in NextArea()
165 Range* range = fRangeTree.FindClosest(address, true); in LookupArea()
166 if (range == NULL || range->type != Range::RANGE_AREA) in LookupArea()
178 Range* range = fRangeTree.FindClosest(address, less); in FindClosestArea()
179 while (range != NULL && range->type != Range::RANGE_AREA) in FindClosestArea()
202 Range* range; in InsertArea()
209 range->type = Range::RANGE_AREA; in InsertArea()
233 _FreeRange(area->Range(), allocationFlags); in RemoveArea()
244 Range* range = static_cast<VMKernelArea*>(area)->Range(); in CanResizeArea()
249 Range* nextRange = fRangeList.GetNext(range); in CanResizeArea()
250 if (nextRange == NULL || nextRange->type == Range::RANGE_AREA) in CanResizeArea()
253 if (nextRange->type == Range::RANGE_RESERVED in CanResizeArea()
272 Range* range = area->Range(); in ResizeArea()
277 Range* nextRange = fRangeList.GetNext(range); in ResizeArea()
280 if (nextRange != NULL && nextRange->type == Range::RANGE_FREE) { in ResizeArea()
289 nextRange = new(fRangesObjectCache, allocationFlags) Range( in ResizeArea()
291 Range::RANGE_FREE); in ResizeArea()
298 || (nextRange->type == Range::RANGE_RESERVED in ResizeArea()
314 if (nextRange->type == Range::RANGE_FREE) in ResizeArea()
318 if (nextRange->type == Range::RANGE_FREE) in ResizeArea()
340 Range* range = area->Range(); in ShrinkAreaHead()
348 Range* previousRange = fRangeList.GetPrevious(range); in ShrinkAreaHead()
351 if (previousRange != NULL && previousRange->type == Range::RANGE_FREE) { in ShrinkAreaHead()
361 previousRange = new(fRangesObjectCache, allocationFlags) Range( in ShrinkAreaHead()
362 range->base, sizeDiff, Range::RANGE_FREE); in ShrinkAreaHead()
401 Range* range; in ReserveAddressRange()
407 range->type = Range::RANGE_RESERVED; in ReserveAddressRange()
434 Range* range = fRangeTree.FindClosest(address, false); in UnreserveAddressRange()
439 Range* nextRange = fRangeList.GetNext(range); in UnreserveAddressRange()
440 while (nextRange != NULL && nextRange->type == Range::RANGE_FREE) in UnreserveAddressRange()
443 if (range->type == Range::RANGE_RESERVED) { in UnreserveAddressRange()
459 Range* range = fRangeList.Head(); in UnreserveAllAddressRanges()
464 Range* nextRange = fRangeList.GetNext(range); in UnreserveAllAddressRanges()
465 while (nextRange != NULL && nextRange->type == Range::RANGE_FREE) in UnreserveAllAddressRanges()
468 if (range->type == Range::RANGE_RESERVED) { in UnreserveAllAddressRanges()
488 Range* range = it.Next();) { in Dump()
491 case Range::RANGE_AREA: in Dump()
502 case Range::RANGE_RESERVED: in Dump()
509 case Range::RANGE_FREE: in Dump()
519 VMKernelAddressSpace::_FreeListInsertRange(Range* range, size_t size) in _FreeListInsertRange()
530 VMKernelAddressSpace::_FreeListRemoveRange(Range* range, size_t size) in _FreeListRemoveRange()
541 VMKernelAddressSpace::_InsertRange(Range* range) in _InsertRange()
547 Range* insertBeforeRange = fRangeTree.FindClosest(range->base, true); in _InsertRange()
557 if (range->type == Range::RANGE_FREE) in _InsertRange()
563 VMKernelAddressSpace::_RemoveRange(Range* range) in _RemoveRange()
574 if (range->type == Range::RANGE_FREE) in _RemoveRange()
583 Range*& _range) in _AllocateRange()
625 Range* range = _FindFreeRange(address, size, alignment, in _AllocateRange()
645 Range* leftOverRange = new(fRangesObjectCache, allocationFlags) in _AllocateRange()
646 Range(address + size, range->size - size, range); in _AllocateRange()
655 Range* leftOverRange = new(fRangesObjectCache, allocationFlags) Range( in _AllocateRange()
665 Range* leftOverRange1 = new(fRangesObjectCache, allocationFlags) Range( in _AllocateRange()
669 Range* leftOverRange2 = new(fRangesObjectCache, allocationFlags) Range( in _AllocateRange()
684 if (range->type == Range::RANGE_FREE) in _AllocateRange()
697 VMKernelAddressSpace::Range*
712 Range* range = fRangeTree.FindClosest(start, true); in _FindFreeRange()
714 if (range->type == Range::RANGE_FREE) { in _FindFreeRange()
747 Range* range = it.Next();) { in _FindFreeRange()
763 Range* range = fRangeTree.FindClosest(start, true); in _FindFreeRange()
765 if (range->type == Range::RANGE_RESERVED) { in _FindFreeRange()
789 Range* range = fRangeTree.FindClosest(start, true); in _FindFreeRange()
791 if (range == NULL || range->type == Range::RANGE_AREA in _FindFreeRange()
799 if (range->type != Range::RANGE_FREE && !allowReservedRange) in _FindFreeRange()
816 VMKernelAddressSpace::_FreeRange(Range* range, uint32 allocationFlags) in _FreeRange()
823 Range* previousRange = fRangeList.GetPrevious(range); in _FreeRange()
824 Range* nextRange = fRangeList.GetNext(range); in _FreeRange()
826 if (previousRange != NULL && previousRange->type == Range::RANGE_FREE) { in _FreeRange()
827 if (nextRange != NULL && nextRange->type == Range::RANGE_FREE) { in _FreeRange()
845 if (nextRange != NULL && nextRange->type == Range::RANGE_FREE) { in _FreeRange()
853 range->type = Range::RANGE_FREE; in _FreeRange()
872 Range* previousRange = NULL; in _CheckStructures()
873 int previousRangeType = Range::RANGE_AREA; in _CheckStructures()
879 Range* range = listIt.Next(); in _CheckStructures()
880 Range* treeRange = treeIt.Next(); in _CheckStructures()
910 if (range->type == Range::RANGE_FREE) { in _CheckStructures()
913 if (previousRangeType == Range::RANGE_FREE) { in _CheckStructures()
941 Range* range = it.Next();) { in _CheckStructures()
942 if (range->type != Range::RANGE_FREE) { in _CheckStructures()