Home
last modified time | relevance | path

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

12

/drivers/watchdog/
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()
429 u64 msec; in dw_wdt_handle_tops() local
440 msec = (u64)tops[val] * MSEC_PER_SEC; in dw_wdt_handle_tops()
441 do_div(msec, dw_wdt->rate); in dw_wdt_handle_tops()
442 tout.msec = msec - ((u64)tout.sec * MSEC_PER_SEC); in dw_wdt_handle_tops()
451 tout.msec >= dst->msec)) in dw_wdt_handle_tops()
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()
/drivers/misc/habanalabs/common/pci/
Dpci.c92 u64 msec; in hl_pci_elbi_read() local
96 msec = HL_PLDM_PCI_ELBI_TIMEOUT_MSEC; in hl_pci_elbi_read()
98 msec = HL_PCI_ELBI_TIMEOUT_MSEC; in hl_pci_elbi_read()
106 timeout = ktime_add_ms(ktime_get(), msec); in hl_pci_elbi_read()
152 u64 msec; in hl_pci_elbi_write() local
156 msec = HL_PLDM_PCI_ELBI_TIMEOUT_MSEC; in hl_pci_elbi_write()
158 msec = HL_PCI_ELBI_TIMEOUT_MSEC; in hl_pci_elbi_write()
168 timeout = ktime_add_ms(ktime_get(), msec); in hl_pci_elbi_write()
/drivers/base/power/
Dsysfs.c456 s64 msec; in wakeup_total_time_ms_show() local
461 msec = ktime_to_ms(dev->power.wakeup->total_time); in wakeup_total_time_ms_show()
468 return sysfs_emit(buf, "%lld\n", msec); in wakeup_total_time_ms_show()
476 s64 msec; in wakeup_max_time_ms_show() local
481 msec = ktime_to_ms(dev->power.wakeup->max_time); in wakeup_max_time_ms_show()
488 return sysfs_emit(buf, "%lld\n", msec); in wakeup_max_time_ms_show()
497 s64 msec; in wakeup_last_time_ms_show() local
502 msec = ktime_to_ms(dev->power.wakeup->last_time); in wakeup_last_time_ms_show()
509 return sysfs_emit(buf, "%lld\n", msec); in wakeup_last_time_ms_show()
527 s64 msec; in wakeup_prevent_sleep_time_ms_show() local
[all …]
Dwakeup.c828 void pm_wakeup_ws_event(struct wakeup_source *ws, unsigned int msec, bool hard) in pm_wakeup_ws_event() argument
840 if (!msec) { in pm_wakeup_ws_event()
845 expires = jiffies + msecs_to_jiffies(msec); in pm_wakeup_ws_event()
867 void pm_wakeup_dev_event(struct device *dev, unsigned int msec, bool hard) in pm_wakeup_dev_event() argument
875 pm_wakeup_ws_event(dev->power.wakeup, msec, hard); in pm_wakeup_dev_event()
/drivers/net/ethernet/arc/
Demac_mdio.c115 msleep(data->msec); in arc_mdio_reset()
160 of_property_read_u32(np, "phy-reset-duration", &data->msec); in arc_mdio_probe()
162 if (data->msec > 1000) in arc_mdio_probe()
163 data->msec = 1; in arc_mdio_probe()
Demac.h108 int msec; member
/drivers/edac/
Dedac_pci.c171 int msec; in edac_pci_workq_function() local
187 msec = edac_pci_get_poll_msec(); in edac_pci_workq_function()
188 if (msec == 1000) in edac_pci_workq_function()
189 delay = round_jiffies_relative(msecs_to_jiffies(msec)); in edac_pci_workq_function()
191 delay = msecs_to_jiffies(msec); in edac_pci_workq_function()
Dedac_device.c384 unsigned msec) in edac_device_workq_setup() argument
392 edac_dev->poll_msec = msec; in edac_device_workq_setup()
393 edac_dev->delay = msecs_to_jiffies(msec); in edac_device_workq_setup()
430 unsigned long msec) in edac_device_reset_delay_period() argument
432 edac_dev->poll_msec = msec; in edac_device_reset_delay_period()
433 edac_dev->delay = msecs_to_jiffies(msec); in edac_device_reset_delay_period()
Dedac_module.h59 *edac_dev, unsigned long msec);
/drivers/platform/chrome/
Dcros_ec_lightbar.c34 unsigned long msec = lb_interval_jiffies * 1000 / HZ; in interval_msec_show() local
36 return scnprintf(buf, PAGE_SIZE, "%lu\n", msec); in interval_msec_show()
43 unsigned long msec; in interval_msec_store() local
45 if (kstrtoul(buf, 0, &msec)) in interval_msec_store()
48 lb_interval_jiffies = msec * HZ / 1000; in interval_msec_store()
/drivers/media/usb/dvb-usb/
Dvp702x.c98 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()
Dvp7045.c25 …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()
Dvp7045.h64 …t vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen,int msec);
Dvp702x.h111 extern int vp702x_usb_inout_op(struct dvb_usb_device *d, u8 *o, int olen, u8 *i, int ilen, int msec
/drivers/leds/
Dleds-tca6507.c193 static int choose_times(int msec, int *c1p, int *c2p) in choose_times() argument
210 int tmax = msec * 9 / 8; in choose_times()
211 int tmin = msec * 7 / 8; in choose_times()
231 d = abs(msec - tt); in choose_times()
239 return msec; in choose_times()
244 if (msec & 1) { in choose_times()
/drivers/scsi/isci/
Disci.h507 static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) in sci_mod_timer() argument
510 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec)); in sci_mod_timer()
/drivers/net/ethernet/dec/tulip/
Dde4x5.c931 …t_media(struct net_device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec);
932 static int test_for_100Mb(struct net_device *dev, int msec);
934 static int test_mii_reg(struct net_device *dev, int reg, int mask, bool pol, long msec);
939 static int ping_media(struct net_device *dev, int msec);
953 static int test_ans(struct net_device *dev, s32 irqs, s32 irq_mask, s32 msec);
954 static int test_tp(struct net_device *dev, s32 msec);
3327 …st_media(struct net_device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec) in test_media() argument
3334 lp->timeout = msec/100; in test_media()
3365 test_tp(struct net_device *dev, s32 msec) in test_tp() argument
3372 lp->timeout = msec/100; in test_tp()
[all …]
/drivers/net/ethernet/intel/igc/
Digc_defines.h566 #define IGC_PTM_CYCLE_CTRL_CYC_TIME(msec) ((msec) & 0x3ff) /* PTM Cycle Time (msec) */ argument
/drivers/usb/early/
Dehci-dbgp.c714 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/gpu/drm/i915/display/
Dintel_dsi.h216 void intel_dsi_msleep(struct intel_dsi *intel_dsi, int msec);
/drivers/usb/host/
Dpci-quirks.c899 int msec = 1000; in ehci_bios_handoff() local
900 while ((cap & EHCI_USBLEGSUP_BIOS) && (msec > 0)) { in ehci_bios_handoff()
903 msec -= 10; in ehci_bios_handoff()
/drivers/hwmon/
Daspeed-pwm-tacho.c529 u32 raw_data, tach_div, clk_source, msec, usec, val; in aspeed_get_fan_tach_ch_rpm() local
541 msec = (1000 / aspeed_get_fan_tach_ch_measure_period(priv, type)); in aspeed_get_fan_tach_ch_rpm()
542 usec = msec * 1000; in aspeed_get_fan_tach_ch_rpm()
/drivers/acpi/
Dacpi_tad.c63 u16 msec; /* 1 - 1000 */ member
215 rt.msec = 0; in time_store()
/drivers/usb/image/
Dmdc800.c333 static int mdc800_usb_waitForIRQ (int mode, int msec) in mdc800_usb_waitForIRQ() argument
338 msecs_to_jiffies(msec)); in mdc800_usb_waitForIRQ()

12