/device/google/contexthub/firmware/app/test1.app/ |
test_app1.c | 34 static void handle_event(uint32_t evtType, const void* evtData) 37 (void)evtType;
|
/device/google/contexthub/firmware/os/inc/ |
eventQ.h | 31 typedef void (*EvtQueueForciblyDiscardEvtCbkF)(uint32_t evtType, void *evtData, TaggedPtr evtFreeData); 37 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, TaggedPtr evtFreeData, bool atFront /* do not set this unless you know the repercussions. read: never set this in new code */); 39 void evtQueueRemoveAllMatching(struct EvtQueue* q, bool (*match)(uint32_t evtType, const void *data, void *context), void *context);
|
seos.h | 54 void (*handle)(uint32_t evtType, const void* evtData); 125 uint32_t evtType; 162 bool osEventSubscribe(uint32_t tid, uint32_t evtType); /* async */ 163 bool osEventUnsubscribe(uint32_t tid, uint32_t evtType); /* async */ 167 bool osEnqueuePrivateEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t toTid); 168 bool osEnqueuePrivateEvtAsApp(uint32_t evtType, void *evtData, uint32_t toTid); 169 bool osEnqueuePrivateEvtNew(uint16_t evtType, void *evtData, 173 bool osEnqueueEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF); 174 bool osEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF); 175 bool osEnqueueEvtAsApp(uint32_t evtType, void *evtData, bool freeData) [all...] |
syscallDo.h | 42 static inline bool eOsEventSubscribe(uint32_t tid, uint32_t evtType) 44 return syscallDo2P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_SUBCRIBE), tid, evtType); 47 static inline bool eOsEventUnsubscribe(uint32_t tid, uint32_t evtType) 49 return syscallDo2P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_UNSUBCRIBE), tid, evtType); 52 static inline bool eOsEnqueueEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeThisEvent) // tidOfWhoWillFreeThisEvent is likely your TID 54 return syscallDo3P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE), evtType, evtData, tidOfWhoWillFreeThisEvent); 57 static inline bool eOsEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t tidOfWhoWillFreeThisEvent) // tidOfWhoWillFreeThisEvent is likely your TID 59 bool success = eOsEnqueueEvt(evtType, evtData, tidOfWhoWillFreeThisEvent); 65 static inline bool eOsEnqueuePrivateEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeThisEvent, uint32_t toTid) 67 return syscallDo4P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE_PRIVATE), evtType, evtData, tidOfWhoWillFreeThisEvent, toTid) [all...] |
cpu.h | 43 void cpuAppHandle(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo, uint32_t evtType, const void* evtData);
|
seos_priv.h | 104 uint32_t evtType; 122 void osChreTaskHandle(struct Task *task, uint32_t evtType, const void *evtData);
|
chreApi.h | 117 void osChreFreeEvent(uint32_t tid, void (*free_info)(uint16_t, void *), uint32_t evtType, void * evtData);
|
hostIntf.h | 52 uint32_t evtType;
|
/device/google/contexthub/firmware/app/test0.app/ |
test_app0.c | 47 static void handle_event(uint32_t evtType, const void* evtData) 54 if (evtType == EVT_APP_START) { 57 } else if (evtType == EVT_APP_TIMER) { 69 } else if (evtType == EVT_APP_FREE_EVT_DATA) { 71 if (aefd->evtType == EVT_APP_TO_HOST)
|
/device/google/contexthub/firmware/os/core/ |
eventQ.c | 40 uint32_t evtType; 92 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData); 100 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, 118 if (!(rec->evtType & EVENT_TYPE_BIT_DISCARDABLE)) 120 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData); 134 rec->evtType = evtType; 159 bool (*match)(uint32_t evtType, const void *data, void *context), 168 if (match(rec->evtType, rec->evtData, context)) { 169 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData) [all...] |
seos.c | 338 static inline void osTaskHandle(struct Task *task, uint16_t evtType, uint16_t fromTid, const void* evtData) 342 EVENT_WITH_ORIGIN(evtType, osTaskIsChre(task) ? fromTid : 0), 369 uint32_t evtType = act->privateEvt.evtType; 375 osLog(LOG_ERROR, "ERROR: Failed to find task to free event: evtType=%08" PRIX32 "\n", evtType); 380 if (osTaskIsChre(srcTask) && (evtType >> 16) == EVT_PRIVATE_CLASS_CHRE) { 383 evtType & EVT_MASK, evtData); 394 struct AppEventFreeData fd = {.evtType = evtType, .evtData = evtData} [all...] |
timer.c | 226 static bool timerEventMatch(uint32_t evtType, const void *evtData, void *context) 232 if (evtType != EVT_PRIVATE_EVT || !da || da->privateEvt.evtType != EVT_APP_TIMER || !da->privateEvt.evtData)
|
osApi.c | 39 uint32_t evtType = va_arg(args, uint32_t); 41 *retValP = osEventSubscribe(0, evtType); 47 uint32_t evtType = va_arg(args, uint32_t); 49 *retValP = osEventUnsubscribe(0, evtType); 54 uint32_t evtType = va_arg(args, uint32_t); 58 *retValP = osEnqueueEvtAsApp(evtType, evtData, tid ? true : false); 63 uint32_t evtType = va_arg(args, uint32_t); 68 *retValP = osEnqueuePrivateEvtAsApp(evtType, evtData, toTid); 80 uint32_t evtType = va_arg(args, uint32_t); 84 osFreeRetainedEvent(evtType, evtData, evtFreeingInfoP) [all...] |
nanohub_chre.c | 179 void osChreFreeEvent(uint32_t tid, chreEventCompleteFunction *cbFreeEvt, uint32_t evtType, void * evtData) 184 osTaskInvokeEventFreeCallback(chreTask, cbFreeEvt, evtType, evtData); 188 static bool osChreSendEvent(uint16_t evtType, void *evtData, 196 * therefore, we have to enforce the evtType >= CHRE_EVENT_FIRST_USER_VALUE. 198 if (evtType < CHRE_EVENT_FIRST_USER_VALUE) { 199 osChreFreeEvent(osGetCurrentTid(), evtFreeCallback, evtType, evtData); 202 return osEnqueuePrivateEvtNew(evtType, evtData, evtFreeCallback, toTid); 481 uint16_t evtType = va_arg(args, uint32_t); // stored as 32-bit 485 *retValP = osChreSendEvent(evtType, evtData, freeCallback, toTid);
|
nanohubCommand.c | 108 static inline bool isSensorEvent(uint32_t evtType) 110 return evtType > EVT_NO_FIRST_SENSOR_EVENT && evtType <= EVT_NO_FIRST_SENSOR_EVENT + SENS_TYPE_LAST_USER; 521 uint32_t evtType; 580 if (resp->evtType == EVT_APP_TO_HOST) { 745 length = packet->length + sizeof(packet->evtType); 749 packet->evtType = htole32(EVT_APP_TO_HOST); 752 packet->evtType = htole32(EVT_RESET_REASON); 755 packet->evtType = htole32(EVT_APP_TO_SENSOR_HAL_DATA); 759 packet->evtType = htole32(HOST_EVT_DEBUG_LOG) [all...] |
/device/google/contexthub/firmware/app/chre/chre_test0.app/ |
main.c | 73 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) 75 switch (evtType) {
|
/device/google/contexthub/firmware/app/chre/chre_test1.app/ |
main.cpp | 84 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) 88 switch (evtType) {
|
/device/google/contexthub/firmware/app/chre/chre_test2.app/ |
main.cpp | 62 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) 64 switch (evtType) {
|
/device/google/contexthub/firmware/os/cpu/cortexm4/ |
appSupport.c | 208 void cpuAppHandle(const struct AppHdr *app, struct PlatAppInfo *platInfo, uint32_t evtType, const void* evtData) 211 (void)callWithR9((const void*)APP_FLASH_RELOC_BASE(app), app->vec.handle, platInfo->data, evtType, (uintptr_t)evtData); 213 APP_VEC(app)->handle(evtType, evtData);
|
/device/google/contexthub/sensorhal/ |
hubconnection.h | 137 uint32_t evtType; 148 uint32_t evtType; 216 uint32_t evtType;
|
/system/chre/build/app_support/qcom_nanohub/ |
app_support.cc | 52 void (*handle)(uint32_t evtType, const void *evtData);
|
/device/google/contexthub/firmware/os/drivers/leds/ |
leds_gpio.c | 147 static void handleEvent(uint32_t evtType, const void *evtData) 149 switch (evtType) {
|
leds_lp3943.c | 308 static void handleEvent(uint32_t evtType, const void* evtData) 310 switch (evtType) {
|
/device/google/contexthub/firmware/os/drivers/tilt_detection/ |
tilt_detection.c | 225 static void tiltDetectionHandleEvent(uint32_t evtType, const void* evtData) 230 switch (evtType) {
|
/device/google/contexthub/util/nanoapp_cmd/ |
nanoapp_cmd.c | 68 uint32_t evtType; 493 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; 501 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; 534 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; 547 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT;
|