Home
last modified time | relevance | path

Searched refs:delay (Results 1 – 25 of 55) sorted by relevance

123

/device/google/contexthub/firmware/os/platform/stm32/
Drtc.c110 #define RTC_VALID_DELAY_FOR_PERIOD(delay, period) \ argument
111 (delay < (period * (RTC_WKUP_DOWNCOUNT_MAX + 1)))
163 int rtcSetWakeupTimer(uint64_t delay) in rtcSetWakeupTimer() argument
171 if (delay < (RTC_DIV2_PERIOD_NS * 2)) { in rtcSetWakeupTimer()
173 } else if (delay > (NS_PER_S * 2 * RTC_WKUP_DOWNCOUNT_MAX)) { in rtcSetWakeupTimer()
174 delay = NS_PER_S * 2 * RTC_WKUP_DOWNCOUNT_MAX; in rtcSetWakeupTimer()
178 if (RTC_VALID_DELAY_FOR_PERIOD(delay, RTC_DIV2_PERIOD_NS)) { in rtcSetWakeupTimer()
184 else if (RTC_VALID_DELAY_FOR_PERIOD(delay, RTC_DIV4_PERIOD_NS)) { in rtcSetWakeupTimer()
190 else if (RTC_VALID_DELAY_FOR_PERIOD(delay, RTC_DIV8_PERIOD_NS)) { in rtcSetWakeupTimer()
196 else if (RTC_VALID_DELAY_FOR_PERIOD(delay, RTC_DIV16_PERIOD_NS)) { in rtcSetWakeupTimer()
[all …]
Dplatform.c386 static uint64_t platSetTimerAlarm(uint64_t delay) //delay at most that many nsec in platSetTimerAlarm() argument
394 …if (delay >= (1000ULL << 32)) //it is only a 32-bit counter - we cannot set delays bigger than that in platSetTimerAlarm()
397 delayInUsecs = cpuMathUint44Div1000ToUint32(delay); in platSetTimerAlarm()
431 static bool sleepClockRtcPrepare(uint64_t delay, uint32_t acceptableJitter, uint32_t acceptableDrif… in sleepClockRtcPrepare() argument
436 if (delay && rtcSetWakeupTimer(delay) < 0) in sleepClockRtcPrepare()
453 static bool sleepClockTmrPrepare(uint64_t delay, uint32_t acceptableJitter, uint32_t acceptableDrif… in sleepClockTmrPrepare() argument
458 *savedData = platSetTimerAlarm(delay ?: ~0ull); in sleepClockTmrPrepare()
497 static bool sleepClockJustWfiPrepare(uint64_t delay, uint32_t acceptableJitter, uint32_t acceptable… in sleepClockJustWfiPrepare() argument
512 …bool (*prepare)(uint64_t delay, uint32_t acceptableJitter, uint32_t acceptableDrift, uint32_t maxA…
Di2c.c795 uint32_t delay; in i2cMasterReset() local
808 delay = 500000000UL/speed; in i2cMasterReset()
815 timDelay(delay); in i2cMasterReset()
817 timDelay(delay); in i2cMasterReset()
824 timDelay(delay); in i2cMasterReset()
826 timDelay(delay); in i2cMasterReset()
/device/google/crosshatch/sdm845/kernel-headers/media/
Dmsm_camsensor_sdk.h222 unsigned short delay; member
242 unsigned short delay; member
250 uint16_t delay; member
291 unsigned int delay; member
298 unsigned short delay; member
344 unsigned short delay; member
355 unsigned short delay; member
373 unsigned int delay; member
380 unsigned short delay; member
Dmsm_cam_sensor.h209 uint32_t delay; member
365 uint32_t delay; member
462 uint16_t delay[MAX_NUMBER_OF_STEPS]; member
/device/google/bonito/sdm710/original-kernel-headers/media/
Dmsm_camsensor_sdk.h239 unsigned short delay; member
262 unsigned short delay; member
271 uint16_t delay; member
322 unsigned int delay; member
330 unsigned short delay; member
383 unsigned short delay; member
395 unsigned short delay; member
421 unsigned int delay; member
429 unsigned short delay; member
Dmsm_cam_sensor.h228 uint32_t delay; member
404 uint32_t delay; member
513 uint16_t delay[MAX_NUMBER_OF_STEPS]; member
/device/google/bonito/sdm710/kernel-headers/media/
Dmsm_camsensor_sdk.h222 unsigned short delay; member
242 unsigned short delay; member
250 uint16_t delay; member
291 unsigned int delay; member
298 unsigned short delay; member
344 unsigned short delay; member
355 unsigned short delay; member
373 unsigned int delay; member
380 unsigned short delay; member
Dmsm_cam_sensor.h209 uint32_t delay; member
365 uint32_t delay; member
462 uint16_t delay[MAX_NUMBER_OF_STEPS]; member
/device/google/crosshatch/sdm845/original-kernel-headers/media/
Dmsm_camsensor_sdk.h239 unsigned short delay; member
262 unsigned short delay; member
271 uint16_t delay; member
322 unsigned int delay; member
330 unsigned short delay; member
383 unsigned short delay; member
395 unsigned short delay; member
421 unsigned int delay; member
429 unsigned short delay; member
Dmsm_cam_sensor.h228 uint32_t delay; member
404 uint32_t delay; member
513 uint16_t delay[MAX_NUMBER_OF_STEPS]; member
/device/google/contexthub/firmware/os/drivers/st_acc44/
Dst_acc44.c226 uint32_t delay; member
256 bool (*comm_tx)(uint8_t addr, uint8_t data, uint32_t delay, bool last);
257 bool (*comm_rx)(uint8_t addr, uint16_t len, uint32_t delay, bool last);
594 static bool st_acc44_i2c_read(uint8_t addr, uint16_t len, uint32_t delay, bool last) in st_acc44_i2c_read() argument
600 xfer->delay = delay; in st_acc44_i2c_read()
613 static bool st_acc44_i2c_write(uint8_t addr, uint8_t data, uint32_t delay, bool last) in st_acc44_i2c_write() argument
619 xfer->delay = delay; in st_acc44_i2c_write()
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c204 uint32_t delay; member
237 void (*comm_tx)(uint8_t addr, uint8_t data, uint32_t delay, bool last);
238 void (*comm_rx)(uint8_t addr, uint16_t len, uint32_t delay, bool last);
347 if (xfer->delay > 0) { in i2cCallback()
352 if (!timTimerSet(xfer->delay * 1000, 0, 50, i2cDelayCallback, xfer, true)) { in i2cCallback()
357 xfer->delay = 0; in i2cCallback()
371 static void i2c_read(uint8_t addr, uint16_t len, uint32_t delay, bool last) in i2c_read() argument
376 xfer->delay = delay; in i2c_read()
383 static void i2c_write(uint8_t addr, uint8_t data, uint32_t delay, bool last) in i2c_write() argument
388 xfer->delay = delay; in i2c_write()
/device/google/cuttlefish/host/commands/modem_simulator/
Dthread_looper.cpp46 std::chrono::steady_clock::duration delay, Callback cb) { in PostWithDelay() argument
50 Insert({ std::chrono::steady_clock::now() + delay, cb, serial }); in PostWithDelay()
Dthread_looper.h63 Serial PostWithDelay(std::chrono::steady_clock::duration delay, Callback cb);
/device/google/contexthub/firmware/os/platform/native/
Drtc.c31 int rtcSetWakeupTimer(uint64_t delay, int ppm) in rtcSetWakeupTimer() argument
/device/google/contexthub/firmware/os/platform/native/inc/plat/
Drtc.h33 int rtcSetWakeupTimer(uint64_t delay, int ppm);
/device/google/contexthub/firmware/os/platform/stm32/inc/plat/
Drtc.h40 int rtcSetWakeupTimer(uint64_t delay);
/device/google/contexthub/firmware/os/drivers/st_hts221/
Dhts221.c167 bool (*comm_tx)(uint8_t addr, uint8_t data, uint32_t delay, uint8_t state);
168 bool (*comm_rx)(uint8_t addr, uint16_t len, uint32_t delay, uint8_t state);
224 static bool i2c_read(uint8_t addr, uint16_t len, uint32_t delay, uint8_t state) in i2c_read() argument
248 static bool i2c_write(uint8_t addr, uint8_t data, uint32_t delay, uint8_t state) in i2c_write() argument
/device/google/contexthub/firmware/os/inc/
Dspi.h59 uint32_t delay; member
/device/google/contexthub/firmware/os/drivers/st_lps22hb/
Dlps22hb.c180 bool (*comm_tx)(uint8_t addr, uint8_t data, uint32_t delay, uint8_t state);
181 bool (*comm_rx)(uint8_t addr, uint16_t len, uint32_t delay, uint8_t state);
248 static bool i2c_read(uint8_t addr, uint16_t len, uint32_t delay, uint8_t state) in i2c_read() argument
265 static bool i2c_write(uint8_t addr, uint8_t data, uint32_t delay, uint8_t state) in i2c_write() argument
/device/google/cuttlefish/host/frontend/gcastv2/https/include/https/
DRunLoop.h62 std::chrono::steady_clock::duration delay, AsyncFunction fn);
/device/google/coral/vibrator/tests/
Dtest-vibrator.cpp41 static EffectQueue Queue(const QueueDelay &delay);
95 EffectQueue Queue(const QueueDelay &delay) { in Queue() argument
96 auto string = std::to_string(delay); in Queue()
97 return {string, delay}; in Queue()
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
Dst_lsm6dsm.c545 static void lsm6dsm_spiQueueRead(uint8_t addr, size_t size, uint8_t **buf, uint32_t delay);
546 static void lsm6dsm_spiQueueWrite(uint8_t addr, uint8_t data, uint32_t delay);
547 static void lsm6dsm_spiQueueMultiwrite(uint8_t addr, uint8_t *data, size_t size, uint32_t delay);
550 …ine SPI_MULTIWRITE_1(addr, data, size, delay) lsm6dsm_spiQueueMultiwrite(addr, d… argument
555 #define SPI_WRITE_1(addr, data, delay) lsm6dsm_spiQueueWrite(addr, dat… argument
560 #define SPI_READ_1(addr, size, buf, delay) lsm6dsm_spiQueueRead(addr, size… argument
565 …teSlaveRegister(uint8_t addr, uint8_t value, uint32_t accelRate, uint32_t delay, enum SensorIndex …
568 …E_SS_REGISTER_1(addr, value, accelRate, si, delay) lsm6dsm_writeSlaveRegister(addr, value, accelR… argument
1250 static void lsm6dsm_spiQueueRead(uint8_t addr, size_t size, uint8_t **buf, uint32_t delay) in lsm6dsm_spiQueueRead() argument
1264 T_SLAVE_INTERFACE(packets[T_SLAVE_INTERFACE(mRegCnt)]).delay = delay * 1000; in lsm6dsm_spiQueueRead()
[all …]
/device/google/cuttlefish/host/frontend/gcastv2/https/
DRunLoop.cpp124 std::chrono::steady_clock::duration delay, AsyncFunction fn) { in postWithDelay() argument
128 insert({ std::chrono::steady_clock::now() + delay, fn, token }); in postWithDelay()

123