/device/google/contexthub/firmware/os/core/ |
D | eventQ.c | 40 uint32_t evtType; member 92 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData); in evtQueueFree() 100 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, in evtQueueEnqueue() argument 118 if (!(rec->evtType & EVENT_TYPE_BIT_DISCARDABLE)) in evtQueueEnqueue() 120 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData); in evtQueueEnqueue() 134 rec->evtType = evtType; in evtQueueEnqueue() 159 bool (*match)(uint32_t evtType, const void *data, void *context), in evtQueueRemoveAllMatching() argument 168 if (match(rec->evtType, rec->evtData, context)) { in evtQueueRemoveAllMatching() 169 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData); in evtQueueRemoveAllMatching() 210 *evtTypeP = rec->evtType; in evtQueueDequeue()
|
D | seos.c | 338 static inline void osTaskHandle(struct Task *task, uint16_t evtType, uint16_t fromTid, const void* … in osTaskHandle() argument 342 EVENT_WITH_ORIGIN(evtType, osTaskIsChre(task) ? fromTid : 0), in osTaskHandle() 369 uint32_t evtType = act->privateEvt.evtType; in osPrivateEvtFreeF() local 375 … osLog(LOG_ERROR, "ERROR: Failed to find task to free event: evtType=%08" PRIX32 "\n", evtType); in osPrivateEvtFreeF() 380 if (osTaskIsChre(srcTask) && (evtType >> 16) == EVT_PRIVATE_CLASS_CHRE) { in osPrivateEvtFreeF() 383 evtType & EVT_MASK, evtData); in osPrivateEvtFreeF() 394 struct AppEventFreeData fd = {.evtType = evtType, .evtData = evtData}; in osPrivateEvtFreeF() 401 static void handleEventFreeing(uint32_t evtType, void *evtData, TaggedPtr evtFreeData) // watch out… in handleEventFreeing() argument 403 struct Task *srcTask = osTaskFindByTid(EVENT_GET_ORIGIN(evtType)); in handleEventFreeing() 406 … osLog(LOG_ERROR, "ERROR: Failed to find task to free event: evtType=%08" PRIX32 "\n", evtType); in handleEventFreeing() [all …]
|
D | osApi.c | 39 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqSubscribe() local 41 *retValP = osEventSubscribe(0, evtType); in osExpApiEvtqSubscribe() 47 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqUnsubscribe() local 49 *retValP = osEventUnsubscribe(0, evtType); in osExpApiEvtqUnsubscribe() 54 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqEnqueue() local 58 *retValP = osEnqueueEvtAsApp(evtType, evtData, tid ? true : false); in osExpApiEvtqEnqueue() 63 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqEnqueuePrivate() local 68 *retValP = osEnqueuePrivateEvtAsApp(evtType, evtData, toTid); in osExpApiEvtqEnqueuePrivate() 80 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqFreeRetained() local 84 osFreeRetainedEvent(evtType, evtData, evtFreeingInfoP); in osExpApiEvtqFreeRetained()
|
D | nanohub_chre.c | 179 void osChreFreeEvent(uint32_t tid, chreEventCompleteFunction *cbFreeEvt, uint32_t evtType, void * e… in osChreFreeEvent() argument 184 osTaskInvokeEventFreeCallback(chreTask, cbFreeEvt, evtType, evtData); in osChreFreeEvent() 188 static bool osChreSendEvent(uint16_t evtType, void *evtData, in osChreSendEvent() argument 198 if (evtType < CHRE_EVENT_FIRST_USER_VALUE) { in osChreSendEvent() 199 osChreFreeEvent(osGetCurrentTid(), evtFreeCallback, evtType, evtData); in osChreSendEvent() 202 return osEnqueuePrivateEvtNew(evtType, evtData, evtFreeCallback, toTid); in osChreSendEvent() 481 uint16_t evtType = va_arg(args, uint32_t); // stored as 32-bit in osChreEventSendEvent() local 485 *retValP = osChreSendEvent(evtType, evtData, freeCallback, toTid); in osChreEventSendEvent()
|
D | timer.c | 226 static bool timerEventMatch(uint32_t evtType, const void *evtData, void *context) in timerEventMatch() argument 232 …if (evtType != EVT_PRIVATE_EVT || !da || da->privateEvt.evtType != EVT_APP_TIMER || !da->privateEv… in timerEventMatch()
|
D | nanohubCommand.c | 108 static inline bool isSensorEvent(uint32_t evtType) in isSensorEvent() argument 110 …return evtType > EVT_NO_FIRST_SENSOR_EVENT && evtType <= EVT_NO_FIRST_SENSOR_EVENT + SENS_TYPE_LAS… in isSensorEvent() 521 uint32_t evtType; member 580 if (resp->evtType == EVT_APP_TO_HOST) { in firmwareWrite() 745 length = packet->length + sizeof(packet->evtType); in fillBuffer() 749 packet->evtType = htole32(EVT_APP_TO_HOST); in fillBuffer() 752 packet->evtType = htole32(EVT_RESET_REASON); in fillBuffer() 755 packet->evtType = htole32(EVT_APP_TO_SENSOR_HAL_DATA); in fillBuffer() 759 packet->evtType = htole32(HOST_EVT_DEBUG_LOG); in fillBuffer() 763 packet->evtType = htole32(0x00000000); in fillBuffer() [all …]
|
D | hostIntf.c | 1164 …uint8_t size = sizeof(buffer->evtType) + sizeof(buffer->referenceTime) + sizeof(struct SensorFirst… in fakeFlush() 1493 static void onEvtSensorDataActive(struct ActiveSensor *sensor, uint32_t evtType, const void* evtDat… in onEvtSensorDataActive() argument 1529 osEventUnsubscribe(mHostIntfTid, evtType); in onEvtSensorDataActive() 1535 static void onEvtSensorDataInactive(struct ActiveSensor *sensor, uint32_t evtType, const void* evtD… in onEvtSensorDataInactive() argument 1551 static void onEvtSensorData(uint32_t evtType, const void* evtData) in onEvtSensorData() argument 1553 if (evtType > EVT_NO_FIRST_SENSOR_EVENT && evtType < EVT_NO_SENSOR_CONFIG_EVENT) { in onEvtSensorData() 1554 struct ActiveSensor *sensor = getActiveSensorByType(evtType & 0xFF); in onEvtSensorData() 1557 onEvtSensorDataActive(sensor, evtType, evtData); in onEvtSensorData() 1559 onEvtSensorDataInactive(sensor, evtType, evtData); in onEvtSensorData() 1564 static void hostIntfHandleEvent(uint32_t evtType, const void* evtData) in hostIntfHandleEvent() argument [all …]
|
D | sensors.c | 297 static bool sensorCallFuncMarshall(struct Sensor* s, uint32_t evtType, void *evtData, TaggedPtr *ev… in sensorCallFuncMarshall() argument 300 …INVOKE_AS_OWNER_AND_RETURN(LOCAL_APP_OPS(s)->sensorMarshallData, evtType, evtData, evtFreeingInfoP… in sensorCallFuncMarshall() 307 evt->externalMarshallEvt.origEvtType = evtType; in sensorCallFuncMarshall() 858 bool sensorMarshallEvent(uint32_t sensorHandle, uint32_t evtType, void *evtData, TaggedPtr *evtFree… in sensorMarshallEvent() argument 865 return sensorCallFuncMarshall(s, evtType, evtData, evtFreeingInfoP); in sensorMarshallEvent()
|
/device/google/contexthub/firmware/app/test0.app/ |
D | test_app0.c | 47 static void handle_event(uint32_t evtType, const void* evtData) in handle_event() argument 54 if (evtType == EVT_APP_START) { in handle_event() 57 } else if (evtType == EVT_APP_TIMER) { in handle_event() 69 } else if (evtType == EVT_APP_FREE_EVT_DATA) { in handle_event() 71 if (aefd->evtType == EVT_APP_TO_HOST) in handle_event()
|
/device/google/contexthub/firmware/os/inc/ |
D | seos.h | 54 void (*handle)(uint32_t evtType, const void* evtData); 125 uint32_t evtType; member 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 …]
|
D | eventQ.h | 31 typedef void (*EvtQueueForciblyDiscardEvtCbkF)(uint32_t evtType, void *evtData, TaggedPtr evtFreeDa… 37 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, TaggedPtr evtFreeData, bo… 39 void evtQueueRemoveAllMatching(struct EvtQueue* q, bool (*match)(uint32_t evtType, const void *dat…
|
D | syscallDo.h | 42 static inline bool eOsEventSubscribe(uint32_t tid, uint32_t evtType) in eOsEventSubscribe() argument 44 …_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_SUBCRIBE), tid, evtType); in eOsEventSubscribe() 47 static inline bool eOsEventUnsubscribe(uint32_t tid, uint32_t evtType) in eOsEventUnsubscribe() argument 49 …OMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_UNSUBCRIBE), tid, evtType); in eOsEventUnsubscribe() 52 static inline bool eOsEnqueueEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeThisEven… in eOsEnqueueEvt() argument 54 … SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE), evtType, evtData, tidOfWh… in eOsEnqueueEvt() 57 static inline bool eOsEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32… in eOsEnqueueEvtOrFree() argument 59 bool success = eOsEnqueueEvt(evtType, evtData, tidOfWhoWillFreeThisEvent); in eOsEnqueueEvtOrFree() 65 static inline bool eOsEnqueuePrivateEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeT… in eOsEnqueuePrivateEvt() argument 67 …_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE_PRIVATE), evtType, evtData, tidOfWh… in eOsEnqueuePrivateEvt() [all …]
|
D | seos_priv.h | 104 uint32_t evtType; member 122 void osChreTaskHandle(struct Task *task, uint32_t evtType, const void *evtData);
|
D | cpu.h | 43 void cpuAppHandle(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo, uint32_t evtType, cons…
|
D | chreApi.h | 117 void osChreFreeEvent(uint32_t tid, void (*free_info)(uint16_t, void *), uint32_t evtType, void * ev…
|
D | hostIntf.h | 52 uint32_t evtType; member
|
/device/google/contexthub/firmware/app/test1.app/ |
D | test_app1.c | 34 static void handle_event(uint32_t evtType, const void* evtData) in handle_event() argument 37 (void)evtType; in handle_event()
|
/device/google/contexthub/firmware/app/chre/chre_test0.app/ |
D | main.c | 73 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) in nanoappHandleEvent() argument 75 switch (evtType) { in nanoappHandleEvent()
|
/device/google/contexthub/firmware/app/chre/chre_test1.app/ |
D | main.cpp | 84 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) in nanoappHandleEvent() argument 88 switch (evtType) { in nanoappHandleEvent()
|
/device/google/contexthub/firmware/os/cpu/cortexm4/ |
D | appSupport.c | 208 void cpuAppHandle(const struct AppHdr *app, struct PlatAppInfo *platInfo, uint32_t evtType, const v… in cpuAppHandle() argument 211 …(const void*)APP_FLASH_RELOC_BASE(app), app->vec.handle, platInfo->data, evtType, (uintptr_t)evtDa… in cpuAppHandle() 213 APP_VEC(app)->handle(evtType, evtData); in cpuAppHandle()
|
/device/google/contexthub/firmware/app/chre/chre_test2.app/ |
D | main.cpp | 62 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) in nanoappHandleEvent() argument 64 switch (evtType) { in nanoappHandleEvent()
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.h | 134 uint32_t evtType; member 145 uint32_t evtType; member 213 uint32_t evtType; member
|
/device/google/contexthub/firmware/os/drivers/leds/ |
D | leds_gpio.c | 147 static void handleEvent(uint32_t evtType, const void *evtData) in handleEvent() argument 149 switch (evtType) { in handleEvent()
|
/device/google/contexthub/util/nanoapp_cmd/ |
D | nanoapp_cmd.c | 68 uint32_t evtType; member 493 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; in main() 501 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; in main() 534 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; in main() 547 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; in main()
|
/device/google/contexthub/firmware/os/drivers/tilt_detection/ |
D | tilt_detection.c | 225 static void tiltDetectionHandleEvent(uint32_t evtType, const void* evtData) in tiltDetectionHandleEvent() argument 230 switch (evtType) { in tiltDetectionHandleEvent()
|