Home
last modified time | relevance | path

Searched refs:tmo (Results 1 – 25 of 66) sorted by relevance

123

/Linux-v4.19/sound/soc/au1x/
Dac97c.c86 unsigned int tmo, retry; in au1xac97c_ac97_read() local
94 tmo = 6; in au1xac97c_ac97_read()
95 while ((RD(ctx, AC97_STATUS) & STAT_CP) && --tmo) in au1xac97c_ac97_read()
97 if (!tmo) { in au1xac97c_ac97_read()
107 tmo = 0x10000; in au1xac97c_ac97_read()
108 while ((RD(ctx, AC97_STATUS) & STAT_CP) && --tmo) in au1xac97c_ac97_read()
112 if (!tmo) in au1xac97c_ac97_read()
117 } while (--retry && !tmo); in au1xac97c_ac97_read()
128 unsigned int tmo, retry; in au1xac97c_ac97_write() local
134 for (tmo = 5; (RD(ctx, AC97_STATUS) & STAT_CP) && tmo; tmo--) in au1xac97c_ac97_write()
[all …]
Dpsc-i2s.c149 unsigned long tmo; in au1xpsc_i2s_configure() local
155 tmo = 1000000; in au1xpsc_i2s_configure()
156 while (!(__raw_readl(I2S_STAT(pscdata)) & PSC_I2SSTAT_SR) && tmo) in au1xpsc_i2s_configure()
157 tmo--; in au1xpsc_i2s_configure()
159 if (!tmo) in au1xpsc_i2s_configure()
168 tmo = 1000000; in au1xpsc_i2s_configure()
169 while (!(__raw_readl(I2S_STAT(pscdata)) & PSC_I2SSTAT_DR) && tmo) in au1xpsc_i2s_configure()
170 tmo--; in au1xpsc_i2s_configure()
172 if (tmo) in au1xpsc_i2s_configure()
184 unsigned long tmo, stat; in au1xpsc_i2s_start() local
[all …]
Dpsc-ac97.c79 unsigned short retry, tmo; in au1xpsc_ac97_read() local
93 tmo = 20; in au1xpsc_ac97_read()
98 } while (--tmo); in au1xpsc_ac97_read()
108 tmo = 1; /* wrong register, try again */ in au1xpsc_ac97_read()
110 } while (--retry && !tmo); in au1xpsc_ac97_read()
120 unsigned int tmo, retry; in au1xpsc_ac97_write() local
133 tmo = 20; in au1xpsc_ac97_write()
138 } while (--tmo); in au1xpsc_ac97_write()
144 } while (--retry && !tmo); in au1xpsc_ac97_write()
/Linux-v4.19/drivers/net/wireless/st/cw1200/
Dpm.c115 unsigned long tmo) in cw1200_pm_stay_awake() argument
120 if (!timer_pending(&pm->stay_awake) || cur_tmo < (long)tmo) in cw1200_pm_stay_awake()
121 mod_timer(&pm->stay_awake, jiffies + tmo); in cw1200_pm_stay_awake()
128 long tmo; in cw1200_suspend_work() local
131 tmo = work->timer.expires - jiffies; in cw1200_suspend_work()
132 if (tmo < 0) in cw1200_suspend_work()
133 tmo = 0; in cw1200_suspend_work()
135 tmo = -1; in cw1200_suspend_work()
137 return tmo; in cw1200_suspend_work()
142 unsigned long tmo) in cw1200_resume_work() argument
[all …]
Dpm.h37 unsigned long tmo);
40 unsigned long tmo) in cw1200_pm_stay_awake() argument
Dscan.c23 int tmo = 2000; in cw1200_scan_start() local
37 tmo += scan->ch[i].max_chan_time + 10; in cw1200_scan_start()
42 cw1200_pm_stay_awake(&priv->pm_state, msecs_to_jiffies(tmo)); in cw1200_scan_start()
44 msecs_to_jiffies(tmo)); in cw1200_scan_start()
/Linux-v4.19/sound/soc/sh/
Dhac.c202 unsigned int tmo; in hac_ac97_warmrst() local
207 for (tmo = 1000; (tmo > 0) && !(HACREG(HACCR) & CR_CR); tmo--) in hac_ac97_warmrst()
210 if (!tmo) in hac_ac97_warmrst()
/Linux-v4.19/drivers/block/paride/
Dpg.c288 static int pg_wait(struct pg *dev, int go, int stop, unsigned long tmo, char *msg) in pg_wait() argument
296 && time_before(jiffies, tmo)) { in pg_wait()
303 to = time_after_eq(jiffies, tmo); in pg_wait()
320 static int pg_command(struct pg *dev, char *cmd, int dlen, unsigned long tmo) in pg_command() argument
328 if (pg_wait(dev, STAT_BUSY | STAT_DRQ, 0, tmo, "before command")) in pg_command()
335 if (pg_wait(dev, STAT_BUSY, STAT_DRQ, tmo, "command DRQ")) in pg_command()
357 static int pg_completion(struct pg *dev, char *buf, unsigned long tmo) in pg_completion() argument
362 tmo, "completion"); in pg_completion()
380 tmo, "completion"); in pg_completion()
Dpt.c394 static int pt_poll_dsc(struct pt_unit *tape, int pause, int tmo, char *msg) in pt_poll_dsc() argument
402 while (k < tmo) { in pt_poll_dsc()
413 if ((k >= tmo) || (s & STAT_ERR)) { in pt_poll_dsc()
414 if (k >= tmo) in pt_poll_dsc()
425 static void pt_media_access_cmd(struct pt_unit *tape, int tmo, char *cmd, char *fun) in pt_media_access_cmd() argument
432 pt_poll_dsc(tape, HZ, tmo, fun); in pt_media_access_cmd()
484 static int pt_ready_wait(struct pt_unit *tape, int tmo) in pt_ready_wait() argument
490 while (k < tmo) { in pt_ready_wait()
/Linux-v4.19/drivers/scsi/csiostor/
Dcsio_mb.c76 csio_mb_hello(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_hello() argument
82 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_hello()
140 csio_mb_bye(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_bye() argument
145 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_bye()
162 csio_mb_reset(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_reset() argument
168 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_reset()
193 csio_mb_params(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_params() argument
203 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_params()
264 csio_mb_ldst(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, int reg) in csio_mb_ldst() argument
267 CSIO_INIT_MBP(mbp, ldst_cmd, tmo, hw, NULL, 1); in csio_mb_ldst()
[all …]
Dcsio_mb.h97 (__mbp)->tmo = (__tmo); \
121 uint32_t tmo; /* Timeout */ member
174 void csio_mb_ldst(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo,
Dcsio_scsi.c217 wr->tmo_val = (uint8_t) req->tmo; in csio_scsi_init_cmd_wr()
376 wr->tmo_val = (uint8_t)(req->tmo); in csio_scsi_init_read_wr()
429 wr->tmo_val = (uint8_t)(req->tmo); in csio_scsi_init_write_wr()
660 wr->tmo_val = (uint8_t) req->tmo; in csio_scsi_init_abrt_cls_wr()
1233 csio_scsi_abort_io_q(struct csio_scsim *scm, struct list_head *q, uint32_t tmo) in csio_scsi_abort_io_q() argument
1237 int count = DIV_ROUND_UP(tmo, CSIO_SCSI_ABORT_Q_POLL_MS); in csio_scsi_abort_io_q()
1840 ioreq->tmo = 0; in csio_queuecommand()
1894 ioreq->tmo = CSIO_SCSI_ABRT_TMO_MS; in csio_do_abrt_cls()
1919 unsigned long tmo = 0; in csio_eh_abort_handler() local
1946 tmo = CSIO_SCSI_ABRT_TMO_MS; in csio_eh_abort_handler()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ib.c347 long tmo; in amdgpu_ib_ring_tests() local
359 tmo = tmo_mm; in amdgpu_ib_ring_tests()
361 tmo = tmo_gfx; in amdgpu_ib_ring_tests()
363 r = amdgpu_ring_test_ib(ring, tmo); in amdgpu_ib_ring_tests()
/Linux-v4.19/drivers/md/
Ddm-log-userspace-transfer.c175 unsigned long tmo; in dm_consult_userspace() local
240 tmo = wait_for_completion_timeout(&(pkg.complete), DM_ULOG_RETRY_TIMEOUT); in dm_consult_userspace()
244 if (!tmo) { in dm_consult_userspace()
/Linux-v4.19/drivers/dma/ioat/
Dinit.c322 unsigned long tmo; in ioat_dma_self_test() local
381 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); in ioat_dma_self_test()
383 if (tmo == 0 || in ioat_dma_self_test()
784 unsigned long tmo; in ioat_xor_val_self_test() local
872 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); in ioat_xor_val_self_test()
874 if (tmo == 0 || in ioat_xor_val_self_test()
940 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); in ioat_xor_val_self_test()
942 if (tmo == 0 || in ioat_xor_val_self_test()
993 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); in ioat_xor_val_self_test()
995 if (tmo == 0 || in ioat_xor_val_self_test()
Ddma.c271 static int ioat_quiesce(struct ioatdma_chan *ioat_chan, unsigned long tmo) in ioat_quiesce() argument
273 unsigned long end = jiffies + tmo; in ioat_quiesce()
281 if (tmo && time_after(jiffies, end)) { in ioat_quiesce()
292 static int ioat_reset_sync(struct ioatdma_chan *ioat_chan, unsigned long tmo) in ioat_reset_sync() argument
294 unsigned long end = jiffies + tmo; in ioat_reset_sync()
/Linux-v4.19/drivers/net/ethernet/ti/
Dcpts.c37 unsigned long tmo; member
48 return time_after(jiffies, event->tmo); in event_expired()
120 if (time_after(jiffies, skb_cb->tmo)) { in cpts_match_tx_ts()
152 event->tmo = jiffies + 2; in cpts_fifo_read()
399 skb_cb->tmo = jiffies + msecs_to_jiffies(100); in cpts_find_ts()
/Linux-v4.19/drivers/scsi/
Dscsi_transport_srp.c208 static ssize_t srp_show_tmo(char *buf, int tmo) in srp_show_tmo() argument
210 return tmo >= 0 ? sprintf(buf, "%d\n", tmo) : sprintf(buf, "off\n"); in srp_show_tmo()
213 int srp_parse_tmo(int *tmo, const char *buf) in srp_parse_tmo() argument
218 res = kstrtoint(buf, 0, tmo); in srp_parse_tmo()
220 *tmo = -1; in srp_parse_tmo()
/Linux-v4.19/net/ipv4/
Dinet_diag.c331 long tmo; in inet_twsk_diag_fill() local
341 tmo = tw->tw_timer.expires - jiffies; in inet_twsk_diag_fill()
342 if (tmo < 0) in inet_twsk_diag_fill()
343 tmo = 0; in inet_twsk_diag_fill()
350 r->idiag_expires = jiffies_to_msecs(tmo); in inet_twsk_diag_fill()
367 long tmo; in inet_req_diag_fill() local
383 tmo = inet_reqsk(sk)->rsk_timer.expires - jiffies; in inet_req_diag_fill()
384 r->idiag_expires = (tmo >= 0) ? jiffies_to_msecs(tmo) : 0; in inet_req_diag_fill()
/Linux-v4.19/net/xfrm/
Dxfrm_state.c489 long tmo = x->lft.hard_add_expires_seconds + in xfrm_timer_handler() local
491 if (tmo <= 0) { in xfrm_timer_handler()
498 tmo = x->lft.hard_add_expires_seconds - x->saved_tmo; in xfrm_timer_handler()
502 if (tmo < next) in xfrm_timer_handler()
503 next = tmo; in xfrm_timer_handler()
506 long tmo = x->lft.hard_use_expires_seconds + in xfrm_timer_handler() local
508 if (tmo <= 0) in xfrm_timer_handler()
510 if (tmo < next) in xfrm_timer_handler()
511 next = tmo; in xfrm_timer_handler()
516 long tmo = x->lft.soft_add_expires_seconds + in xfrm_timer_handler() local
[all …]
Dxfrm_policy.c205 time64_t tmo = xp->lft.hard_add_expires_seconds + in xfrm_policy_timer() local
207 if (tmo <= 0) in xfrm_policy_timer()
209 if (tmo < next) in xfrm_policy_timer()
210 next = tmo; in xfrm_policy_timer()
213 time64_t tmo = xp->lft.hard_use_expires_seconds + in xfrm_policy_timer() local
215 if (tmo <= 0) in xfrm_policy_timer()
217 if (tmo < next) in xfrm_policy_timer()
218 next = tmo; in xfrm_policy_timer()
221 time64_t tmo = xp->lft.soft_add_expires_seconds + in xfrm_policy_timer() local
223 if (tmo <= 0) { in xfrm_policy_timer()
[all …]
/Linux-v4.19/include/scsi/
Dscsi_transport_srp.h116 int srp_parse_tmo(int *tmo, const char *buf);
/Linux-v4.19/drivers/video/fbdev/omap/
Dlcd_mipid.c297 unsigned long tmo; in mipid_run_test() local
300 tmo = jiffies + msecs_to_jiffies(100); in mipid_run_test()
309 if (time_after(jiffies, tmo)) { in mipid_run_test()
/Linux-v4.19/drivers/scsi/qla2xxx/
Dqla_inline.h277 qla2x00_init_timer(srb_t *sp, unsigned long tmo) in qla2x00_init_timer() argument
280 sp->u.iocb_cmd.timer.expires = jiffies + tmo * HZ; in qla2x00_init_timer()
/Linux-v4.19/drivers/usb/core/
Ddevio.c1067 unsigned int tmo; in proc_control() local
1090 tmo = ctrl.timeout; in proc_control()
1103 snoop_urb(dev, NULL, pipe, ctrl.wLength, tmo, SUBMIT, NULL, 0); in proc_control()
1108 tbuf, ctrl.wLength, tmo); in proc_control()
1126 snoop_urb(dev, NULL, pipe, ctrl.wLength, tmo, SUBMIT, in proc_control()
1132 tbuf, ctrl.wLength, tmo); in proc_control()
1154 unsigned int tmo, len1, pipe; in proc_bulk() local
1184 tmo = bulk.timeout; in proc_bulk()
1190 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, NULL, 0); in proc_bulk()
1193 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
[all …]

123