Home
last modified time | relevance | path

Searched refs:nodeSize (Results 1 – 7 of 7) sorted by relevance

/kernel/uniproton/src/core/ipc/queue/
Dprt_queue_init.c55 OS_SEC_ALW_INLINE INLINE U32 OsQueueGetNodeSize(U16 nodeSize) in OsQueueGetNodeSize() argument
57 return ALIGN(nodeSize, OS_QUEUE_NODE_SIZE_ALIGN) + OS_QUEUE_NODE_HEAD_LEN; in OsQueueGetNodeSize()
60 OS_SEC_L4_TEXT U32 OsQueueCreatParaCheck(U16 nodeNum, U16 nodeSize, const U32 *queueId) in OsQueueCreatParaCheck() argument
66 if ((nodeNum == 0) || (nodeSize == 0)) { in OsQueueCreatParaCheck()
70 if (OsQueueGetNodeSize(nodeSize) > OS_MAX_U16) { in OsQueueCreatParaCheck()
81 U16 nodeSize = maxNodeSize; in OsQueueCreate() local
97 nodeSize = (U16)OsQueueGetNodeSize(nodeSize); in OsQueueCreate()
98 …eueCb->queue = (U8 *)OsMemAlloc(OS_MID_QUEUE, OS_MEM_DEFAULT_FSC_PT, (U32)nodeNum * (U32)nodeSize); in OsQueueCreate()
104 queueNode = (struct QueNode *)(uintptr_t)&queueCb->queue[index * nodeSize]; in OsQueueCreate()
109 queueCb->nodeSize = nodeSize; in OsQueueCreate()
Dprt_queue.c167 …eueNode = (struct QueNode *)(uintptr_t)&queueCb->queue[(queueCb->queueHead) * (queueCb->nodeSize)]; in PRT_QueueRead()
228 …eNode = (struct QueNode *)(uintptr_t)&queueCb->queue[((queueCb->queueTail) * (queueCb->nodeSize))]; in OsQueueCpData2Node()
241 …eNode = (struct QueNode *)(uintptr_t)&queueCb->queue[((queueCb->queueHead) * (queueCb->nodeSize))]; in OsQueueCpData2Node()
244 if (memcpy_s((void *)queueNode->buf, (queueCb->nodeSize - OS_QUEUE_NODE_HEAD_LEN), in OsQueueCpData2Node()
283 if (bufferSize > (queueCb->nodeSize - OS_QUEUE_NODE_HEAD_LEN)) { in PRT_QueueWrite()
Dprt_queue_minor.c80 queueNode = (struct QueNode *)(uintptr_t)&queueCb->queue[loop * (queueCb->nodeSize)]; in PRT_QueueGetNodeNum()
/kernel/uniproton/src/core/ipc/include/
Dprt_queue_external.h48 U16 nodeSize; member
/kernel/liteos_a/kernel/base/mem/tlsf/
Dlos_memory.c349 size_t nodeSize = OS_MEM_NODE_GET_SIZE(node->sizeAndFlag); in TryShrinkPool() local
351 if (nodeSize != totalSize) { in TryShrinkPool()
1348 …VOID OsMemReAllocSmaller(VOID *pool, UINT32 allocSize, struct OsMemNodeHead *node, UINT32 nodeSize) in OsMemReAllocSmaller() argument
1353 node->sizeAndFlag = nodeSize; in OsMemReAllocSmaller()
1354 if ((allocSize + OS_MEM_NODE_HEAD_SIZE + OS_MEM_MIN_ALLOC_SIZE) <= nodeSize) { in OsMemReAllocSmaller()
1358 poolInfo->info.curUsedSize -= nodeSize - allocSize; in OsMemReAllocSmaller()
1373 UINT32 nodeSize, struct OsMemNodeHead *nextNode) in OsMemMergeNodeForReAllocBigger() argument
1375 node->sizeAndFlag = nodeSize; in OsMemMergeNodeForReAllocBigger()
1390 OsMemWaterUsedRecord((struct OsMemPoolHead *)pool, node->sizeAndFlag - nodeSize); in OsMemMergeNodeForReAllocBigger()
1422 UINT32 nodeSize = OS_MEM_NODE_GET_SIZE(node->sizeAndFlag); in OsMemRealloc() local
[all …]
/kernel/liteos_m/kernel/src/mm/
Dlos_memory.c419 size_t nodeSize = OS_MEM_NODE_GET_SIZE(node->sizeAndFlag); local
421 if (nodeSize != totalSize) {
1398 …VOID OsMemReAllocSmaller(VOID *pool, UINT32 allocSize, struct OsMemNodeHead *node, UINT32 nodeSize) argument
1403 node->sizeAndFlag = nodeSize;
1404 if ((allocSize + OS_MEM_MIN_LEFT_SIZE) <= nodeSize) {
1407 poolInfo->info.curUsedSize -= nodeSize - allocSize;
1422 UINT32 nodeSize, struct OsMemNodeHead *nextNode) argument
1424 node->sizeAndFlag = nodeSize;
1439 …mWaterUsedRecord((struct OsMemPoolHead *)pool, OS_MEM_NODE_GET_SIZE(node->sizeAndFlag) - nodeSize);
1450 UINT32 nodeSize = OS_MEM_NODE_GET_SIZE(node->sizeAndFlag); local
[all …]
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0038_linux_drivers_mxc.patch78044 + gctUINT32 nodeSize = 0;
78054 + nodeSize = 1;
78058 + nodeSize = map[index] >> 8;
78066 + if (nodeSize > PageCount)
78068 + result = index + (nodeSize - PageCount);