| /linux/tools/testing/selftests/kvm/include/arm64/ |
| H A D | arch_timer.h | 20 #define msec_to_cycles(msec) \ argument 21 (timer_get_cntfrq() * (u64)(msec) / 1000) 145 static inline void timer_set_next_cval_ms(enum arch_timer timer, u32 msec) in timer_set_next_cval_ms() argument 148 u64 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, u32 msec) in timer_set_next_tval_ms() argument 155 timer_set_tval(timer, msec_to_cycles(msec)); in timer_set_next_tval_ms()
|
| /linux/tools/testing/selftests/kvm/include/riscv/ |
| H A D | arch_timer.h | 16 #define msec_to_cycles(msec) \ argument 17 ((timer_freq) * (u64)(msec) / 1000) 50 static inline void timer_set_next_cmp_ms(u32 msec) in timer_set_next_cmp_ms() argument 53 u64 next_ct = now_ct + msec_to_cycles(msec); in timer_set_next_cmp_ms()
|
| /linux/kernel/power/ |
| H A D | suspend_test.c | 39 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/loongarch/ |
| H A D | arch_timer.h | 12 #define msec_to_cycles(msec) (TIMER_FREQ * (unsigned long)(msec) / 1000) argument 62 static inline void timer_set_next_cmp_ms(unsigned int msec, bool period) in timer_set_next_cmp_ms() argument 66 val = msec_to_cycles(msec) & CSR_TCFG_VAL; in timer_set_next_cmp_ms()
|
| /linux/tools/thermal/lib/ |
| H A D | uptimeofday.c | 32 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()
|
| H A D | uptimeofday.h | 10 struct timespec msec_to_timespec(int msec);
|
| /linux/drivers/accel/habanalabs/common/pci/ |
| H A D | pci.c | 94 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/drivers/base/power/ |
| H A D | sysfs.c | 455 s64 msec; in wakeup_total_time_ms_show() local 460 msec = ktime_to_ms(dev->power.wakeup->total_time); in wakeup_total_time_ms_show() 467 return sysfs_emit(buf, "%lld\n", msec); in wakeup_total_time_ms_show() 475 s64 msec; in wakeup_max_time_ms_show() local 480 msec = ktime_to_ms(dev->power.wakeup->max_time); in wakeup_max_time_ms_show() 487 return sysfs_emit(buf, "%lld\n", msec); in wakeup_max_time_ms_show() 496 s64 msec; in wakeup_last_time_ms_show() local 501 msec = ktime_to_ms(dev->power.wakeup->last_time); in wakeup_last_time_ms_show() 508 return sysfs_emit(buf, "%lld\n", msec); in wakeup_last_time_ms_show() 518 s64 msec; in wakeup_prevent_sleep_time_ms_show() local [all …]
|
| /linux/drivers/net/ethernet/arc/ |
| H A D | emac_mdio.c | 115 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/include/linux/ |
| H A D | ktime.h | 182 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()
|
| H A D | ti_wilink_st.h | 316 u32 msec; member 322 u32 msec; member
|
| /linux/drivers/watchdog/ |
| H A D | da9052_wdt.c | 124 unsigned long msec, jnow = jiffies; in da9052_wdt_ping() local 131 msec = (jnow - driver_data->jpast) * 1000/HZ; in da9052_wdt_ping() 132 if (msec < DA9052_TWDMIN) in da9052_wdt_ping() 133 mdelay(msec); in da9052_wdt_ping()
|
| /linux/drivers/edac/ |
| H A D | edac_pci.c | 167 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 D | edac_device.c | 306 unsigned msec) in edac_device_workq_setup() argument 314 edac_dev->poll_msec = msec; in edac_device_workq_setup() 315 edac_dev->delay = msecs_to_jiffies(msec); in edac_device_workq_setup() 352 unsigned long msec) in edac_device_reset_delay_period() argument 354 edac_dev->poll_msec = msec; in edac_device_reset_delay_period() 355 edac_dev->delay = msecs_to_jiffies(msec); in edac_device_reset_delay_period()
|
| /linux/Documentation/devicetree/bindings/iio/accel/ |
| H A D | lis302.txt | 30 - 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/tools/testing/selftests/net/forwarding/ |
| H A D | router.sh | 203 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \ 252 $MZ $flags $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b $dmac \ 281 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \ 301 $MZ -6 $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \ 324 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b $rp1mac -B $dip -q 349 $MZ "$h1" -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b "$rp1mac" \
|
| H A D | bridge_locked_port.sh | 228 $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/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | devlink_trap_l2_drops.sh | 105 $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 D | devlink_trap_acl_drops.sh | 105 -t ip -d 1msec -q & 130 -t ip -d 1msec -q &
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | tout.c | 67 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 D | hw_stats_l3.sh | 172 $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/driver-api/media/drivers/ |
| H A D | radiotrack.rst | 91 Results available by reading ioport >60 msec after last port write. 140 wait 10 msec 145 wait 10 msec 150 wait 100 msec
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_ec_lightbar.c | 47 unsigned long msec = lb_interval_jiffies * 1000 / HZ; in interval_msec_show() local 49 return sysfs_emit(buf, "%lu\n", msec); in interval_msec_show() 56 unsigned long msec; in interval_msec_store() local 58 if (kstrtoul(buf, 0, &msec)) in interval_msec_store() 61 lb_interval_jiffies = msec * HZ / 1000; in interval_msec_store()
|
| /linux/drivers/scsi/isci/ |
| H A D | isci.h | 500 static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) in sci_mod_timer() argument 503 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec)); in sci_mod_timer()
|
| /linux/Documentation/leds/ |
| H A D | leds-mlxcpld.rst | 118 For 3Hz duty cycle is about 167 msec, for 6Hz is about 83 msec.
|