/drivers/net/wireless/st/cw1200/ |
D | pm.c | 116 unsigned long tmo) in cw1200_pm_stay_awake() argument 121 if (!timer_pending(&pm->stay_awake) || cur_tmo < (long)tmo) in cw1200_pm_stay_awake() 122 mod_timer(&pm->stay_awake, jiffies + tmo); in cw1200_pm_stay_awake() 129 long tmo; in cw1200_suspend_work() local 132 tmo = work->timer.expires - jiffies; in cw1200_suspend_work() 133 if (tmo < 0) in cw1200_suspend_work() 134 tmo = 0; in cw1200_suspend_work() 136 tmo = -1; in cw1200_suspend_work() 138 return tmo; in cw1200_suspend_work() 143 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()
|
D | queue.c | 125 unsigned long tmo = item->queue_timestamp + queue->ttl; in __cw1200_queue_gc() local 126 mod_timer(&queue->gc, tmo); in __cw1200_queue_gc() 128 tmo - jiffies); in __cw1200_queue_gc()
|
/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 | 103 (__mbp)->tmo = (__tmo); \ 127 uint32_t tmo; /* Timeout */ member 179 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 …]
|
/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()
|
/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()
|
/drivers/dma/ioat/ |
D | init.c | 322 unsigned long tmo; in ioat_dma_self_test() local 379 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); in ioat_dma_self_test() 381 if (tmo == 0 || in ioat_dma_self_test() 784 unsigned long tmo; in ioat_xor_val_self_test() local 870 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); in ioat_xor_val_self_test() 872 if (tmo == 0 || in ioat_xor_val_self_test() 938 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); in ioat_xor_val_self_test() 940 if (tmo == 0 || in ioat_xor_val_self_test() 991 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); in ioat_xor_val_self_test() 993 if (tmo == 0 || in ioat_xor_val_self_test()
|
D | dma.c | 274 static int ioat_quiesce(struct ioatdma_chan *ioat_chan, unsigned long tmo) in ioat_quiesce() argument 276 unsigned long end = jiffies + tmo; in ioat_quiesce() 284 if (tmo && time_after(jiffies, end)) { in ioat_quiesce() 295 static int ioat_reset_sync(struct ioatdma_chan *ioat_chan, unsigned long tmo) in ioat_reset_sync() argument 297 unsigned long end = jiffies + tmo; in ioat_reset_sync()
|
/drivers/scsi/ |
D | scsi_transport_srp.c | 201 static ssize_t srp_show_tmo(char *buf, int tmo) in srp_show_tmo() argument 203 return tmo >= 0 ? sprintf(buf, "%d\n", tmo) : sprintf(buf, "off\n"); in srp_show_tmo() 206 int srp_parse_tmo(int *tmo, const char *buf) in srp_parse_tmo() argument 211 res = kstrtoint(buf, 0, tmo); in srp_parse_tmo() 213 *tmo = -1; in srp_parse_tmo()
|
D | sun3_scsi.c | 333 int tmo = 20000; /* .2 sec */ in sun3scsi_dma_finish() local 339 if(--tmo <= 0) { in sun3scsi_dma_finish()
|
/drivers/scsi/qla2xxx/ |
D | qla_inline.h | 250 qla2x00_init_timer(srb_t *sp, unsigned long tmo) in qla2x00_init_timer() argument 253 sp->u.iocb_cmd.timer.expires = jiffies + tmo * HZ; in qla2x00_init_timer()
|
/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()
|
/drivers/usb/core/ |
D | devio.c | 1083 unsigned int tmo; in proc_control() local 1106 tmo = ctrl.timeout; in proc_control() 1119 snoop_urb(dev, NULL, pipe, ctrl.wLength, tmo, SUBMIT, NULL, 0); in proc_control() 1124 tbuf, ctrl.wLength, tmo); in proc_control() 1142 snoop_urb(dev, NULL, pipe, ctrl.wLength, tmo, SUBMIT, in proc_control() 1148 tbuf, ctrl.wLength, tmo); in proc_control() 1170 unsigned int tmo, len1, pipe; in proc_bulk() local 1200 tmo = bulk.timeout; in proc_bulk() 1206 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, NULL, 0); in proc_bulk() 1209 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk() [all …]
|
/drivers/net/ethernet/ti/ |
D | cpts.h | 105 unsigned long tmo; member
|
D | cpts.c | 41 return time_after(jiffies, event->tmo); in event_expired() 79 event->tmo = jiffies + 2; in cpts_fifo_read()
|
/drivers/net/phy/ |
D | dp83640.c | 80 unsigned long tmo; member 101 unsigned long tmo; member 289 rxts->tmo = jiffies + SKB_TIMESTAMP_TIMEOUT; in phy2rxts() 582 return time_after(jiffies, rxts->tmo); in expired() 1386 if (!time_after(jiffies, skb_info->tmo)) { in rx_timestamp_work() 1438 skb_info->tmo = jiffies + SKB_TIMESTAMP_TIMEOUT; in dp83640_rxtstamp()
|
/drivers/input/keyboard/ |
D | lm8323.c | 638 unsigned long tmo; in lm8323_probe() local 681 tmo = jiffies + msecs_to_jiffies(100); in lm8323_probe() 686 if (time_after(jiffies, tmo)) { in lm8323_probe()
|
/drivers/scsi/snic/ |
D | snic_main.c | 82 int tmo = SNIC_DFLT_CMD_TIMEOUT * HZ; in snic_slave_configure() local 90 tmo = snic->fwinfo.io_tmo * HZ; in snic_slave_configure() 93 blk_queue_rq_timeout(sdev->request_queue, tmo); in snic_slave_configure()
|
/drivers/scsi/libsas/ |
D | sas_init.c | 401 const unsigned long tmo = msecs_to_jiffies(25000); in sas_resume_ha() local 414 wait_event_timeout(ha->eh_wait_q, phys_suspended(ha) == 0, tmo); in sas_resume_ha()
|
/drivers/rapidio/devices/ |
D | rio_mport_cdev.c | 734 unsigned long tmo = msecs_to_jiffies(dma_timeout); in do_dma_request() local 802 wret = wait_for_completion_interruptible_timeout(&req->req_comp, tmo); in do_dma_request() 1066 unsigned long tmo; in rio_mport_wait_for_async_dma() local 1079 tmo = msecs_to_jiffies(w_param.timeout); in rio_mport_wait_for_async_dma() 1081 tmo = msecs_to_jiffies(dma_timeout); in rio_mport_wait_for_async_dma() 1096 wret = wait_for_completion_interruptible_timeout(&req->req_comp, tmo); in rio_mport_wait_for_async_dma() 1998 unsigned long tmo = msecs_to_jiffies(dma_timeout); in mport_cdev_release_dma() local 2047 wret = wait_for_completion_interruptible_timeout(&priv->comp, tmo); in mport_cdev_release_dma()
|
/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 157 int tmo = *(int *)kp->arg; in srp_tmo_get() local 159 if (tmo >= 0) in srp_tmo_get() 160 return sprintf(buffer, "%d", tmo); in srp_tmo_get() 167 int tmo, res; in srp_tmo_set() local 169 res = srp_parse_tmo(&tmo, val); in srp_tmo_set() 174 res = srp_tmo_valid(tmo, srp_fast_io_fail_tmo, in srp_tmo_set() 177 res = srp_tmo_valid(srp_reconnect_delay, tmo, srp_dev_loss_tmo); in srp_tmo_set() 180 tmo); in srp_tmo_set() 183 *(int *)kp->arg = tmo; in srp_tmo_set()
|