/device/generic/goldfish/network/wifi_forwarder/ |
D | frame_id.h | 25 FrameId(uint64_t cookie, const MacAddress& transmitter) in FrameId() 26 : cookie(cookie), transmitter(transmitter) { in FrameId() 34 uint64_t cookie; member 42 hash_combine(seed, id.cookie); 50 return left.cookie == right.cookie && left.transmitter == right.transmitter; 54 if (left.cookie < right.cookie) { 57 if (left.cookie > right.cookie) {
|
D | local_connection.cpp | 132 uint64_t cookie = frame->cookie(); in transferFrame() local 133 FrameId id(cookie, frame->transmitter()); in transferFrame() 145 frame.cookie(), in cloneFrame() 174 !msg.addAttribute(HWSIM_ATTR_COOKIE, info.cookie())) { in ackFrame() 183 mPendingFrames.erase(FrameId(info.cookie(), info.transmitter())); in ackFrame() 304 uint64_t cookie = nla_get_u64(attrs[HWSIM_ATTR_COOKIE]); in parseFrame() local 325 return std::make_unique<Frame>(data, length, source, cookie, in parseFrame() 332 auto cookie = mSequenceNumberCookies.find(seqNum); in onAck() local 333 if (cookie == mSequenceNumberCookies.end()) { in onAck() 338 auto pendingFrame = mPendingFrames.find(cookie->second); in onAck() [all …]
|
D | frame.h | 56 uint64_t cookie, 69 uint64_t cookie() const { return mCookie; } in cookie() function 90 uint64_t cookie, 102 uint64_t cookie() const { return mInfo.cookie(); } in cookie() function
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/ipc/xt-shmem/hikey/ |
D | dsp_debug.c | 45 static void xputs(const char *s, void (*xputc)(unsigned n, void *cookie), void *cookie) in xputs() argument 48 xputc(*s++, cookie); in xputs() 52 void __xprintf(const char *fmt, va_list ap,void (*xputc)(unsigned n, void *cookie), void *cookie) in __xprintf() argument 64 xputc(n, cookie); in __xprintf() 70 xputc(hex2asc(n >> 12), cookie); in __xprintf() 71 xputc(hex2asc(n >> 8), cookie); in __xprintf() 72 xputc(hex2asc(n >> 4), cookie); in __xprintf() 73 xputc(hex2asc(n >> 0), cookie); in __xprintf() 79 xputc(hex2asc(n >> 4), cookie); in __xprintf() 80 xputc(hex2asc(n >> 0), cookie); in __xprintf() [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 | spi.h | 29 typedef void (*SpiCbkF)(void *cookie, int err); 78 void *cookie); 87 SpiCbkF callback, void *cookie); 90 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/generic/goldfish/soundtrigger/ |
D | main.cpp | 62 int32_t cookie, in loadSoundModel() 66 (void)cookie; in loadSoundModel() 73 int32_t cookie, in loadPhraseSoundModel() 77 (void)cookie; in loadPhraseSoundModel() 90 int32_t cookie) override { in startRecognition() 94 (void)cookie; in startRecognition() 110 int32_t cookie, in loadSoundModel_2_1() 114 (void)cookie; in loadSoundModel_2_1() 121 int32_t cookie, in loadPhraseSoundModel_2_1() 125 (void)cookie; in loadPhraseSoundModel_2_1() [all …]
|
/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/core/ |
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 | 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 | 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 | 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()
|
/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
|
/device/google/contexthub/contexthubhal/ |
D | legacyhal.cpp | 24 static int legacy_cbk(uint32_t hub_id, const HubMessage &rxMsg, void *cookie) in legacy_cbk() argument 26 return mSavedCbk(hub_id, &rxMsg, cookie); in legacy_cbk() 29 static int legacy_subscribe_messages(uint32_t hub_id, context_hub_callback *cbk, void *cookie) in legacy_subscribe_messages() argument 33 return NanoHub::subscribeMessages(hub_id, legacy_cbk, cookie); in legacy_subscribe_messages()
|
/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/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/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/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/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/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/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/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 …]
|