Home
last modified time | relevance | path

Searched refs:evtType (Results 1 – 25 of 30) sorted by relevance

12

/device/google/contexthub/firmware/src/
Dseos.c117 uint32_t evtType; member
367 static inline void osTaskHandle(struct Task *task, uint32_t evtType, const void* evtData) in osTaskHandle() argument
370 cpuAppHandle(task->app, &task->platInfo, evtType, evtData); in osTaskHandle()
374 static void handleEventFreeing(uint32_t evtType, void *evtData, uintptr_t evtFreeData) // watch out… in handleEventFreeing() argument
383 struct AppEventFreeData fd = {.evtType = evtType, .evtData = evtData}; in handleEventFreeing()
930 static void osInternalEvtHandle(uint32_t evtType, void *evtData) in osInternalEvtHandle() argument
936 switch (evtType) { in osInternalEvtHandle()
948 if (evtType == EVT_UNSUBSCRIBE_TO_EVT && i != task->subbedEvtCount) in osInternalEvtHandle()
951 else if (evtType == EVT_SUBSCRIBE_TO_EVT && i == task->subbedEvtCount) { in osInternalEvtHandle()
986 osTaskHandle(task, da->privateEvt.evtType, da->privateEvt.evtData); in osInternalEvtHandle()
[all …]
DeventQ.c32 uint32_t evtType; member
74 q->forceDiscardCbk(t->evtType, t->evtData, t->evtFreeData); in evtQueueFree()
82 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, uintptr_t evtFreeData, bo… in evtQueueEnqueue() argument
96 while (rec && !(rec->evtType & EVENT_TYPE_BIT_DISCARDABLE)) in evtQueueEnqueue()
100 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData); in evtQueueEnqueue()
117 rec->evtType = evtType; in evtQueueEnqueue()
177 *evtTypeP = rec->evtType; in evtQueueDequeue()
DnanohubCommand.c103 static inline bool isSensorEvent(uint32_t evtType) in isSensorEvent() argument
105 …return evtType > EVT_NO_FIRST_SENSOR_EVENT && evtType <= EVT_NO_FIRST_SENSOR_EVENT + SENS_TYPE_LAS… in isSensorEvent()
699 length = packet->length + sizeof(packet->evtType); in fillBuffer()
703 packet->evtType = htole32(EVT_APP_TO_HOST); in fillBuffer()
706 packet->evtType = htole32(EVT_RESET_REASON); in fillBuffer()
710 packet->evtType = htole32(HOST_EVT_DEBUG_LOG); in fillBuffer()
714 packet->evtType = htole32(0x00000000); in fillBuffer()
718 packet->evtType = htole32(EVT_NO_FIRST_SENSOR_EVENT + packet->sensType); in fillBuffer()
726 …if ((!totLength || (isSensorEvent(firstPacket->evtType) && isSensorEvent(packet->evtType))) && tot… in fillBuffer()
729 … if (isSensorEvent(packet->evtType) && packet->firstSample.interrupt == NANOHUB_INT_WAKEUP) in fillBuffer()
[all …]
DosApi.c36 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqSubscribe() local
38 *retValP = osEventSubscribe(0, evtType); in osExpApiEvtqSubscribe()
44 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqUnsubscribe() local
46 *retValP = osEventUnsubscribe(0, evtType); in osExpApiEvtqUnsubscribe()
51 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqEnqueue() local
55 *retValP = osEnqueueEvtAsApp(evtType, evtData, 0); in osExpApiEvtqEnqueue()
60 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqEnqueuePrivate() local
65 *retValP = osEnqueuePrivateEvtAsApp(evtType, evtData, 0, toTid); in osExpApiEvtqEnqueuePrivate()
77 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqFreeRetained() local
81 osFreeRetainedEvent(evtType, evtData, evtFreeingInfoP); in osExpApiEvtqFreeRetained()
DhostIntf.c1033 …uint8_t size = sizeof(buffer->evtType) + sizeof(buffer->referenceTime) + sizeof(struct SensorFirst… in fakeFlush()
1044 static void hostIntfHandleEvent(uint32_t evtType, const void* evtData) in hostIntfHandleEvent() argument
1058 if (evtType == EVT_APP_START) { in hostIntfHandleEvent()
1078 } else if (evtType == EVT_APP_TO_HOST) { in hostIntfHandleEvent()
1090 } else if (evtType == EVT_APP_FROM_HOST) { in hostIntfHandleEvent()
1096 else if (evtType == EVT_DEBUG_LOG) { in hostIntfHandleEvent()
1104 else if (evtType == EVT_LATENCY_TIMER) { in hostIntfHandleEvent()
1115 } else if (evtType == EVT_NO_SENSOR_CONFIG_EVENT) { // config in hostIntfHandleEvent()
1194 …} else if (evtType > EVT_NO_FIRST_SENSOR_EVENT && evtType < EVT_NO_SENSOR_CONFIG_EVENT && mSensorL… in hostIntfHandleEvent()
1195 sensor = mActiveSensorTable + mSensorList[(evtType & 0xFF) - 1]; in hostIntfHandleEvent()
[all …]
Dsensors.c320 static bool sensorCallFuncMarshall(struct Sensor* s, uint32_t evtType, void *evtData, TaggedPtr *ev… in sensorCallFuncMarshall() argument
323 …INVOKE_AS_OWNER_AND_RETURN(LOCAL_APP_OPS(s)->sensorMarshallData, evtType, evtData, evtFreeingInfoP… in sensorCallFuncMarshall()
330 evt->externalMarshallEvt.origEvtType = evtType; in sensorCallFuncMarshall()
825 bool sensorMarshallEvent(uint32_t sensorHandle, uint32_t evtType, void *evtData, TaggedPtr *evtFree… in sensorMarshallEvent() argument
832 return sensorCallFuncMarshall(s, evtType, evtData, evtFreeingInfoP); in sensorMarshallEvent()
/device/google/contexthub/firmware/app/test0.app/
Dtest_app0.c47 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/inc/
Dseos.h49 void (*handle)(uint32_t evtType, const void* evtData);
124 uint32_t evtType; member
155 bool osEventSubscribe(uint32_t tid, uint32_t evtType); /* async */
156 bool osEventUnsubscribe(uint32_t tid, uint32_t evtType); /* async */
158 bool osEnqueuePrivateEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t toTid);
159 bool osEnqueuePrivateEvtAsApp(uint32_t evtType, void *evtData, uint32_t fromApp, uint32_t toTid);
161 bool osEnqueueEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF);
162 bool osEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF);
163 bool osEnqueueEvtAsApp(uint32_t evtType, void *evtData, uint32_t fromApp);
256 void osFreeRetainedEvent(uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP);
DsyscallDo.h95 static inline bool eOsEventSubscribe(uint32_t tid, uint32_t evtType) in eOsEventSubscribe() argument
97 …_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_SUBCRIBE), tid, evtType); in eOsEventSubscribe()
100 static inline bool eOsEventUnsubscribe(uint32_t tid, uint32_t evtType) in eOsEventUnsubscribe() argument
102 …OMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_UNSUBCRIBE), tid, evtType); in eOsEventUnsubscribe()
105 static inline bool eOsEnqueueEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeThisEven… in eOsEnqueueEvt() argument
107 … SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE), evtType, evtData, tidOfWh… in eOsEnqueueEvt()
110 static inline bool eOsEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32… in eOsEnqueueEvtOrFree() argument
112 bool success = eOsEnqueueEvt(evtType, evtData, tidOfWhoWillFreeThisEvent); in eOsEnqueueEvtOrFree()
118 static inline bool eOsEnqueuePrivateEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeT… in eOsEnqueuePrivateEvt() argument
120 …_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE_PRIVATE), evtType, evtData, tidOfWh… in eOsEnqueuePrivateEvt()
[all …]
DeventQ.h30 typedef void (*EvtQueueForciblyDiscardEvtCbkF)(uint32_t evtType, void *evtData, uintptr_t evtFreeDa…
36 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, uintptr_t evtFreeData, bo…
Dcpu.h43 void cpuAppHandle(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo, uint32_t evtType, cons…
DhostIntf.h51 uint32_t evtType; member
DnanohubPacket.h260 __le32 evtType; member
269 __le32 evtType; member
Dsensors.h269 bool sensorMarshallEvent(uint32_t sensorHandle, uint32_t evtType, void *evtData, TaggedPtr *evtFree…
/device/google/contexthub/firmware/app/test1.app/
Dtest_app1.c34 static void handle_event(uint32_t evtType, const void* evtData) in handle_event() argument
37 (void)evtType; in handle_event()
/device/google/contexthub/sensorhal/
Dhubconnection.h102 uint32_t evtType; member
113 uint32_t evtType; member
162 uint32_t evtType; member
/device/google/contexthub/firmware/src/cpu/cortexm4f/
DappSupport.c207 void cpuAppHandle(const struct AppHdr *app, struct PlatAppInfo *platInfo, uint32_t evtType, const v… in cpuAppHandle() argument
210 …((const void*)APP_FLASH_RELOC_BASE(app), app->vec.handle, platInfo->got, evtType, (uintptr_t)evtDa… in cpuAppHandle()
212 APP_VEC(app)->handle(evtType, evtData); in cpuAppHandle()
/device/google/contexthub/util/nanoapp_cmd/
Dnanoapp_cmd.c52 uint32_t evtType; member
344 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; in main()
356 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; in main()
369 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; in main()
/device/google/contexthub/firmware/src/drivers/tilt_detection/
Dtilt_detection.c223 static void tiltDetectionHandleEvent(uint32_t evtType, const void* evtData) in tiltDetectionHandleEvent() argument
228 switch (evtType) { in tiltDetectionHandleEvent()
/device/google/contexthub/firmware/src/drivers/vsync/
Dvsync.c154 static void handleEvent(uint32_t evtType, const void* evtData) in handleEvent() argument
/device/google/contexthub/firmware/src/drivers/ams_tmd2772/
Dams_tmd2772.c639 static void handle_event(uint32_t evtType, const void* evtData) in handle_event() argument
641 switch (evtType) { in handle_event()
668 if (evtType == EVT_SENSOR_ALS_TIMER) in handle_event()
/device/google/contexthub/firmware/src/drivers/orientation/
Dorientation.c697 uint32_t evtType = sensorGetMyEventType(mSi[mSensor->idx].sensorType); in fusionFlush() local
699 osEnqueueEvt(evtType, SENSOR_DATA_EVENT_FLUSH, NULL); in fusionFlush()
703 static void fusionHandleEvent(uint32_t evtType, const void* evtData) in fusionHandleEvent() argument
711 switch (evtType) { in fusionHandleEvent()
/device/google/contexthub/firmware/src/drivers/window_orientation/
Dwindow_orientation.c542 static void windowOrientationHandleEvent(uint32_t evtType, const void* evtData) in windowOrientationHandleEvent() argument
551 switch (evtType) { in windowOrientationHandleEvent()
/device/google/contexthub/firmware/src/drivers/hall/
Dhall.c203 static void handleEvent(uint32_t evtType, const void* evtData) in handleEvent() argument
/device/google/contexthub/firmware/src/drivers/bosch_bmp280/
Dbosch_bmp280.c495 static void handleEvent(uint32_t evtType, const void* evtData) in handleEvent() argument
497 switch (evtType) { in handleEvent()

12