Lines Matching defs:startOffset
268 int startOffset, nextOffset;
289 startOffset = pHdr->curOffset;
290 assert(((startOffset + HEADER_EXTRA) & (BLOCK_ALIGN-1)) == 0);
304 nextOffset = ((startOffset + HEADER_EXTRA*2 + size + (BLOCK_ALIGN-1))
306 LOGVV("--- old=%d size=%d new=%d", startOffset, size, nextOffset);
326 size = nextOffset - (startOffset + HEADER_EXTRA);
335 * Note that "startOffset" is not the last *allocated* byte, but rather
342 lastGoodOff = (startOffset-1) & ~(SYSTEM_PAGE_SIZE-1);
343 firstWriteOff = startOffset & ~(SYSTEM_PAGE_SIZE-1);
372 start, end, size, pHdr->mapAddr + startOffset + HEADER_EXTRA);
379 *(u4*)(pHdr->mapAddr + startOffset) = size | LENGTHFLAG_RW;
381 *(u4*)(pHdr->mapAddr + startOffset) = size;
389 return pHdr->mapAddr + startOffset + HEADER_EXTRA;