Home
last modified time | relevance | path

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

/kernel/liteos_m/testsuites/sample/kernel/mem/
DIt_los_mem.h70 #define OS_MEM_SLI 3 macro
76 #define OS_MEM_FREE_LIST_NUM (1 << OS_MEM_SLI)
81 …fine OS_MEM_FREE_LIST_COUNT (OS_MEM_SMALL_BUCKET_COUNT + (OS_MEM_LARGE_BUCKET_COUNT << OS_MEM_SLI))
/kernel/liteos_m/kernel/include/
Dlos_memory.h495 #define OS_MEM_SLI 3 macro
505 …ine OS_MEM_FREE_LIST_COUNT (OS_MEM_SMALL_BUCKET_COUNT + (OS_MEM_LARGE_BUCKET_COUNT << OS_MEM_SLI))
/kernel/liteos_a/kernel/base/mem/tlsf/
Dlos_memory.c69 #define OS_MEM_SLI 3 macro
75 #define OS_MEM_FREE_LIST_NUM (1 << OS_MEM_SLI)
80 …ine OS_MEM_FREE_LIST_COUNT (OS_MEM_SMALL_BUCKET_COUNT + (OS_MEM_LARGE_BUCKET_COUNT << OS_MEM_SLI))
116 return (((size << OS_MEM_SLI) >> fl) - OS_MEM_FREE_LIST_NUM); in OsMemSlGet()
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()
2013 …UINT32 val = 1 << (((index - OS_MEM_SMALL_BUCKET_COUNT) >> OS_MEM_SLI) + OS_MEM_LARGE_START_BUCKET… in LOS_MemFreeNodeShow()
2014 UINT32 offset = val >> OS_MEM_SLI; 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()
/kernel/liteos_m/kernel/src/mm/
Dlos_memory.c99 … UINT32 sl = (size << OS_MEM_SLI) >> (fl - OS_MEM_SMALL_BUCKET_COUNT + OS_MEM_LARGE_START_BUCKET); in OsMemSlGet()
100 return (sl - (1 << OS_MEM_SLI)); in OsMemSlGet()
661 return (OS_MEM_SMALL_BUCKET_COUNT + ((fl - OS_MEM_SMALL_BUCKET_COUNT) << OS_MEM_SLI) + sl);
705 … curIndex = ((fl - OS_MEM_SMALL_BUCKET_COUNT) << OS_MEM_SLI) + sl + OS_MEM_SMALL_BUCKET_COUNT;
2047 …UINT32 val = 1 << (((index - OS_MEM_SMALL_BUCKET_COUNT) >> OS_MEM_SLI) + OS_MEM_LARGE_START_BUCKET…
2048 UINT32 offset = val >> OS_MEM_SLI;
2050 (offset * ((index - OS_MEM_SMALL_BUCKET_COUNT) % (1 << OS_MEM_SLI))) + val,
2051 … ((offset * (((index - OS_MEM_SMALL_BUCKET_COUNT) % (1 << OS_MEM_SLI)) + 1)) + val - 1),