Lines Matching refs:hdr
173 .hdr = { in doSendToDevice()
184 return rwrite(mFd, &msg, len + sizeof(msg.hdr)); in doSendToDevice()
261 if (ret < (int)sizeof(msg.raw.hdr)) { in runDeviceRx()
266 uint32_t len = msg.raw.hdr.len; in runDeviceRx()
274 if (ret == (int)(sizeof(msg.raw.hdr) + len)) { in runDeviceRx()
277 hub_app_name_t app_name = { .id = msg.raw.hdr.appId }; in runDeviceRx()
279 … dumpBuffer("(RAW) DEV -> APP", app_name, msg.raw.hdr.eventId, 0, &msg.raw.data[0], len); in runDeviceRx()
281 …doSendToApp(HubMessage(&app_name, msg.raw.hdr.eventId, ENDPOINT_BROADCAST, &msg.raw.data[0], len)); in runDeviceRx()
284 } else if (ret == (int)(sizeof(msg.chre.hdr) + len)) { in runDeviceRx()
287 hub_app_name_t app_name = { .id = msg.chre.hdr.appId }; in runDeviceRx()
289 …dumpBuffer("(CHRE) DEV -> APP", app_name, msg.chre.hdr.appEventId, msg.chre.hdr.endpoint, &msg.chr… in runDeviceRx()
291 …doSendToApp(HubMessage(&app_name, msg.chre.hdr.appEventId, msg.chre.hdr.endpoint, &msg.chre.data[0… in runDeviceRx()
294 …GE("Expected (%zu|%zu) bytes, read %d bytes", sizeof(msg.raw.hdr) + len, sizeof(msg.chre.hdr) + le… in runDeviceRx()