Home
last modified time | relevance | path

Searched refs:msecs (Results 1 – 64 of 64) sorted by relevance

/linux-4.4.14/arch/powerpc/kernel/
Dcrash.c107 unsigned int msecs; in crash_kexec_prepare_cpus() local
123 msecs = IPI_TIMEOUT; in crash_kexec_prepare_cpus()
124 while ((atomic_read(&cpus_in_crash) < ncpus) && (--msecs > 0)) in crash_kexec_prepare_cpus()
183 int msecs = SECONDARY_TIMEOUT; in crash_kexec_secondary() local
189 if (--msecs < 0) { in crash_kexec_secondary()
227 unsigned int msecs; in crash_kexec_wait_realmode() local
230 msecs = REAL_MODE_TIMEOUT; in crash_kexec_wait_realmode()
231 for (i=0; i < nr_cpu_ids && msecs > 0; i++) { in crash_kexec_wait_realmode()
237 if (!cpu_possible(i) || !cpu_online(i) || (msecs <= 0)) in crash_kexec_wait_realmode()
239 msecs--; in crash_kexec_wait_realmode()
/linux-4.4.14/arch/mips/kernel/
Dcrash.c40 unsigned int msecs; in crash_kexec_prepare_cpus() local
52 msecs = 10000; in crash_kexec_prepare_cpus()
53 while ((cpumask_weight(&cpus_in_crash) < ncpus) && (--msecs > 0)) { in crash_kexec_prepare_cpus()
/linux-4.4.14/arch/arm/kernel/
Dmachine_kexec.c119 unsigned long msecs; in machine_crash_shutdown() local
125 msecs = 1000; /* Wait at most a second for the other cpus to stop */ in machine_crash_shutdown()
126 while ((atomic_read(&waiting_for_crash_ipi) > 0) && msecs) { in machine_crash_shutdown()
128 msecs--; in machine_crash_shutdown()
/linux-4.4.14/drivers/staging/rts5208/
Drtsx.h73 #define wait_timeout_x(task_state, msecs) \ argument
76 schedule_timeout((msecs) * HZ / 1000); \
78 #define wait_timeout(msecs) wait_timeout_x(TASK_INTERRUPTIBLE, (msecs)) argument
/linux-4.4.14/drivers/ide/
Dide-park.c94 unsigned int msecs; in ide_park_show() local
103 msecs = jiffies_to_msecs(drive->sleep - now); in ide_park_show()
105 msecs = 0; in ide_park_show()
108 return snprintf(buf, 20, "%u\n", msecs); in ide_park_show()
/linux-4.4.14/include/linux/
Ddelay.h46 void msleep(unsigned int msecs);
47 unsigned long msleep_interruptible(unsigned int msecs);
Dgameport.h211 static inline void gameport_set_poll_interval(struct gameport *gameport, unsigned int msecs) in gameport_set_poll_interval() argument
213 gameport->poll_interval = msecs; in gameport_set_poll_interval()
Dblk-mq.h234 void blk_mq_delay_queue(struct blk_mq_hw_ctx *hctx, unsigned long msecs);
Dlibata.h1171 extern void ata_msleep(struct ata_port *ap, unsigned int msecs);
/linux-4.4.14/Documentation/devicetree/bindings/
Dbtmrvl.txt13 - btmrvl,gpio-gap : gpio and gap (in msecs) combination to be
18 GPIO pin 13 is configured as a wakeup source and GAP is set to 100 msecs
/linux-4.4.14/tools/perf/Documentation/
Dperf-stat.txt137 -I msecs::
138 --interval-print msecs::
160 -D msecs::
161 --delay msecs::
162 After starting the program, wait msecs before measuring. This is useful to
186 Wall-clock time elapsed: 719.554352 msecs
Dperf-record.txt278 After starting the program, wait msecs before measuring. This is useful to
/linux-4.4.14/arch/x86/kernel/
Dreboot.c770 unsigned long msecs; in nmi_shootdown_cpus() local
791 msecs = 1000; /* Wait at most a second for the other cpus to stop */ in nmi_shootdown_cpus()
792 while ((atomic_read(&waiting_for_crash_ipi) > 0) && msecs) { in nmi_shootdown_cpus()
794 msecs--; in nmi_shootdown_cpus()
/linux-4.4.14/drivers/staging/vt6656/
Dwcmd.c44 static void vnt_cmd_timer_wait(struct vnt_private *priv, unsigned long msecs) in vnt_cmd_timer_wait() argument
46 schedule_delayed_work(&priv->run_command_work, msecs_to_jiffies(msecs)); in vnt_cmd_timer_wait()
/linux-4.4.14/Documentation/timers/
Dtimers-howto.txt27 mdelay(unsigned long msecs)
49 msleep(unsigned long msecs)
50 msleep_interruptible(unsigned long msecs)
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Drx.c235 unsigned int msecs) in iwlagn_good_plcp_health() argument
254 if ((delta * 100 / msecs) > threshold) { in iwlagn_good_plcp_health()
257 threshold, delta, msecs); in iwlagn_good_plcp_health()
309 unsigned int msecs; in iwlagn_recover_from_statistics() local
314 msecs = jiffies_to_msecs(stamp - priv->rx_statistics_jiffies); in iwlagn_recover_from_statistics()
321 if (msecs < 99) in iwlagn_recover_from_statistics()
324 if (!iwlagn_good_plcp_health(priv, cur_ofdm, cur_ofdm_ht, msecs)) in iwlagn_recover_from_statistics()
/linux-4.4.14/kernel/
Dpanic.c316 static void spin_msec(int msecs) in spin_msec() argument
320 for (i = 0; i < msecs; i++) { in spin_msec()
/linux-4.4.14/sound/usb/line6/
Ddriver.h160 extern void line6_start_timer(struct timer_list *timer, unsigned long msecs,
Ddriver.c165 void line6_start_timer(struct timer_list *timer, unsigned long msecs, in line6_start_timer() argument
169 mod_timer(timer, jiffies + msecs_to_jiffies(msecs)); in line6_start_timer()
/linux-4.4.14/Documentation/
Dhwspinlock.txt69 msecs). If the hwspinlock is already taken, the function will busy loop
76 notably -ETIMEDOUT if the hwspinlock is still busy after timeout msecs).
81 msecs). If the hwspinlock is already taken, the function will busy loop
87 notably -ETIMEDOUT if the hwspinlock is still busy after timeout msecs).
93 msecs). If the hwspinlock is already taken, the function will busy loop
100 notably -ETIMEDOUT if the hwspinlock is still busy after timeout msecs).
Drobust-futexes.txt150 - with FUTEX_WAIT set [contended mutex]: 130 msecs
151 - without FUTEX_WAIT set [uncontended mutex]: 30 msecs
155 msecs - clearly slower, due to the 1 million FUTEX_WAKE syscalls
Dkernel-parameters.txt2165 Format: <msecs>
/linux-4.4.14/net/batman-adv/
Dbridge_loop_avoidance.c1690 int secs, msecs; in batadv_bla_backbone_table_seq_print_text() local
1711 msecs = jiffies_to_msecs(jiffies - in batadv_bla_backbone_table_seq_print_text()
1713 secs = msecs / 1000; in batadv_bla_backbone_table_seq_print_text()
1714 msecs = msecs % 1000; in batadv_bla_backbone_table_seq_print_text()
1724 msecs, backbone_gw->crc); in batadv_bla_backbone_table_seq_print_text()
Dbat_iv_ogm.c372 unsigned int msecs; in batadv_iv_ogm_emit_send_time() local
374 msecs = atomic_read(&bat_priv->orig_interval) - BATADV_JITTER; in batadv_iv_ogm_emit_send_time()
375 msecs += prandom_u32() % (2 * BATADV_JITTER); in batadv_iv_ogm_emit_send_time()
377 return jiffies + msecs_to_jiffies(msecs); in batadv_iv_ogm_emit_send_time()
/linux-4.4.14/Documentation/trace/
Devents-nmi.txt15 INFO: NMI handler took too long to run: 9.207 msecs
Dftrace.txt1996 * means that the function exceeded 10 msecs.
1997 @ means that the function exceeded 100 msecs.
/linux-4.4.14/drivers/staging/dgnc/
Ddgnc_cls.c49 static void cls_send_break(struct channel_t *ch, int msecs);
1224 static void cls_send_break(struct channel_t *ch, int msecs) in cls_send_break() argument
1232 if (msecs == 0) { in cls_send_break()
1249 ch->ch_stop_sending_break = jiffies + dgnc_jiffies_from_ms(msecs); in cls_send_break()
Ddgnc_neo.c51 static void neo_send_break(struct channel_t *ch, int msecs);
1677 static void neo_send_break(struct channel_t *ch, int msecs) in neo_send_break() argument
1682 if (msecs == 0) { in neo_send_break()
1699 ch->ch_stop_sending_break = jiffies + dgnc_jiffies_from_ms(msecs); in neo_send_break()
/linux-4.4.14/kernel/time/
Dtimer.c1673 void msleep(unsigned int msecs) in msleep() argument
1675 unsigned long timeout = msecs_to_jiffies(msecs) + 1; in msleep()
1687 unsigned long msleep_interruptible(unsigned int msecs) in msleep_interruptible() argument
1689 unsigned long timeout = msecs_to_jiffies(msecs) + 1; in msleep_interruptible()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_driver.c318 u64 msecs, emsecs; in ipath_verify_pioperf() local
342 msecs = 1 + jiffies_to_msecs(jiffies); in ipath_verify_pioperf()
345 if (jiffies_to_msecs(jiffies) >= msecs) in ipath_verify_pioperf()
367 msecs = jiffies_to_msecs(jiffies); in ipath_verify_pioperf()
370 emsecs = jiffies_to_msecs(jiffies) - msecs; in ipath_verify_pioperf()
854 int ipath_wait_linkstate(struct ipath_devdata *dd, u32 state, int msecs) in ipath_wait_linkstate() argument
859 msecs_to_jiffies(msecs)); in ipath_wait_linkstate()
870 msecs); in ipath_wait_linkstate()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_init.c1004 u64 msecs, emsecs; in qib_verify_pioperf() local
1027 msecs = 1 + jiffies_to_msecs(jiffies); in qib_verify_pioperf()
1030 if (jiffies_to_msecs(jiffies) >= msecs) in qib_verify_pioperf()
1048 msecs = jiffies_to_msecs(jiffies); in qib_verify_pioperf()
1051 emsecs = jiffies_to_msecs(jiffies) - msecs; in qib_verify_pioperf()
Dqib_driver.c169 int qib_wait_linkstate(struct qib_pportdata *ppd, u32 state, int msecs) in qib_wait_linkstate() argument
184 msecs_to_jiffies(msecs)); in qib_wait_linkstate()
/linux-4.4.14/mm/
Dhuge_memory.c420 unsigned long msecs; in scan_sleep_millisecs_store() local
423 err = kstrtoul(buf, 10, &msecs); in scan_sleep_millisecs_store()
424 if (err || msecs > UINT_MAX) in scan_sleep_millisecs_store()
427 khugepaged_scan_sleep_millisecs = msecs; in scan_sleep_millisecs_store()
447 unsigned long msecs; in alloc_sleep_millisecs_store() local
450 err = kstrtoul(buf, 10, &msecs); in alloc_sleep_millisecs_store()
451 if (err || msecs > UINT_MAX) in alloc_sleep_millisecs_store()
454 khugepaged_alloc_sleep_millisecs = msecs; in alloc_sleep_millisecs_store()
Dksm.c2115 unsigned long msecs; in sleep_millisecs_store() local
2118 err = kstrtoul(buf, 10, &msecs); in sleep_millisecs_store()
2119 if (err || msecs > UINT_MAX) in sleep_millisecs_store()
2122 ksm_thread_sleep_millisecs = msecs; in sleep_millisecs_store()
/linux-4.4.14/drivers/staging/iio/adc/
Dad7280a.c434 unsigned msecs; in ad7280_show_balance_timer() local
444 msecs = (ret >> 3) * 71500; in ad7280_show_balance_timer()
446 return sprintf(buf, "%u\n", msecs); in ad7280_show_balance_timer()
/linux-4.4.14/include/net/
Dnetlink.h1143 u64 msecs = nla_get_u64(nla); in nla_get_msecs() local
1145 return msecs_to_jiffies((unsigned long) msecs); in nla_get_msecs()
/linux-4.4.14/drivers/usb/musb/
Dtusb6010.c549 #define OTG_TIMER_MS(msecs) ((msecs) \ argument
550 ? (TUSB_DEV_OTG_TIMER_VAL((DEVCLOCK/1000)*(msecs)) \
/linux-4.4.14/drivers/media/usb/airspy/
Dairspy.c258 unsigned int msecs = jiffies_to_msecs(jiffies - in airspy_convert_stream() local
265 src_len, samples, msecs, in airspy_convert_stream()
266 samples * 1000UL / msecs); in airspy_convert_stream()
/linux-4.4.14/drivers/pci/hotplug/
Dpciehp_hpc.c135 unsigned int msecs = pciehp_poll_mode ? 2500 : 1000; in pcie_wait_cmd() local
136 unsigned long duration = msecs_to_jiffies(msecs); in pcie_wait_cmd()
/linux-4.4.14/drivers/media/usb/msi2500/
Dmsi2500.c361 unsigned int msecs = jiffies_to_msecs(jiffies - in msi2500_convert_stream() local
368 src_len, samples, msecs, in msi2500_convert_stream()
369 samples * 1000UL / msecs); in msi2500_convert_stream()
/linux-4.4.14/fs/ocfs2/cluster/
Dtcp.c1541 unsigned long msecs = ktime_to_ms(ktime_get()) - in o2net_idle_timer() local
1544 unsigned long msecs = o2net_idle_timeout(); in o2net_idle_timer() local
1549 SC_NODEF_ARGS(sc), msecs / 1000, msecs % 1000); in o2net_idle_timer()
/linux-4.4.14/drivers/atm/
Dfore200e.c216 fore200e_spin(int msecs) in fore200e_spin() argument
218 unsigned long timeout = jiffies + msecs_to_jiffies(msecs); in fore200e_spin()
224 fore200e_poll(struct fore200e* fore200e, volatile u32* addr, u32 val, int msecs) in fore200e_poll() argument
226 unsigned long timeout = jiffies + msecs_to_jiffies(msecs); in fore200e_poll()
248 fore200e_io_poll(struct fore200e* fore200e, volatile u32 __iomem *addr, u32 val, int msecs) in fore200e_io_poll() argument
250 unsigned long timeout = jiffies + msecs_to_jiffies(msecs); in fore200e_io_poll()
/linux-4.4.14/drivers/media/dvb-frontends/
Dcx24120.c617 int ret, cnr, msecs; in cx24120_get_stats() local
677 msecs = (state->berw_usecs + 500) / 1000; in cx24120_get_stats()
678 state->ber_jiffies_stats = jiffies + msecs_to_jiffies(msecs); in cx24120_get_stats()
Drtl2832_sdr.c251 unsigned int msecs = jiffies_to_msecs(jiffies - in rtl2832_sdr_convert_stream() local
259 src_len, samples, msecs, samples * 1000UL / msecs); in rtl2832_sdr_convert_stream()
/linux-4.4.14/drivers/net/wimax/i2400m/
Dcontrol.c1282 int i2400m_set_idle_timeout(struct i2400m *i2400m, unsigned msecs) in i2400m_set_idle_timeout() argument
1309 cmd->cit.timeout = cpu_to_le32(msecs); in i2400m_set_idle_timeout()
/linux-4.4.14/Documentation/scheduler/
Dsched-nice-design.txt47 So for HZ=1000 we changed nice +19 to 5msecs, because that felt like the
/linux-4.4.14/tools/perf/
Dbuiltin-stat.c496 double msecs = avg / 1e6; in nsec_printout() local
508 fprintf(output, fmt_v, msecs, csv_sep); in nsec_printout()
/linux-4.4.14/drivers/media/usb/hackrf/
Dhackrf.c471 unsigned int msecs = jiffies_to_msecs(jiffies - in hackrf_copy_stream() local
478 src_len, samples, msecs, in hackrf_copy_stream()
479 samples * 1000UL / msecs); in hackrf_copy_stream()
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-driver.h692 int cx18_msleep_timeout(unsigned int msecs, int intr);
Dcx18-driver.c283 int cx18_msleep_timeout(unsigned int msecs, int intr) in cx18_msleep_timeout() argument
285 long int timeout = msecs_to_jiffies(msecs); in cx18_msleep_timeout()
/linux-4.4.14/drivers/ata/
Dlibahci.c1309 unsigned long now, msecs; in ahci_do_softreset() local
1334 msecs = 0; in ahci_do_softreset()
1337 msecs = jiffies_to_msecs(deadline - now); in ahci_do_softreset()
1341 AHCI_CMD_RESET | AHCI_CMD_CLR_BUSY, msecs)) { in ahci_do_softreset()
Dlibata-scsi.c178 unsigned int uninitialized_var(msecs); in ata_scsi_park_show()
199 msecs = jiffies_to_msecs(dev->unpark_deadline - now); in ata_scsi_park_show()
201 msecs = 0; in ata_scsi_park_show()
206 return rc ? rc : snprintf(buf, 20, "%u\n", msecs); in ata_scsi_park_show()
Dlibata-core.c6693 void ata_msleep(struct ata_port *ap, unsigned int msecs) in ata_msleep() argument
6700 msleep(msecs); in ata_msleep()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-driver.c360 int ivtv_msleep_timeout(unsigned int msecs, int intr) in ivtv_msleep_timeout() argument
362 int timeout = msecs_to_jiffies(msecs); in ivtv_msleep_timeout()
Divtv-driver.h782 int ivtv_msleep_timeout(unsigned int msecs, int intr);
/linux-4.4.14/Documentation/ABI/stable/
Dsysfs-class-tpm185 were scaled by the driver to be reported in usec from msecs.
/linux-4.4.14/Documentation/leds/
Dledtrig-transient.txt75 - duration allows setting timer value in msecs. The initial value is 0.
/linux-4.4.14/drivers/net/wireless/orinoco/
Dorinoco_usb.c696 int msecs = DEF_TIMEOUT * (1000 / HZ); in ezusb_req_ctx_wait() local
697 while (!ctx->done.done && msecs--) in ezusb_req_ctx_wait()
/linux-4.4.14/block/
Dblk-mq.c965 void blk_mq_delay_queue(struct blk_mq_hw_ctx *hctx, unsigned long msecs) in blk_mq_delay_queue() argument
971 &hctx->delay_work, msecs_to_jiffies(msecs)); in blk_mq_delay_queue()
Dblk-core.c201 void blk_delay_queue(struct request_queue *q, unsigned long msecs) in blk_delay_queue() argument
205 msecs_to_jiffies(msecs)); in blk_delay_queue()
/linux-4.4.14/fs/gfs2/
Drgrp.c1915 u64 msecs) in gfs2_rgrp_used_recently() argument
1922 return tdiff > (msecs * 1000 * 1000); in gfs2_rgrp_used_recently()
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_sas_fusion.c568 u32 msecs = seconds * 1000; in wait_and_poll() local
574 for (i = 0; (i < msecs) && (frame_hdr->cmd_status == 0xff); i += 20) { in wait_and_poll()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c569 int msecs = 0; in be_mbox_db_ready_wait() local
584 if (msecs > 4000) { in be_mbox_db_ready_wait()
592 msecs++; in be_mbox_db_ready_wait()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dchip.c1024 int msecs);
6229 static int wait_phy_linkstate(struct hfi1_devdata *dd, u32 state, u32 msecs) in wait_phy_linkstate() argument
6234 timeout = jiffies + msecs_to_jiffies(msecs); in wait_phy_linkstate()
8566 int msecs) in wait_logical_linkstate() argument
8570 timeout = jiffies + msecs_to_jiffies(msecs); in wait_logical_linkstate()