Home
last modified time | relevance | path

Searched refs:usecs (Results 1 – 25 of 104) sorted by relevance

12345

/linux/kernel/time/
H A Dtest_udelay.c8 * Specifying usecs of 0 or negative values will run multiples tests.
27 static int udelay_test_single(struct seq_file *s, int usecs, uint32_t iters) in udelay_test_single() argument
34 int allowed_error_ns = usecs * 5; in udelay_test_single()
41 udelay(usecs); in udelay_test_single()
49 if ((time_passed + allowed_error_ns) / 1000 < usecs) in udelay_test_single()
57 seq_printf(s, "%d usecs x %d: exp=%d allowed=%d min=%d avg=%lld max=%d", in udelay_test_single()
58 usecs, iters, usecs * 1000, in udelay_test_single()
59 (usecs * 1000) - allowed_error_ns, min, avg, max); in udelay_test_single()
69 int usecs; in udelay_test_show() local
104 int usecs; udelay_test_write() local
[all...]
/linux/arch/parisc/include/asm/
H A Ddelay.h13 extern void __udelay(unsigned long usecs);
14 extern void __udelay_bad(unsigned long usecs);
16 static inline void udelay(unsigned long usecs) in udelay() argument
18 if (__builtin_constant_p(usecs) && (usecs) > 20000) in udelay()
19 __udelay_bad(usecs); in udelay()
20 __udelay(usecs); in udelay()
/linux/include/linux/
H A Ddelay.h111 * @usecs: requested sleep duration in microseconds
127 static inline void fsleep(unsigned long usecs) in fsleep() argument
129 if (usecs <= 10) in fsleep()
130 udelay(usecs); in fsleep()
131 else if (usecs < USLEEP_RANGE_UPPER_BOUND) in fsleep()
132 usleep_range(usecs, usecs + (usecs >> max_slack_shift)); in fsleep()
134 msleep(DIV_ROUND_UP(usecs, USEC_PER_MSEC)); in fsleep()
H A Dlatencytop.h31 void __account_scheduler_latency(struct task_struct *task, int usecs, int inter);
33 account_scheduler_latency(struct task_struct *task, int usecs, int inter) in account_scheduler_latency() argument
36 __account_scheduler_latency(task, usecs, inter); in account_scheduler_latency()
44 account_scheduler_latency(struct task_struct *task, int usecs, int inter) in account_scheduler_latency() argument
/linux/drivers/ufs/core/
H A Dufs_trace.h173 TP_printk("%s: %s: took %lld usecs, err %d",
194 TP_PROTO(struct ufs_hba *hba, int err, s64 usecs,
197 TP_ARGS(hba, err, usecs, dev_state, link_state),
200 __field(s64, usecs)
208 __entry->usecs = usecs;
216 "%s: took %lld usecs, dev_state: %s, link_state: %s, err %d",
218 __entry->usecs,
226 TP_PROTO(struct ufs_hba *hba, int err, s64 usecs,
228 TP_ARGS(hba, err, usecs, dev_stat
[all...]
/linux/drivers/media/cec/core/
H A Dcec-pin-error-inj.c151 if (!strcmp(token, "tx-custom-low-usecs")) { in cec_pin_error_inj_parse_line()
152 u32 usecs; in cec_pin_error_inj_parse_line() local
154 if (kstrtou32(p, 0, &usecs) || usecs > 10000000) in cec_pin_error_inj_parse_line()
156 pin->tx_custom_low_usecs = usecs; in cec_pin_error_inj_parse_line()
159 if (!strcmp(token, "tx-custom-high-usecs")) { in cec_pin_error_inj_parse_line()
160 u32 usecs; in cec_pin_error_inj_parse_line() local
162 if (kstrtou32(p, 0, &usecs) || usecs > 10000000) in cec_pin_error_inj_parse_line()
164 pin->tx_glitch_high_usecs = usecs; in cec_pin_error_inj_parse_line()
168 u32 usecs; cec_pin_error_inj_parse_line() local
176 u32 usecs; cec_pin_error_inj_parse_line() local
[all...]
/linux/arch/riscv/lib/
H A Ddelay.c85 void udelay(unsigned long usecs) in udelay() argument
87 u64 ucycles = (u64)usecs * lpj_fine * UDELAY_MULT; in udelay()
90 if (unlikely(usecs > MAX_UDELAY_US)) { in udelay()
91 n = (u64)usecs * riscv_timebase; in udelay()
/linux/arch/hexagon/include/asm/
H A Ddelay.h12 extern void __udelay(unsigned long usecs);
14 #define udelay(usecs) __udelay((usecs)) argument
/linux/arch/um/include/asm/
H A Ddelay.h19 static inline void um_udelay(unsigned long usecs) in um_udelay() argument
23 time_travel_ndelay(1000 * usecs); in um_udelay()
26 udelay(usecs); in um_udelay()
/linux/arch/alpha/lib/
H A Dudelay.c43 udelay(unsigned long usecs) in udelay() argument
45 usecs *= (((unsigned long)HZ << 32) / 1000000) * LPJ; in udelay()
46 __delay((long)usecs >> 32); in udelay()
/linux/Documentation/trace/
H A Dhwlat_detector.rst50 - width - time period to sample with CPUs held (usecs)
52 - window - total period of sampling, width being inside (usecs)
55 for every 1,000,000 usecs (1s) the hwlat detector will spin for 500,000 usecs
57 change to a default of 10 usecs. If any latencies that exceed the threshold is
74 - tracing_threshold - minimum latency value to be considered (usecs)
75 - tracing_max_latency - maximum hardware latency actually observed (usecs)
77 - hwlat_detector/width - specified amount of time to spin within window (usecs)
78 - hwlat_detector/window - amount of time between (width) runs (usecs)
/linux/kernel/
H A Dlatencytop.c162 * @usecs: the duration of the latency in microseconds
176 __account_scheduler_latency(struct task_struct *tsk, int usecs, int inter) in __account_scheduler_latency() argument
183 if (inter && usecs > 5000) in __account_scheduler_latency()
188 if (usecs <= 0) in __account_scheduler_latency()
193 lat.time = usecs; in __account_scheduler_latency()
194 lat.max = usecs; in __account_scheduler_latency()
/linux/tools/include/nolibc/
H A Dunistd.h77 int usleep(unsigned int usecs) in usleep() argument
79 struct timeval my_timeval = { usecs / 1000000, usecs % 1000000 }; in usleep()
/linux/drivers/usb/host/
H A Dehci-sched.c203 ps->usecs, ps->c_usecs, ps->cs_mask); in bandwidth_dbg()
211 int usecs = qh->ps.usecs; in reserve_release_intr_bandwidth() local
223 usecs = -usecs; in reserve_release_intr_bandwidth()
231 ehci->bandwidth[i] += usecs; in reserve_release_intr_bandwidth()
334 * periodic transfer of the specified length (usecs), starting at the
362 unsigned usecs = ps->tt_usecs; in tt_available() local
372 if (tt->bandwidth[frame] + usecs > 900) in tt_available()
387 if (usecs > 12 in tt_available()
747 check_period(struct ehci_hcd * ehci,unsigned frame,unsigned uframe,unsigned uperiod,unsigned usecs) check_period() argument
1307 int usecs = stream->ps.usecs; reserve_release_iso_bandwidth() local
1370 unsigned usecs; itd_slot_ok() local
[all...]
/linux/Documentation/networking/device_drivers/ethernet/intel/
H A Didpf.rst101 - Setting rx-usecs and tx-usecs to 80 will limit interrupts to about
104 # ethtool -C <ethX> adaptive-rx off adaptive-tx off rx-usecs 80
105 tx-usecs 80
108 - Disable adaptive ITR and ITR by setting rx-usecs and tx-usecs to 0
111 # ethtool -C <ethX> adaptive-rx off adaptive-tx off rx-usecs 0
112 tx-usecs 0
122 rx-usecs 10
/linux/drivers/spi/
H A Dspi-lp8841-rtc.c67 unsigned usecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha0_lsb() argument
80 usleep_range(usecs, usecs + 1); /* T(setup) */ in bitbang_txrx_be_cpha0_lsb()
88 usleep_range(usecs, usecs + 1); in bitbang_txrx_be_cpha0_lsb()
/linux/rust/helpers/
H A Dtime.c7 void rust_helper_fsleep(unsigned long usecs) in rust_helper_fsleep() argument
9 fsleep(usecs); in rust_helper_fsleep()
/linux/arch/sh/lib/
H A Ddelay.c45 void __udelay(unsigned long usecs) in __udelay() argument
47 __const_udelay(usecs * 0x000010c6); /* 2**32 / 1000000 */ in __udelay()
/linux/arch/arc/include/asm/
H A Ddelay.h37 * Normal Math for computing loops in "N" usecs
40 * loops per "N" usecs = ((loops_per_jiffy * HZ / 1000000) * N)
54 static inline void __udelay(unsigned long usecs) in __udelay() argument
61 loops = ((u64) usecs * 4295 * HZ * loops_per_jiffy) >> 32; in __udelay()
/linux/arch/csky/lib/
H A Ddelay.c29 void __udelay(unsigned long usecs) in __udelay() argument
31 __const_udelay(usecs * 0x10C7UL); /* 2**32 / 1000000 (rounded up) */ in __udelay()
/linux/arch/x86/um/
H A Ddelay.c47 void __udelay(unsigned long usecs) in __udelay() argument
49 __const_udelay(usecs * 0x000010c7); /* 2**32 / 1000000 (rounded up) */ in __udelay()
/linux/arch/s390/lib/
H A Ddelay.c34 void __udelay(unsigned long usecs) in __udelay() argument
36 delay_loop(usecs << 12); in __udelay()
/linux/arch/nios2/lib/
H A Ddelay.c30 void __udelay(unsigned long usecs) in __udelay() argument
32 __const_udelay(usecs * 0x10C7UL); /* 2**32 / 1000000 (rounded up) */ in __udelay()
/linux/arch/openrisc/lib/
H A Ddelay.c49 void __udelay(unsigned long usecs) in __udelay() argument
51 __const_udelay(usecs * 0x10C7UL); /* 2**32 / 1000000 (rounded up) */ in __udelay()
/linux/arch/parisc/lib/
H A Ddelay.c68 void __udelay(unsigned long usecs) in __udelay() argument
70 __cr16_delay(usecs * ((unsigned long)boot_cpu_data.cpu_hz / 1000000UL)); in __udelay()

12345