Lines Matching refs:start

311 static BOOL DLOverlap(Cell * list, void *start, void *end)  in DLOverlap()  argument
317 if (RangeOverlap(cell, (char *)cell + cell->size, start, end)) in DLOverlap()
501 void *start = (void *)TRUNC(*rstart, ALIGNMENT); in OS_AllocFixed() local
511 SDK_ASSERTMSG(start < end, OS_ERR_ALLOCFIXED_INVRANGE); in OS_AllocFixed()
512 …SDK_ASSERTMSG(RangeSubset(start, end, heapInfo->arenaStart, heapInfo->arenaEnd), OS_ERR_ALLOCFIXED… in OS_AllocFixed()
523 if (DLOverlap(hd->allocated, start, end)) in OS_AllocFixed()
526 OS_Printf("OS_AllocFixed: Warning - failed to allocate from %p to %p\n", start, end); in OS_AllocFixed()
555 if ((char *)cellEnd <= (char *)start) in OS_AllocFixed()
565 …if (InRange(cell, (char *)start - HEADERSIZE, end) && InRange((char *)cellEnd, start, (char *)end … in OS_AllocFixed()
567 if ((char *)cell < (char *)start) in OS_AllocFixed()
569 start = (void *)cell; in OS_AllocFixed()
582 if (InRange(cell, (char *)start - HEADERSIZE, end)) in OS_AllocFixed()
584 if ((char *)cell < (char *)start) in OS_AllocFixed()
586 start = (void *)cell; in OS_AllocFixed()
616 if (InRange((char *)cellEnd, start, (char *)end + MINOBJSIZE)) in OS_AllocFixed()
624 SDK_ASSERT(MINOBJSIZE <= (char *)start - (char *)cell); in OS_AllocFixed()
625 hd->size -= (char *)cellEnd - (char *)start; in OS_AllocFixed()
626 cell->size = (char *)start - (char *)cell; in OS_AllocFixed()
644 cell->size = (char *)start - (char *)cell; in OS_AllocFixed()
645 hd->size -= (char *)end - (char *)start; in OS_AllocFixed()
651 SDK_ASSERT(OFFSET(start, ALIGNMENT) == 0); in OS_AllocFixed()
653 SDK_ASSERT(start < end); in OS_AllocFixed()
654 *rstart = start; in OS_AllocFixed()
911 OSHeapHandle OS_CreateHeap(OSArenaId id, void *start, void *end) in OS_CreateHeap() argument
927 SDK_ASSERTMSG(start < end, OS_ERR_CREATEHEAP_INVRANGE); in OS_CreateHeap()
928 start = (void *)ROUND(start, ALIGNMENT); in OS_CreateHeap()
930 SDK_ASSERTMSG(start < end, OS_ERR_CREATEHEAP_INVRANGE); in OS_CreateHeap()
931 …SDK_ASSERTMSG(RangeSubset(start, end, heapInfo->arenaStart, heapInfo->arenaEnd), OS_ERR_CREATEHEAP… in OS_CreateHeap()
932 SDK_ASSERTMSG(MINOBJSIZE <= (char *)end - (char *)start, OS_ERR_CREATEHEAP_INSRANGE); in OS_CreateHeap()
943 … SDK_ASSERTMSG(!DLOverlap(heapInfo->heapArray[heap].free, start, end), OS_ERR_CREATEHEAP_INVRANGE); in OS_CreateHeap()
944 …SDK_ASSERTMSG(!DLOverlap(heapInfo->heapArray[heap].allocated, start, end), OS_ERR_CREATEHEAP_INVRA… in OS_CreateHeap()
954 hd->size = (char *)end - (char *)start; in OS_CreateHeap()
956 cell = (Cell *) start; in OS_CreateHeap()
1128 void OS_AddToHeap(OSArenaId id, OSHeapHandle heap, void *start, void *end) in OS_AddToHeap() argument
1149 SDK_ASSERTMSG(start < end, OS_ERR_ADDTOHEAP_INVRANGE); in OS_AddToHeap()
1151 start = (void *)ROUND(start, ALIGNMENT); in OS_AddToHeap()
1153 SDK_ASSERTMSG(MINOBJSIZE <= (char *)end - (char *)start, OS_ERR_ADDTOHEAP_INSRANGE); in OS_AddToHeap()
1157 …if ((u32)start != (u32)HW_MAIN_MEM_PARAMETER_BUF && (u32)end != (u32)(HW_MAIN_MEM_PARAMETER_BUF + … in OS_AddToHeap()
1160 …SDK_ASSERTMSG(RangeSubset(start, end, heapInfo->arenaStart, heapInfo->arenaEnd), OS_ERR_ADDTOHEAP_… in OS_AddToHeap()
1175 … SDK_ASSERTMSG(!DLOverlap(heapInfo->heapArray[i].free, start, end), OS_ERR_ADDTOHEAP_INVRANGE); in OS_AddToHeap()
1176 …SDK_ASSERTMSG(!DLOverlap(heapInfo->heapArray[i].allocated, start, end), OS_ERR_ADDTOHEAP_INVRANGE); in OS_AddToHeap()
1181 cell = (Cell *) start; in OS_AddToHeap()
1182 cell->size = (char *)end - (char *)start; in OS_AddToHeap()
1678 void OS_ClearHeap(OSArenaId id, OSHeapHandle heap, void *start, void *end) in OS_ClearHeap() argument
1692 SDK_ASSERTMSG(start < end, "invalid range"); in OS_ClearHeap()
1693 start = (void *)ROUND(start, ALIGNMENT); in OS_ClearHeap()
1695 SDK_ASSERTMSG(start < end, "invalid range"); in OS_ClearHeap()
1701 … SDK_ASSERTMSG(RangeSubset(start, end, heapInfo->arenaStart, heapInfo->arenaEnd), "invalid range"); in OS_ClearHeap()
1706 SDK_ASSERTMSG(MINOBJSIZE <= (char *)end - (char *)start, "too small range"); in OS_ClearHeap()
1716 hd->size = (char *)end - (char *)start; in OS_ClearHeap()
1718 cell = (Cell *) start; in OS_ClearHeap()