Home
last modified time | relevance | path

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

12

/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
/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()
/drivers/staging/vt6656/
Dwcmd.c41 static void vnt_cmd_timer_wait(struct vnt_private *priv, unsigned long msecs) in vnt_cmd_timer_wait() argument
43 schedule_delayed_work(&priv->run_command_work, msecs_to_jiffies(msecs)); in vnt_cmd_timer_wait()
/drivers/net/wireless/intel/iwlwifi/dvm/
Drx.c158 unsigned int msecs) in iwlagn_good_plcp_health() argument
177 if ((delta * 100 / msecs) > threshold) { in iwlagn_good_plcp_health()
180 threshold, delta, msecs); in iwlagn_good_plcp_health()
232 unsigned int msecs; in iwlagn_recover_from_statistics() local
237 msecs = jiffies_to_msecs(stamp - priv->rx_statistics_jiffies); in iwlagn_recover_from_statistics()
244 if (msecs < 99) in iwlagn_recover_from_statistics()
247 if (!iwlagn_good_plcp_health(priv, cur_ofdm, cur_ofdm_ht, msecs)) in iwlagn_recover_from_statistics()
/drivers/infiniband/core/
Dsysfs.c806 int msecs; in show_stats_lifespan() local
812 msecs = jiffies_to_msecs(dev->hw_stats->lifespan); in show_stats_lifespan()
815 msecs = jiffies_to_msecs(p->hw_stats->lifespan); in show_stats_lifespan()
817 return sprintf(buf, "%d\n", msecs); in show_stats_lifespan()
825 int msecs; in set_stats_lifespan() local
829 ret = kstrtoint(buf, 10, &msecs); in set_stats_lifespan()
832 if (msecs < 0 || msecs > 10000) in set_stats_lifespan()
834 jiffies = msecs_to_jiffies(msecs); in set_stats_lifespan()
/drivers/md/
Ddm-rq.c345 static void __dm_mq_kick_requeue_list(struct request_queue *q, unsigned long msecs) in __dm_mq_kick_requeue_list() argument
351 blk_mq_delay_kick_requeue_list(q, msecs); in __dm_mq_kick_requeue_list()
361 static void dm_mq_delay_requeue_request(struct request *rq, unsigned long msecs) in dm_mq_delay_requeue_request() argument
364 __dm_mq_kick_requeue_list(rq->q, msecs); in dm_mq_delay_requeue_request()
/drivers/staging/iio/adc/
Dad7280a.c434 unsigned int 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()
/drivers/usb/gadget/function/
Df_audio_source.c369 s64 msecs; in audio_send() local
384 msecs = div_s64((ktime_to_ns(now) - ktime_to_ns(audio->start_time)), in audio_send()
386 frames = div_s64((msecs * SAMPLE_RATE), 1000); in audio_send()
/drivers/infiniband/hw/qib/
Dqib_init.c1013 u64 msecs, emsecs; in qib_verify_pioperf() local
1036 msecs = 1 + jiffies_to_msecs(jiffies); in qib_verify_pioperf()
1039 if (jiffies_to_msecs(jiffies) >= msecs) in qib_verify_pioperf()
1057 msecs = jiffies_to_msecs(jiffies); in qib_verify_pioperf()
1060 emsecs = jiffies_to_msecs(jiffies) - msecs; in qib_verify_pioperf()
Dqib_driver.c185 int qib_wait_linkstate(struct qib_pportdata *ppd, u32 state, int msecs) in qib_wait_linkstate() argument
200 msecs_to_jiffies(msecs)); in qib_wait_linkstate()
/drivers/staging/dgnc/
Ddgnc_cls.c1158 static void cls_send_break(struct channel_t *ch, int msecs) in cls_send_break() argument
1166 if (msecs == 0) { in cls_send_break()
1183 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);
1706 static void neo_send_break(struct channel_t *ch, int msecs) in neo_send_break() argument
1711 if (msecs == 0) { in neo_send_break()
1728 ch->ch_stop_sending_break = jiffies + dgnc_jiffies_from_ms(msecs); in neo_send_break()
/drivers/media/usb/airspy/
Dairspy.c257 unsigned int msecs = jiffies_to_msecs(jiffies - in airspy_convert_stream() local
264 src_len, samples, msecs, in airspy_convert_stream()
265 samples * 1000UL / msecs); in airspy_convert_stream()
/drivers/usb/musb/
Dtusb6010.c549 #define OTG_TIMER_MS(msecs) ((msecs) \ argument
550 ? (TUSB_DEV_OTG_TIMER_VAL((DEVCLOCK/1000)*(msecs)) \
/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()
/drivers/media/rc/
Dati_remote.c448 unsigned int msecs; member
482 unsigned long timeout = msecs_to_jiffies(accel[i].msecs); in ati_remote_compute_accel()
/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()
/drivers/mmc/card/
Dblock.c520 long msecs = jiffies_to_msecs(waitfor - jiffies); in mmc_blk_simulate_delay() local
522 if (likely(msecs > 0)) in mmc_blk_simulate_delay()
523 msleep(msecs); in mmc_blk_simulate_delay()
1539 unsigned long msecs = jiffies_to_msecs( in mmc_blk_issue_flush() local
1542 if (msecs) in mmc_blk_issue_flush()
1543 msleep(msecs); in mmc_blk_issue_flush()
/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()
/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.c212 unsigned int msecs = jiffies_to_msecs(jiffies - in rtl2832_sdr_convert_stream() local
220 src_len, samples, msecs, samples * 1000UL / msecs); in rtl2832_sdr_convert_stream()
/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()
/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()
/drivers/ata/
Dlibahci.c1378 unsigned long now, msecs; in ahci_do_softreset() local
1403 msecs = 0; in ahci_do_softreset()
1406 msecs = jiffies_to_msecs(deadline - now); in ahci_do_softreset()
1410 AHCI_CMD_RESET | AHCI_CMD_CLR_BUSY, msecs)) { in ahci_do_softreset()
/drivers/media/pci/cx18/
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()

12