/device/google/contexthub/firmware/app/chre/common/ |
D | chre11_app_syscalls.c | 67 uint32_t chreTimerSet(uint64_t duration, const void* cookie, bool oneShot) in chreTimerSet() argument 71 return syscallDo4P(SYSCALL_CHRE_API(TIMER_SET), dur_lo, dur_hi, cookie, oneShot); in chreTimerSet() 194 …sLocationSessionStartAsync(uint32_t minIntervalMs, uint32_t minTimeToNextFixMs, const void *cookie) in chreGnssLocationSessionStartAsync() argument 196 …_CHRE_DRV_GNSS, SYSCALL_CHRE_DRV_GNSS_LOC_START_ASYNC), minIntervalMs, minTimeToNextFixMs, cookie); in chreGnssLocationSessionStartAsync() 199 bool chreGnssLocationSessionStopAsync(const void *cookie) in chreGnssLocationSessionStopAsync() argument 201 …_CHRE, SYSCALL_CHRE_DRIVERS, SYSCALL_CHRE_DRV_GNSS, SYSCALL_CHRE_DRV_GNSS_LOC_STOP_ASYNC), cookie); in chreGnssLocationSessionStopAsync() 204 bool chreGnssMeasurementSessionStartAsync(uint32_t minIntervalMs, const void *cookie) in chreGnssMeasurementSessionStartAsync() argument 206 …RE_DRIVERS, SYSCALL_CHRE_DRV_GNSS, SYSCALL_CHRE_DRV_GNSS_MEAS_START_ASYNC), minIntervalMs, cookie); in chreGnssMeasurementSessionStartAsync() 209 bool chreGnssMeasurementSessionStopAsync(const void *cookie) in chreGnssMeasurementSessionStopAsync() argument 211 …CHRE, SYSCALL_CHRE_DRIVERS, SYSCALL_CHRE_DRV_GNSS, SYSCALL_CHRE_DRV_GNSS_MEAS_STOP_ASYNC), cookie); in chreGnssMeasurementSessionStopAsync() [all …]
|
D | chre_app_syscalls.c | 67 uint32_t chreTimerSet(uint64_t duration, const void* cookie, bool oneShot) in chreTimerSet() argument 71 return syscallDo4P(SYSCALL_CHRE_API(TIMER_SET), dur_lo, dur_hi, cookie, oneShot); in chreTimerSet() 204 …sLocationSessionStartAsync(uint32_t minIntervalMs, uint32_t minTimeToNextFixMs, const void *cookie) in chreGnssLocationSessionStartAsync() argument 206 …_CHRE_DRV_GNSS, SYSCALL_CHRE_DRV_GNSS_LOC_START_ASYNC), minIntervalMs, minTimeToNextFixMs, cookie); in chreGnssLocationSessionStartAsync() 209 bool chreGnssLocationSessionStopAsync(const void *cookie) in chreGnssLocationSessionStopAsync() argument 211 …_CHRE, SYSCALL_CHRE_DRIVERS, SYSCALL_CHRE_DRV_GNSS, SYSCALL_CHRE_DRV_GNSS_LOC_STOP_ASYNC), cookie); in chreGnssLocationSessionStopAsync() 214 bool chreGnssMeasurementSessionStartAsync(uint32_t minIntervalMs, const void *cookie) in chreGnssMeasurementSessionStartAsync() argument 216 …RE_DRIVERS, SYSCALL_CHRE_DRV_GNSS, SYSCALL_CHRE_DRV_GNSS_MEAS_START_ASYNC), minIntervalMs, cookie); in chreGnssMeasurementSessionStartAsync() 219 bool chreGnssMeasurementSessionStopAsync(const void *cookie) in chreGnssMeasurementSessionStopAsync() argument 221 …CHRE, SYSCALL_CHRE_DRIVERS, SYSCALL_CHRE_DRV_GNSS, SYSCALL_CHRE_DRV_GNSS_MEAS_STOP_ASYNC), cookie); in chreGnssMeasurementSessionStopAsync() [all …]
|
/device/google/contexthub/firmware/lib/libc/ |
D | aeabi.cpp | 99 extern "C" void* __aeabi_vec_ctor_cookie_nodtor(array_cookie* cookie, 141 extern "C" void* __aeabi_vec_ctor_cookie_nodtor(array_cookie* cookie, in __aeabi_vec_ctor_cookie_nodtor() argument 145 if (cookie == nullptr) { in __aeabi_vec_ctor_cookie_nodtor() 148 cookie->element_size = element_size; in __aeabi_vec_ctor_cookie_nodtor() 149 cookie->element_count = element_count; in __aeabi_vec_ctor_cookie_nodtor() 150 return __aeabi_vec_ctor_nocookie_nodtor(user_array_of(cookie), constructor, in __aeabi_vec_ctor_cookie_nodtor() 172 array_cookie* cookie = reinterpret_cast<array_cookie*>( in __aeabi_vec_new_cookie_noctor() local 175 cookie->element_size = element_size; in __aeabi_vec_new_cookie_noctor() 176 cookie->element_count = element_count; in __aeabi_vec_new_cookie_noctor() 177 return user_array_of(cookie); in __aeabi_vec_new_cookie_noctor() [all …]
|
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 182 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err); 253 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 255 struct I2cTransfer *xfer = cookie; in i2cCallback() 261 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.id); in i2cCallback() 266 static void baroTimerCallback(uint32_t timerId, void *cookie) in baroTimerCallback() argument 268 osEnqueuePrivateEvt(EVT_SENSOR_BARO_TIMER, cookie, NULL, mTask.id); in baroTimerCallback() 271 static void tempTimerCallback(uint32_t timerId, void *cookie) in tempTimerCallback() argument 273 osEnqueuePrivateEvt(EVT_SENSOR_TEMP_TIMER, cookie, NULL, mTask.id); in tempTimerCallback() 276 static void softresetCallback(uint32_t timerId, void *cookie) in softresetCallback() argument 278 osEnqueuePrivateEvt(EVT_SENSOR_SOFTRESET_TIMER, cookie, NULL, mTask.id); in softresetCallback() [all …]
|
/device/google/contexthub/firmware/os/inc/ |
D | i2c.h | 28 typedef void (*I2cCallbackF)(void *cookie, size_t tx, size_t rx, int err); 33 void *rxBuf, size_t rxSize, I2cCallbackF callback, void *cookie); 35 const void *txBuf, size_t txSize, I2cCallbackF callback, void *cookie) in i2cMasterTx() argument 37 return i2cMasterTxRx(busId, addr, txBuf, txSize, NULL, 0, callback, cookie);} in i2cMasterTx() 39 void *rxBuf, size_t rxSize, I2cCallbackF callback, void *cookie) in i2cMasterRx() argument 41 return i2cMasterTxRx(busId, addr, NULL, 0, rxBuf, rxSize, callback, cookie); in i2cMasterRx() 48 I2cCallbackF callback, void *cookie); 50 I2cCallbackF callback, void *cookie); 52 I2cCallbackF callback, void *cookie);
|
D | syscallDo.h | 107 static inline uint32_t eOsSensorRegister(const struct SensorInfo *si, uint32_t tid, void *cookie, b… in eOsSensorRegister() argument 109 …L_OS_MAIN, SYSCALL_OS_MAIN_SENSOR, SYSCALL_OS_MAIN_SENSOR_REG), si, tid, cookie, (int)initComplete… in eOsSensorRegister() 177 …t(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, void* cookie, bool oneShot) in eOsTimTimerSet() argument 182 …SCALL_OS_MAIN_TIME_SET_TIMER), lengthLo, lengthHi, jitterPpm, driftPpm, tid, cookie, (int)oneShot); in eOsTimTimerSet() 279 … addr, const void *txBuf, size_t txSize, void *rxBuf, size_t rxSize, uint32_t cbkTid, void *cookie) in eOsI2cMasterTxRx() argument 281 …_I2C_MASTER, SYSCALL_OS_DRV_I2CM_TXRX), busId, addr, txBuf, txSize, rxBuf, rxSize, cbkTid, cookie); in eOsI2cMasterTxRx() 294 …void eOsI2cSlaveEnableRx(uint32_t busId, void *rxBuf, size_t rxSize, uint32_t cbkTid, void *cookie) in eOsI2cSlaveEnableRx() argument 296 …IVERS, SYSCALL_OS_DRV_I2C_SLAVE, SYSCALL_OS_DRV_I2CS_RX_EN), busId, rxBuf, rxSize, cbkTid, cookie); in eOsI2cSlaveEnableRx() 299 static inline int eOsI2cSlaveTxPreamble(uint32_t busId, uint8_t byte, uint32_t cbkTid, void *cookie) in eOsI2cSlaveTxPreamble() argument 301 …LL_OS_DRIVERS, SYSCALL_OS_DRV_I2C_SLAVE, SYSCALL_OS_DRV_I2CS_TX_PRE), busId, byte, cbkTid, cookie); in eOsI2cSlaveTxPreamble() [all …]
|
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/ |
D | st_lsm6dsm.c | 1174 static bool lsm6dsm_setAccelPower(bool on, void *cookie); 1175 static bool lsm6dsm_setGyroPower(bool on, void *cookie); 1176 static bool lsm6dsm_setStepDetectorPower(bool on, void *cookie); 1177 static bool lsm6dsm_setStepCounterPower(bool on, void *cookie); 1178 static bool lsm6dsm_setSignMotionPower(bool on, void *cookie); 1179 static bool lsm6dsm_accelFirmwareUpload(void *cookie); 1180 static bool lsm6dsm_gyroFirmwareUpload(void *cookie); 1181 static bool lsm6dsm_stepDetectorFirmwareUpload(void *cookie); 1182 static bool lsm6dsm_stepCounterFirmwareUpload(void *cookie); 1183 static bool lsm6dsm_signMotionFirmwareUpload(void *cookie); [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | osApi.c | 113 void *cookie = va_arg(args, void *); in osExpApiSensorReg() local 116 *retValP = (uintptr_t)sensorRegisterAsApp(si, 0, cookie, initComplete); in osExpApiSensorReg() 215 void *cookie = va_arg(args, void *); in osExpApiTimSetTimer() local 219 *retValP = timTimerSetAsApp(length, jitterPpm, driftPpm, 0, cookie, oneshot); in osExpApiTimSetTimer() 286 static union OsApiSlabItem* osExpApiI2cCbkInfoAlloc(void *cookie) in osExpApiI2cCbkInfoAlloc() argument 292 thing->i2cAppCbkInfo.cookie = cookie; in osExpApiI2cCbkInfoAlloc() 303 static void osExpApiI2cInternalCbk(void *cookie, size_t tx, size_t rx, int err) in osExpApiI2cInternalCbk() argument 305 union OsApiSlabItem *thing = (union OsApiSlabItem*)cookie; in osExpApiI2cInternalCbk() 309 cookie = thing->i2cAppCbkInfo.cookie; in osExpApiI2cInternalCbk() 312 thing->i2cAppCbkEvt.cookie = cookie; in osExpApiI2cInternalCbk() [all …]
|
D | spi.c | 157 void *cookie = state->rxTxCookie; in spiMasterDone() local 160 callback(cookie, err); in spiMasterDone() 215 void *cookie = state->finishCookie; in spiSlaveCsInactive() local 220 callback(cookie, 0); in spiSlaveCsInactive() 248 void *cookie = state->rxTxCookie; in spiSlaveIdle() local 254 callback(cookie, err); in spiSlaveIdle() 275 SpiCbkF callback, void *cookie) in spiSetupRxTx() argument 281 state->rxTxCookie = cookie; in spiSetupRxTx() 319 void *cookie) in spiMasterRxTx() argument 327 ret = spiSetupRxTx(state, packets, n, callback, cookie); in spiMasterRxTx() [all …]
|
D | nanohubCommand.c | 329 static void deferredUpdateOs(void *cookie) in deferredUpdateOs() argument 331 const struct AppHdr *app = cookie; in deferredUpdateOs() 504 static void firmwareErase(void *cookie) in firmwareErase() argument 537 static void firmwareWrite(void *cookie) in firmwareWrite() argument 541 struct FirmwareWriteCookie *resp = cookie; in firmwareWrite() 543 bool checkCrc = !cookie; in firmwareWrite() 562 osDefer(firmwareWrite, cookie, false); in firmwareWrite() 592 static uint32_t doFirmwareChunk(uint8_t *data, uint32_t offset, uint32_t len, void *cookie) in doFirmwareChunk() argument 619 if (!cookie) in doFirmwareChunk() 625 osDefer(firmwareWrite, cookie, false); in doFirmwareChunk() [all …]
|
D | hostIntfI2c.c | 25 static void hostIntfI2cPreambleCallback(void *cookie, size_t tx, size_t rx, int err) in hostIntfI2cPreambleCallback() argument 29 static void hostIntfI2cRxCallback(void *cookie, size_t tx, size_t rx, int err) in hostIntfI2cRxCallback() argument 31 HostIntfCommCallbackF callback = cookie; in hostIntfI2cRxCallback() 37 static void hostIntfI2cTxCallback(void *cookie, size_t tx, size_t rx, int err) in hostIntfI2cTxCallback() argument 39 HostIntfCommCallbackF callback = cookie; in hostIntfI2cTxCallback()
|
/device/google/contexthub/firmware/os/platform/stm32/ |
D | i2c.c | 144 void *cookie; member 225 void *cookie; member 360 state->rx.callback(state->rx.cookie, tx, rx, err); in stmI2cInvokeRxCallback() 367 state->tx.callback(state->tx.cookie, tx, rx, err); in stmI2cInvokeTxCallback() 531 state->tx.cookie = xfer->cookie; in stmI2cMasterTxRxDone() 536 state->rx.cookie = NULL; in stmI2cMasterTxRxDone() 548 static void stmI2cMasterDmaTxDone(void *cookie, uint16_t bytesLeft, int err) in stmI2cMasterDmaTxDone() argument 550 struct StmI2cDev *pdev = cookie; in stmI2cMasterDmaTxDone() 571 static void stmI2cMasterDmaRxDone(void *cookie, uint16_t bytesLeft, int err) in stmI2cMasterDmaRxDone() argument 573 struct StmI2cDev *pdev = cookie; in stmI2cMasterDmaRxDone() [all …]
|
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 217 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 219 struct I2cTransfer *xfer = cookie; in i2cCallback() 225 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback() 264 static void alsTimerCallback(uint32_t timerId, void *cookie) in alsTimerCallback() argument 266 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback() 269 static void proxTimerCallback(uint32_t timerId, void *cookie) in proxTimerCallback() argument 271 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, cookie, NULL, mData.tid); in proxTimerCallback() 321 static bool sensorPowerAls(bool on, void *cookie) in sensorPowerAls() argument 338 static bool sensorFirmwareAls(void *cookie) in sensorFirmwareAls() argument 344 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument [all …]
|
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 299 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 301 struct I2cTransfer *xfer = cookie; in i2cCallback() 307 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.tid); in i2cCallback() 312 static void alsTimerCallback(uint32_t timerId, void *cookie) in alsTimerCallback() argument 314 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mTask.tid); in alsTimerCallback() 427 static bool sensorPowerAls(bool on, void *cookie) in sensorPowerAls() argument 445 static bool sensorFirmwareAls(void *cookie) in sensorFirmwareAls() argument 450 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument 460 static bool sensorFlushAls(void *cookie) in sensorFlushAls() argument 465 static bool sendLastSampleAls(void *cookie, uint32_t tid) { in sendLastSampleAls() argument [all …]
|
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 277 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err); 369 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 371 struct AlsProxTransfer *xfer = cookie; in i2cCallback() 377 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.tid); in i2cCallback() 382 static void alsTimerCallback(uint32_t timerId, void *cookie) in alsTimerCallback() argument 384 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mTask.tid); in alsTimerCallback() 477 static bool sensorPowerAls(bool on, void *cookie) in sensorPowerAls() argument 500 static bool sensorFirmwareAls(void *cookie) in sensorFirmwareAls() argument 505 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument 515 static bool sensorFlushAls(void *cookie) in sensorFlushAls() argument [all …]
|
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/ |
D | isl29034.c | 169 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 171 struct I2cTransfer *xfer = cookie; in i2cCallback() 177 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback() 216 static void alsTimerCallback(uint32_t timerId, void *cookie) in alsTimerCallback() argument 218 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback() 229 static bool sensorPowerAls(bool on, void *cookie) in sensorPowerAls() argument 249 static bool sensorFirmwareAls(void *cookie) in sensorFirmwareAls() argument 255 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument 271 static bool sensorFlushAls(void *cookie) in sensorFlushAls() argument 276 static bool sendLastSampleAls(void *cookie, uint32_t tid) in sendLastSampleAls() argument
|
/device/google/contexthub/firmware/os/drivers/si_si7034/ |
D | si7034a10.c | 164 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 166 struct I2cTransfer *xfer = cookie; in i2cCallback() 172 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.tid); in i2cCallback() 262 static bool humiPower(bool on, void *cookie) in humiPower() argument 276 static bool humiFwUpload(void *cookie) in humiFwUpload() argument 284 static bool humiSetRate(uint32_t rate, uint64_t latency, void *cookie) in humiSetRate() argument 298 static bool humiFlush(void *cookie) in humiFlush() argument 303 static bool tempPower(bool on, void *cookie) in tempPower() argument 317 static bool tempFwUpload(void *cookie) in tempFwUpload() argument 325 static bool tempSetRate(uint32_t rate, uint64_t latency, void *cookie) in tempSetRate() argument [all …]
|
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 742 static void chunkedReadSpiCallback(void *cookie, int error); 870 SpiCbkF callback, void *cookie, const char * src) argument 888 i2cBatchTxRx(cookie, 0); 895 if (spiMasterRxTx(T(spiDev), T(cs), T(packets), regCount, mode, callback, cookie) < 0) { 930 static void sensorSpiCallback(void *cookie, int err) argument 934 if (!osEnqueuePrivateEvt(EVT_SPI_DONE, cookie, NULL, mTask.tid)) 961 static bool accFirmwareUpload(void *cookie) argument 968 static bool gyrFirmwareUpload(void *cookie) argument 976 static bool magFirmwareUpload(void *cookie) argument 984 static bool stepFirmwareUpload(void *cookie) argument [all …]
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 235 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 237 struct I2cTransfer *xfer = cookie; in i2cCallback() 243 osEnqueuePrivateEvt(EVT_COMM_DONE, cookie, NULL, mTask.tid); in i2cCallback() 351 static bool baroPower(bool on, void *cookie) in baroPower() argument 384 static bool baroFwUpload(void *cookie) in baroFwUpload() argument 389 static bool baroSetRate(uint32_t rate, uint64_t latency, void *cookie) in baroSetRate() argument 403 static bool baroFlush(void *cookie) in baroFlush() argument 408 static bool baroCalibrate(void *cookie) in baroCalibrate() argument 427 static bool baroCfgData(void *data, void *cookie) in baroCfgData() argument 448 static bool tempPower(bool on, void *cookie) in tempPower() argument [all …]
|
/device/google/contexthub/firmware/os/drivers/hall/ |
D | hall.c | 64 static void debounceTimerCallback(uint32_t timerId, void *cookie) in debounceTimerCallback() argument 67 bool prevPinState = (bool)cookie; in debounceTimerCallback() 136 static bool hallPower(bool on, void *cookie) in hallPower() argument 157 static bool hallFirmwareUpload(void *cookie) in hallFirmwareUpload() argument 162 static bool hallSetRate(uint32_t rate, uint64_t latency, void *cookie) in hallSetRate() argument 176 static bool hallFlush(void *cookie) in hallFlush() argument 181 static bool hallSendLastSample(void *cookie, uint32_t tid) in hallSendLastSample() argument
|
/device/google/contexthub/firmware/os/drivers/hall_twopole/ |
D | hall_twopole.c | 84 static void debounceTimerCallback(uint32_t timerId, void *cookie) in debounceTimerCallback() argument 86 int32_t prevPinState = (int32_t)cookie; in debounceTimerCallback() 153 static bool hallPower(bool on, void *cookie) in hallPower() argument 178 static bool hallFirmwareUpload(void *cookie) in hallFirmwareUpload() argument 183 static bool hallSetRate(uint32_t rate, uint64_t latency, void *cookie) in hallSetRate() argument 192 static bool hallFlush(void *cookie) in hallFlush() argument 197 static bool hallSendLastSample(void *cookie, uint32_t tid) in hallSendLastSample() argument
|
/device/google/trout/hal/vehicle/2.0/ |
D | DefaultVehicleHalServer.cpp | 146 int32_t cookie = v.int32Values[1]; in handleGenerateFakeDataRequest() local 147 getGenerator()->registerGenerator(cookie, in handleGenerateFakeDataRequest() 157 int32_t cookie = std::hash<std::string>()(v.stringValue); in handleGenerateFakeDataRequest() local 158 getGenerator()->registerGenerator(cookie, in handleGenerateFakeDataRequest() 168 int32_t cookie = v.int32Values[1]; in handleGenerateFakeDataRequest() local 169 getGenerator()->unregisterGenerator(cookie); in handleGenerateFakeDataRequest() 178 int32_t cookie = std::hash<std::string>()(v.stringValue); in handleGenerateFakeDataRequest() local 179 getGenerator()->unregisterGenerator(cookie); in handleGenerateFakeDataRequest()
|
/device/google/contexthub/firmware/os/drivers/leds/ |
D | leds_lp3943.c | 112 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 114 struct I2cTransfer *xfer = cookie; in i2cCallback() 120 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.id); in i2cCallback() 190 static bool sensorLP3943Power(bool on, void *cookie) in sensorLP3943Power() argument 200 static bool sensorLP3943FwUpload(void *cookie) in sensorLP3943FwUpload() argument 205 static bool sensorLP3943SetRate(uint32_t rate, uint64_t latency, void *cookie) in sensorLP3943SetRate() argument 216 static bool sensorCfgDataLedsLP3943(void *cfg, void *cookie) in sensorCfgDataLedsLP3943() argument
|
/device/google/contexthub/firmware/os/drivers/synaptics_s3708/ |
D | synaptics_s3708.c | 187 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 189 struct I2cTransfer *xfer = cookie; in i2cCallback() 195 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.id); in i2cCallback() 205 static void retryTimerCallback(uint32_t timerId, void *cookie) in retryTimerCallback() argument 207 osEnqueuePrivateEvt(EVT_SENSOR_RETRY_TIMER, cookie, NULL, mTask.id); in retryTimerCallback() 360 static bool callbackPower(bool on, void *cookie) in callbackPower() argument 398 static bool callbackFirmwareUpload(void *cookie) in callbackFirmwareUpload() argument 403 static bool callbackSetRate(uint32_t rate, uint64_t latency, void *cookie) in callbackSetRate() argument 408 static bool callbackFlush(void *cookie) in callbackFlush() argument
|
/device/google/contexthub/firmware/os/platform/native/ |
D | i2c.c | 41 I2cCallbackF callback, void *cookie) in i2cMasterTxRx() argument 57 I2cCallbackF callback, void *cookie) in i2cSlaveEnableRx() argument 62 int i2cSlaveTxPreamble(I2cBus busId, uint8_t byte, I2cCallbackF callback, void *cookie) in i2cSlaveTxPreamble() argument 67 …cSlaveTxPacket(I2cBus busId, const void *txBuf, size_t txSize, I2cCallbackF callback, void *cookie) in i2cSlaveTxPacket() argument
|