Home
last modified time | relevance | path

Searched full:usecs (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/kernel/linux/linux-5.10/kernel/time/
Dtest_udelay.c6 * Tests are configured by writing: USECS ITERATIONS
8 * Specifying usecs of 0 or negative values will run multiples tests.
28 static int udelay_test_single(struct seq_file *s, int usecs, uint32_t iters) in udelay_test_single() argument
35 int allowed_error_ns = usecs * 5; in udelay_test_single()
42 udelay(usecs); in udelay_test_single()
50 if ((time_passed + allowed_error_ns) / 1000 < usecs) in udelay_test_single()
58 seq_printf(s, "%d usecs x %d: exp=%d allowed=%d min=%d avg=%lld max=%d", in udelay_test_single()
59 usecs, iters, usecs * 1000, in udelay_test_single()
60 (usecs * 1000) - allowed_error_ns, min, avg, max); in udelay_test_single()
70 int usecs; in udelay_test_show() local
[all …]
/kernel/linux/linux-5.10/arch/s390/lib/
Ddelay.c34 static void __udelay_disabled(unsigned long long usecs) in __udelay_disabled() argument
40 end = get_tod_clock() + (usecs << 12); in __udelay_disabled()
55 static void __udelay_enabled(unsigned long long usecs) in __udelay_enabled() argument
59 end = get_tod_clock_fast() + (usecs << 12); in __udelay_enabled()
73 * Waits for 'usecs' microseconds using the TOD clock comparator.
75 void __udelay(unsigned long long usecs) in __udelay() argument
82 __udelay_disabled(usecs); in __udelay()
87 __udelay_disabled(usecs); in __udelay()
89 __udelay_enabled(usecs); in __udelay()
94 __udelay_disabled(usecs); in __udelay()
[all …]
/kernel/linux/linux-5.10/arch/nds32/include/asm/
Ddelay.h20 static inline void __udelay(unsigned long usecs, unsigned long lpj) in __udelay() argument
22 usecs *= (unsigned long)(((0x8000000000000000ULL / (500000 / HZ)) + in __udelay()
24 usecs = (unsigned long)(((unsigned long long)usecs * lpj) >> 32); in __udelay()
25 __delay(usecs); in __udelay()
28 #define udelay(usecs) __udelay((usecs), loops_per_jiffy) argument
30 /* make sure "usecs *= ..." in udelay do not overflow. */
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/trace/events/
Dufs.h138 TP_printk("%s: %s: took %lld usecs, err %d",
159 TP_PROTO(const char *dev_name, int err, s64 usecs,
162 TP_ARGS(dev_name, err, usecs, dev_state, link_state),
165 __field(s64, usecs)
173 __entry->usecs = usecs;
181 "%s: took %lld usecs, dev_state: %s, link_state: %s, err %d",
183 __entry->usecs,
191 TP_PROTO(const char *dev_name, int err, s64 usecs,
193 TP_ARGS(dev_name, err, usecs, dev_state, link_state));
196 TP_PROTO(const char *dev_name, int err, s64 usecs,
[all …]
/kernel/linux/linux-5.10/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)
/kernel/linux/linux-5.10/include/linux/
Ddelay.h69 static inline void fsleep(unsigned long usecs) in fsleep() argument
71 if (usecs <= 10) in fsleep()
72 udelay(usecs); in fsleep()
73 else if (usecs <= 20000) in fsleep()
74 usleep_range(usecs, 2 * usecs); in fsleep()
76 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()
47 account_scheduler_latency(struct task_struct *task, int usecs, int inter) in account_scheduler_latency() argument
/kernel/linux/linux-5.10/drivers/media/cec/core/
Dcec-pin-error-inj.c128 if (!strcmp(token, "tx-custom-low-usecs")) { in cec_pin_error_inj_parse_line()
129 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()
136 if (!strcmp(token, "tx-custom-high-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()
284 …seq_puts(sf, "# tx-custom-low-usecs <usecs> define the 'low' time for the custom pulse\n"… in cec_pin_error_inj_show()
285 …seq_puts(sf, "# tx-custom-high-usecs <usecs> define the 'high' time for the custom pulse\n… in cec_pin_error_inj_show()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/
Ddfs_pri_detector.h27 * @pri: pulse repetition interval (PRI) in usecs
28 * @dur: duration of sequence in usecs
31 * @first_ts: time stamp of first pulse in usecs
32 * @last_ts: time stamp of last pulse in usecs
52 * @last_ts: last pulse time stamp considered for this element in usecs
57 * @window_size: window size back from newest pulse time stamp in usecs
/kernel/linux/linux-5.10/tools/testing/selftests/ftrace/test.d/trigger/inter-event/
Dtrigger-inter-event-combined-hist.tc20 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_waking/trigger
21 echo 'hist:keys=pid:waking_lat=common_timestamp.usecs-$ts0:onmatch(sched.sched_waking).waking_laten…
25 echo 'hist:keys=pid:ts1=common_timestamp.usecs if comm=="ping"' >> events/sched/sched_wakeup/trigger
26 echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts1:onmatch(sched.sched_wakeup).wakeup_…
Dtrigger-field-variable-support.tc14 echo 'hist:keys=comm:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_waking/trigger
15 echo 'hist:keys=next_comm:wakeup_lat=common_timestamp.usecs-$ts0:onmatch(sched.sched_waking).wakeup…
27 echo '!hist:keys=next_comm:wakeup_lat=common_timestamp.usecs-$ts0:onmatch(sched.sched_waking).wakeu…
/kernel/linux/linux-5.10/arch/hexagon/include/asm/
Ddelay.h12 extern void __udelay(unsigned long usecs);
14 #define udelay(usecs) __udelay((usecs)) argument
/kernel/linux/linux-5.10/arch/arc/include/asm/
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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dwatchdog.h43 * 1/32 (initial value) 41 usecs
44 * 1/64 82 usecs
45 * 1/128 164 usecs
46 * 1/256 328 usecs
47 * 1/512 656 usecs
/kernel/linux/linux-5.10/arch/riscv/lib/
Ddelay.c81 void udelay(unsigned long usecs) in udelay() argument
83 u64 ucycles = (u64)usecs * lpj_fine * UDELAY_MULT; in udelay()
86 if (unlikely(usecs > MAX_UDELAY_US)) { in udelay()
87 n = (u64)usecs * riscv_timebase; in udelay()
/kernel/linux/linux-5.10/fs/ocfs2/cluster/
Dnetdebug.c137 " sock acquiry: %lld usecs ago\n" in nst_seq_show()
138 " send start: %lld usecs ago\n" in nst_seq_show()
139 " wait start: %lld usecs ago\n", in nst_seq_show()
324 " timer: %lld usecs\n" in sc_show_sock_container()
325 " data ready: %lld usecs\n" in sc_show_sock_container()
326 " advance start: %lld usecs\n" in sc_show_sock_container()
327 " advance stop: %lld usecs\n" in sc_show_sock_container()
328 " func start: %lld usecs\n" in sc_show_sock_container()
329 " func stop: %lld usecs\n" in sc_show_sock_container()
/kernel/linux/linux-5.10/Documentation/userspace-api/media/cec/
Dcec-pin-error-inj.rst51 # tx-custom-low-usecs <usecs> define the 'low' time for the custom pulse
52 # tx-custom-high-usecs <usecs> define the 'high' time for the custom pulse
74 # <usecs> microseconds (0-10000000, default 1000)
308 ``tx-custom-low-usecs <usecs>``
312 ``tx-custom-high-usecs <usecs>``
316 ``tx-custom-low-usecs + tx-custom-high-usecs``.
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
328 * periodic transfer of the specified length (usecs), starting at the
356 unsigned usecs = ps->tt_usecs; in tt_available() local
366 if (tt->bandwidth[frame] + usecs > 900) in tt_available()
381 if (usecs > 125) { in tt_available()
382 int ufs = (usecs / 125); in tt_available()
389 tt_usecs[uframe] += usecs; in tt_available()
[all …]
/kernel/linux/linux-5.10/kernel/
Dlatencytop.c137 * @usecs - the duration of the latency in microseconds
151 __account_scheduler_latency(struct task_struct *tsk, int usecs, int inter) in __account_scheduler_latency() argument
158 if (inter && usecs > 5000) in __account_scheduler_latency()
163 if (usecs <= 0) in __account_scheduler_latency()
168 lat.time = usecs; in __account_scheduler_latency()
169 lat.max = usecs; in __account_scheduler_latency()
/kernel/linux/linux-5.10/Documentation/timers/
Dtimers-howto.rst27 udelay(unsigned long usecs)
47 udelay(unsigned long usecs)
63 SLEEPING FOR "A FEW" USECS ( < ~10us? ):
73 SLEEPING FOR ~USECS OR SMALL MSECS ( 10us - 20ms):
/kernel/linux/linux-5.10/drivers/spi/
Dspi-lp8841-rtc.c68 unsigned usecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha0_lsb() argument
81 usleep_range(usecs, usecs + 1); /* T(setup) */ in bitbang_txrx_be_cpha0_lsb()
89 usleep_range(usecs, usecs + 1); in bitbang_txrx_be_cpha0_lsb()
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/intel/
Di40e.rst565 # ethtool -C ethX rx-usecs-high N
568 interrupts per second. The value of rx-usecs-high can be set independently of
569 rx-usecs and tx-usecs in the same ethtool command, and is also independent of
576 # ethtool -C ethX adaptive-rx off adaptive-tx off rx-usecs-high 20 rx-usecs \
577 5 tx-usecs 5
582 limits total interrupts per second to 50,000 via the rx-usecs-high parameter.
630 - Setting rx-usecs and tx-usecs to 125 will limit interrupts to about 8000
635 # ethtool -C <interface> adaptive-rx off adaptive-tx off rx-usecs 125 \
636 tx-usecs 125
641 - Setting rx-usecs and tx-usecs to 250 will limit interrupts to about 4000
[all …]

12345678910>>...14