Searched refs:evtType (Results 1 - 25 of 47) sorted by relevance

12

/device/google/contexthub/firmware/app/test1.app/
H A Dtest_app1.c34 static void handle_event(uint32_t evtType, const void* evtData) argument
37 (void)evtType;
/device/google/contexthub/firmware/os/inc/
H A DeventQ.h31 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);
H A Dseos.h54 void (*handle)(uint32_t evtType, const void* evtData);
125 uint32_t evtType; member in struct:AppEventFreeData
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, voi
[all...]
H A DsyscallDo.h42 static inline bool eOsEventSubscribe(uint32_t tid, uint32_t evtType) argument
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) argument
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 argument
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 argument
59 bool success = eOsEnqueueEvt(evtType, evtData, tidOfWhoWillFreeThisEvent);
65 static inline bool eOsEnqueuePrivateEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeThisEvent, uint32_t toTid) argument
67 return syscallDo4P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE_PRIVATE), evtType, evtDat
75 eOsFreeRetainedEvent(uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP) argument
[all...]
H A Dcpu.h43 void cpuAppHandle(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo, uint32_t evtType, const void* evtData);
H A Dseos_priv.h104 uint32_t evtType; member in struct:SeosInternalSlabData::__anon292
122 void osChreTaskHandle(struct Task *task, uint32_t evtType, const void *evtData);
H A DchreApi.h117 void osChreFreeEvent(uint32_t tid, void (*free_info)(uint16_t, void *), uint32_t evtType, void * evtData);
H A DhostIntf.h52 uint32_t evtType; member in union:HostIntfDataBuffer::__anon273
/device/google/contexthub/firmware/app/test0.app/
H A Dtest_app0.c47 static void handle_event(uint32_t evtType, const void* evtData) argument
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/
H A DeventQ.c40 uint32_t evtType; member in struct:EvtRecord
92 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData);
100 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, argument
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, re
158 evtQueueRemoveAllMatching(struct EvtQueue* q, bool (*match)(uint32_t evtType, const void *data, void *context), void *context) argument
[all...]
H A Dseos.c338 static inline void osTaskHandle(struct Task *task, uint16_t evtType, uint16_t fromTid, const void* evtData) argument
342 EVENT_WITH_ORIGIN(evtType, osTaskIsChre(task) ? fromTid : 0),
369 uint32_t evtType = act->privateEvt.evtType; local
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,
401 handleEventFreeing(uint32_t evtType, void *evtData, TaggedPtr evtFreeData) argument
1039 osInternalEvtHandle(uint32_t evtType, void *evtData) argument
1149 osFreeRetainedEvent(uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP) argument
1177 uint32_t evtType, j; local
1267 osEventSubscribe(uint32_t tid, uint32_t evtType) argument
1273 osEventUnsubscribe(uint32_t tid, uint32_t evtType) argument
1306 uint32_t evtType = EVENT_WITH_ORIGIN(evt, osGetCurrentTid()); local
1319 osRemovePendingEvents(bool (match)uint32_t evtType, const void *evtData, void *context), void *context) argument
1324 osEnqueueEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF) argument
1329 osEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF) argument
1339 osEnqueueEvtAsApp(uint32_t evtType, void *evtData, bool freeData) argument
1364 osEnqueuePrivateEvtEx(uint32_t evtType, void *evtData, TaggedPtr evtFreeInfo, uint32_t toTid) argument
1389 osEnqueuePrivateEvtNew(uint16_t evtType, void *evtData, void (*evtFreeCallback)(uint16_t evtType, void *evtData), uint32_t toTid) argument
1395 osChreFreeEvent(osGetCurrentTid(), evtFreeCallback, evtType, evtData); local
1401 osEnqueuePrivateEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t toTid) argument
1406 osEnqueuePrivateEvtAsApp(uint32_t evtType, void *evtData, uint32_t toTid) argument
[all...]
H A Dtimer.c226 static bool timerEventMatch(uint32_t evtType, const void *evtData, void *context) argument
232 if (evtType != EVT_PRIVATE_EVT || !da || da->privateEvt.evtType != EVT_APP_TIMER || !da->privateEvt.evtData)
H A DosApi.c39 uint32_t evtType = va_arg(args, uint32_t); local
41 *retValP = osEventSubscribe(0, evtType);
47 uint32_t evtType = va_arg(args, uint32_t); local
49 *retValP = osEventUnsubscribe(0, evtType);
54 uint32_t evtType = va_arg(args, uint32_t); local
58 *retValP = osEnqueueEvtAsApp(evtType, evtData, tid ? true : false);
63 uint32_t evtType = va_arg(args, uint32_t); local
68 *retValP = osEnqueuePrivateEvtAsApp(evtType, evtData, toTid);
80 uint32_t evtType = va_arg(args, uint32_t); local
84 osFreeRetainedEvent(evtType, evtDat
[all...]
H A Dnanohub_chre.c179 void osChreFreeEvent(uint32_t tid, chreEventCompleteFunction *cbFreeEvt, uint32_t evtType, void * evtData) argument
184 osTaskInvokeEventFreeCallback(chreTask, cbFreeEvt, evtType, evtData);
188 static bool osChreSendEvent(uint16_t evtType, void *evtData, argument
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); local
202 return osEnqueuePrivateEvtNew(evtType, evtData, evtFreeCallback, toTid);
481 uint16_t evtType = va_arg(args, uint32_t); // stored as 32-bit local
485 *retValP = osChreSendEvent(evtType, evtData, freeCallback, toTid);
H A DnanohubCommand.c108 static inline bool isSensorEvent(uint32_t evtType) argument
110 return evtType > EVT_NO_FIRST_SENSOR_EVENT && evtType <= EVT_NO_FIRST_SENSOR_EVENT + SENS_TYPE_LAST_USER;
521 uint32_t evtType; member in struct:FirmwareWriteCookie
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
[all...]
H A DhostIntf.c1153 uint8_t size = sizeof(buffer->evtType) + sizeof(buffer->referenceTime) + sizeof(struct SensorFirstSample);
1482 static void onEvtSensorDataActive(struct ActiveSensor *sensor, uint32_t evtType, const void* evtData) argument
1518 osEventUnsubscribe(mHostIntfTid, evtType);
1524 static void onEvtSensorDataInactive(struct ActiveSensor *sensor, uint32_t evtType, const void* evtData) argument
1540 static void onEvtSensorData(uint32_t evtType, const void* evtData) argument
1542 if (evtType > EVT_NO_FIRST_SENSOR_EVENT && evtType < EVT_NO_SENSOR_CONFIG_EVENT) {
1543 struct ActiveSensor *sensor = getActiveSensorByType(evtType & 0xFF);
1546 onEvtSensorDataActive(sensor, evtType, evtData);
1548 onEvtSensorDataInactive(sensor, evtType, evtDat
1553 hostIntfHandleEvent(uint32_t evtType, const void* evtData) argument
[all...]
/device/google/contexthub/firmware/app/chre/chre_test0.app/
H A Dmain.c73 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) argument
75 switch (evtType) {
/device/google/contexthub/firmware/app/chre/chre_test1.app/
H A Dmain.cpp84 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) argument
88 switch (evtType) {
/device/google/contexthub/firmware/app/chre/chre_test2.app/
H A Dmain.cpp62 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) argument
64 switch (evtType) {
/device/google/contexthub/firmware/os/cpu/cortexm4/
H A DappSupport.c208 void cpuAppHandle(const struct AppHdr *app, struct PlatAppInfo *platInfo, uint32_t evtType, const void* evtData) argument
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/
H A Dhubconnection.h137 uint32_t evtType; member in struct:android::HubConnection::ConfigCmd
148 uint32_t evtType; member in struct:android::HubConnection::MsgCmd
216 uint32_t evtType; member in struct:android::HubConnection::nAxisEvent
/device/google/contexthub/firmware/os/drivers/leds/
H A Dleds_gpio.c147 static void handleEvent(uint32_t evtType, const void *evtData) argument
149 switch (evtType) {
H A Dleds_lp3943.c308 static void handleEvent(uint32_t evtType, const void* evtData) argument
310 switch (evtType) {
/device/google/contexthub/firmware/os/drivers/tilt_detection/
H A Dtilt_detection.c225 static void tiltDetectionHandleEvent(uint32_t evtType, const void* evtData) argument
230 switch (evtType) {
/device/google/contexthub/util/nanoapp_cmd/
H A Dnanoapp_cmd.c68 uint32_t evtType; member in struct:ConfigCmd
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;

Completed in 790 milliseconds

12