/linux-master/tools/thermal/lib/ |
H A D | uptimeofday.h | 10 struct timespec msec_to_timespec(int msec);
|
H A D | uptimeofday.c | 32 struct timespec msec_to_timespec(int msec) argument 35 .tv_sec = (msec / 1000), 36 .tv_nsec = (msec % 1000) * 1000000,
|
/linux-master/tools/testing/selftests/kvm/include/riscv/ |
H A D | arch_timer.h | 16 #define msec_to_cycles(msec) \ 17 ((timer_freq) * (uint64_t)(msec) / 1000) 50 static inline void timer_set_next_cmp_ms(uint32_t msec) argument 53 uint64_t next_ct = now_ct + msec_to_cycles(msec);
|
/linux-master/tools/testing/selftests/kvm/include/aarch64/ |
H A D | arch_timer.h | 20 #define msec_to_cycles(msec) \ 21 (timer_get_cntfrq() * (uint64_t)(msec) / 1000) 129 static inline void timer_set_next_cval_ms(enum arch_timer timer, uint32_t msec) argument 132 uint64_t next_ct = now_ct + msec_to_cycles(msec); 137 static inline void timer_set_next_tval_ms(enum arch_timer timer, uint32_t msec) argument 139 timer_set_tval(timer, msec_to_cycles(msec));
|
/linux-master/include/sound/ |
H A D | soundfont.h | 108 int snd_sf_calc_parm_hold(int msec); 109 int snd_sf_calc_parm_attack(int msec); 110 int snd_sf_calc_parm_decay(int msec); 111 #define snd_sf_calc_parm_delay(msec) (0x8000 - (msec) * 1000 / 725)
|
/linux-master/include/linux/ |
H A D | pm_wakeup.h | 117 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); 190 unsigned int msec, bool hard) {} 192 static inline void pm_wakeup_dev_event(struct device *dev, unsigned int msec, argument 207 static inline void __pm_wakeup_event(struct wakeup_source *ws, unsigned int msec) argument 209 return pm_wakeup_ws_event(ws, msec, false); 212 static inline void pm_wakeup_event(struct device *dev, unsigned int msec) argument 214 return pm_wakeup_dev_event(dev, msec, false); 189 pm_wakeup_ws_event(struct wakeup_source *ws, unsigned int msec, bool hard) argument
|
H A D | ktime.h | 182 static inline ktime_t ktime_add_ms(const ktime_t kt, const u64 msec) 184 return ktime_add_ns(kt, msec * NSEC_PER_MSEC); 192 static inline ktime_t ktime_sub_ms(const ktime_t kt, const u64 msec) 194 return ktime_sub_ns(kt, msec * NSEC_PER_MSEC);
|
H A D | ti_wilink_st.h | 193 /* time in msec to wait for 316 u32 msec; member in struct:bts_action_wait 322 u32 msec; member in struct:bts_action_delay
|
/linux-master/kernel/power/ |
H A D | suspend_test.c | 39 unsigned msec; local 41 msec = jiffies_to_msecs(abs(nj)); 43 msec / 1000, msec % 1000); 53 WARN(msec > (TEST_SUSPEND_SECONDS * 1000), 54 "Component: %s, time: %u\n", label, msec);
|
/linux-master/drivers/net/ethernet/arc/ |
H A D | emac_mdio.c | 115 msleep(data->msec); 160 of_property_read_u32(np, "phy-reset-duration", &data->msec); 162 if (data->msec > 1000) 163 data->msec = 1;
|
/linux-master/drivers/watchdog/ |
H A D | da9052_wdt.c | 112 unsigned long msec, jnow = jiffies; local 119 msec = (jnow - driver_data->jpast) * 1000/HZ; 120 if (msec < DA9052_TWDMIN) 121 mdelay(msec);
|
H A D | dw_wdt.c | 79 unsigned int msec; member in struct:dw_wdt_timeout 164 u64 msec; local 166 msec = (u64)timeout->sec * MSEC_PER_SEC + timeout->msec; 168 return msec < UINT_MAX ? msec : UINT_MAX; 427 u64 msec; local 438 msec = (u64)tops[val] * MSEC_PER_SEC; 439 do_div(msec, dw_wdt->rate); 440 tout.msec [all...] |
/linux-master/drivers/accel/habanalabs/common/pci/ |
H A D | pci.c | 94 u64 msec; local 98 msec = HL_PLDM_PCI_ELBI_TIMEOUT_MSEC; 100 msec = HL_PCI_ELBI_TIMEOUT_MSEC; 108 timeout = ktime_add_ms(ktime_get(), msec); 157 u64 msec; local 161 msec = HL_PLDM_PCI_ELBI_TIMEOUT_MSEC; 163 msec = HL_PCI_ELBI_TIMEOUT_MSEC; 173 timeout = ktime_add_ms(ktime_get(), msec);
|
/linux-master/drivers/edac/ |
H A D | edac_pci.c | 167 int msec; local 183 msec = edac_pci_get_poll_msec(); 184 if (msec == 1000) 185 delay = round_jiffies_relative(msecs_to_jiffies(msec)); 187 delay = msecs_to_jiffies(msec);
|
H A D | edac_device.c | 338 * if the number of msec is for 1 sec, then adjust to the next 351 * passing in the new delay period in msec 354 unsigned msec) 358 /* take the arg 'msec' and set it into the control structure 362 edac_dev->poll_msec = msec; 363 edac_dev->delay = msecs_to_jiffies(msec); 400 unsigned long msec) 402 edac_dev->poll_msec = msec; 403 edac_dev->delay = msecs_to_jiffies(msec); 353 edac_device_workq_setup(struct edac_device_ctl_info *edac_dev, unsigned msec) argument 399 edac_device_reset_delay_period(struct edac_device_ctl_info *edac_dev, unsigned long msec) argument
|
/linux-master/drivers/base/power/ |
H A D | sysfs.c | 456 s64 msec; local 461 msec = ktime_to_ms(dev->power.wakeup->total_time); 468 return sysfs_emit(buf, "%lld\n", msec); 476 s64 msec; local 481 msec = ktime_to_ms(dev->power.wakeup->max_time); 488 return sysfs_emit(buf, "%lld\n", msec); 497 s64 msec; local 502 msec = ktime_to_ms(dev->power.wakeup->last_time); 509 return sysfs_emit(buf, "%lld\n", msec); 527 s64 msec; local [all...] |
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_l3_drops.sh | 178 $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 D | devlink_trap_acl_drops.sh | 105 -t ip -d 1msec -q & 130 -t ip -d 1msec -q &
|
H A D | rif_counter_scale.sh | 97 $MZ $h1 -Q $i -c 1 -d 20msec -p 100 -a own -b $(mac_get $h2) \
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | tout.c | 67 u64 msec = to_val; local 72 msec *= 1000 * int_pow(60, to_mul - 1); 74 return msec;
|
/linux-master/drivers/media/usb/dvb-usb/ |
H A D | vp702x.h | 111 extern int vp702x_usb_inout_op(struct dvb_usb_device *d, u8 *o, int olen, u8 *i, int ilen, int msec);
|
H A D | vp7045.h | 64 extern int vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen,int msec);
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | router.sh | 200 $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 D | hw_stats_l3.sh | 170 $MZ $h1.200 -c 21 -d 20msec -p 100 \ 177 $MZ $h1.200 -6 -c 21 -d 20msec -p 100 \ 184 $MZ $h2.200 -c 21 -d 20msec -p 100 \ 191 $MZ $h2.200 -6 -c 21 -d 20msec -p 100 \
|
/linux-master/drivers/scsi/isci/ |
H A D | isci.h | 507 static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) argument 510 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec));
|