Lines Matching refs:memRegion
104 static void expandMemoryRegion(MemoryRegion *memRegion, uint64_t size, in expandMemoryRegion() argument
106 memRegion->curPos += size; in expandMemoryRegion()
107 uint64_t newSize = memRegion->curPos - (memRegion->origin)().getValue(); in expandMemoryRegion()
108 uint64_t length = (memRegion->length)().getValue(); in expandMemoryRegion()
115 if (ctx->memRegion) in expandMemoryRegions()
116 expandMemoryRegion(ctx->memRegion, size, ctx->memRegion->name, in expandMemoryRegions()
119 if (ctx->lmaRegion && ctx->memRegion != ctx->lmaRegion) in expandMemoryRegions()
905 const bool sameMemRegion = ctx->memRegion == sec->memRegion; in assignOffsets()
908 ctx->memRegion = sec->memRegion; in assignOffsets()
912 if (ctx->memRegion) in assignOffsets()
913 dot = ctx->memRegion->curPos; in assignOffsets()
921 if (ctx->memRegion && ctx->memRegion->curPos < dot) in assignOffsets()
922 expandMemoryRegion(ctx->memRegion, dot - ctx->memRegion->curPos, in assignOffsets()
923 ctx->memRegion->name, sec->name); in assignOffsets()
1110 sec->memRegion = findMemoryRegion(sec); in adjustSectionsAfterSorting()