Home
last modified time | relevance | path

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

1234

/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/cuttlefish/host/commands/cvd_import_locations/
Dmain.cc28 DEFINE_double(delay, 1.0, "delay interval between different coordinates");
48 --delay=[delay_value]
49 delay between different gps locations ( double , default value is 1.0 second)
59 cvd_import_locations --format="gpx" --file_path="input.gpx" --delay=.5
60 cvd_import_locations --format="kml" --file_path="input.kml" --delay=.5
62 cvd_import_locations --format="gpx" --file_path="input.gpx" --delay=.5 --instance_num=2
112 int delay = (int)(1000 * FLAGS_delay); in ImportLocationsCvdMain() local
113 auto status = gpsclient.SendGpsLocations(delay,coordinates); in ImportLocationsCvdMain()
118 std::this_thread::sleep_for(std::chrono::milliseconds(delay)); in ImportLocationsCvdMain()
/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/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/felix/vibrator/cs40l26/
DVibrator.cpp209 void constructPwleSegment(uint16_t delay, uint16_t amplitude, uint16_t frequency, uint8_t flags, in constructPwleSegment() argument
211 write(16, delay); in constructPwleSegment()
271 uint16_t delay = 0; in constructActiveSegment() local
279 if ((fToU16(duration, &delay, 4, 0.0f, COMPOSE_PWLE_PRIMITIVE_DURATION_MAX_MS) < 0) || in constructActiveSegment()
288 constructPwleSegment(delay, amp, freq, flags, 0 /*ignored*/); in constructActiveSegment()
293 uint16_t delay = 0; in constructBrakingSegment() local
300 if (fToU16(duration, &delay, 4, 0.0f, COMPOSE_PWLE_PRIMITIVE_DURATION_MAX_MS) < 0) { in constructBrakingSegment()
309 constructPwleSegment(delay, 0 /*ignored*/, freq, flags, 0 /*ignored*/); in constructBrakingSegment()
923 int32_t delay = e_next.delayMs; in compose() local
925 if (delay > COMPOSE_DELAY_MAX_MS || delay < 0) { in compose()
[all …]
/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/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/libs/location/
DGnssClient.cpp35 int delay, const GpsFixArray& coordinates) { in SendGpsLocations() argument
38 request.set_delay(delay); in SendGpsLocations()
DGnssClient.h32 int delay, const GpsFixArray& coordinates);
/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/amlogic/yukawa/services/micmuteprovider/src/com/google/android/tv/hotword/
DHotwordMicToggleService.java87 private void poll(int msg, int delay) { in poll() argument
92 mPollHandler.sendEmptyMessageDelayed(msg, delay); in poll()
/device/google/cuttlefish/host/commands/modem_simulator/
Dthread_looper.cpp46 Callback cb, std::chrono::steady_clock::duration delay) { in Post() argument
50 Insert({ std::chrono::steady_clock::now() + delay, cb, serial }); in Post()
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c244 #define SPI_WRITE_1(addr, data, delay) spiQueueWrite(addr, data, delay) argument
249 #define SPI_READ_1(addr, size, buf, delay) spiQueueRead(addr, size, buf, delay) argument
828 static void spiQueueWrite(uint8_t addr, uint8_t data, uint32_t delay) argument
838 T(packets[T(mRegCnt)]).delay = delay * 1000;
847 static void spiQueueRead(uint8_t addr, size_t size, uint8_t **buf, uint32_t delay) argument
859 T(packets[T(mRegCnt)]).delay = delay * 1000;
3689 uint32_t delay; local
3694 delay = T(packets[reg]).delay;
3695 T(packets[reg]).delay = 0;
3696 if (delay > 0) {
[all …]
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c403 #define SPI_WRITE_1(addr, data, delay) spiQueueWrite(addr, data, delay) argument
408 #define SPI_READ_1(addr, size, buf, delay) spiQueueRead(addr, size, buf, delay) argument
826 static void spiQueueWrite(uint8_t addr, uint8_t data, uint32_t delay) argument
837 T(packets[T(mRegCnt)]).delay = delay * 1000;
846 static void spiQueueRead(uint8_t addr, size_t size, uint8_t **buf, uint32_t delay) argument
859 T(packets[T(mRegCnt)]).delay = delay * 1000;
1156 static void calSelftestFifoEnable(TASK, enum SensorIndex idx, bool en, uint32_t delay) argument
1166 SPI_WRITE(REG_FIFO_CONFIG1, val, delay); // with wait
/device/google/zuma/usb/usb/
DUsbDataSessionMonitor.cpp333 struct itimerspec delay = itimerspec(); in setupNewSession() local
334 delay.it_value.tv_sec = WARNING_SURFACE_DELAY_SEC; in setupNewSession()
335 int ret = timerfd_settime(mTimerFd.get(), 0, &delay, NULL); in setupNewSession()
/device/google/zumapro/usb/usb/
DUsbDataSessionMonitor.cpp333 struct itimerspec delay = itimerspec(); in setupNewSession() local
334 delay.it_value.tv_sec = WARNING_SURFACE_DELAY_SEC; in setupNewSession()
335 int ret = timerfd_settime(mTimerFd.get(), 0, &delay, NULL); in setupNewSession()
/device/google/gs201/usb/usb/
DUsbDataSessionMonitor.cpp333 struct itimerspec delay = itimerspec(); in setupNewSession() local
334 delay.it_value.tv_sec = WARNING_SURFACE_DELAY_SEC; in setupNewSession()
335 int ret = timerfd_settime(mTimerFd.get(), 0, &delay, NULL); in setupNewSession()
/device/google/gs101/usb/usb/
DUsbDataSessionMonitor.cpp333 struct itimerspec delay = itimerspec(); in setupNewSession() local
334 delay.it_value.tv_sec = WARNING_SURFACE_DELAY_SEC; in setupNewSession()
335 int ret = timerfd_settime(mTimerFd.get(), 0, &delay, NULL); in setupNewSession()
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/remote/
DTransportManager.java161 private void processQueueAfterDelay(int delay) { in processQueueAfterDelay() argument
165 mHandler.sendEmptyMessageDelayed(MSG_SEND_GATT_MESSAGES, delay); in processQueueAfterDelay()
/device/google/felix/vibrator/cs40l26/tests/
Dtest-vibrator.cpp63 static EffectQueue Queue(const QueueDelay &delay);
178 EffectQueue Queue(const QueueDelay &delay) { in Queue() argument
179 auto string = std::to_string(delay); in Queue()
180 return {string, delay}; in Queue()
/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);

1234