Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/core/
Dnanohub_chre.c210 struct HostHubChrePacket *hostMsg = NULL; in osChreSendMessageToHost() local
215 hostMsg = heapAlloc(sizeof(*hostMsg) + messageSize); in osChreSendMessageToHost()
216 if (!hostMsg) in osChreSendMessageToHost()
220 memcpy(hostMsg+1, message, messageSize); in osChreSendMessageToHost()
222 hostMsg->appId = osChreGetAppId(); in osChreSendMessageToHost()
223 hostMsg->messageSize = messageSize; in osChreSendMessageToHost()
224 hostMsg->messageType = messageType; in osChreSendMessageToHost()
225 hostMsg->hostEndpoint = hostEndpoint; in osChreSendMessageToHost()
226 result = osEnqueueEvtOrFree(EVT_APP_TO_HOST_CHRE, hostMsg, heapFree); in osChreSendMessageToHost()
DhostIntf.c1206 const struct HostHubRawPacket *hostMsg = evtData; in onEvtAppToHost() local
1208 if (hostMsg->dataLen <= HOST_HUB_RAW_PACKET_MAX_LEN) { in onEvtAppToHost()
1209 … struct HostIntfDataBuffer *data = alloca(sizeof(uint32_t) + sizeof(*hostMsg) + hostMsg->dataLen); in onEvtAppToHost()
1212 data->length = sizeof(*hostMsg) + hostMsg->dataLen; in onEvtAppToHost()
1222 const struct HostHubChrePacket *hostMsg = evtData; in onEvtAppToHostChre() local
1224 if (hostMsg->messageSize <= HOST_HUB_CHRE_PACKET_MAX_LEN) { in onEvtAppToHostChre()
1225 …struct HostIntfDataBuffer *data = alloca(sizeof(uint32_t) + sizeof(*hostMsg) + hostMsg->messageSiz… in onEvtAppToHostChre()
1228 data->length = sizeof(*hostMsg) + hostMsg->messageSize; in onEvtAppToHostChre()