Home
last modified time | relevance | path

Searched refs:msec (Results 1 – 25 of 109) sorted by relevance

12345

/linux/include/linux/
H A Dpm_wakeup.h117 extern void pm_wakeup_ws_event(struct wakeup_source *ws, unsigned int msec, bool hard);
118 extern void pm_wakeup_dev_event(struct device *dev, unsigned int msec, bool hard);
189 unsigned int msec, bool hard) {} in pm_wakeup_ws_event() argument
191 static inline void pm_wakeup_dev_event(struct device *dev, unsigned int msec, in pm_wakeup_dev_event() argument
206 static inline void __pm_wakeup_event(struct wakeup_source *ws, unsigned int msec) in __pm_wakeup_event() argument
208 return pm_wakeup_ws_event(ws, msec, false); in __pm_wakeup_event()
211 static inline void pm_wakeup_event(struct device *dev, unsigned int msec) in pm_wakeup_event() argument
213 return pm_wakeup_dev_event(dev, msec, false); in pm_wakeup_event()
H A Dktime.h182 static inline ktime_t ktime_add_ms(const ktime_t kt, const u64 msec) in ktime_add_ms() argument
184 return ktime_add_ns(kt, msec * NSEC_PER_MSEC); in ktime_add_ms()
192 static inline ktime_t ktime_sub_ms(const ktime_t kt, const u64 msec) in ktime_sub_ms() argument
194 return ktime_sub_ns(kt, msec * NSEC_PER_MSEC); in ktime_sub_ms()
/linux/tools/testing/selftests/kvm/include/aarch64/
H A Darch_timer.h20 #define msec_to_cycles(msec) \ argument
21 (timer_get_cntfrq() * (uint64_t)(msec) / 1000)
145 static inline void timer_set_next_cval_ms(enum arch_timer timer, uint32_t msec) in timer_set_next_cval_ms() argument
148 uint64_t next_ct = now_ct + msec_to_cycles(msec); in timer_set_next_cval_ms()
153 static inline void timer_set_next_tval_ms(enum arch_timer timer, uint32_t msec) in timer_set_next_tval_ms() argument
155 timer_set_tval(timer, msec_to_cycles(msec)); in timer_set_next_tval_ms()
/linux/include/sound/
H A Dsoundfont.h110 int snd_sf_calc_parm_hold(int msec);
111 int snd_sf_calc_parm_attack(int msec);
112 int snd_sf_calc_parm_decay(int msec);
113 #define snd_sf_calc_parm_delay(msec) (0x8000 - (msec) * 1000 / 725) argument
/linux/kernel/power/
H A Dsuspend_test.c39 unsigned msec; in suspend_test_finish() local
41 msec = jiffies_to_msecs(abs(nj)); in suspend_test_finish()
43 msec / 1000, msec % 1000); in suspend_test_finish()
53 WARN(msec > (TEST_SUSPEND_SECONDS * 1000), in suspend_test_finish()
54 "Component: %s, time: %u\n", label, msec); in suspend_test_finish()
/linux/tools/testing/selftests/kvm/include/riscv/
H A Darch_timer.h16 #define msec_to_cycles(msec) \ argument
17 ((timer_freq) * (uint64_t)(msec) / 1000)
50 static inline void timer_set_next_cmp_ms(uint32_t msec) in timer_set_next_cmp_ms() argument
53 uint64_t next_ct = now_ct + msec_to_cycles(msec); in timer_set_next_cmp_ms()
/linux/drivers/watchdog/
H A Ddw_wdt.c79 unsigned int msec; member
164 u64 msec; in dw_wdt_get_max_timeout_ms() local
166 msec = (u64)timeout->sec * MSEC_PER_SEC + timeout->msec; in dw_wdt_get_max_timeout_ms()
168 return msec < UINT_MAX ? msec : UINT_MAX; in dw_wdt_get_max_timeout_ms()
427 u64 msec; in dw_wdt_handle_tops() local
438 msec = (u64)tops[val] * MSEC_PER_SEC; in dw_wdt_handle_tops()
439 do_div(msec, dw_wdt->rate); in dw_wdt_handle_tops()
440 tout.msec = msec - ((u64)tout.sec * MSEC_PER_SEC); in dw_wdt_handle_tops()
449 tout.msec >= dst->msec)) in dw_wdt_handle_tops()
H A Dda9052_wdt.c112 unsigned long msec, jnow = jiffies; in da9052_wdt_ping() local
119 msec = (jnow - driver_data->jpast) * 1000/HZ; in da9052_wdt_ping()
120 if (msec < DA9052_TWDMIN) in da9052_wdt_ping()
121 mdelay(msec); in da9052_wdt_ping()
/linux/tools/thermal/lib/
H A Duptimeofday.c32 struct timespec msec_to_timespec(int msec) in msec_to_timespec() argument
35 .tv_sec = (msec / 1000), in msec_to_timespec()
36 .tv_nsec = (msec % 1000) * 1000000, in msec_to_timespec()
/linux/drivers/accel/habanalabs/common/pci/
H A Dpci.c94 u64 msec; in hl_pci_elbi_read() local
98 msec = HL_PLDM_PCI_ELBI_TIMEOUT_MSEC; in hl_pci_elbi_read()
100 msec = HL_PCI_ELBI_TIMEOUT_MSEC; in hl_pci_elbi_read()
108 timeout = ktime_add_ms(ktime_get(), msec); in hl_pci_elbi_read()
157 u64 msec; in hl_pci_elbi_write() local
161 msec = HL_PLDM_PCI_ELBI_TIMEOUT_MSEC; in hl_pci_elbi_write()
163 msec = HL_PCI_ELBI_TIMEOUT_MSEC; in hl_pci_elbi_write()
173 timeout = ktime_add_ms(ktime_get(), msec); in hl_pci_elbi_write()
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Ddevlink_trap_l3_drops.sh178 $MZ $h1 -c 0 -p 100 -d 1msec -B $h2_ipv4 -q "$rp1mac $h1mac \
208 -B $dip -d 1msec -q &
243 -b $rp1mac -B $dip -d 1msec -q &
277 -B $dip -d 1msec -q &
312 -b $rp1mac -B $dip -d 1msec -q &
343 -B $h2_ipv4 -d 1msec -q &
396 $MZ $h1 -c 0 -d 1msec -a $h1mac -b $rp1mac -q p=$payload &
442 $MZ $h1 -c 0 -d 1msec -a $h1mac -b $rp1mac -q p=$payload &
480 "33:33:00:00:00:00" -B $dip -d 1msec -q &
505 "33:33:00:00:00:00" -B $dip -d 1msec
[all...]
H A Ddevlink_trap_l2_drops.sh105 $MZ $h1 -c 0 -p 100 -a $smac -b bcast -t ip -d 1msec -q &
131 $MZ $h1 "$opt" -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q &
191 $MZ $h1 -Q $vid -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q &
234 $MZ $h1 -Q $vid -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q &
304 $MZ $h1 -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q &
349 $MZ $h1 -c 0 -p 100 -a own -b $dmac -t ip -B $dip -d 1msec -q &
395 $MZ $h1 -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q &
H A Dtc_sample.sh338 ip vrf exec v$h1 $MZ $h1 -c 3200 -d 1msec -p 64 -A 192.0.2.1 \
364 ip vrf exec v${h3}_bond $MZ ${h3}_bond -c 3200 -d 1msec -p 64 \
390 ip vrf exec v$h1 $MZ $h1 -c 3200 -d 1msec -p 64 -A 192.0.2.1 \
416 ip vrf exec v${h3}_bond $MZ ${h3}_bond -c 3200 -d 1msec -p 64 \
445 ip vrf exec v$h1 $MZ $h1 -c 3200 -d 1msec -p 64 -A 192.0.2.1 \
460 ip vrf exec v$h1 $MZ $h1 -c 3200 -d 1msec -p 64 -A 192.0.2.1 \
533 ip vrf exec v$h1 $MZ $h1 -c 3200 -d 1msec -p 64 -A 192.0.2.1 \
611 ip vrf exec v$h1 $MZ $h1 -c 3200 -d 1msec -p 64 -A 192.0.2.1 \
H A Ddevlink_trap_l3_exceptions.sh192 $MZ $h1 -t udp "sp=54321,dp=12345,df" -p 1400 -c 0 -d 1msec -b $rp1mac \
227 $MZ $h1 -t udp "ttl=$ttl_val,sp=54321,dp=12345" -c 0 -d 1msec \
339 $MZ $flags $h1 -t udp "sp=54321,dp=12345" -c 0 -d 1msec -b $rp1mac \
537 $MZ $h1 -t udp "sp=54321,dp=12345" -c 0 -d 1msec -b $rp1mac \
564 $MZ -6 $h1 -t udp "sp=54321,dp=12345" -c 0 -d 1msec -b $rp1mac \
/linux/drivers/net/ethernet/arc/
H A Demac_mdio.c115 msleep(data->msec); in arc_mdio_reset()
161 of_property_read_u32(np, "phy-reset-duration", &data->msec); in arc_mdio_probe()
163 if (data->msec > 1000) in arc_mdio_probe()
164 data->msec = 1; in arc_mdio_probe()
/linux/drivers/edac/
H A Dedac_pci.c167 int msec; in edac_pci_workq_function() local
183 msec = edac_pci_get_poll_msec(); in edac_pci_workq_function()
184 if (msec == 1000) in edac_pci_workq_function()
185 delay = round_jiffies_relative(msecs_to_jiffies(msec)); in edac_pci_workq_function()
187 delay = msecs_to_jiffies(msec); in edac_pci_workq_function()
H A Dedac_device.c305 unsigned msec) in edac_device_workq_setup() argument
313 edac_dev->poll_msec = msec; in edac_device_workq_setup()
314 edac_dev->delay = msecs_to_jiffies(msec); in edac_device_workq_setup()
351 unsigned long msec) in edac_device_reset_delay_period() argument
353 edac_dev->poll_msec = msec; in edac_device_reset_delay_period()
354 edac_dev->delay = msecs_to_jiffies(msec); in edac_device_reset_delay_period()
/linux/Documentation/devicetree/bindings/iio/accel/
H A Dlis302.txt30 - st,click-click-time-limit: click time limit, from 0 to 127.5msec
31 with step of 0.5 msec
32 - st,click-latency: click latency, from 0 to 255 msec with
33 step of 1 msec.
34 - st,click-window: click window, from 0 to 255 msec with
35 step of 1 msec.
/linux/Documentation/filesystems/nfs/
H A Dlocalio.rst43 4K read: IOPS=979k, BW=3825MiB/s (4011MB/s)(74.7GiB/20002msec)
44 4K write: IOPS=165k, BW=646MiB/s (678MB/s)(12.6GiB/20002msec)
45 128K read: IOPS=402k, BW=49.1GiB/s (52.7GB/s)(982GiB/20002msec)
46 128K write: IOPS=11.5k, BW=1433MiB/s (1503MB/s)(28.0GiB/20004msec)
49 4K read: IOPS=79.2k, BW=309MiB/s (324MB/s)(6188MiB/20003msec)
50 4K write: IOPS=59.8k, BW=234MiB/s (245MB/s)(4671MiB/20002msec)
51 128K read: IOPS=33.9k, BW=4234MiB/s (4440MB/s)(82.7GiB/20004msec)
52 128K write: IOPS=11.5k, BW=1434MiB/s (1504MB/s)(28.0GiB/20011msec)
56 4K read: IOPS=230k, BW=898MiB/s (941MB/s)(17.5GiB/20001msec)
57 4K write: IOPS=22.6k, BW=88.3MiB/s (92.6MB/s)(1766MiB/20001msec)
[all …]
/linux/tools/testing/selftests/net/forwarding/
H A Drouter.sh200 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \
249 $MZ $flags $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b $dmac \
278 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \
298 $MZ -6 $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \
321 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b $rp1mac -B $dip -q
H A Dbridge_locked_port.sh228 $MZ $h1 -q -c 5 -d 100msec -t udp -a $mac -b rand
232 $MZ $h2 -q -c 5 -d 100msec -t udp -a $mac -b rand
239 $MZ $h1 -q -c 5 -d 100msec -t udp -a $mac -b rand
288 $MZ $h1 -q -c 5 -d 100msec -t udp -a $locked_mac1 -b rand
293 $MZ $h2 -q -c 5 -d 100msec -t udp -a $locked_mac2 -b rand
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dtout.c67 u64 msec = to_val; in tout_convert_reg_field_to_ms() local
72 msec *= 1000 * int_pow(60, to_mul - 1); in tout_convert_reg_field_to_ms()
74 return msec; in tout_convert_reg_field_to_ms()
/linux/tools/testing/selftests/drivers/net/hw/
H A Dhw_stats_l3.sh172 $MZ $h1.200 -c 21 -d 20msec -p 100 \
179 $MZ $h1.200 -6 -c 21 -d 20msec -p 100 \
186 $MZ $h2.200 -c 21 -d 20msec -p 100 \
193 $MZ $h2.200 -6 -c 21 -d 20msec -p 100 \
/linux/Documentation/watchdog/
H A Dmlx-wdt.rst16 Actual HW timeout can be defined as a power of 2 msec.
17 e.g. timeout 20 sec will be rounded up to 32768 msec.
18 The maximum timeout period is 32 sec (32768 msec.),
/linux/drivers/leds/
H A Dleds-tca6507.c190 static int choose_times(int msec, int *c1p, int *c2p) in choose_times() argument
207 int tmax = msec * 9 / 8; in choose_times()
208 int tmin = msec * 7 / 8; in choose_times()
228 d = abs(msec - tt); in choose_times()
236 return msec; in choose_times()
241 if (msec & 1) { in choose_times()

12345