Searched refs:tmo (Results 1 - 63 of 63) sorted by relevance

/linux-4.1.27/sound/soc/au1x/
H A Dac97c.c86 unsigned int tmo, retry; au1xac97c_ac97_read() local
94 tmo = 5; au1xac97c_ac97_read()
95 while ((RD(ctx, AC97_STATUS) & STAT_CP) && tmo--) au1xac97c_ac97_read()
97 if (!tmo) { au1xac97c_ac97_read()
107 tmo = 0x10000; au1xac97c_ac97_read()
108 while ((RD(ctx, AC97_STATUS) & STAT_CP) && tmo--) au1xac97c_ac97_read()
112 if (!tmo) au1xac97c_ac97_read()
117 } while (--retry && !tmo); au1xac97c_ac97_read()
128 unsigned int tmo, retry; au1xac97c_ac97_write() local
134 for (tmo = 5; (RD(ctx, AC97_STATUS) & STAT_CP) && tmo; tmo--) au1xac97c_ac97_write()
136 if (!tmo) { au1xac97c_ac97_write()
143 for (tmo = 10; (RD(ctx, AC97_STATUS) & STAT_CP) && tmo; tmo--) au1xac97c_ac97_write()
145 if (!tmo) au1xac97c_ac97_write()
149 } while (--retry && !tmo); au1xac97c_ac97_write()
H A Dpsc-i2s.c149 unsigned long tmo; au1xpsc_i2s_configure() local
155 tmo = 1000000; au1xpsc_i2s_configure()
156 while (!(__raw_readl(I2S_STAT(pscdata)) & PSC_I2SSTAT_SR) && tmo) au1xpsc_i2s_configure()
157 tmo--; au1xpsc_i2s_configure()
159 if (!tmo) au1xpsc_i2s_configure()
168 tmo = 1000000; au1xpsc_i2s_configure()
169 while (!(__raw_readl(I2S_STAT(pscdata)) & PSC_I2SSTAT_DR) && tmo) au1xpsc_i2s_configure()
170 tmo--; au1xpsc_i2s_configure()
172 if (tmo) au1xpsc_i2s_configure()
184 unsigned long tmo, stat; au1xpsc_i2s_start() local
203 tmo = 1000000; au1xpsc_i2s_start()
204 while (!(__raw_readl(I2S_STAT(pscdata)) & I2SSTAT_BUSY(stype)) && tmo) au1xpsc_i2s_start()
205 tmo--; au1xpsc_i2s_start()
207 if (!tmo) { au1xpsc_i2s_start()
218 unsigned long tmo, stat; au1xpsc_i2s_stop() local
224 tmo = 1000000; au1xpsc_i2s_stop()
225 while ((__raw_readl(I2S_STAT(pscdata)) & I2SSTAT_BUSY(stype)) && tmo) au1xpsc_i2s_stop()
226 tmo--; au1xpsc_i2s_stop()
H A Dpsc-ac97.c79 unsigned short retry, tmo; au1xpsc_ac97_read() local
93 tmo = 20; au1xpsc_ac97_read()
98 } while (--tmo); au1xpsc_ac97_read()
108 tmo = 1; /* wrong register, try again */ au1xpsc_ac97_read()
110 } while (--retry && !tmo); au1xpsc_ac97_read()
120 unsigned int tmo, retry; au1xpsc_ac97_write() local
133 tmo = 20; au1xpsc_ac97_write()
138 } while (--tmo); au1xpsc_ac97_write()
144 } while (--retry && !tmo); au1xpsc_ac97_write()
/linux-4.1.27/drivers/net/wireless/cw1200/
H A Dpm.h37 unsigned long tmo);
40 unsigned long tmo) { cw1200_pm_stay_awake()
39 cw1200_pm_stay_awake(struct cw1200_pm_state *pm, unsigned long tmo) cw1200_pm_stay_awake() argument
H A Dpm.c116 unsigned long tmo) cw1200_pm_stay_awake()
121 if (!timer_pending(&pm->stay_awake) || cur_tmo < (long)tmo) cw1200_pm_stay_awake()
122 mod_timer(&pm->stay_awake, jiffies + tmo); cw1200_pm_stay_awake()
129 long tmo; cw1200_suspend_work() local
132 tmo = work->timer.expires - jiffies; cw1200_suspend_work()
133 if (tmo < 0) cw1200_suspend_work()
134 tmo = 0; cw1200_suspend_work()
136 tmo = -1; cw1200_suspend_work()
138 return tmo; cw1200_suspend_work()
143 unsigned long tmo) cw1200_resume_work()
145 if ((long)tmo < 0) cw1200_resume_work()
148 return queue_delayed_work(priv->workqueue, work, tmo); cw1200_resume_work()
115 cw1200_pm_stay_awake(struct cw1200_pm_state *pm, unsigned long tmo) cw1200_pm_stay_awake() argument
141 cw1200_resume_work(struct cw1200_common *priv, struct delayed_work *work, unsigned long tmo) cw1200_resume_work() argument
H A Dscan.c23 int tmo = 2000; cw1200_scan_start() local
37 tmo += scan->ch[i].max_chan_time + 10; cw1200_scan_start()
42 cw1200_pm_stay_awake(&priv->pm_state, msecs_to_jiffies(tmo)); cw1200_scan_start()
44 msecs_to_jiffies(tmo)); cw1200_scan_start()
H A Dqueue.c125 unsigned long tmo = item->queue_timestamp + queue->ttl; __cw1200_queue_gc() local
126 mod_timer(&queue->gc, tmo); __cw1200_queue_gc()
128 tmo - jiffies); __cw1200_queue_gc()
H A Dwsm.c86 void *arg, u16 cmd, long tmo);
1081 void *arg, u16 cmd, long tmo) wsm_cmd_send()
1132 priv->wsm_cmd.done, tmo); wsm_cmd_send()
1079 wsm_cmd_send(struct cw1200_common *priv, struct wsm_buf *buf, void *arg, u16 cmd, long tmo) wsm_cmd_send() argument
H A Dsta.c2097 long tmo = priv->join_dtim_period * cw1200_multicast_start_work() local
2106 mod_timer(&priv->mcast_timeout, jiffies + tmo); cw1200_multicast_start_work()
/linux-4.1.27/sound/soc/sh/
H A Dhac.c204 unsigned int tmo; hac_ac97_warmrst() local
209 for (tmo = 1000; (tmo > 0) && !(HACREG(HACCR) & CR_CR); tmo--) hac_ac97_warmrst()
212 if (!tmo) hac_ac97_warmrst()
/linux-4.1.27/drivers/scsi/csiostor/
H A Dcsio_mb.c76 csio_mb_hello(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, csio_mb_hello() argument
82 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); csio_mb_hello()
140 csio_mb_bye(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, csio_mb_bye() argument
145 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); csio_mb_bye()
162 csio_mb_reset(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, csio_mb_reset() argument
168 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); csio_mb_reset()
182 * @tmo: Command timeout.
193 csio_mb_params(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, csio_mb_params() argument
203 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); csio_mb_params()
259 * @tmo: timeout
264 csio_mb_ldst(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, int reg) csio_mb_ldst() argument
267 CSIO_INIT_MBP(mbp, ldst_cmd, tmo, hw, NULL, 1); csio_mb_ldst()
300 csio_mb_caps_config(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, csio_mb_caps_config() argument
307 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, wr ? 0 : 1); csio_mb_caps_config()
337 * @tmo: COmmand timeout
346 csio_mb_port(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, csio_mb_port() argument
353 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); csio_mb_port()
407 * @tmo: COmmand timeout
412 csio_mb_initialize(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, csio_mb_initialize() argument
417 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); csio_mb_initialize()
1201 if (mbp->tmo < CSIO_MB_POLL_FREQ) { csio_mb_issue()
1202 csio_err(hw, "Invalid tmo: 0x%x\n", mbp->tmo); csio_mb_issue()
1275 mod_timer(&mbm->timer, jiffies + msecs_to_jiffies(mbp->tmo)); csio_mb_issue()
1294 for (ii = 0; ii < mbp->tmo; ii += CSIO_MB_POLL_FREQ) { csio_mb_issue()
H A Dcsio_mb.h103 (__mbp)->tmo = (__tmo); \
127 uint32_t tmo; /* Timeout */ member in struct:csio_mb
179 void csio_mb_ldst(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo,
H A Dcsio_scsi.c217 wr->tmo_val = (uint8_t) req->tmo; csio_scsi_init_cmd_wr()
376 wr->tmo_val = (uint8_t)(req->tmo); csio_scsi_init_read_wr()
429 wr->tmo_val = (uint8_t)(req->tmo); csio_scsi_init_write_wr()
660 wr->tmo_val = (uint8_t) req->tmo; csio_scsi_init_abrt_cls_wr()
1220 * @tmo: Timeout in ms
1223 * of tmo milliseconds for them to complete. Returns success
1233 csio_scsi_abort_io_q(struct csio_scsim *scm, struct list_head *q, uint32_t tmo) csio_scsi_abort_io_q() argument
1237 int count = DIV_ROUND_UP(tmo, CSIO_SCSI_ABORT_Q_POLL_MS); csio_scsi_abort_io_q()
1840 ioreq->tmo = 0; csio_queuecommand()
1894 ioreq->tmo = CSIO_SCSI_ABRT_TMO_MS; csio_do_abrt_cls()
1919 unsigned long tmo = 0; csio_eh_abort_handler() local
1946 tmo = CSIO_SCSI_ABRT_TMO_MS; csio_eh_abort_handler()
1969 wait_for_completion_timeout(&ioreq->cmplobj, msecs_to_jiffies(tmo)); csio_eh_abort_handler()
2131 ioreq->tmo = CSIO_SCSI_LUNRST_TMO_MS / 1000; csio_eh_lun_reset_handler()
2134 * FW times the LUN reset for ioreq->tmo, so we got to wait a little csio_eh_lun_reset_handler()
2138 count = DIV_ROUND_UP((ioreq->tmo + 10) * 1000, CSIO_SCSI_TM_POLL_MS); csio_eh_lun_reset_handler()
H A Dcsio_wr.h246 uint32_t tmo; /* Driver timeout */ member in struct:csio_ioreq
H A Dcsio_attr.c362 * @timeout: new value for dev loss tmo.
H A Dcsio_hw.c3655 io_req->tmo -= min_t(uint32_t, io_req->tmo, ECM_MIN_TMO); csio_mgmt_tmo_handler()
3657 if (!io_req->tmo) { csio_mgmt_tmo_handler()
H A Dcsio_lnode.c1684 wr->tmo_val = (uint8_t) io_req->tmo; csio_ln_prep_ecwr()
/linux-4.1.27/drivers/block/paride/
H A Dpg.c287 static int pg_wait(struct pg *dev, int go, int stop, unsigned long tmo, char *msg) pg_wait() argument
295 && time_before(jiffies, tmo)) { pg_wait()
302 to = time_after_eq(jiffies, tmo); pg_wait()
319 static int pg_command(struct pg *dev, char *cmd, int dlen, unsigned long tmo) pg_command() argument
327 if (pg_wait(dev, STAT_BUSY | STAT_DRQ, 0, tmo, "before command")) pg_command()
334 if (pg_wait(dev, STAT_BUSY, STAT_DRQ, tmo, "command DRQ")) pg_command()
356 static int pg_completion(struct pg *dev, char *buf, unsigned long tmo) pg_completion() argument
361 tmo, "completion"); pg_completion()
379 tmo, "completion"); pg_completion()
H A Dpt.c393 static int pt_poll_dsc(struct pt_unit *tape, int pause, int tmo, char *msg) pt_poll_dsc() argument
401 while (k < tmo) { pt_poll_dsc()
412 if ((k >= tmo) || (s & STAT_ERR)) { pt_poll_dsc()
413 if (k >= tmo) pt_poll_dsc()
424 static void pt_media_access_cmd(struct pt_unit *tape, int tmo, char *cmd, char *fun) pt_media_access_cmd() argument
431 pt_poll_dsc(tape, HZ, tmo, fun); pt_media_access_cmd()
483 static int pt_ready_wait(struct pt_unit *tape, int tmo) pt_ready_wait() argument
489 while (k < tmo) { pt_ready_wait()
H A Dpcd.c575 static int pcd_ready_wait(struct pcd_unit *cd, int tmo) pcd_ready_wait() argument
581 while (k < tmo) { pcd_ready_wait()
/linux-4.1.27/drivers/dma/ioat/
H A Ddma_v2.h171 int ioat2_quiesce(struct ioat_chan_common *chan, unsigned long tmo);
172 int ioat2_reset_sync(struct ioat_chan_common *chan, unsigned long tmo);
H A Ddma_v2.c221 int ioat2_quiesce(struct ioat_chan_common *chan, unsigned long tmo) ioat2_quiesce() argument
223 unsigned long end = jiffies + tmo; ioat2_quiesce()
231 if (tmo && time_after(jiffies, end)) { ioat2_quiesce()
242 int ioat2_reset_sync(struct ioat_chan_common *chan, unsigned long tmo) ioat2_reset_sync() argument
244 unsigned long end = jiffies + tmo; ioat2_reset_sync()
H A Ddma_v3.c1232 unsigned long tmo; ioat_xor_val_self_test() local
1317 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); ioat_xor_val_self_test()
1319 if (tmo == 0 || ioat_xor_val_self_test()
1384 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); ioat_xor_val_self_test()
1386 if (tmo == 0 || ioat_xor_val_self_test()
1437 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); ioat_xor_val_self_test()
1439 if (tmo == 0 || ioat_xor_val_self_test()
H A Ddma.c828 unsigned long tmo; ioat_dma_self_test() local
884 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); ioat_dma_self_test()
886 if (tmo == 0 || ioat_dma_self_test()
/linux-4.1.27/drivers/md/
H A Ddm-log-userspace-transfer.c175 unsigned long tmo; dm_consult_userspace() local
240 tmo = wait_for_completion_timeout(&(pkg.complete), DM_ULOG_RETRY_TIMEOUT); dm_consult_userspace()
244 if (!tmo) { dm_consult_userspace()
/linux-4.1.27/net/ipv4/
H A Dinet_diag.c181 #define EXPIRES_IN_MS(tmo) DIV_ROUND_UP((tmo - jiffies) * 1000, HZ) inet_sk_diag_fill()
269 long tmo; inet_twsk_diag_fill() local
279 tmo = tw->tw_timer.expires - jiffies; inet_twsk_diag_fill()
280 if (tmo < 0) inet_twsk_diag_fill()
281 tmo = 0; inet_twsk_diag_fill()
288 r->idiag_expires = jiffies_to_msecs(tmo); inet_twsk_diag_fill()
304 long tmo; inet_req_diag_fill() local
320 tmo = inet_reqsk(sk)->rsk_timer.expires - jiffies; inet_req_diag_fill()
321 r->idiag_expires = (tmo >= 0) ? jiffies_to_msecs(tmo) : 0; inet_req_diag_fill()
H A Dtcp_timer.c596 const int tmo = tcp_fin_time(sk) - TCP_TIMEWAIT_LEN; tcp_keepalive_timer() local
598 if (tmo > 0) { tcp_keepalive_timer()
599 tcp_time_wait(sk, TCP_FIN_WAIT2, tmo); tcp_keepalive_timer()
H A Dtcp.c2119 const int tmo = tcp_fin_time(sk); tcp_close() local
2121 if (tmo > TCP_TIMEWAIT_LEN) { tcp_close()
2123 tmo - TCP_TIMEWAIT_LEN); tcp_close()
2125 tcp_time_wait(sk, TCP_FIN_WAIT2, tmo); tcp_close()
H A Dtcp_input.c5844 int tmo; tcp_rcv_state_process() local
5888 tmo = tcp_fin_time(sk); tcp_rcv_state_process()
5889 if (tmo > TCP_TIMEWAIT_LEN) { tcp_rcv_state_process()
5890 inet_csk_reset_keepalive_timer(sk, tmo - TCP_TIMEWAIT_LEN); tcp_rcv_state_process()
5898 inet_csk_reset_keepalive_timer(sk, tmo); tcp_rcv_state_process()
5900 tcp_time_wait(sk, TCP_FIN_WAIT2, tmo); tcp_rcv_state_process()
/linux-4.1.27/net/xfrm/
H A Dxfrm_state.c394 long tmo = x->lft.hard_add_expires_seconds + xfrm_timer_handler() local
396 if (tmo <= 0) { xfrm_timer_handler()
403 tmo = x->lft.hard_add_expires_seconds - x->saved_tmo; xfrm_timer_handler()
407 if (tmo < next) xfrm_timer_handler()
408 next = tmo; xfrm_timer_handler()
411 long tmo = x->lft.hard_use_expires_seconds + xfrm_timer_handler() local
413 if (tmo <= 0) xfrm_timer_handler()
415 if (tmo < next) xfrm_timer_handler()
416 next = tmo; xfrm_timer_handler()
421 long tmo = x->lft.soft_add_expires_seconds + xfrm_timer_handler() local
423 if (tmo <= 0) { xfrm_timer_handler()
426 } else if (tmo < next) { xfrm_timer_handler()
427 next = tmo; xfrm_timer_handler()
429 x->saved_tmo = tmo; xfrm_timer_handler()
433 long tmo = x->lft.soft_use_expires_seconds + xfrm_timer_handler() local
435 if (tmo <= 0) xfrm_timer_handler()
437 else if (tmo < next) xfrm_timer_handler()
438 next = tmo; xfrm_timer_handler()
H A Dxfrm_policy.c192 long tmo = xp->lft.hard_add_expires_seconds + xfrm_policy_timer() local
194 if (tmo <= 0) xfrm_policy_timer()
196 if (tmo < next) xfrm_policy_timer()
197 next = tmo; xfrm_policy_timer()
200 long tmo = xp->lft.hard_use_expires_seconds + xfrm_policy_timer() local
202 if (tmo <= 0) xfrm_policy_timer()
204 if (tmo < next) xfrm_policy_timer()
205 next = tmo; xfrm_policy_timer()
208 long tmo = xp->lft.soft_add_expires_seconds + xfrm_policy_timer() local
210 if (tmo <= 0) { xfrm_policy_timer()
212 tmo = XFRM_KM_TIMEOUT; xfrm_policy_timer()
214 if (tmo < next) xfrm_policy_timer()
215 next = tmo; xfrm_policy_timer()
218 long tmo = xp->lft.soft_use_expires_seconds + xfrm_policy_timer() local
220 if (tmo <= 0) { xfrm_policy_timer()
222 tmo = XFRM_KM_TIMEOUT; xfrm_policy_timer()
224 if (tmo < next) xfrm_policy_timer()
225 next = tmo; xfrm_policy_timer()
/linux-4.1.27/drivers/scsi/
H A Dscsi_transport_srp.c196 static ssize_t srp_show_tmo(char *buf, int tmo) srp_show_tmo() argument
198 return tmo >= 0 ? sprintf(buf, "%d\n", tmo) : sprintf(buf, "off\n"); srp_show_tmo()
201 static int srp_parse_tmo(int *tmo, const char *buf) srp_parse_tmo() argument
206 res = kstrtoint(buf, 0, tmo); srp_parse_tmo()
208 *tmo = -1; srp_parse_tmo()
H A Dsun3_scsi.c426 int tmo = 20000; /* .2 sec */ sun3scsi_dma_finish() local
432 if(--tmo <= 0) { sun3scsi_dma_finish()
H A Dscsi_error.c1832 * the fast io fail tmo fired), so send IO directly upwards. scsi_decide_disposition()
H A Dlibiscsi.c2103 ISCSI_DBG_CONN(conn, "Setting next tmo %lu\n", next_timeout); iscsi_check_transport_timeouts()
/linux-4.1.27/drivers/scsi/qla2xxx/
H A Dqla_inline.h250 qla2x00_init_timer(srb_t *sp, unsigned long tmo) qla2x00_init_timer() argument
253 sp->u.iocb_cmd.timer.expires = jiffies + tmo * HZ; qla2x00_init_timer()
H A Dqla_mr.c298 qlafx00_driver_shutdown(scsi_qla_host_t *vha, int tmo) qlafx00_driver_shutdown() argument
310 if (tmo) qlafx00_driver_shutdown()
311 mcp->tov = tmo; qlafx00_driver_shutdown()
H A Dqla_init.c80 unsigned long tmo; qla2x00_get_async_timeout() local
84 tmo = ha->r_a_tov / 10 * 2; qla2x00_get_async_timeout()
86 tmo = FX00_DEF_RATOV * 2; qla2x00_get_async_timeout()
92 tmo = ha->login_timeout; qla2x00_get_async_timeout()
94 return tmo; qla2x00_get_async_timeout()
H A Dqla_sup.c244 uint16_t data, uint32_t tmo) qla2x00_write_nvram_word_tmo()
283 if (!--tmo) { qla2x00_write_nvram_word_tmo()
243 qla2x00_write_nvram_word_tmo(struct qla_hw_data *ha, uint32_t addr, uint16_t data, uint32_t tmo) qla2x00_write_nvram_word_tmo() argument
/linux-4.1.27/drivers/usb/core/
H A Ddevio.c973 unsigned int tmo; proc_control() local
996 tmo = ctrl.timeout; proc_control()
1009 snoop_urb(dev, NULL, pipe, ctrl.wLength, tmo, SUBMIT, NULL, 0); proc_control()
1014 tbuf, ctrl.wLength, tmo); proc_control()
1032 snoop_urb(dev, NULL, pipe, ctrl.wLength, tmo, SUBMIT, proc_control()
1038 tbuf, ctrl.wLength, tmo); proc_control()
1060 unsigned int tmo, len1, pipe; proc_bulk() local
1089 tmo = bulk.timeout; proc_bulk()
1095 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, NULL, 0); proc_bulk()
1098 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); proc_bulk()
1115 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, tbuf, len1); proc_bulk()
1118 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); proc_bulk()
/linux-4.1.27/drivers/video/fbdev/omap/
H A Dlcd_mipid.c298 unsigned long tmo; mipid_run_test() local
301 tmo = jiffies + msecs_to_jiffies(100); mipid_run_test()
310 if (time_after(jiffies, tmo)) { mipid_run_test()
/linux-4.1.27/drivers/net/ethernet/ti/
H A Dcpts.h105 unsigned long tmo; member in struct:cpts_event
H A Dcpts.c41 return time_after(jiffies, event->tmo); event_expired()
79 event->tmo = jiffies + 2; cpts_fifo_read()
/linux-4.1.27/fs/fscache/
H A Dstats.c169 seq_printf(m, "Lookups: n=%u neg=%u pos=%u crt=%u tmo=%u\n", fscache_stats_show()
/linux-4.1.27/drivers/net/phy/
H A Ddp83640.c79 unsigned long tmo; member in struct:dp83640_skb_info
100 unsigned long tmo; member in struct:rxts
287 rxts->tmo = jiffies + 2; phy2rxts()
580 return time_after(jiffies, rxts->tmo); expired()
1372 if (!time_after(jiffies, skb_info->tmo)) { rx_timestamp_work()
1420 skb_info->tmo = jiffies + 2; dp83640_rxtstamp()
/linux-4.1.27/drivers/scsi/lpfc/
H A Dlpfc_attr.c2910 * If the devloss tmo is already set then nodev tmo is set to devloss tmo,
2912 * Else if val is in range then nodev tmo and devloss tmo are set to val.
2913 * Otherwise nodev tmo is set to the default value.
2946 * lpfc_update_rport_devloss_tmo - Update dev loss tmo value
2950 * Update all the ndlp's dev loss tmo with the vport devloss tmo value.
2967 * lpfc_nodev_tmo_set - Set the vport nodev tmo and devloss tmo values
2969 * @val: contains the tmo value.
2972 * If the devloss tmo is already set or the vport dev loss tmo has changed
2974 * Else if val is in range then nodev tmo and devloss tmo are set to val.
2975 * Otherwise nodev tmo is set to the default value.
3028 * lpfc_devloss_tmo_set - Sets vport nodev tmo, devloss tmo values, changed bit
3030 * @val: contains the tmo value.
3033 * If val is in a valid range then set the vport nodev tmo,
3034 * devloss tmo, also set the vport dev loss tmo changed flag.
5598 * lpfc_set_rport_loss_tmo - Set the rport dev loss tmo
5600 * @timeout: new value for dev loss tmo.
H A Dlpfc_hbadisc.c383 "FCF devloss tmo\n", nlp_did); lpfc_sli4_post_dev_loss_tmo_handler()
388 "2868 Devloss tmo to FCF rediscovery " lpfc_sli4_post_dev_loss_tmo_handler()
395 "2869 Devloss tmo to idle FIP engine, " lpfc_sli4_post_dev_loss_tmo_handler()
1970 "2872 Devloss tmo with no eligible " lpfc_sli4_fcf_rr_next_proc()
2444 "2864 On devloss tmo " lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
4313 uint32_t tmo; lpfc_set_disctmo() local
4317 tmo = (((phba->fc_edtov + 999) / 1000) + 1); lpfc_set_disctmo()
4322 tmo = ((phba->fc_ratov * 3) + 3); lpfc_set_disctmo()
4328 "set disc timer: tmo:x%x state:x%x flg:x%x", lpfc_set_disctmo()
4329 tmo, vport->port_state, vport->fc_flag); lpfc_set_disctmo()
4332 mod_timer(&vport->fc_disctmo, jiffies + msecs_to_jiffies(1000 * tmo)); lpfc_set_disctmo()
4341 vport->port_state, tmo, lpfc_set_disctmo()
H A Dlpfc_ct.c295 uint32_t tmo, uint8_t retry) lpfc_gen_req()
334 if (!tmo) { lpfc_gen_req()
336 tmo = (3 * phba->fc_ratov); lpfc_gen_req()
338 icmd->ulpTimeout = tmo; lpfc_gen_req()
290 lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, struct lpfc_dmabuf *inp, struct lpfc_dmabuf *outp, void (*cmpl) (struct lpfc_hba *, struct lpfc_iocbq *, struct lpfc_iocbq *), struct lpfc_nodelist *ndlp, uint32_t usr_flg, uint32_t num_entry, uint32_t tmo, uint8_t retry) lpfc_gen_req() argument
H A Dlpfc_vport.c249 * fabric RA_TOV value and dev_loss tmo. The driver's lpfc_discovery_wait()
H A Dlpfc_els.c1015 "status:x%x/x%x, tmo:x%x, perform " lpfc_cmpl_els_flogi()
1211 uint32_t tmo; lpfc_issue_els_flogi() local
1272 tmo = phba->fc_ratov; lpfc_issue_els_flogi()
1275 phba->fc_ratov = tmo; lpfc_issue_els_flogi()
/linux-4.1.27/drivers/input/keyboard/
H A Dlm8323.c638 unsigned long tmo; lm8323_probe() local
681 tmo = jiffies + msecs_to_jiffies(100); lm8323_probe()
686 if (time_after(jiffies, tmo)) { lm8323_probe()
/linux-4.1.27/net/ipv6/
H A Dicmp.c200 int tmo = net->ipv6.sysctl.icmpv6_time; icmpv6_xrlim_allow() local
204 tmo >>= ((128 - rt->rt6i_dst.plen)>>5); icmpv6_xrlim_allow()
211 res = inet_peer_xrlim_allow(peer, tmo); icmpv6_xrlim_allow()
/linux-4.1.27/drivers/scsi/libsas/
H A Dsas_init.c401 const unsigned long tmo = msecs_to_jiffies(25000); sas_resume_ha() local
414 wait_event_timeout(ha->eh_wait_q, phys_suspended(ha) == 0, tmo); sas_resume_ha()
/linux-4.1.27/drivers/infiniband/ulp/srp/
H A Dib_srp.c151 int tmo = *(int *)kp->arg; srp_tmo_get() local
153 if (tmo >= 0) srp_tmo_get()
154 return sprintf(buffer, "%d", tmo); srp_tmo_get()
161 int tmo, res; srp_tmo_set() local
164 res = kstrtoint(val, 0, &tmo); srp_tmo_set()
168 tmo = -1; srp_tmo_set()
171 res = srp_tmo_valid(tmo, srp_fast_io_fail_tmo, srp_tmo_set()
174 res = srp_tmo_valid(srp_reconnect_delay, tmo, srp_dev_loss_tmo); srp_tmo_set()
177 tmo); srp_tmo_set()
180 *(int *)kp->arg = tmo; srp_tmo_set()
/linux-4.1.27/net/decnet/
H A Ddn_route.c404 long tmo = (long)(dn_rt_deadline - now); dn_rt_cache_flush() local
406 if (user_mode && tmo < dn_rt_max_delay - dn_rt_min_delay) dn_rt_cache_flush()
407 tmo = 0; dn_rt_cache_flush()
409 if (delay > tmo) dn_rt_cache_flush()
410 delay = tmo; dn_rt_cache_flush()
/linux-4.1.27/drivers/input/touchscreen/
H A Dcyttsp4_core.c1272 dev_err(cd->dev, "%s: tmo waiting exclusive access\n", cyttsp4_request_exclusive()
1322 dev_err(cd->dev, "%s: tmo waiting bl heartbeat cd->mode=%d\n", cyttsp4_wait_bl_heartbeat()
1339 dev_err(cd->dev, "%s: tmo waiting exit bl cd->mode=%d\n", cyttsp4_wait_sysinfo_mode()
1431 "tmo waiting mode change"); cyttsp4_set_mode()
/linux-4.1.27/net/packet/
H A Daf_packet.c562 unsigned int mbits = 0, msec = 0, div = 0, tmo = 0; prb_calc_retire_blk_tmo() local
594 tmo = mbits * msec; prb_calc_retire_blk_tmo()
597 return tmo+1; prb_calc_retire_blk_tmo()
598 return tmo; prb_calc_retire_blk_tmo()
661 * So, if the user sets the 'tmo' to 10ms then the timer
667 * Since the tmo granularity is in msecs, it is not too expensive
669 * Either the user can set the 'tmo' or we can derive it based on
671 * prb_calc_retire_blk_tmo() calculates the tmo.
811 /* Ok, we tmo'd - so get the current time. prb_close_block()
/linux-4.1.27/drivers/usb/gadget/udc/
H A Dgoku_udc.c1148 (tmp & MST_TIMEOUT_DIS) ? " tmo-" : "", udc_proc_read()
1149 (tmp & MST_TIMEOUT_ENA) ? " tmo+" : "", udc_proc_read()
/linux-4.1.27/sound/oss/
H A Dswarm_cs4297a.c1631 unsigned tmo; drain_dac() local
1644 tmo = ((count * FRAME_TX_US) * HZ) / 1000000; drain_dac()
1645 schedule_timeout(tmo + 1); drain_dac()
/linux-4.1.27/drivers/scsi/qla4xxx/
H A Dql4_os.c7399 uint16_t tmo = 0; qla4xxx_sysfs_ddb_conn_open() local
7424 tmo = ((ha->def_timeout > LOGIN_TOV) && qla4xxx_sysfs_ddb_conn_open()
7429 "Default time to wait for login to ddb %d\n", tmo)); qla4xxx_sysfs_ddb_conn_open()
7431 wtime = jiffies + (HZ * tmo); qla4xxx_sysfs_ddb_conn_open()
8463 uint16_t tmo = 0; qla4xxx_build_ddb_list() local
8490 tmo = ((ha->def_timeout > LOGIN_TOV) && qla4xxx_build_ddb_list()
8495 "Default time to wait for build ddb %d\n", tmo)); qla4xxx_build_ddb_list()
8497 wtime = jiffies + (HZ * tmo); qla4xxx_build_ddb_list()
/linux-4.1.27/drivers/ata/
H A Dahci.c757 unsigned long tmo = deadline - jiffies; ahci_avn_hardreset() local
794 deadline += tmo; ahci_avn_hardreset()
/linux-4.1.27/drivers/message/fusion/
H A Dmptfc.c495 "rport tid %d, tmo %d\n", mptfc_register_dev()
/linux-4.1.27/drivers/scsi/isci/
H A Dhost.c1050 unsigned long tmo = sci_controller_get_suggested_start_timeout(ihost); isci_host_start() local
1055 sci_controller_start(ihost, tmo); isci_host_start()

Completed in 1932 milliseconds