/Linux-v4.19/sound/soc/au1x/ |
D | ac97c.c | 86 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 …]
|
D | psc-i2s.c | 149 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 …]
|
D | psc-ac97.c | 79 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/ |
D | pm.c | 115 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 …]
|
D | pm.h | 37 unsigned long tmo); 40 unsigned long tmo) in cw1200_pm_stay_awake() argument
|
D | scan.c | 23 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/ |
D | hac.c | 202 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/ |
D | pg.c | 288 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()
|
D | pt.c | 394 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/ |
D | csio_mb.c | 76 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 …]
|
D | csio_mb.h | 97 (__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,
|
D | csio_scsi.c | 217 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/ |
D | amdgpu_ib.c | 347 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/ |
D | dm-log-userspace-transfer.c | 175 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/ |
D | init.c | 322 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()
|
D | dma.c | 271 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/ |
D | cpts.c | 37 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/ |
D | scsi_transport_srp.c | 208 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/ |
D | inet_diag.c | 331 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/ |
D | xfrm_state.c | 489 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 …]
|
D | xfrm_policy.c | 205 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/ |
D | scsi_transport_srp.h | 116 int srp_parse_tmo(int *tmo, const char *buf);
|
/Linux-v4.19/drivers/video/fbdev/omap/ |
D | lcd_mipid.c | 297 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/ |
D | qla_inline.h | 277 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/ |
D | devio.c | 1067 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 …]
|