Lines Matching refs:chunkSize

287 	AllocateChunk(size_t chunkSize, MetaChunk* metaChunk, Chunk* chunk)  in AllocateChunk()  argument
290 fChunkSize(chunkSize), in AllocateChunk()
313 AllocateChunks(size_t chunkSize, uint32 chunkCount, MetaChunk* metaChunk, in AllocateChunks() argument
318 fChunkSize(chunkSize), in AllocateChunks()
539 size_t chunkSize = cache->slab_size; in Allocate() local
542 B_PRIuSIZE "\n", cache, flags, chunkSize); in Allocate()
549 status_t error = _AllocateChunks(chunkSize, 1, flags, metaChunk, chunk); in Allocate()
558 error = _MapChunk(area->vmArea, chunkAddress, chunkSize, 0, flags); in Allocate()
588 ASSERT(metaChunk->chunkSize > 0); in Free()
590 ASSERT(((addr_t)pages % metaChunk->chunkSize) == 0); in Free()
655 size_t chunkSize = SLAB_CHUNK_SIZE_SMALL; in AllocateRaw() local
659 chunkSize = SLAB_CHUNK_SIZE_MEDIUM; in AllocateRaw()
668 status_t error = _AllocateChunks(chunkSize, chunkCount, flags, metaChunk, in AllocateRaw()
741 ASSERT(metaChunk->chunkSize > 0); in FreeRawOrReturnCache()
762 uint32 chunkCount = size / metaChunk->chunkSize; in FreeRawOrReturnCache()
806 ASSERT(metaChunk->chunkSize > 0); in GetAllocationInfo()
837 ASSERT(metaChunk->chunkSize > 0); in CacheForAddress()
890 if (metaChunk->chunkSize == 0) in AnalyzeAllocationCallers()
936 if (metaChunk->chunkSize == 0) in DebugObjectCacheForAddress()
953 MemoryManager::_AllocateChunks(size_t chunkSize, uint32 chunkCount, in _AllocateChunks() argument
957 if (chunkSize == SLAB_CHUNK_SIZE_SMALL) { in _AllocateChunks()
959 } else if (chunkSize == SLAB_CHUNK_SIZE_MEDIUM) { in _AllocateChunks()
961 } else if (chunkSize != SLAB_CHUNK_SIZE_LARGE) { in _AllocateChunks()
963 B_PRIuSIZE, chunkSize); in _AllocateChunks()
967 if (_GetChunks(metaChunkList, chunkSize, chunkCount, _metaChunk, _chunk)) in _AllocateChunks()
974 return _GetChunks(metaChunkList, chunkSize, chunkCount, _metaChunk, in _AllocateChunks()
998 if (_GetChunks(metaChunkList, chunkSize, chunkCount, _metaChunk, in _AllocateChunks()
1025 if (_GetChunks(metaChunkList, chunkSize, chunkCount, _metaChunk, _chunk)) { in _AllocateChunks()
1031 return _GetChunks(metaChunkList, chunkSize, chunkCount, _metaChunk, in _AllocateChunks()
1037 MemoryManager::_GetChunks(MetaChunkList* metaChunkList, size_t chunkSize, in _GetChunks() argument
1042 return _GetChunk(metaChunkList, chunkSize, _metaChunk, _chunk); in _GetChunks()
1060 / chunkSize >= chunkCount) { in _GetChunks()
1071 _PrepareMetaChunk(metaChunk, chunkSize); in _GetChunks()
1111 T(AllocateChunks(chunkSize, chunkCount, metaChunk, firstChunk)); in _GetChunks()
1118 MemoryManager::_GetChunk(MetaChunkList* metaChunkList, size_t chunkSize, in _GetChunk() argument
1125 if (chunkSize == SLAB_CHUNK_SIZE_LARGE) { in _GetChunk()
1139 _PrepareMetaChunk(metaChunk, chunkSize); in _GetChunk()
1169 T(AllocateChunk(chunkSize, metaChunk, _chunk)); in _GetChunk()
1182 _UnmapChunk(area->vmArea, chunkAddress, metaChunk->chunkSize, flags); in _FreeChunk()
1199 if (metaChunk->chunkSize == SLAB_CHUNK_SIZE_SMALL) in _FreeChunk()
1201 else if (metaChunk->chunkSize == SLAB_CHUNK_SIZE_MEDIUM) in _FreeChunk()
1205 metaChunk->chunkSize = 0; in _FreeChunk()
1222 if (metaChunk->chunkSize == SLAB_CHUNK_SIZE_SMALL) in _FreeChunk()
1224 else if (metaChunk->chunkSize == SLAB_CHUNK_SIZE_MEDIUM) in _FreeChunk()
1258 MemoryManager::_PrepareMetaChunk(MetaChunk* metaChunk, size_t chunkSize) in _PrepareMetaChunk() argument
1265 chunkSize); in _PrepareMetaChunk()
1270 metaChunk->chunkSize = chunkSize; in _PrepareMetaChunk()
1271 metaChunk->chunkCount = metaChunk->totalSize / chunkSize; in _PrepareMetaChunk()
1372 metaChunk->chunkSize = 0; in _AllocateArea()
1577 if (metaChunk->chunkSize == 0) { in _UnmapFreeChunksEarly()
1592 metaChunk->chunkSize, 0); in _UnmapFreeChunksEarly()
1662 switch (metaChunk->chunkSize) { in _CheckMetaChunk()
1672 metaChunk, metaChunk->chunkSize); in _CheckMetaChunk()
1692 if (metaChunk->chunkCount != metaChunk->totalSize / metaChunk->chunkSize) { in _CheckMetaChunk()
1782 if (metaChunk->chunkSize == 0) in _DumpRawAllocations()
1830 if (metaChunk->chunkSize != 0) { in _DumpMetaChunk()
1831 switch (metaChunk->chunkSize) { in _DumpMetaChunk()
1847 if (metaChunk->chunkSize != 0) { in _DumpMetaChunk()
1854 if (metaChunk->chunkSize == 0 || !printChunks) in _DumpMetaChunk()
2007 if (metaChunk->chunkSize == 0) in _DumpAreas()
2010 switch (metaChunk->chunkSize) { in _DumpAreas()