Home
last modified time | relevance | path

Searched refs:delay (Results 126 - 150 of 12163) sorted by relevance

12345678910>>...487

/kernel/linux/linux-5.10/net/core/
H A Dlink_watch.c120 unsigned long delay = linkwatch_nextevent - jiffies; in linkwatch_schedule_work() local
125 /* Minimise down-time: drop delay for up event. */ in linkwatch_schedule_work()
129 delay = 0; in linkwatch_schedule_work()
132 /* If we wrap around we'll delay it by at most HZ. */ in linkwatch_schedule_work()
133 if (delay > HZ) in linkwatch_schedule_work()
134 delay = 0; in linkwatch_schedule_work()
143 schedule_delayed_work(&linkwatch_work, delay); in linkwatch_schedule_work()
193 /* Limit wrap-around effect on delay. */ in __linkwatch_run_queue()
/kernel/linux/linux-6.6/net/core/
H A Dlink_watch.c135 unsigned long delay = linkwatch_nextevent - jiffies; in linkwatch_schedule_work() local
140 /* Minimise down-time: drop delay for up event. */ in linkwatch_schedule_work()
144 delay = 0; in linkwatch_schedule_work()
147 /* If we wrap around we'll delay it by at most HZ. */ in linkwatch_schedule_work()
148 if (delay > HZ) in linkwatch_schedule_work()
149 delay = 0; in linkwatch_schedule_work()
158 schedule_delayed_work(&linkwatch_work, delay); in linkwatch_schedule_work()
211 /* Limit wrap-around effect on delay. */ in __linkwatch_run_queue()
/kernel/linux/linux-5.10/drivers/platform/chrome/
H A Dcros_ec_spi.c6 #include <linux/delay.h>
125 * Turn off CS, possibly adding a delay to ensure the rising edge in terminate_request()
130 trans.delay.value = ec_spi->end_of_msg_delay; in terminate_request()
131 trans.delay.unit = SPI_DELAY_UNIT_USECS; in terminate_request()
401 unsigned long delay; in do_cros_ec_pkt_xfer_spi() local
407 delay = ktime_get_ns() - ec_spi->last_transfer_ns; in do_cros_ec_pkt_xfer_spi()
408 if (delay < EC_SPI_RECOVERY_TIME_NS) in do_cros_ec_pkt_xfer_spi()
409 ndelay(EC_SPI_RECOVERY_TIME_NS - delay); in do_cros_ec_pkt_xfer_spi()
424 trans_delay.delay.value = ec_spi->start_of_msg_delay; in do_cros_ec_pkt_xfer_spi()
425 trans_delay.delay in do_cros_ec_pkt_xfer_spi()
544 unsigned long delay; do_cros_ec_cmd_xfer_spi() local
[all...]
/kernel/linux/linux-6.6/drivers/platform/chrome/
H A Dcros_ec_spi.c6 #include <linux/delay.h>
119 * Turn off CS, possibly adding a delay to ensure the rising edge in terminate_request()
124 trans.delay.value = ec_spi->end_of_msg_delay; in terminate_request()
125 trans.delay.unit = SPI_DELAY_UNIT_USECS; in terminate_request()
396 unsigned long delay; in do_cros_ec_pkt_xfer_spi() local
404 delay = ktime_get_ns() - ec_spi->last_transfer_ns; in do_cros_ec_pkt_xfer_spi()
405 if (delay < EC_SPI_RECOVERY_TIME_NS) in do_cros_ec_pkt_xfer_spi()
406 ndelay(EC_SPI_RECOVERY_TIME_NS - delay); in do_cros_ec_pkt_xfer_spi()
421 trans_delay.delay.value = ec_spi->start_of_msg_delay; in do_cros_ec_pkt_xfer_spi()
422 trans_delay.delay in do_cros_ec_pkt_xfer_spi()
541 unsigned long delay; do_cros_ec_cmd_xfer_spi() local
[all...]
/kernel/linux/linux-5.10/drivers/memory/tegra/
H A Dtegra210-emc-cc-r21021.c9 #include <linux/delay.h>
412 u32 delay; in periodic_compensation_handler() local
414 delay = tegra210_emc_actual_osc_clocks(last->run_clocks); in periodic_compensation_handler()
415 delay *= 1000; in periodic_compensation_handler()
416 delay = 2 + (delay / last->rate); in periodic_compensation_handler()
451 udelay(delay); in periodic_compensation_handler()
470 udelay(delay); in periodic_compensation_handler()
495 unsigned long delay; in tegra210_emc_r21021_periodic_compensation() local
539 delay in tegra210_emc_r21021_periodic_compensation()
621 unsigned long delay; tegra210_emc_r21021_set_clock() local
[all...]
/kernel/linux/linux-6.6/drivers/memory/tegra/
H A Dtegra210-emc-cc-r21021.c9 #include <linux/delay.h>
412 u32 delay; in periodic_compensation_handler() local
414 delay = tegra210_emc_actual_osc_clocks(last->run_clocks); in periodic_compensation_handler()
415 delay *= 1000; in periodic_compensation_handler()
416 delay = 2 + (delay / last->rate); in periodic_compensation_handler()
451 udelay(delay); in periodic_compensation_handler()
470 udelay(delay); in periodic_compensation_handler()
495 unsigned long delay; in tegra210_emc_r21021_periodic_compensation() local
539 delay in tegra210_emc_r21021_periodic_compensation()
621 unsigned long delay; tegra210_emc_r21021_set_clock() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dbpf_cubic.c35 /* Number of delay samples for detecting the increase of delay */
81 __u32 delay_min; /* min delay (usec) */
436 * not account for long aggregation delay when TSO packets get bigger.
453 static __always_inline void hystart_update(struct sock *sk, __u32 delay) in hystart_update() argument
484 /* obtain the minimum delay of more than sampling packets */ in hystart_update()
485 if (ca->curr_rtt > delay) in hystart_update()
486 ca->curr_rtt = delay; in hystart_update()
504 __u32 delay; in BPF_STRUCT_OPS() local
510 /* Discard delay sample in BPF_STRUCT_OPS()
[all...]
/kernel/linux/linux-5.10/drivers/misc/cxl/
H A Dhcalls.c9 #include <linux/delay.h>
51 unsigned int delay, total_delay = 0; \
62 delay = 10; \
64 delay = get_longbusy_msecs(rc); \
66 total_delay += delay; \
73 msleep(delay); \
563 unsigned int delay, total_delay = 0; in cxl_h_download_facility() local
580 delay = get_longbusy_msecs(rc); in cxl_h_download_facility()
581 total_delay += delay; in cxl_h_download_facility()
589 msleep(delay); in cxl_h_download_facility()
[all...]
/kernel/linux/linux-5.10/drivers/input/mouse/
H A Dsynaptics_i2c.c18 #include <linux/delay.h>
410 unsigned long delay, nodata_count_thres; in synaptics_i2c_adjust_delay() local
413 delay = touch->scan_ms; in synaptics_i2c_adjust_delay()
421 delay = NO_DATA_SLEEP_MSECS; in synaptics_i2c_adjust_delay()
423 return msecs_to_jiffies(delay); in synaptics_i2c_adjust_delay()
425 delay = msecs_to_jiffies(THREAD_IRQ_SLEEP_MSECS); in synaptics_i2c_adjust_delay()
426 return round_jiffies_relative(delay); in synaptics_i2c_adjust_delay()
436 unsigned long delay; in synaptics_i2c_work_handler() local
441 delay = synaptics_i2c_adjust_delay(touch, have_data); in synaptics_i2c_work_handler()
451 mod_delayed_work(system_wq, &touch->dwork, delay); in synaptics_i2c_work_handler()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dworkqueue.h450 struct delayed_work *work, unsigned long delay);
452 struct delayed_work *dwork, unsigned long delay);
513 * queue_delayed_work - queue work on a workqueue after delay
516 * @delay: number of jiffies to wait before queueing
522 unsigned long delay) in queue_delayed_work()
524 return queue_delayed_work_on(WORK_CPU_UNBOUND, wq, dwork, delay); in queue_delayed_work()
528 * mod_delayed_work - modify delay of or queue a delayed work
531 * @delay: number of jiffies to wait before queueing
537 unsigned long delay) in mod_delayed_work()
539 return mod_delayed_work_on(WORK_CPU_UNBOUND, wq, dwork, delay); in mod_delayed_work()
520 queue_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork, unsigned long delay) queue_delayed_work() argument
535 mod_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork, unsigned long delay) mod_delayed_work() argument
611 schedule_delayed_work_on(int cpu, struct delayed_work *dwork, unsigned long delay) schedule_delayed_work_on() argument
625 schedule_delayed_work(struct delayed_work *dwork, unsigned long delay) schedule_delayed_work() argument
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dtcp_cubic.c41 /* Number of delay samples for detecting the increase of delay */
77 " 1: packet-train 2: delay 3: both packet-train and delay");
92 u32 delay_min; /* min delay (usec) */
376 * not account for long aggregation delay when TSO packets get bigger.
393 static void hystart_update(struct sock *sk, u32 delay) in hystart_update() argument
435 /* obtain the minimum delay of more than sampling packets */ in hystart_update()
436 if (ca->curr_rtt > delay) in hystart_update()
437 ca->curr_rtt = delay; in hystart_update()
459 u32 delay; bictcp_acked() local
[all...]
/kernel/linux/linux-5.10/drivers/spi/
H A Dspi-dw-dma.c239 struct spi_delay delay; in dw_spi_dma_wait_tx_done() local
243 delay.unit = SPI_DELAY_UNIT_SCK; in dw_spi_dma_wait_tx_done()
244 delay.value = nents * dws->n_bytes * BITS_PER_BYTE; in dw_spi_dma_wait_tx_done()
247 spi_delay_exec(&delay, xfer); in dw_spi_dma_wait_tx_done()
323 struct spi_delay delay; in dw_spi_dma_wait_rx_done() local
339 delay.unit = SPI_DELAY_UNIT_NSECS; in dw_spi_dma_wait_rx_done()
340 delay.value = ns; in dw_spi_dma_wait_rx_done()
343 delay.unit = SPI_DELAY_UNIT_USECS; in dw_spi_dma_wait_rx_done()
344 delay.value = clamp_val(us, 0, USHRT_MAX); in dw_spi_dma_wait_rx_done()
348 spi_delay_exec(&delay, NUL in dw_spi_dma_wait_rx_done()
[all...]
/kernel/linux/linux-6.6/drivers/misc/cxl/
H A Dhcalls.c9 #include <linux/delay.h>
51 unsigned int delay, total_delay = 0; \
62 delay = 10; \
64 delay = get_longbusy_msecs(rc); \
66 total_delay += delay; \
73 msleep(delay); \
563 unsigned int delay, total_delay = 0; in cxl_h_download_facility() local
580 delay = get_longbusy_msecs(rc); in cxl_h_download_facility()
581 total_delay += delay; in cxl_h_download_facility()
589 msleep(delay); in cxl_h_download_facility()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dworkqueue.h530 struct delayed_work *work, unsigned long delay);
532 struct delayed_work *dwork, unsigned long delay);
595 * queue_delayed_work - queue work on a workqueue after delay
598 * @delay: number of jiffies to wait before queueing
604 unsigned long delay) in queue_delayed_work()
606 return queue_delayed_work_on(WORK_CPU_UNBOUND, wq, dwork, delay); in queue_delayed_work()
610 * mod_delayed_work - modify delay of or queue a delayed work
613 * @delay: number of jiffies to wait before queueing
619 unsigned long delay) in mod_delayed_work()
621 return mod_delayed_work_on(WORK_CPU_UNBOUND, wq, dwork, delay); in mod_delayed_work()
602 queue_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork, unsigned long delay) queue_delayed_work() argument
617 mod_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork, unsigned long delay) mod_delayed_work() argument
703 schedule_delayed_work_on(int cpu, struct delayed_work *dwork, unsigned long delay) schedule_delayed_work_on() argument
717 schedule_delayed_work(struct delayed_work *dwork, unsigned long delay) schedule_delayed_work() argument
[all...]
/kernel/linux/linux-6.6/drivers/hwmon/pmbus/
H A Dzl6100.c17 #include <linux/delay.h>
26 int delay; /* Delay between chip accesses in uS */ member
55 static ushort delay = ZL6100_WAIT_TIME; variable
56 module_param(delay, ushort, 0644);
57 MODULE_PARM_DESC(delay, "Delay between chip accesses in uS");
125 /* Some chips need a delay between accesses */
128 if (data->delay) { in zl6100_wait()
130 if (delta < data->delay) in zl6100_wait()
131 udelay(data->delay - delta); in zl6100_wait()
366 data->delay in zl6100_probe()
[all...]
/kernel/linux/linux-6.6/drivers/input/mouse/
H A Dsynaptics_i2c.c18 #include <linux/delay.h>
410 unsigned long delay, nodata_count_thres; in synaptics_i2c_adjust_delay() local
413 delay = touch->scan_ms; in synaptics_i2c_adjust_delay()
421 delay = NO_DATA_SLEEP_MSECS; in synaptics_i2c_adjust_delay()
423 return msecs_to_jiffies(delay); in synaptics_i2c_adjust_delay()
425 delay = msecs_to_jiffies(THREAD_IRQ_SLEEP_MSECS); in synaptics_i2c_adjust_delay()
426 return round_jiffies_relative(delay); in synaptics_i2c_adjust_delay()
436 unsigned long delay; in synaptics_i2c_work_handler() local
441 delay = synaptics_i2c_adjust_delay(touch, have_data); in synaptics_i2c_work_handler()
451 mod_delayed_work(system_wq, &touch->dwork, delay); in synaptics_i2c_work_handler()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dbpf_cubic.c35 /* Number of delay samples for detecting the increase of delay */
81 __u32 delay_min; /* min delay (usec) */
430 * not account for long aggregation delay when TSO packets get bigger.
447 static __always_inline void hystart_update(struct sock *sk, __u32 delay) in hystart_update() argument
478 /* obtain the minimum delay of more than sampling packets */ in hystart_update()
479 if (ca->curr_rtt > delay) in hystart_update()
480 ca->curr_rtt = delay; in hystart_update()
500 __u32 delay; in BPF_STRUCT_OPS() local
507 /* Discard delay sample in BPF_STRUCT_OPS()
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dtcp_cubic.c43 /* Number of delay samples for detecting the increase of delay */
79 " 1: packet-train 2: delay 3: both packet-train and delay");
94 u32 delay_min; /* min delay (usec) */
369 * not account for long aggregation delay when TSO packets get bigger.
386 static void hystart_update(struct sock *sk, u32 delay) in hystart_update() argument
428 /* obtain the minimum delay of more than sampling packets */ in hystart_update()
429 if (ca->curr_rtt > delay) in hystart_update()
430 ca->curr_rtt = delay; in hystart_update()
452 u32 delay; cubictcp_acked() local
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_qir_schedule.c52 uint32_t delay; member
517 if (n->delay > chosen->delay) { in choose_instruction()
520 } else if (n->delay < chosen->delay) { in choose_instruction()
575 /* There are two QPU delay slots before we can in latency_between()
590 /** Recursive computation of the delay member of a node. */
602 n->delay = 1000; in compute_delay()
604 n->delay = 1; in compute_delay()
610 n->delay in compute_delay()
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
H A Dmp900.c25 static void isp116x_pfm_delay(struct device *dev, int delay) in isp116x_pfm_delay() argument
30 int cyc = delay / 10; in isp116x_pfm_delay()
43 .delay = isp116x_pfm_delay,
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
H A Dspinlock_wait.cc61 // Return a suggested delay in nanoseconds for iteration number "loop"
73 // Double delay every 8 iterations, up to 16x (2ms). in SpinLockSuggestedDelayNS()
74 int delay = kMinDelay << (loop / 8); in SpinLockSuggestedDelayNS() local
75 // Randomize in delay..2*delay range, for resulting 128us..4ms range. in SpinLockSuggestedDelayNS()
76 return delay | ((delay - 1) & static_cast<int>(r)); in SpinLockSuggestedDelayNS()
/kernel/linux/linux-5.10/drivers/iio/humidity/
H A Dhdc100x.c16 #include <linux/delay.h>
171 int delay = data->adc_int_us[chan->address] + 1*USEC_PER_MSEC; in hdc100x_get_measurement() local
183 usleep_range(delay, delay + 1000); in hdc100x_get_measurement()
321 int delay = data->adc_int_us[0] + data->adc_int_us[1] + 2*USEC_PER_MSEC; in hdc100x_trigger_handler() local
331 usleep_range(delay, delay + 1000); in hdc100x_trigger_handler()
/kernel/linux/linux-6.6/drivers/iio/humidity/
H A Dhdc100x.c16 #include <linux/delay.h>
171 int delay = data->adc_int_us[chan->address] + 1*USEC_PER_MSEC; in hdc100x_get_measurement() local
183 usleep_range(delay, delay + 1000); in hdc100x_get_measurement()
321 int delay = data->adc_int_us[0] + data->adc_int_us[1] + 2*USEC_PER_MSEC; in hdc100x_trigger_handler() local
331 usleep_range(delay, delay + 1000); in hdc100x_trigger_handler()
/third_party/python/Lib/test/
H A Dtest_thread.py54 delay = random.random() / 10000.0
55 verbose_print("task %s will run for %sus" % (ident, round(delay*1e6)))
56 time.sleep(delay)
202 delay = 0
205 delay = random.random() / 10000.0
207 (ident, round(delay * 1e6)))
208 time.sleep(delay)
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dtdls.c263 unsigned int delay; in iwl_mvm_rx_tdls_notif() local
292 delay = TU_TO_MS(vif->bss_conf.dtim_period * vif->bss_conf.beacon_int); in iwl_mvm_rx_tdls_notif()
294 msecs_to_jiffies(delay)); in iwl_mvm_rx_tdls_notif()
514 unsigned int delay; in iwl_mvm_tdls_ch_switch_work() local
549 delay = TU_TO_MS(vif->bss_conf.dtim_period * vif->bss_conf.beacon_int); in iwl_mvm_tdls_ch_switch_work()
550 schedule_delayed_work(&mvm->tdls_cs.dwork, msecs_to_jiffies(delay)); in iwl_mvm_tdls_ch_switch_work()
564 unsigned int delay; in iwl_mvm_tdls_channel_switch() local
610 delay = 2 * TU_TO_MS(vif->bss_conf.dtim_period * in iwl_mvm_tdls_channel_switch()
613 msecs_to_jiffies(delay)); in iwl_mvm_tdls_channel_switch()
679 unsigned int delay; in iwl_mvm_tdls_recv_channel_switch() local
[all...]

Completed in 25 milliseconds

12345678910>>...487