Lines Matching refs:start

292 static BOOL DLOverlap(Cell* list, void* start, void* end)  in DLOverlap()  argument
298 if (RangeOverlap(cell, (char*) cell + cell->size, start, end)) in DLOverlap()
445 void* start = (void*) TRUNC(*rstart, ALIGNMENT); in OSAllocFixed() local
449 ASSERTMSG(start < end, OS_ERR_ALLOCFIXED_INVRANGE); in OSAllocFixed()
450 ASSERTMSG(RangeSubset(start, end, ArenaStart, ArenaEnd), in OSAllocFixed()
459 if (DLOverlap(hd->allocated, start, end)) in OSAllocFixed()
463 start, end); in OSAllocFixed()
488 if ((char*) cellEnd <= (char*) start) in OSAllocFixed()
493 if (InRange(cell, (char*) start - HEADERSIZE, end) && in OSAllocFixed()
494 InRange((char*) cellEnd, start, (char*) end + MINOBJSIZE)) in OSAllocFixed()
496 if ((char*) cell < (char*) start) in OSAllocFixed()
497 start = (void*) cell; in OSAllocFixed()
507 if (InRange(cell, (char*) start - HEADERSIZE, end)) in OSAllocFixed()
509 if ((char*) cell < (char*) start) in OSAllocFixed()
510 start = (void*) cell; in OSAllocFixed()
534 start, (char*) end + MINOBJSIZE)) in OSAllocFixed()
540 ASSERT(MINOBJSIZE <= (char*) start - (char*) cell); in OSAllocFixed()
541 hd->size -= (char*) cellEnd - (char*) start; in OSAllocFixed()
542 cell->size = (char*) start - (char*) cell; in OSAllocFixed()
558 cell->size = (char*) start - (char*) cell; in OSAllocFixed()
559 hd->size -= (char*) end - (char*) start; in OSAllocFixed()
565 ASSERT(OFFSET(start, ALIGNMENT) == 0); in OSAllocFixed()
567 ASSERT(start < end); in OSAllocFixed()
568 *rstart = start; in OSAllocFixed()
711 OSHeapHandle OSCreateHeap(void* start, void* end) in OSCreateHeap() argument
718 ASSERTMSG(start < end, OS_ERR_CREATEHEAP_INVRANGE); in OSCreateHeap()
719 start = (void*) ROUND(start, ALIGNMENT); in OSCreateHeap()
721 ASSERTMSG(start < end, OS_ERR_CREATEHEAP_INVRANGE); in OSCreateHeap()
722 ASSERTMSG(RangeSubset(start, end, ArenaStart, ArenaEnd), in OSCreateHeap()
724 ASSERTMSG(MINOBJSIZE <= (char*) end - (char*) start, in OSCreateHeap()
734 ASSERTMSG(!DLOverlap(HeapArray[heap].free, start, end), in OSCreateHeap()
736 ASSERTMSG(!DLOverlap(HeapArray[heap].allocated, start, end), in OSCreateHeap()
747 hd->size = (char*) end - (char*) start; in OSCreateHeap()
749 cell = (Cell*) start; in OSCreateHeap()
834 void OSAddToHeap(OSHeapHandle heap, void* start, void* end) in OSAddToHeap() argument
848 ASSERTMSG(start < end, OS_ERR_ADDTOHEAP_INVRANGE); in OSAddToHeap()
849 start = (void*) ROUND(start, ALIGNMENT); in OSAddToHeap()
851 ASSERTMSG(MINOBJSIZE <= (char*) end - (char*) start, in OSAddToHeap()
853 ASSERTMSG(RangeSubset(start, end, ArenaStart, ArenaEnd), in OSAddToHeap()
863 ASSERTMSG(!DLOverlap(HeapArray[i].free, start, end), in OSAddToHeap()
865 ASSERTMSG(!DLOverlap(HeapArray[i].allocated, start, end), in OSAddToHeap()
871 cell = (Cell*) start; in OSAddToHeap()
872 cell->size = (char*) end - (char*) start; in OSAddToHeap()