/device/google/contexthub/firmware/os/core/ |
D | seos.c | 338 …nline void osTaskHandle(struct Task *task, uint16_t evtType, uint16_t fromTid, const void* evtData) in osTaskHandle() argument 343 evtData); in osTaskHandle() 370 void *evtData = act->privateEvt.evtData; in osPrivateEvtFreeF() local 383 evtType & EVT_MASK, evtData); in osPrivateEvtFreeF() 389 ((EventFreeF)taggedPtrToPtr(evtFreeInfo))(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 418 ((EventFreeF)taggedPtrToPtr(evtFreeData))(evtData); in handleEventFreeing() 422 struct AppEventFreeData fd = {.evtType = EVENT_GET_EVENT(evtType), .evtData = evtData}; in handleEventFreeing() 1039 static void osInternalEvtHandle(uint32_t evtType, void *evtData) in osInternalEvtHandle() argument [all …]
|
D | hostIntf.c | 1177 static void onEvtAppStart(const void *evtData) in onEvtAppStart() argument 1204 static void onEvtAppToHost(const void *evtData) in onEvtAppToHost() argument 1206 const struct HostHubRawPacket *hostMsg = evtData; in onEvtAppToHost() 1215 memcpy(data->buffer, evtData, data->length); in onEvtAppToHost() 1220 static void onEvtAppToHostChre(const void *evtData) in onEvtAppToHostChre() argument 1222 const struct HostHubChrePacket *hostMsg = evtData; in onEvtAppToHostChre() 1231 memcpy(data->buffer, evtData, data->length); in onEvtAppToHostChre() 1244 static void onEvtAppFromHost(const void *evtData) in onEvtAppFromHost() argument 1246 const uint8_t *halMsg = evtData; in onEvtAppFromHost() 1251 static void onEvtAppFromHostChre(const void *evtData) in onEvtAppFromHostChre() argument [all …]
|
D | eventQ.c | 41 void* evtData; 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 120 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData); in evtQueueEnqueue() 135 rec->evtData = evtData; in evtQueueEnqueue() 168 if (match(rec->evtType, rec->evtData, context)) { in evtQueueRemoveAllMatching() 169 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData); in evtQueueRemoveAllMatching() 211 *evtDataP = rec->evtData; in evtQueueDequeue()
|
D | nanohub_chre.c | 179 …ChreFreeEvent(uint32_t tid, chreEventCompleteFunction *cbFreeEvt, uint32_t evtType, void * evtData) in osChreFreeEvent() argument 184 osTaskInvokeEventFreeCallback(chreTask, cbFreeEvt, evtType, evtData); in osChreFreeEvent() 188 static bool osChreSendEvent(uint16_t evtType, void *evtData, in osChreSendEvent() argument 199 osChreFreeEvent(osGetCurrentTid(), evtFreeCallback, evtType, evtData); in osChreSendEvent() 202 return osEnqueuePrivateEvtNew(evtType, evtData, evtFreeCallback, toTid); in osChreSendEvent() 482 void *evtData = va_arg(args, void *); 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 229 union SeosInternalSlabData *da = (union SeosInternalSlabData*)evtData; in timerEventMatch() 232 …pe != EVT_PRIVATE_EVT || !da || da->privateEvt.evtType != EVT_APP_TIMER || !da->privateEvt.evtData) in timerEventMatch() 235 evt = (struct TimerEvent *)da->privateEvt.evtData; in timerEventMatch()
|
D | osApi.c | 55 void *evtData = va_arg(args, void*); in osExpApiEvtqEnqueue() local 58 *retValP = osEnqueueEvtAsApp(evtType, evtData, tid ? true : false); in osExpApiEvtqEnqueue() 64 void *evtData = va_arg(args, void*); in osExpApiEvtqEnqueuePrivate() local 68 *retValP = osEnqueuePrivateEvtAsApp(evtType, evtData, toTid); in osExpApiEvtqEnqueuePrivate() 81 void *evtData = va_arg(args, void*); in osExpApiEvtqFreeRetained() local 84 osFreeRetainedEvent(evtType, evtData, evtFreeingInfoP); in osExpApiEvtqFreeRetained()
|
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() 308 evt->externalMarshallEvt.origEvtData = evtData; 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/os/inc/ |
D | seos.h | 54 void (*handle)(uint32_t evtType, const void* evtData); 126 void* evtData; member 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); 176 void osRemovePendingEvents(bool (*match)(uint32_t evtType, const void *evtData, void *context), voi… 291 void osFreeRetainedEvent(uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP);
|
D | syscallDo.h | 52 static inline bool eOsEnqueueEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeThisEven… in eOsEnqueueEvt() argument 54 …OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE), evtType, evtData, tidOfWhoWillFree… 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() 61 evtFreeF(evtData); in eOsEnqueueEvtOrFree() 65 static inline bool eOsEnqueuePrivateEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeT… in eOsEnqueuePrivateEvt() argument 67 … SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE_PRIVATE), evtType, evtData, tidOfWhoWillFree… in eOsEnqueuePrivateEvt() 75 static inline bool eOsFreeRetainedEvent(uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP) in eOsFreeRetainedEvent() argument 77 …N, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_FREE_RETAINED), evtType, evtData, evtFreeingInfoP); in eOsFreeRetainedEvent()
|
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…
|
D | seos_priv.h | 105 void *evtData; member 122 void osChreTaskHandle(struct Task *task, uint32_t evtType, const void *evtData);
|
/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 94 const struct MyTimer *t = (const struct MyTimer *)evtData; in nanoappHandleEvent() 109 const struct chreMessageFromHostData *msg = (const struct chreMessageFromHostData *)evtData; in nanoappHandleEvent() 120 const struct chreNanoappInfo *msg = (const struct chreNanoappInfo *)evtData; in nanoappHandleEvent() 130 const struct chreNanoappInfo *msg = (const struct chreNanoappInfo *)evtData; in nanoappHandleEvent()
|
/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 58 te = evtData; in handle_event() 70 aefd = evtData; in handle_event() 72 eOsHeapFree(aefd->evtData); 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 84 const struct MyTimer *t = (const struct MyTimer *)evtData; in nanoappHandleEvent() 99 const struct chreMessageFromHostData *msg = (const struct chreMessageFromHostData *)evtData; 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 97 const struct MyTimer *t = (const struct MyTimer *)evtData; in nanoappHandleEvent() 112 const struct chreMessageFromHostData *msg = (const struct chreMessageFromHostData *)evtData; in nanoappHandleEvent()
|
/device/google/contexthub/firmware/os/drivers/st_hts221/ |
D | hts221.c | 389 static int handleCommDoneEvt(const void* evtData) in handleCommDoneEvt() argument 394 struct I2cTransfer *xfer = (struct I2cTransfer *)evtData; in handleCommDoneEvt() 456 static void handleEvent(uint32_t evtType, const void* evtData) in handleEvent() argument 467 handleCommDoneEvt(evtData); in handleEvent()
|
/device/google/contexthub/firmware/os/drivers/si_si7034/ |
D | si7034a10.c | 358 static void handleI2cEvent(const void *evtData) in handleI2cEvent() argument 360 struct I2cTransfer *xfer = (struct I2cTransfer *)evtData; in handleI2cEvent() 422 static void handleEvent(uint32_t evtType, const void* evtData) in handleEvent() argument 431 handleI2cEvent(evtData); in handleEvent()
|
/device/google/contexthub/firmware/os/cpu/cortexm4/ |
D | appSupport.c | 208 …ndle(const struct AppHdr *app, struct PlatAppInfo *platInfo, uint32_t evtType, const void* evtData) in cpuAppHandle() argument 211 …nst void*)APP_FLASH_RELOC_BASE(app), app->vec.handle, platInfo->data, evtType, (uintptr_t)evtData); in cpuAppHandle() 213 APP_VEC(app)->handle(evtType, evtData); in cpuAppHandle()
|
/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 227 if (evtData == SENSOR_DATA_EVENT_FLUSH) in tiltDetectionHandleEvent() 260 if (algoUpdate((struct TripleAxisDataEvent *)evtData)) { in tiltDetectionHandleEvent()
|
/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 38 (void)evtData; in handle_event()
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 777 static void fusionHandleEvent(uint32_t evtType, const void* evtData) in fusionHandleEvent() argument 782 if (evtData == SENSOR_DATA_EVENT_FLUSH) in fusionHandleEvent() 801 ev = (struct TripleAxisDataEvent *)evtData; in fusionHandleEvent() 806 ev = (struct TripleAxisDataEvent *)evtData; in fusionHandleEvent() 811 ev = (struct TripleAxisDataEvent *)evtData; in fusionHandleEvent() 818 ev = (struct TripleAxisDataEvent *)evtData; in fusionHandleEvent()
|
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/ |
D | invensense_icm40600.c | 2924 static void handleSpiDoneEvt(const void* evtData) argument 2966 mSensor = (struct ICM40600Sensor *)evtData; 2971 mSensor = (struct ICM40600Sensor *)evtData; 3021 mSensor = (struct ICM40600Sensor *)evtData; 3026 mSensor = (struct ICM40600Sensor *)evtData; 3044 mSensor = (struct ICM40600Sensor *)evtData; 3075 static void processMagEvents(TASK, const struct TripleAxisDataEvent *evtData) argument 3077 const struct SensorFirstSample * const first = &evtData->samples[0].firstSample; 3079 uint64_t ts = evtData->referenceTime; 3083 sample = &evtData->samples[i]; [all …]
|
/device/google/contexthub/firmware/os/drivers/st_acc44/ |
D | st_acc44.c | 685 static int st_acc44_handleCommDoneEvt(const void* evtData) in st_acc44_handleCommDoneEvt() argument 688 struct I2cTransfer *xfer = (struct I2cTransfer *)evtData; in st_acc44_handleCommDoneEvt() 768 static void st_acc44_handleEvent(uint32_t evtType, const void* evtData) in st_acc44_handleEvent() argument 780 st_acc44_handleCommDoneEvt(evtData); in st_acc44_handleEvent()
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 518 static int handleCommDoneEvt(const void* evtData) in handleCommDoneEvt() argument 526 struct I2cTransfer *xfer = (struct I2cTransfer *)evtData; in handleCommDoneEvt() 637 static void handleEvent(uint32_t evtType, const void* evtData) in handleEvent() argument 650 handleCommDoneEvt(evtData); in handleEvent()
|
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 866 static void i2cBatchTxRx(void *evtData, int err); 3506 static void handleSpiDoneEvt(const void* evtData) argument 3555 mSensor = (struct BMI160Sensor *)evtData; 3566 mSensor = (struct BMI160Sensor *)evtData; 3591 mSensor = (struct BMI160Sensor *)evtData; 3603 mSensor = (struct BMI160Sensor *)evtData; 3619 mSensor = (struct BMI160Sensor *)evtData; 3706 static void i2cBatchTxRx(void *evtData, int err) argument 3724 …r = i2cMasterTxRx(BMI160_I2C_BUS_ID, BMI160_I2C_ADDR, txBuf, 1, rxBuf, size, i2cCallback, evtData); 3726 err = i2cMasterTx(BMI160_I2C_BUS_ID, BMI160_I2C_ADDR, txBuf, size, i2cCallback, evtData); [all …]
|