Home
last modified time | relevance | path

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

/drivers/hdf_core/framework/support/platform/src/can/
Dcan_mail.c61 struct PlatformMsg *pmsg = NULL; in CanRxBoxAddMsg() local
73 pmsg = (struct PlatformMsg *)OsalMemCalloc(sizeof(*pmsg)); in CanRxBoxAddMsg()
74 if (pmsg == NULL) { in CanRxBoxAddMsg()
77 pmsg->data = cmsg; in CanRxBoxAddMsg()
79 ret = PlatformQueueAddMsg(rbox->queue, pmsg); in CanRxBoxAddMsg()
81 OsalMemFree(pmsg); in CanRxBoxAddMsg()
90 struct PlatformMsg *pmsg = NULL; in CanRxBoxGetMsg() local
96 ret = PlatformQueueGetMsg(rbox->queue, &pmsg, tms); in CanRxBoxGetMsg()
102 *cmsg = (struct CanMsg *)pmsg->data; in CanRxBoxGetMsg()
103 OsalMemFree(pmsg); in CanRxBoxGetMsg()