| /drivers/watchdog/ |
| A D | dw_wdt.c | 79 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()
|
| 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()
|
| /drivers/accel/habanalabs/common/pci/ |
| 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()
|
| /drivers/base/power/ |
| 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 …]
|
| A D | wakeup.c | 789 void pm_wakeup_ws_event(struct wakeup_source *ws, unsigned int msec, bool hard) in pm_wakeup_ws_event() argument 801 if (!msec) { in pm_wakeup_ws_event() 806 expires = jiffies + msecs_to_jiffies(msec); in pm_wakeup_ws_event() 828 void pm_wakeup_dev_event(struct device *dev, unsigned int msec, bool hard) in pm_wakeup_dev_event() argument 836 pm_wakeup_ws_event(dev->power.wakeup, msec, hard); in pm_wakeup_dev_event()
|
| /drivers/net/ethernet/arc/ |
| 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()
|
| A D | emac.h | 108 int msec; member
|
| /drivers/edac/ |
| 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()
|
| A D | edac_device.c | 305 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()
|
| A D | edac_module.h | 56 *edac_dev, unsigned long msec);
|
| /drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| 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()
|
| /drivers/platform/chrome/ |
| A D | cros_ec_lightbar.c | 36 unsigned long msec = lb_interval_jiffies * 1000 / HZ; in interval_msec_show() local 38 return sysfs_emit(buf, "%lu\n", msec); in interval_msec_show() 45 unsigned long msec; in interval_msec_store() local 47 if (kstrtoul(buf, 0, &msec)) in interval_msec_store() 50 lb_interval_jiffies = msec * HZ / 1000; in interval_msec_store()
|
| /drivers/leds/ |
| A D | leds-tca6507.c | 190 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()
|
| /drivers/media/usb/dvb-usb/ |
| A D | vp702x.c | 98 int vp702x_usb_inout_op(struct dvb_usb_device *d, u8 *o, int olen, u8 *i, int ilen, int msec) in vp702x_usb_inout_op() argument 106 msleep(msec); in vp702x_usb_inout_op() 114 int olen, u8 *i, int ilen, int msec) in vp702x_usb_inout_cmd() argument 143 ret = vp702x_usb_inout_op(d, buf, olen+2, buf, ilen+1, msec); in vp702x_usb_inout_cmd()
|
| A D | vp7045.c | 25 …t vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen, int msec) in vp7045_usb_op() argument 58 msleep(msec); in vp7045_usb_op()
|
| A D | vp7045.h | 64 …t vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen,int msec);
|
| 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…
|
| /drivers/scsi/isci/ |
| 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()
|
| /drivers/usb/early/ |
| A D | ehci-dbgp.c | 714 int msec; in early_ehci_bios_handoff() local 730 msec = 1000; in early_ehci_bios_handoff() 731 while ((cap & EHCI_USBLEGSUP_BIOS) && (msec > 0)) { in early_ehci_bios_handoff() 733 msec -= 10; in early_ehci_bios_handoff()
|
| /drivers/media/i2c/ |
| A D | msp3400-driver.h | 137 int msp_sleep(struct msp_state *state, int msec);
|
| A D | msp3400-driver.c | 312 int msp_sleep(struct msp_state *state, int msec) in msp_sleep() argument 316 timeout = msec < 0 ? MAX_SCHEDULE_TIMEOUT : msecs_to_jiffies(msec); in msp_sleep()
|
| /drivers/net/ethernet/intel/igc/ |
| A D | igc_defines.h | 650 #define IGC_PTM_CYCLE_CTRL_CYC_TIME(msec) ((msec) & 0x3ff) /* PTM Cycle Time (msec) */ argument
|
| /drivers/usb/host/ |
| A D | pci-quirks.c | 909 int msec = 1000; in ehci_bios_handoff() local 910 while ((cap & EHCI_USBLEGSUP_BIOS) && (msec > 0)) { in ehci_bios_handoff() 913 msec -= 10; in ehci_bios_handoff()
|
| /drivers/hwmon/ |
| A D | aspeed-pwm-tacho.c | 530 u32 raw_data, tach_div, clk_source, msec, usec, val; in aspeed_get_fan_tach_ch_rpm() local 542 msec = (1000 / aspeed_get_fan_tach_ch_measure_period(priv, type)); in aspeed_get_fan_tach_ch_rpm() 543 usec = msec * 1000; in aspeed_get_fan_tach_ch_rpm()
|
| /drivers/usb/image/ |
| A D | mdc800.c | 333 static int mdc800_usb_waitForIRQ (int mode, int msec) in mdc800_usb_waitForIRQ() argument 338 msecs_to_jiffies(msec)); in mdc800_usb_waitForIRQ()
|