Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/components/srtm/port/
Dsrtm_message_pool.c41 } srtm_message_buf_t; typedef
46 static srtm_message_buf_t srtmMsgs[SRTM_MESSAGE_POOL_SIZE / sizeof(srtm_message_buf_t)];
70 for (i = 0; i < sizeof(srtmMsgs) / sizeof(srtm_message_buf_t); i++) in SRTM_MessagePool_Alloc()
75 freeMsgCount = sizeof(srtmMsgs) / sizeof(srtm_message_buf_t); in SRTM_MessagePool_Alloc()
82 if (size > sizeof(srtm_message_buf_t)) in SRTM_MessagePool_Alloc()
119 srtm_message_buf_t *msgBuf; in SRTM_MessagePool_Free()
122 …void *)&srtmMsgs[0]) && (buf < (void *)(&srtmMsgs[sizeof(srtmMsgs) / sizeof(srtm_message_buf_t)]))) in SRTM_MessagePool_Free()
125 … assert(((uint32_t)(uint8_t *)(buf) - (uint32_t)&srtmMsgs[0]) % sizeof(srtm_message_buf_t) == 0U); in SRTM_MessagePool_Free()
126 msgBuf = (srtm_message_buf_t *)buf; in SRTM_MessagePool_Free()