Home
last modified time | relevance | path

Searched defs:cookie (Results 1 – 25 of 54) sorted by relevance

123

/device/google/contexthub/firmware/os/drivers/hall/
Dhall.c64 static void debounceTimerCallback(uint32_t timerId, void *cookie) in debounceTimerCallback()
136 static bool hallPower(bool on, void *cookie) in hallPower()
157 static bool hallFirmwareUpload(void *cookie) in hallFirmwareUpload()
162 static bool hallSetRate(uint32_t rate, uint64_t latency, void *cookie) in hallSetRate()
176 static bool hallFlush(void *cookie) in hallFlush()
181 static bool hallSendLastSample(void *cookie, uint32_t tid) in hallSendLastSample()
/device/google/contexthub/firmware/app/chre/common/
Dchre11_app_syscalls.c67 uint32_t chreTimerSet(uint64_t duration, const void* cookie, bool oneShot) in chreTimerSet()
194 …sLocationSessionStartAsync(uint32_t minIntervalMs, uint32_t minTimeToNextFixMs, const void *cookie) in chreGnssLocationSessionStartAsync()
199 bool chreGnssLocationSessionStopAsync(const void *cookie) in chreGnssLocationSessionStopAsync()
204 bool chreGnssMeasurementSessionStartAsync(uint32_t minIntervalMs, const void *cookie) in chreGnssMeasurementSessionStartAsync()
209 bool chreGnssMeasurementSessionStopAsync(const void *cookie) in chreGnssMeasurementSessionStopAsync()
219 bool chreWifiConfigureScanMonitorAsync(bool enable, const void *cookie) in chreWifiConfigureScanMonitorAsync()
224 bool chreWifiRequestScanAsync(const struct chreWifiScanParams *params, const void *cookie) in chreWifiRequestScanAsync()
234 bool chreWwanGetCellInfoAsync(const void *cookie) in chreWwanGetCellInfoAsync()
Dchre_app_syscalls.c67 uint32_t chreTimerSet(uint64_t duration, const void* cookie, bool oneShot) in chreTimerSet()
204 …sLocationSessionStartAsync(uint32_t minIntervalMs, uint32_t minTimeToNextFixMs, const void *cookie) in chreGnssLocationSessionStartAsync()
209 bool chreGnssLocationSessionStopAsync(const void *cookie) in chreGnssLocationSessionStopAsync()
214 bool chreGnssMeasurementSessionStartAsync(uint32_t minIntervalMs, const void *cookie) in chreGnssMeasurementSessionStartAsync()
219 bool chreGnssMeasurementSessionStopAsync(const void *cookie) in chreGnssMeasurementSessionStopAsync()
234 bool chreWifiConfigureScanMonitorAsync(bool enable, const void *cookie) in chreWifiConfigureScanMonitorAsync()
239 bool chreWifiRequestScanAsync(const struct chreWifiScanParams *params, const void *cookie) in chreWifiRequestScanAsync()
249 bool chreWwanGetCellInfoAsync(const void *cookie) in chreWwanGetCellInfoAsync()
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/
Dbosch_bmp280.c253 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback()
266 static void baroTimerCallback(uint32_t timerId, void *cookie) in baroTimerCallback()
271 static void tempTimerCallback(uint32_t timerId, void *cookie) in tempTimerCallback()
276 static void softresetCallback(uint32_t timerId, void *cookie) in softresetCallback()
311 static bool sensorPowerBaro(bool on, void *cookie) in sensorPowerBaro()
357 static bool sensorFirmwareBaro(void *cookie) in sensorFirmwareBaro()
362 static bool sensorRateBaro(uint32_t rate, uint64_t latency, void *cookie) in sensorRateBaro()
370 static bool sensorFlushBaro(void *cookie) in sensorFlushBaro()
375 static bool sensorCalibrateBaro(void *cookie) in sensorCalibrateBaro()
394 static bool sensorCfgDataBaro(void *data, void *cookie) in sensorCfgDataBaro()
[all …]
/device/google/contexthub/firmware/os/platform/native/
Di2c.c41 I2cCallbackF callback, void *cookie) in i2cMasterTxRx()
57 I2cCallbackF callback, void *cookie) in i2cSlaveEnableRx()
62 int i2cSlaveTxPreamble(I2cBus busId, uint8_t byte, I2cCallbackF callback, void *cookie) in i2cSlaveTxPreamble()
67 …cSlaveTxPacket(I2cBus busId, const void *txBuf, size_t txSize, I2cCallbackF callback, void *cookie) in i2cSlaveTxPacket()
/device/google/contexthub/firmware/os/drivers/hall_twopole/
Dhall_twopole.c84 static void debounceTimerCallback(uint32_t timerId, void *cookie) in debounceTimerCallback()
153 static bool hallPower(bool on, void *cookie) in hallPower()
178 static bool hallFirmwareUpload(void *cookie) in hallFirmwareUpload()
183 static bool hallSetRate(uint32_t rate, uint64_t latency, void *cookie) in hallSetRate()
192 static bool hallFlush(void *cookie) in hallFlush()
197 static bool hallSendLastSample(void *cookie, uint32_t tid) in hallSendLastSample()
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
Dams_tmd2772.c217 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback()
264 static void alsTimerCallback(uint32_t timerId, void *cookie) in alsTimerCallback()
269 static void proxTimerCallback(uint32_t timerId, void *cookie) in proxTimerCallback()
321 static bool sensorPowerAls(bool on, void *cookie) in sensorPowerAls()
338 static bool sensorFirmwareAls(void *cookie) in sensorFirmwareAls()
344 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls()
360 static bool sensorFlushAls(void *cookie) in sensorFlushAls()
365 static bool sendLastSampleAls(void *cookie, uint32_t tid) { in sendLastSampleAls()
376 static bool sensorPowerProx(bool on, void *cookie) in sensorPowerProx()
393 static bool sensorFirmwareProx(void *cookie) in sensorFirmwareProx()
[all …]
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c870 SpiCbkF callback, void *cookie, const char * src)
930 static void sensorSpiCallback(void *cookie, int err)
961 static bool accFirmwareUpload(void *cookie)
968 static bool gyrFirmwareUpload(void *cookie)
976 static bool magFirmwareUpload(void *cookie)
984 static bool stepFirmwareUpload(void *cookie)
991 static bool doubleTapFirmwareUpload(void *cookie)
998 static bool noMotionFirmwareUpload(void *cookie)
1005 static bool anyMotionFirmwareUpload(void *cookie)
1012 static bool flatFirmwareUpload(void *cookie)
[all …]
/device/google/contexthub/firmware/os/drivers/si_si7034/
Dsi7034a10.c164 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback()
262 static bool humiPower(bool on, void *cookie) in humiPower()
276 static bool humiFwUpload(void *cookie) in humiFwUpload()
284 static bool humiSetRate(uint32_t rate, uint64_t latency, void *cookie) in humiSetRate()
298 static bool humiFlush(void *cookie) in humiFlush()
303 static bool tempPower(bool on, void *cookie) in tempPower()
317 static bool tempFwUpload(void *cookie) in tempFwUpload()
325 static bool tempSetRate(uint32_t rate, uint64_t latency, void *cookie) in tempSetRate()
339 static bool tempFlush(void *cookie) in tempFlush()
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/
Dams_tmd4903.c369 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback()
382 static void alsTimerCallback(uint32_t timerId, void *cookie) in alsTimerCallback()
477 static bool sensorPowerAls(bool on, void *cookie) in sensorPowerAls()
500 static bool sensorFirmwareAls(void *cookie) in sensorFirmwareAls()
505 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls()
515 static bool sensorFlushAls(void *cookie) in sensorFlushAls()
520 static bool sensorCalibrateAls(void *cookie) in sensorCalibrateAls()
545 static bool sensorCfgDataAls(void *data, void *cookie) in sensorCfgDataAls()
556 static bool sendLastSampleAls(void *cookie, uint32_t tid) { in sendLastSampleAls()
567 static bool sensorPowerProx(bool on, void *cookie) in sensorPowerProx()
[all …]
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/
Disl29034.c169 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback()
216 static void alsTimerCallback(uint32_t timerId, void *cookie) in alsTimerCallback()
229 static bool sensorPowerAls(bool on, void *cookie) in sensorPowerAls()
249 static bool sensorFirmwareAls(void *cookie) in sensorFirmwareAls()
255 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls()
271 static bool sensorFlushAls(void *cookie) in sensorFlushAls()
276 static bool sendLastSampleAls(void *cookie, uint32_t tid) in sendLastSampleAls()
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/
Drohm_rpr0521.c299 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback()
312 static void alsTimerCallback(uint32_t timerId, void *cookie) in alsTimerCallback()
427 static bool sensorPowerAls(bool on, void *cookie) in sensorPowerAls()
445 static bool sensorFirmwareAls(void *cookie) in sensorFirmwareAls()
450 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls()
460 static bool sensorFlushAls(void *cookie) in sensorFlushAls()
465 static bool sendLastSampleAls(void *cookie, uint32_t tid) { in sendLastSampleAls()
476 static bool sensorPowerProx(bool on, void *cookie) in sensorPowerProx()
495 static bool sensorFirmwareProx(void *cookie) in sensorFirmwareProx()
500 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) in sensorRateProx()
[all …]
/device/google/trout/hal/vehicle/2.0/
DDefaultVehicleHalServer.cpp146 int32_t cookie = v.int32Values[1]; in handleGenerateFakeDataRequest() local
157 int32_t cookie = std::hash<std::string>()(v.stringValue); in handleGenerateFakeDataRequest() local
168 int32_t cookie = v.int32Values[1]; in handleGenerateFakeDataRequest() local
178 int32_t cookie = std::hash<std::string>()(v.stringValue); in handleGenerateFakeDataRequest() local
/device/google/contexthub/firmware/os/drivers/st_lps22hb/
Dlps22hb.c235 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback()
351 static bool baroPower(bool on, void *cookie) in baroPower()
384 static bool baroFwUpload(void *cookie) in baroFwUpload()
389 static bool baroSetRate(uint32_t rate, uint64_t latency, void *cookie) in baroSetRate()
403 static bool baroFlush(void *cookie) in baroFlush()
408 static bool baroCalibrate(void *cookie) in baroCalibrate()
427 static bool baroCfgData(void *data, void *cookie) in baroCfgData()
448 static bool tempPower(bool on, void *cookie) in tempPower()
481 static bool tempFwUpload(void *cookie) in tempFwUpload()
486 static bool tempSetRate(uint32_t rate, uint64_t latency, void *cookie) in tempSetRate()
[all …]
/device/google/contexthub/firmware/os/core/
DhostIntfI2c.c25 static void hostIntfI2cPreambleCallback(void *cookie, size_t tx, size_t rx, int err) in hostIntfI2cPreambleCallback()
29 static void hostIntfI2cRxCallback(void *cookie, size_t tx, size_t rx, int err) in hostIntfI2cRxCallback()
37 static void hostIntfI2cTxCallback(void *cookie, size_t tx, size_t rx, int err) in hostIntfI2cTxCallback()
Dspi.c157 void *cookie = state->rxTxCookie; in spiMasterDone() local
215 void *cookie = state->finishCookie; in spiSlaveCsInactive() local
248 void *cookie = state->rxTxCookie; in spiSlaveIdle() local
275 SpiCbkF callback, void *cookie) in spiSetupRxTx()
319 void *cookie) in spiMasterRxTx()
389 SpiCbkF callback, void *cookie) in spiSlaveRxTx()
408 void *cookie) in spiSlaveWaitForInactive()
DhostIntfSpi.c38 static void hostIntfSpiRxCallback(void *cookie, int err) in hostIntfSpiRxCallback()
45 static void hostIntfSpiTxCallback(void *cookie, int err) in hostIntfSpiTxCallback()
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
Dst_lsm6dsm.c1333 static void lsm6dsm_spiBatchTxRx(struct SpiMode *mode, SpiCbkF callback, void *cookie, const char *… in lsm6dsm_spiBatchTxRx()
1385 static void lsm6dsm_spiCallback(void *cookie, int err) in lsm6dsm_spiCallback()
2550 static bool lsm6dsm_setAccelPower(bool on, void *cookie) in lsm6dsm_setAccelPower()
2583 static bool lsm6dsm_setGyroPower(bool on, void *cookie) in lsm6dsm_setGyroPower()
2620 static bool lsm6dsm_setMagnPower(bool on, void *cookie) in lsm6dsm_setMagnPower()
2679 static bool lsm6dsm_setPressPower(bool on, void *cookie) in lsm6dsm_setPressPower()
2756 static bool lsm6dsm_setTempPower(bool on, void *cookie) in lsm6dsm_setTempPower()
2834 static bool lsm6dsm_setStepDetectorPower(bool on, void *cookie) in lsm6dsm_setStepDetectorPower()
2884 static bool lsm6dsm_setStepCounterPower(bool on, void *cookie) in lsm6dsm_setStepCounterPower()
2935 static bool lsm6dsm_setSignMotionPower(bool on, void *cookie) in lsm6dsm_setSignMotionPower()
[all …]
/device/google/contexthub/firmware/os/drivers/vsync/
Dvsync.c154 static bool vsyncPower(bool on, void *cookie) in vsyncPower()
171 static bool vsyncFirmwareUpload(void *cookie) in vsyncFirmwareUpload()
176 static bool vsyncSetRate(uint32_t rate, uint64_t latency, void *cookie) in vsyncSetRate()
182 static bool vsyncFlush(void *cookie) in vsyncFlush()
/device/google/contexthub/contexthubhal/
Dlegacyhal.cpp24 static int legacy_cbk(uint32_t hub_id, const HubMessage &rxMsg, void *cookie) in legacy_cbk()
29 static int legacy_subscribe_messages(uint32_t hub_id, context_hub_callback *cbk, void *cookie) in legacy_subscribe_messages()
/device/google/contexthub/firmware/os/inc/
Di2c.h35 const void *txBuf, size_t txSize, I2cCallbackF callback, void *cookie) in i2cMasterTx()
39 void *rxBuf, size_t rxSize, I2cCallbackF callback, void *cookie) in i2cMasterRx()
DsyscallDo.h107 static inline uint32_t eOsSensorRegister(const struct SensorInfo *si, uint32_t tid, void *cookie, b… in eOsSensorRegister()
177 …t(uint64_t length, uint32_t jitterPpm, uint32_t driftPpm, uint32_t tid, void* cookie, bool oneShot) in eOsTimTimerSet()
279 … addr, const void *txBuf, size_t txSize, void *rxBuf, size_t rxSize, uint32_t cbkTid, void *cookie) in eOsI2cMasterTxRx()
294 …void eOsI2cSlaveEnableRx(uint32_t busId, void *rxBuf, size_t rxSize, uint32_t cbkTid, void *cookie) in eOsI2cSlaveEnableRx()
299 static inline int eOsI2cSlaveTxPreamble(uint32_t busId, uint8_t byte, uint32_t cbkTid, void *cookie) in eOsI2cSlaveTxPreamble()
304 …OsI2cSlaveTxPacket(uint32_t busId, const void *txBuf, size_t txSize, uint32_t cbkTid, void *cookie) in eOsI2cSlaveTxPacket()
/device/google/contexthub/firmware/os/drivers/leds/
Dleds_lp3943.c112 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback()
190 static bool sensorLP3943Power(bool on, void *cookie) in sensorLP3943Power()
200 static bool sensorLP3943FwUpload(void *cookie) in sensorLP3943FwUpload()
205 static bool sensorLP3943SetRate(uint32_t rate, uint64_t latency, void *cookie) in sensorLP3943SetRate()
216 static bool sensorCfgDataLedsLP3943(void *cfg, void *cookie) in sensorCfgDataLedsLP3943()
Dleds_gpio.c85 static bool sensorLedsPower(bool on, void *cookie) in sensorLedsPower()
95 static bool sensorLedsFwUpload(void *cookie) in sensorLedsFwUpload()
100 static bool sensorLedsSetRate(uint32_t rate, uint64_t latency, void *cookie) in sensorLedsSetRate()
/device/google/contexthub/firmware/os/drivers/tilt_detection/
Dtilt_detection.c188 static bool tiltDetectionPower(bool on, void *cookie) in tiltDetectionPower()
205 static bool tiltDetectionSetRate(uint32_t rate, uint64_t latency, void *cookie) in tiltDetectionSetRate()
212 static bool tiltDetectionFirmwareUpload(void *cookie) in tiltDetectionFirmwareUpload()
219 static bool tiltDetectionFlush(void *cookie) in tiltDetectionFlush()

123