Home
last modified time | relevance | path

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

12

/drivers/base/power/
Dsysfs.c463 s64 msec = 0; in wakeup_total_time_show() local
468 msec = ktime_to_ms(dev->power.wakeup->total_time); in wakeup_total_time_show()
472 return enabled ? sprintf(buf, "%lld\n", msec) : sprintf(buf, "\n"); in wakeup_total_time_show()
480 s64 msec = 0; in wakeup_max_time_show() local
485 msec = ktime_to_ms(dev->power.wakeup->max_time); in wakeup_max_time_show()
489 return enabled ? sprintf(buf, "%lld\n", msec) : sprintf(buf, "\n"); in wakeup_max_time_show()
497 s64 msec = 0; in wakeup_last_time_show() local
502 msec = ktime_to_ms(dev->power.wakeup->last_time); in wakeup_last_time_show()
506 return enabled ? sprintf(buf, "%lld\n", msec) : sprintf(buf, "\n"); in wakeup_last_time_show()
516 s64 msec = 0; in wakeup_prevent_sleep_time_show() local
[all …]
Dwakeup.c756 void __pm_wakeup_event(struct wakeup_source *ws, unsigned int msec) in __pm_wakeup_event() argument
768 if (!msec) { in __pm_wakeup_event()
773 expires = jiffies + msecs_to_jiffies(msec); in __pm_wakeup_event()
795 void pm_wakeup_event(struct device *dev, unsigned int msec) in pm_wakeup_event() argument
803 __pm_wakeup_event(dev->power.wakeup, msec); in pm_wakeup_event()
/drivers/net/ethernet/arc/
Demac_mdio.c114 msleep(data->msec); in arc_mdio_reset()
158 of_property_read_u32(np, "phy-reset-duration", &data->msec); in arc_mdio_probe()
160 if (data->msec > 1000) in arc_mdio_probe()
161 data->msec = 1; in arc_mdio_probe()
Demac.h107 int msec; member
/drivers/watchdog/
Dda9052_wdt.c116 unsigned long msec, jnow = jiffies; in da9052_wdt_ping() local
123 msec = (jnow - driver_data->jpast) * 1000/HZ; in da9052_wdt_ping()
124 if (msec < DA9052_TWDMIN) in da9052_wdt_ping()
125 mdelay(msec); in da9052_wdt_ping()
/drivers/edac/
Dedac_pci.c191 int msec; in edac_pci_workq_function() local
207 msec = edac_pci_get_poll_msec(); in edac_pci_workq_function()
208 if (msec == 1000) in edac_pci_workq_function()
209 delay = round_jiffies_relative(msecs_to_jiffies(msec)); in edac_pci_workq_function()
211 delay = msecs_to_jiffies(msec); in edac_pci_workq_function()
Dedac_device.c404 unsigned msec) in edac_device_workq_setup() argument
412 edac_dev->poll_msec = msec; in edac_device_workq_setup()
413 edac_dev->delay = msecs_to_jiffies(msec); in edac_device_workq_setup()
/drivers/platform/chrome/
Dcros_ec_lightbar.c44 unsigned long msec = lb_interval_jiffies * 1000 / HZ; in interval_msec_show() local
46 return scnprintf(buf, PAGE_SIZE, "%lu\n", msec); in interval_msec_show()
53 unsigned long msec; in interval_msec_store() local
55 if (kstrtoul(buf, 0, &msec)) in interval_msec_store()
58 lb_interval_jiffies = msec * HZ / 1000; in interval_msec_store()
/drivers/media/usb/dvb-usb/
Dvp702x.c101 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
109 msleep(msec); in vp702x_usb_inout_op()
117 int olen, u8 *i, int ilen, int msec) in vp702x_usb_inout_cmd() argument
146 ret = vp702x_usb_inout_op(d, buf, olen+2, buf, ilen+1, msec); in vp702x_usb_inout_cmd()
Dvp7045.c28 …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
61 msleep(msec); in vp7045_usb_op()
Dvp7045.h67 …t vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen,int msec);
Dvp702x.h110 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.c202 static int choose_times(int msec, int *c1p, int *c2p) in choose_times() argument
219 int tmax = msec * 9 / 8; in choose_times()
220 int tmin = msec * 7 / 8; in choose_times()
240 d = abs(msec - tt); in choose_times()
248 return msec; in choose_times()
253 if (msec & 1) { in choose_times()
/drivers/scsi/isci/
Disci.h509 static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) in sci_mod_timer() argument
512 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec)); in sci_mod_timer()
/drivers/block/
Dmg_disk.c213 static unsigned int mg_wait(struct mg_host *host, u32 expect, u32 msec) in mg_wait() argument
220 expire = jiffies + msecs_to_jiffies(msec); in mg_wait()
254 if (!msec) { in mg_wait()
262 if (time_after_eq(cur_jiffies, expire) && msec) in mg_wait()
268 static unsigned int mg_wait_rstout(u32 rstout, u32 msec) in mg_wait_rstout() argument
272 expire = jiffies + msecs_to_jiffies(msec); in mg_wait_rstout()
/drivers/net/ethernet/dec/tulip/
Dde4x5.c929 …t_media(struct net_device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec);
930 static int test_for_100Mb(struct net_device *dev, int msec);
932 static int test_mii_reg(struct net_device *dev, int reg, int mask, bool pol, long msec);
937 static int ping_media(struct net_device *dev, int msec);
951 static int test_ans(struct net_device *dev, s32 irqs, s32 irq_mask, s32 msec);
952 static int test_tp(struct net_device *dev, s32 msec);
3322 …st_media(struct net_device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec) in test_media() argument
3329 lp->timeout = msec/100; in test_media()
3360 test_tp(struct net_device *dev, s32 msec) in test_tp() argument
3367 lp->timeout = msec/100; in test_tp()
[all …]
/drivers/rtc/
Drtc-tegra.c112 unsigned long sec, msec; in tegra_rtc_read_time() local
119 msec = readl(info->rtc_base + TEGRA_RTC_REG_MILLI_SECONDS); in tegra_rtc_read_time()
/drivers/usb/early/
Dehci-dbgp.c719 int msec; in early_ehci_bios_handoff() local
735 msec = 1000; in early_ehci_bios_handoff()
736 while ((cap & EHCI_USBLEGSUP_BIOS) && (msec > 0)) { in early_ehci_bios_handoff()
738 msec -= 10; in early_ehci_bios_handoff()
/drivers/gpu/drm/bridge/
Ddw-hdmi.c649 static bool hdmi_phy_wait_i2c_done(struct dw_hdmi *hdmi, int msec) in hdmi_phy_wait_i2c_done() argument
654 if (msec-- == 0) in hdmi_phy_wait_i2c_done()
737 u8 val, msec; in hdmi_phy_configure() local
840 msec = 5; in hdmi_phy_configure()
846 if (msec == 0) { in hdmi_phy_configure()
852 msec--; in hdmi_phy_configure()
/drivers/usb/host/
Dpci-quirks.c783 int msec = 1000; in ehci_bios_handoff() local
784 while ((cap & EHCI_USBLEGSUP_BIOS) && (msec > 0)) { in ehci_bios_handoff()
787 msec -= 10; in ehci_bios_handoff()
/drivers/media/rc/
Dimon.c1199 int msec, msec_hit; in stabilize() local
1202 msec = tv2int(&ct, &prev_time); in stabilize()
1205 if (msec > 100) { in stabilize()
1599 int msec; in imon_incoming_packet() local
1699 msec = tv2int(&t, &prev_time); in imon_incoming_packet()
1700 if (msec < ictx->idev->rep[REP_DELAY]) { in imon_incoming_packet()
/drivers/staging/dgnc/
Ddgnc_tty.c109 static int dgnc_tty_send_break(struct tty_struct *tty, int msec);
1855 static int dgnc_tty_send_break(struct tty_struct *tty, int msec) in dgnc_tty_send_break() argument
1878 switch (msec) { in dgnc_tty_send_break()
1880 msec = 0xFFFF; in dgnc_tty_send_break()
1883 msec = 0; in dgnc_tty_send_break()
1891 ch->ch_bd->bd_ops->send_break(ch, msec); in dgnc_tty_send_break()
/drivers/net/hyperv/
Dnetvsc_drv.c131 u32 aread, awrite, i, msec = 10, retry = 0, retry_max = 20; in netvsc_close() local
169 msleep(msec); in netvsc_close()
171 if (msec < 1000) in netvsc_close()
172 msec *= 2; in netvsc_close()
/drivers/usb/image/
Dmdc800.c346 static int mdc800_usb_waitForIRQ (int mode, int msec) in mdc800_usb_waitForIRQ() argument
351 msecs_to_jiffies(msec)); in mdc800_usb_waitForIRQ()
/drivers/net/ethernet/freescale/
Dfec_main.c3220 int msec = 1; in fec_reset_phy() local
3226 of_property_read_u32(np, "phy-reset-duration", &msec); in fec_reset_phy()
3228 if (msec > 1000) in fec_reset_phy()
3229 msec = 1; in fec_reset_phy()
3247 if (msec > 20) in fec_reset_phy()
3248 msleep(msec); in fec_reset_phy()
3250 usleep_range(msec * 1000, msec * 1000 + 1000); in fec_reset_phy()

12