Home
last modified time | relevance | path

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

123456

/linux-6.6.21/kernel/time/
Dtest_udelay.c27 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()
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
74 usecs = udelay_test_usecs; in udelay_test_show()
78 if (usecs > 0 && iters > 0) { in udelay_test_show()
79 return udelay_test_single(s, usecs, iters); in udelay_test_show()
[all …]
/linux-6.6.21/arch/parisc/include/asm/
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-6.6.21/include/trace/events/
Dufs.h193 TP_PROTO(const char *dev_name, int err, s64 usecs,
196 TP_ARGS(dev_name, err, usecs, dev_state, link_state),
199 __field(s64, usecs)
207 __entry->usecs = usecs;
217 __entry->usecs,
225 TP_PROTO(const char *dev_name, int err, s64 usecs,
227 TP_ARGS(dev_name, err, usecs, dev_state, link_state));
230 TP_PROTO(const char *dev_name, int err, s64 usecs,
232 TP_ARGS(dev_name, err, usecs, dev_state, link_state));
235 TP_PROTO(const char *dev_name, int err, s64 usecs,
[all …]
/linux-6.6.21/include/linux/
Ddelay.h82 static inline void fsleep(unsigned long usecs) in fsleep() argument
84 if (usecs <= 10) in fsleep()
85 udelay(usecs); in fsleep()
86 else if (usecs <= 20000) in fsleep()
87 usleep_range(usecs, 2 * usecs); in fsleep()
89 msleep(DIV_ROUND_UP(usecs, 1000)); in fsleep()
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-6.6.21/arch/riscv/lib/
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-6.6.21/arch/hexagon/include/asm/
Ddelay.h12 extern void __udelay(unsigned long usecs);
14 #define udelay(usecs) __udelay((usecs)) argument
/linux-6.6.21/arch/um/include/asm/
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-6.6.21/arch/alpha/lib/
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-6.6.21/drivers/media/cec/core/
Dcec-pin-error-inj.c129 u32 usecs; in cec_pin_error_inj_parse_line() local
131 if (kstrtou32(p, 0, &usecs) || usecs > 10000000) in cec_pin_error_inj_parse_line()
133 pin->tx_custom_low_usecs = usecs; in cec_pin_error_inj_parse_line()
137 u32 usecs; in cec_pin_error_inj_parse_line() local
139 if (kstrtou32(p, 0, &usecs) || usecs > 10000000) in cec_pin_error_inj_parse_line()
141 pin->tx_custom_high_usecs = usecs; in cec_pin_error_inj_parse_line()
/linux-6.6.21/Documentation/trace/
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-6.6.21/kernel/
Dlatencytop.c177 __account_scheduler_latency(struct task_struct *tsk, int usecs, int inter) in __account_scheduler_latency() argument
184 if (inter && usecs > 5000) in __account_scheduler_latency()
189 if (usecs <= 0) in __account_scheduler_latency()
194 lat.time = usecs; in __account_scheduler_latency()
195 lat.max = usecs; in __account_scheduler_latency()
/linux-6.6.21/tools/include/nolibc/
Dunistd.h46 int usleep(unsigned int usecs) in usleep() argument
48 struct timeval my_timeval = { usecs / 1000000, usecs % 1000000 }; in usleep()
/linux-6.6.21/drivers/usb/host/
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()
362 unsigned usecs = ps->tt_usecs; in tt_available() local
372 if (tt->bandwidth[frame] + usecs > 900) in tt_available()
387 if (usecs > 125) { in tt_available()
388 int ufs = (usecs / 125); in tt_available()
395 tt_usecs[uframe] += usecs; in tt_available()
530 qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs); in qh_link_periodic()
[all …]
/linux-6.6.21/drivers/spi/
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-6.6.21/arch/sh/lib/
Ddelay.c45 void __udelay(unsigned long usecs) in __udelay() argument
47 __const_udelay(usecs * 0x000010c6); /* 2**32 / 1000000 */ in __udelay()
/linux-6.6.21/arch/arc/include/asm/
Ddelay.h54 static inline void __udelay(unsigned long usecs) in __udelay() argument
61 loops = ((u64) usecs * 4295 * HZ * loops_per_jiffy) >> 32; in __udelay()
/linux-6.6.21/arch/x86/um/
Ddelay.c47 void __udelay(unsigned long usecs) in __udelay() argument
49 __const_udelay(usecs * 0x000010c7); /* 2**32 / 1000000 (rounded up) */ in __udelay()
/linux-6.6.21/arch/csky/lib/
Ddelay.c29 void __udelay(unsigned long usecs) in __udelay() argument
31 __const_udelay(usecs * 0x10C7UL); /* 2**32 / 1000000 (rounded up) */ in __udelay()
/linux-6.6.21/arch/s390/lib/
Ddelay.c33 void __udelay(unsigned long usecs) in __udelay() argument
35 delay_loop(usecs << 12); in __udelay()
/linux-6.6.21/arch/nios2/lib/
Ddelay.c30 void __udelay(unsigned long usecs) in __udelay() argument
32 __const_udelay(usecs * 0x10C7UL); /* 2**32 / 1000000 (rounded up) */ in __udelay()
/linux-6.6.21/arch/openrisc/lib/
Ddelay.c49 void __udelay(unsigned long usecs) in __udelay() argument
51 __const_udelay(usecs * 0x10C7UL); /* 2**32 / 1000000 (rounded up) */ in __udelay()
/linux-6.6.21/arch/parisc/lib/
Ddelay.c68 void __udelay(unsigned long usecs) in __udelay() argument
70 __cr16_delay(usecs * ((unsigned long)boot_cpu_data.cpu_hz / 1000000UL)); in __udelay()
/linux-6.6.21/arch/xtensa/include/asm/
Ddelay.h37 static inline void __udelay(unsigned long usecs) in __udelay() argument
40 unsigned long cycles = (usecs * (ccount_freq >> 15)) >> 5; in __udelay()
/linux-6.6.21/arch/arm64/lib/
Ddelay.c59 void __udelay(unsigned long usecs) in __udelay() argument
61 __const_udelay(usecs * 0x10C7UL); /* 2**32 / 1000000 (rounded up) */ in __udelay()

123456