Home
last modified time | relevance | path

Searched refs:OS_MEM_SMALL_BUCKET_COUNT (Results 1 – 4 of 4) sorted by relevance

/kernel/liteos_m/kernel/include/
Dlos_memory.h497 #define OS_MEM_SMALL_BUCKET_COUNT 31 macro
505 #define OS_MEM_FREE_LIST_COUNT (OS_MEM_SMALL_BUCKET_COUNT + (OS_MEM_LARGE_BUCKET_COUNT << OS_MEM_S…
/kernel/liteos_m/testsuites/sample/kernel/mem/
DIt_los_mem.h72 #define OS_MEM_SMALL_BUCKET_COUNT 31 macro
81 #define OS_MEM_FREE_LIST_COUNT (OS_MEM_SMALL_BUCKET_COUNT + (OS_MEM_LARGE_BUCKET_COUNT << OS_MEM_SL…
/kernel/liteos_m/kernel/src/mm/
Dlos_memory.c88 return (OsMemLog2(size) - OS_MEM_LARGE_START_BUCKET + OS_MEM_SMALL_BUCKET_COUNT); in OsMemFlGet()
94 if ((fl < OS_MEM_SMALL_BUCKET_COUNT) || (size < OS_MEM_SMALL_BUCKET_MAX_SIZE)) { in OsMemSlGet()
99 … UINT32 sl = (size << OS_MEM_SLI) >> (fl - OS_MEM_SMALL_BUCKET_COUNT + OS_MEM_LARGE_START_BUCKET); in OsMemSlGet()
656 if (fl < OS_MEM_SMALL_BUCKET_COUNT) {
661 return (OS_MEM_SMALL_BUCKET_COUNT + ((fl - OS_MEM_SMALL_BUCKET_COUNT) << OS_MEM_SLI) + sl);
701 if (fl < OS_MEM_SMALL_BUCKET_COUNT) {
705 … curIndex = ((fl - OS_MEM_SMALL_BUCKET_COUNT) << OS_MEM_SLI) + sl + OS_MEM_SMALL_BUCKET_COUNT;
2044 if (index < OS_MEM_SMALL_BUCKET_COUNT) {
2047 …UINT32 val = 1 << (((index - OS_MEM_SMALL_BUCKET_COUNT) >> OS_MEM_SLI) + OS_MEM_LARGE_START_BUCKET…
2050 (offset * ((index - OS_MEM_SMALL_BUCKET_COUNT) % (1 << OS_MEM_SLI))) + val,
[all …]
/kernel/liteos_a/kernel/base/mem/tlsf/
Dlos_memory.c71 #define OS_MEM_SMALL_BUCKET_COUNT 31 macro
80 #define OS_MEM_FREE_LIST_COUNT (OS_MEM_SMALL_BUCKET_COUNT + (OS_MEM_LARGE_BUCKET_COUNT << OS_MEM_S…
635 return (OS_MEM_SMALL_BUCKET_COUNT + ((fl - OS_MEM_LARGE_START_BUCKET) << OS_MEM_SLI) + sl); in OsMemFreeListIndexGet()
681 … curIndex = ((fl - OS_MEM_LARGE_START_BUCKET) << OS_MEM_SLI) + sl + OS_MEM_SMALL_BUCKET_COUNT; in OsMemFindNextSuitableBlock()
2010 if (index < OS_MEM_SMALL_BUCKET_COUNT) { in LOS_MemFreeNodeShow()
2013 …UINT32 val = 1 << (((index - OS_MEM_SMALL_BUCKET_COUNT) >> OS_MEM_SLI) + OS_MEM_LARGE_START_BUCKET… in LOS_MemFreeNodeShow()
2016 (offset * ((index - OS_MEM_SMALL_BUCKET_COUNT) % (1 << OS_MEM_SLI))) + val, in LOS_MemFreeNodeShow()
2017 … ((offset * (((index - OS_MEM_SMALL_BUCKET_COUNT) % (1 << OS_MEM_SLI)) + 1)) + val - 1), in LOS_MemFreeNodeShow()