/device/google/contexthub/firmware/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 | spi.h | 29 typedef void (*SpiCbkF)(void *cookie, int err); 78 void *cookie); 87 SpiCbkF callback, void *cookie); 90 void *cookie);
|
D | syscallDo.h | 160 static inline uint32_t eOsSensorRegister(const struct SensorInfo *si, uint32_t tid, void *cookie, b… in eOsSensorRegister() argument 162 …L_OS_MAIN, SYSCALL_OS_MAIN_SENSOR, SYSCALL_OS_MAIN_SENSOR_REG), si, tid, cookie, (int)initComplete… in eOsSensorRegister() 218 …t(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, void* cookie, bool oneShot) in eOsTimTimerSet() argument 223 …SCALL_OS_MAIN_TIME_SET_TIMER), lengthLo, lengthHi, jitterPpm, driftPpm, tid, cookie, (int)oneShot); in eOsTimTimerSet() 306 … addr, const void *txBuf, size_t txSize, void *rxBuf, size_t rxSize, uint32_t cbkTid, void *cookie) in eOsI2cMasterTxRx() argument 308 …_I2C_MASTER, SYSCALL_OS_DRV_I2CM_TXRX), busId, addr, txBuf, txSize, rxBuf, rxSize, cbkTid, cookie); in eOsI2cMasterTxRx() 321 …void eOsI2cSlaveEnableRx(uint32_t busId, void *rxBuf, size_t rxSize, uint32_t cbkTid, void *cookie) in eOsI2cSlaveEnableRx() argument 323 …IVERS, SYSCALL_OS_DRV_I2C_SLAVE, SYSCALL_OS_DRV_I2CS_RX_EN), busId, rxBuf, rxSize, cbkTid, cookie); in eOsI2cSlaveEnableRx() 326 static inline int eOsI2cSlaveTxPreamble(uint32_t busId, uint8_t byte, uint32_t cbkTid, void *cookie) in eOsI2cSlaveTxPreamble() argument 328 …LL_OS_DRIVERS, SYSCALL_OS_DRV_I2C_SLAVE, SYSCALL_OS_DRV_I2CS_TX_PRE), busId, byte, cbkTid, cookie); in eOsI2cSlaveTxPreamble() [all …]
|
D | osApi.h | 25 void *cookie; member 35 void *cookie; member
|
/device/google/contexthub/firmware/src/ |
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()
|
D | spi.c | 156 void *cookie = state->rxTxCookie; in spiMasterDone() local 158 callback(cookie, err); in spiMasterDone() 212 void *cookie = state->finishCookie; in spiSlaveCsInactive() local 216 callback(cookie, 0); in spiSlaveCsInactive() 243 void *cookie = state->rxTxCookie; in spiSlaveIdle() local 248 callback(cookie, err); in spiSlaveIdle() 268 SpiCbkF callback, void *cookie) in spiSetupRxTx() argument 274 state->rxTxCookie = cookie; in spiSetupRxTx() 311 void *cookie) in spiMasterRxTx() argument 319 ret = spiSetupRxTx(state, packets, n, callback, cookie); in spiMasterRxTx() [all …]
|
D | osApi.c | 110 void *cookie = va_arg(args, void *); in osExpApiSensorReg() local 113 *retValP = (uintptr_t)sensorRegisterAsApp(si, 0, cookie, initComplete); in osExpApiSensorReg() 199 void *cookie = va_arg(args, void *); in osExpApiTimSetTimer() local 203 *retValP = timTimerSetAsApp(length, jitterPpm, driftPpm, 0, cookie, oneshot); in osExpApiTimSetTimer() 258 static union OsApiSlabItem* osExpApiI2cCbkInfoAlloc(void *cookie) in osExpApiI2cCbkInfoAlloc() argument 264 thing->i2cAppCbkInfo.cookie = cookie; in osExpApiI2cCbkInfoAlloc() 275 static void osExpApiI2cInternalCbk(void *cookie, size_t tx, size_t rx, int err) in osExpApiI2cInternalCbk() argument 277 union OsApiSlabItem *thing = (union OsApiSlabItem*)cookie; in osExpApiI2cInternalCbk() 281 cookie = thing->i2cAppCbkInfo.cookie; in osExpApiI2cInternalCbk() 284 thing->i2cAppCbkEvt.cookie = cookie; in osExpApiI2cInternalCbk() [all …]
|
D | hostIntfSpi.c | 38 static void hostIntfSpiRxCallback(void *cookie, int err) in hostIntfSpiRxCallback() argument 41 HostIntfCommCallbackF callback = cookie; in hostIntfSpiRxCallback() 45 static void hostIntfSpiTxCallback(void *cookie, int err) in hostIntfSpiTxCallback() argument 47 HostIntfCommCallbackF callback = cookie; in hostIntfSpiTxCallback()
|
D | nanohubCommand.c | 309 static void deferredUpdateOs(void *cookie) in deferredUpdateOs() argument 311 const struct AppHdr *app = cookie; in deferredUpdateOs() 478 static void firmwareErase(void *cookie) in firmwareErase() argument 492 static void firmwareWrite(void *cookie) in firmwareWrite() argument 496 struct NanohubHalContUploadTx *resp = cookie; in firmwareWrite() 498 bool checkCrc = !cookie; in firmwareWrite() 517 osDefer(firmwareWrite, cookie, false); in firmwareWrite() 539 static uint32_t doFirmwareChunk(uint8_t *data, uint32_t offset, uint32_t len, void *cookie) in doFirmwareChunk() argument 563 if (!cookie) in doFirmwareChunk() 569 osDefer(firmwareWrite, cookie, false); in doFirmwareChunk() [all …]
|
/device/google/contexthub/firmware/src/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 145 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 148 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.id); in i2cCallback() 153 static void baroTimerCallback(uint32_t timerId, void *cookie) in baroTimerCallback() argument 155 osEnqueuePrivateEvt(EVT_SENSOR_BARO_TIMER, cookie, NULL, mTask.id); in baroTimerCallback() 158 static void tempTimerCallback(uint32_t timerId, void *cookie) in tempTimerCallback() argument 160 osEnqueuePrivateEvt(EVT_SENSOR_TEMP_TIMER, cookie, NULL, mTask.id); in tempTimerCallback() 163 static void setMode(bool on, void *cookie) in setMode() argument 168 cookie); in setMode() 191 static bool sensorPowerBaro(bool on, void *cookie) in sensorPowerBaro() argument 212 static bool sensorFirmwareBaro(void *cookie) in sensorFirmwareBaro() argument [all …]
|
/device/google/contexthub/firmware/src/platform/linux/ |
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
|
/device/google/contexthub/firmware/src/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 198 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 201 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback() 206 static void alsTimerCallback(uint32_t timerId, void *cookie) in alsTimerCallback() argument 208 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback() 211 static void proxTimerCallback(uint32_t timerId, void *cookie) in proxTimerCallback() argument 213 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, cookie, NULL, mData.tid); in proxTimerCallback() 247 static void setMode(bool alsOn, bool proxOn, void *cookie) in setMode() argument 256 &i2cCallback, cookie); in setMode() 259 static bool sensorPowerAls(bool on, void *cookie) in sensorPowerAls() argument 276 static bool sensorFirmwareAls(void *cookie) in sensorFirmwareAls() argument [all …]
|
/device/google/contexthub/firmware/src/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 272 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 275 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.tid); in i2cCallback() 280 static void alsTimerCallback(uint32_t timerId, void *cookie) in alsTimerCallback() argument 282 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mTask.tid); in alsTimerCallback() 313 static void setMode(bool alsOn, bool proxOn, void *cookie) in setMode() argument 324 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, cookie); in setMode() 327 static bool sensorPowerAls(bool on, void *cookie) in sensorPowerAls() argument 345 static bool sensorFirmwareAls(void *cookie) in sensorFirmwareAls() argument 350 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument 360 static bool sensorFlushAls(void *cookie) in sensorFlushAls() argument [all …]
|
/device/google/contexthub/firmware/src/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/src/platform/stm32f4xx/ |
D | i2c.c | 143 void *cookie; member 225 void *cookie; member 357 state->rx.callback(state->rx.cookie, tx, rx, err); in stmI2cInvokeRxCallback() 364 state->tx.callback(state->tx.cookie, tx, rx, err); in stmI2cInvokeTxCallback() 517 state->tx.cookie = xfer->cookie; in stmI2cMasterTxRxDone() 522 state->rx.cookie = NULL; in stmI2cMasterTxRxDone() 535 static void stmI2cMasterDmaTxDone(void *cookie, uint16_t bytesLeft, int err) in stmI2cMasterDmaTxDone() argument 537 struct StmI2cDev *pdev = cookie; in stmI2cMasterDmaTxDone() 556 static void stmI2cMasterDmaRxDone(void *cookie, uint16_t bytesLeft, int err) in stmI2cMasterDmaRxDone() argument 558 struct StmI2cDev *pdev = cookie; in stmI2cMasterDmaRxDone() [all …]
|
D | dma.c | 88 void *cookie; member 202 state->callback(state->cookie, regs->NDTR, EIO); in dmaIsrTeif() 215 state->callback(state->cookie, regs->NDTR, 0); in dmaIsrTcif() 239 const struct dmaMode *mode, DmaCallbackF callback, void *cookie) in dmaStart() argument 246 state->cookie = cookie; in dmaStart()
|
/device/google/contexthub/firmware/src/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 294 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument 297 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mTask.tid); in i2cCallback() 302 static void alsTimerCallback(uint32_t timerId, void *cookie) in alsTimerCallback() argument 304 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mTask.tid); in alsTimerCallback() 365 static void setMode(bool alsOn, bool proxOn, void *cookie) in setMode() argument 372 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mTask.txrxBuf, 2, &i2cCallback, cookie); in setMode() 375 static bool sensorPowerAls(bool on, void *cookie) in sensorPowerAls() argument 393 static bool sensorFirmwareAls(void *cookie) in sensorFirmwareAls() argument 398 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument 408 static bool sensorFlushAls(void *cookie) in sensorFlushAls() argument [all …]
|
/device/google/contexthub/firmware/src/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/contexthub/firmware/src/drivers/vsync/ |
D | vsync.c | 112 static bool vsyncPower(bool on, void *cookie) in vsyncPower() argument 129 static bool vsyncFirmwareUpload(void *cookie) in vsyncFirmwareUpload() argument 134 static bool vsyncSetRate(uint32_t rate, uint64_t latency, void *cookie) in vsyncSetRate() argument 140 static bool vsyncFlush(void *cookie) in vsyncFlush() argument
|
/device/google/contexthub/firmware/src/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 575 static void chunkedReadSpiCallback(void *cookie, int error); 677 SpiCbkF callback, void *cookie, const char * src) in spiBatchTxRx() argument 697 if (spiMasterRxTx(T(spiDev), T(cs), T(packets), regCount, mode, callback, cookie) < 0) { in spiBatchTxRx() 730 static void sensorSpiCallback(void *cookie, int err) in sensorSpiCallback() argument 733 osEnqueuePrivateEvt(EVT_SPI_DONE, cookie, NULL, mTask.tid); in sensorSpiCallback() 757 static bool accFirmwareUpload(void *cookie) in accFirmwareUpload() argument 764 static bool gyrFirmwareUpload(void *cookie) in gyrFirmwareUpload() argument 771 static bool magFirmwareUpload(void *cookie) in magFirmwareUpload() argument 778 static bool stepFirmwareUpload(void *cookie) in stepFirmwareUpload() argument 785 static bool doubleTapFirmwareUpload(void *cookie) in doubleTapFirmwareUpload() argument [all …]
|
/device/google/contexthub/contexthubhal/ |
D | nanohubhal.h | 94 int doSubscribeMessages(uint32_t hub_id, context_hub_callback *cbk, void *cookie); 120 static int subscribeMessages(uint32_t hub_id, context_hub_callback *cbk, void *cookie) { in subscribeMessages() argument 121 return hubInstance()->doSubscribeMessages(hub_id, cbk, cookie); in subscribeMessages()
|
/device/google/contexthub/firmware/inc/platform/stm32f4xx/ |
D | dma.h | 22 typedef void (*DmaCallbackF)(void *cookie, uint16_t bytesLeft, int err); 57 const struct dmaMode *mode, DmaCallbackF callback, void *cookie);
|
/device/google/contexthub/firmware/src/drivers/tilt_detection/ |
D | tilt_detection.c | 186 static bool tiltDetectionPower(bool on, void *cookie) in tiltDetectionPower() argument 203 static bool tiltDetectionSetRate(uint32_t rate, uint64_t latency, void *cookie) in tiltDetectionSetRate() argument 210 static bool tiltDetectionFirmwareUpload(void *cookie) in tiltDetectionFirmwareUpload() argument 217 static bool tiltDetectionFlush(void *cookie) in tiltDetectionFlush() argument
|
/device/moto/shamu/camera/QCamera/HAL/core/src/ |
D | QCameraHWI.cpp | 117 camera_jpeg_encode_cookie_t *cookie = in snapshot_jpeg_cb() local 119 if(cookie == NULL){ in snapshot_jpeg_cb() 123 QCameraHardwareInterface *pme = (QCameraHardwareInterface *)cookie->userdata; in snapshot_jpeg_cb() 130 for(int i = 0; i< cookie->src_frame->num_bufs; i++) { in snapshot_jpeg_cb() 131 if (cookie->src_frame->bufs[i]->p_mobicat_info) { in snapshot_jpeg_cb() 132 free(cookie->src_frame->bufs[i]->p_mobicat_info); in snapshot_jpeg_cb() 133 cookie->src_frame->bufs[i]->p_mobicat_info = NULL; in snapshot_jpeg_cb() 135 pme->mCameraHandle->ops->qbuf(cookie->src_frame->camera_handle, in snapshot_jpeg_cb() 136 cookie->src_frame->ch_id, in snapshot_jpeg_cb() 137 cookie->src_frame->bufs[i]); in snapshot_jpeg_cb() [all …]
|
/device/htc/flounder/audio/soundtrigger/ |
D | sound_trigger_hw.c | 310 void *cookie = stdev->recognition_cookie; in callback_thread_loop() local 317 callback(&event->common, cookie); in callback_thread_loop() 371 void *cookie, in stdev_load_sound_model() argument 398 stdev->sound_model_cookie = cookie; in stdev_load_sound_model() 448 void *cookie) in stdev_start_recognition() argument 479 stdev->recognition_cookie = cookie; in stdev_start_recognition()
|