Home
last modified time | relevance | path

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

12

/linux-2.4.37.9/drivers/block/paride/
Dpg.c363 static int pg_wait( int unit, int go, int stop, int tmo, char * msg ) in pg_wait() argument
370 while ((((r=RR(1,6))&go)||(stop&&(!(r&stop))))&&(time_before(jiffies,tmo))) { in pg_wait()
375 if ((r&(STAT_ERR&stop))||time_after_eq(jiffies, tmo)) { in pg_wait()
381 PG.name,msg,s,e,p,time_after_eq(jiffies, tmo)?" timeout":""); in pg_wait()
384 if (time_after_eq(jiffies, tmo)) e |= 0x100; in pg_wait()
391 static int pg_command( int unit, char * cmd, int dlen, int tmo ) in pg_command() argument
399 if (pg_wait(unit,STAT_BUSY|STAT_DRQ,0,tmo,"before command")) { in pg_command()
408 if (pg_wait(unit,STAT_BUSY,STAT_DRQ,tmo,"command DRQ")) { in pg_command()
429 static int pg_completion( int unit, char * buf, int tmo) in pg_completion() argument
434 tmo,"completion"); in pg_completion()
[all …]
Dpt.c475 static int pt_poll_dsc( int unit, int pause, int tmo, char *msg ) in pt_poll_dsc() argument
480 while (k < tmo) { in pt_poll_dsc()
490 if ((k >= tmo) || (s & STAT_ERR)) { in pt_poll_dsc()
491 if (k >= tmo) printk("%s: %s DSC timeout\n",PT.name,msg); in pt_poll_dsc()
499 static void pt_media_access_cmd( int unit, int tmo, char *cmd, char *fun) in pt_media_access_cmd() argument
506 pt_poll_dsc(unit,HZ,tmo,fun); in pt_media_access_cmd()
554 static int pt_ready_wait( int unit, int tmo ) in pt_ready_wait() argument
560 while (k < tmo) { in pt_ready_wait()
Dpcd.c629 static int pcd_ready_wait( int unit, int tmo ) in pcd_ready_wait() argument
635 while (k < tmo) { in pcd_ready_wait()
/linux-2.4.37.9/net/ipv4/
Dtcp_diag.c82 long tmo = tw->ttd - jiffies; in tcpdiag_fill() local
83 if (tmo < 0) in tcpdiag_fill()
84 tmo = 0; in tcpdiag_fill()
88 r->tcpdiag_expires = (tmo*1000+HZ-1)/HZ; in tcpdiag_fill()
110 #define EXPIRES_IN_MS(tmo) ((tmo-jiffies)*1000+HZ-1)/HZ in tcpdiag_fill() argument
Dtcp_timer.c599 int tmo = tcp_fin_time(tp) - TCP_TIMEWAIT_LEN; in tcp_keepalive_timer() local
601 if (tmo > 0) { in tcp_keepalive_timer()
602 tcp_time_wait(sk, TCP_FIN_WAIT2, tmo); in tcp_keepalive_timer()
Droute.c403 unsigned long tmo = ip_rt_gc_timeout; in SMP_TIMER_NAME() local
413 tmo >>= 1; in SMP_TIMER_NAME()
417 } else if (!rt_may_expire(rth, tmo, ip_rt_gc_timeout)) { in SMP_TIMER_NAME()
418 tmo >>= 1; in SMP_TIMER_NAME()
480 long tmo = (long)(rt_deadline - now); in rt_cache_flush() local
489 if (user_mode && tmo < ip_rt_max_delay-ip_rt_min_delay) in rt_cache_flush()
490 tmo = 0; in rt_cache_flush()
492 if (delay > tmo) in rt_cache_flush()
493 delay = tmo; in rt_cache_flush()
584 unsigned long tmo = expire; in rt_garbage_collect() local
[all …]
/linux-2.4.37.9/drivers/usb/
Ddevio.c550 unsigned int tmo; in proc_control() local
562 tmo = (ctrl.timeout * HZ + 999) / 1000; in proc_control()
569 ctrl.value, ctrl.index, tbuf, ctrl.length, tmo); in proc_control()
584 ctrl.value, ctrl.index, tbuf, ctrl.length, tmo); in proc_control()
598 unsigned int tmo, len1, pipe; in proc_bulk() local
620 tmo = (bulk.timeout * HZ + 999) / 1000; in proc_bulk()
630 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
649 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
/linux-2.4.37.9/drivers/scsi/
Dsun3_scsi.c543 int tmo = 20000; /* .2 sec */ in sun3scsi_dma_finish() local
549 if(--tmo <= 0) in sun3scsi_dma_finish()
/linux-2.4.37.9/drivers/sound/
Des1371.c1264 int count, tmo; in drain_dac1() local
1283 tmo = 3 * HZ * (count + s->dma_dac1.fragsize) / 2 / s->dac1rate; in drain_dac1()
1284 tmo >>= sample_shift[(s->sctrl & SCTRL_P1FMT) >> SCTRL_SH_P1FMT]; in drain_dac1()
1285 if (!schedule_timeout(tmo + 1)) in drain_dac1()
1299 int count, tmo; in drain_dac2() local
1318 tmo = 3 * HZ * (count + s->dma_dac2.fragsize) / 2 / s->dac2rate; in drain_dac2()
1319 tmo >>= sample_shift[(s->sctrl & SCTRL_P2FMT) >> SCTRL_SH_P2FMT]; in drain_dac2()
1320 if (!schedule_timeout(tmo + 1)) in drain_dac2()
2649 unsigned count, tmo; in es1371_midi_release() local
2667 tmo = (count * HZ) / 3100; in es1371_midi_release()
[all …]
Des1370.c434 unsigned long tmo = jiffies + HZ/10, j; in wrcodec() local
443 } while ((signed)(tmo-j) > 0); in wrcodec()
1076 int count, tmo; in drain_dac1() local
1095 tmo = 3 * HZ * (count + s->dma_dac1.fragsize) / 2 in drain_dac1()
1097 tmo >>= sample_shift[(s->sctrl & SCTRL_P1FMT) >> SCTRL_SH_P1FMT]; in drain_dac1()
1098 if (!schedule_timeout(tmo + 1)) in drain_dac1()
1112 int count, tmo; in drain_dac2() local
1131 tmo = 3 * HZ * (count + s->dma_dac2.fragsize) / 2 in drain_dac2()
1133 tmo >>= sample_shift[(s->sctrl & SCTRL_P2FMT) >> SCTRL_SH_P2FMT]; in drain_dac2()
1134 if (!schedule_timeout(tmo + 1)) in drain_dac2()
[all …]
Dau1550_i2s.c183 unsigned long tmo; in au1550_delay() local
189 tmo = jiffies + (msec * HZ) / 1000; in au1550_delay()
191 tmo2 = tmo - jiffies; in au1550_delay()
660 int count, tmo; in drain_dac() local
675 tmo = 1000 * count / (s->no_vra ? in drain_dac()
677 tmo /= s->dma_dac.dma_bytes_per_sample; in drain_dac()
678 au1550_delay(tmo); in drain_dac()
Di810_audio.c1253 unsigned long tmo; in drain_dac() local
1309 tmo = (count * HZ) / (dmabuf->rate); in drain_dac()
1310 if (!schedule_timeout(tmo >= 2 ? tmo : 2)){ in drain_dac()
1502 unsigned long tmo; in i810_read() local
1524 tmo = (dmabuf->dmasize * HZ * 2) / (dmabuf->rate * 4); in i810_read()
1532 if (!schedule_timeout(tmo >= 2 ? tmo : 2)) { in i810_read()
1649 unsigned long tmo; in i810_write() local
1662 tmo = (dmabuf->dmasize * HZ * 2) / (dmabuf->rate * 4); in i810_write()
1670 if (!schedule_timeout(tmo >= 2 ? tmo : 2)) { in i810_write()
Dali5455.c1298 unsigned long tmo; in drain_dac() local
1344 tmo = (count * HZ) / (dmabuf->rate); in drain_dac()
1345 if (!schedule_timeout(tmo >= 2 ? tmo : 2)) { in drain_dac()
1365 unsigned long tmo; in drain_spdifout() local
1417 tmo = (count * HZ) / (dmabuf->rate); in drain_spdifout()
1418 if (!schedule_timeout(tmo >= 2 ? tmo : 2)) { in drain_spdifout()
1637 unsigned long tmo; in ali_read() local
1660 tmo = (dmabuf->dmasize * HZ * 2) / (dmabuf->rate * 4); in ali_read()
1669 if (!schedule_timeout(tmo >= 2 ? tmo : 2)) { in ali_read()
1817 unsigned long tmo; in ali_write() local
[all …]
Dtrident.c1410 unsigned long tmo; in drain_dac() local
1446 tmo = (diff * HZ) / dmabuf->rate; in drain_dac()
1450 tmo = (dmabuf->dmasize * HZ) / dmabuf->rate; in drain_dac()
1452 tmo >>= sample_shift[dmabuf->fmt]; in drain_dac()
1453 if (!schedule_timeout(tmo ? tmo : 1) && tmo){ in drain_dac()
1812 unsigned long tmo; in trident_read() local
1824 tmo = (dmabuf->dmasize * HZ) / (dmabuf->rate * 2); in trident_read()
1825 tmo >>= sample_shift[dmabuf->fmt]; in trident_read()
1833 if (!interruptible_sleep_on_timeout(&dmabuf->wait, tmo)) { in trident_read()
1937 unsigned long tmo; in trident_write() local
[all …]
Dau1550_psc.c179 unsigned long tmo; in au1550_delay() local
185 tmo = jiffies + (msec * HZ) / 1000; in au1550_delay()
187 tmo2 = tmo - jiffies; in au1550_delay()
864 int count, tmo; in drain_dac() local
879 tmo = 1000 * count / (s->no_vra ? in drain_dac()
881 tmo /= s->dma_dac.dma_bytes_per_sample; in drain_dac()
882 au1550_delay(tmo); in drain_dac()
Desssolo1.c967 unsigned tmo; in drain_dac() local
986 tmo = 3 * HZ * (count + s->dma_dac.fragsize) / 2 / s->rate; in drain_dac()
988 tmo >>= 1; in drain_dac()
990 tmo >>= 1; in drain_dac()
991 if (!schedule_timeout(tmo + 1)) in drain_dac()
1955 unsigned count, tmo; in solo1_midi_release() local
1973 tmo = (count * HZ) / 3100; in solo1_midi_release()
1974 if (!schedule_timeout(tmo ? : 1) && tmo) in solo1_midi_release()
Dite8172.c360 unsigned long tmo; in it8172_delay() local
366 tmo = jiffies + (msec*HZ)/1000; in it8172_delay()
368 tmo2 = tmo - jiffies; in it8172_delay()
1018 int count, tmo; in drain_dac() local
1033 tmo = 1000 * count / s->dacrate; in drain_dac()
1034 tmo >>= sample_shift[(s->pcc & CC_FMT_MASK) >> CC_FMT_BIT]; in drain_dac()
1035 it8172_delay(tmo); in drain_dac()
Dau1000.c228 unsigned long tmo; in au1000_delay() local
234 tmo = jiffies + (msec * HZ) / 1000; in au1000_delay()
236 tmo2 = tmo - jiffies; in au1000_delay()
926 int count, tmo; in drain_dac() local
941 tmo = 1000 * count / (s->no_vra ? in drain_dac()
943 tmo /= s->dma_dac.dma_bytes_per_sample; in drain_dac()
944 au1000_delay(tmo); in drain_dac()
Dnec_vrc5477.c371 unsigned long tmo; in vrc5477_ac97_delay() local
377 tmo = jiffies + (msec*HZ)/1000; in vrc5477_ac97_delay()
379 tmo2 = tmo - jiffies; in vrc5477_ac97_delay()
910 int count, tmo; in drain_dac() local
925 tmo = 1000 * count / s->dacRate / 2; in drain_dac()
926 vrc5477_ac97_delay(tmo); in drain_dac()
Dsonicvibes.c1282 int count, tmo; in drain_dac() local
1301 tmo = 3 * HZ * (count + s->dma_dac.fragsize) / 2 / s->ratedac; in drain_dac()
1302 tmo >>= sample_shift[(s->fmt >> SV_CFMT_ASHIFT) & SV_CFMT_MASK]; in drain_dac()
1303 if (!schedule_timeout(tmo + 1)) in drain_dac()
2214 unsigned count, tmo; in sv_midi_release() local
2232 tmo = (count * HZ) / 3100; in sv_midi_release()
2233 if (!schedule_timeout(tmo ? : 1) && tmo) in sv_midi_release()
Dymfpci.c1256 unsigned long tmo; in ymf_read() local
1269 tmo = (dmabuf->dmasize * HZ) / (state->format.rate * 2); in ymf_read()
1270 tmo >>= state->format.shift; in ymf_read()
1278 tmo = schedule_timeout(tmo); in ymf_read()
1281 if (tmo == 0 && dmabuf->count == 0) { in ymf_read()
Dcs46xx.c1475 unsigned long tmo; in drain_dac() local
1507 tmo = (dmabuf->dmasize * HZ) / dmabuf->rate; in drain_dac()
1508 tmo >>= sample_shift[dmabuf->fmt]; in drain_dac()
1509 tmo += (2048*HZ)/dmabuf->rate; in drain_dac()
1511 if (!schedule_timeout(tmo ? tmo : 1) && tmo){ in drain_dac()
1903 unsigned count, tmo; in cs_midi_release() local
1918 tmo = (count * HZ) / 3100; in cs_midi_release()
1919 if (!schedule_timeout(tmo ? : 1) && tmo) in cs_midi_release()
/linux-2.4.37.9/net/ipv6/
Dicmp.c226 int tmo = sysctl_icmpv6_time; in icmpv6_xrlim_allow() local
230 tmo >>= ((128 - rt->rt6i_dst.plen)>>5); in icmpv6_xrlim_allow()
232 res = xrlim_allow(dst, tmo); in icmpv6_xrlim_allow()
/linux-2.4.37.9/net/decnet/
Ddn_route.c278 long tmo = (long)(dn_rt_deadline - now); in dn_rt_cache_flush() local
280 if (user_mode && tmo < dn_rt_max_delay - dn_rt_min_delay) in dn_rt_cache_flush()
281 tmo = 0; in dn_rt_cache_flush()
283 if (delay > tmo) in dn_rt_cache_flush()
284 delay = tmo; in dn_rt_cache_flush()
/linux-2.4.37.9/drivers/sound/cs4281/
Dcs4281m.c2700 unsigned tmo; in drain_adc() local
2724 tmo = in drain_adc()
2728 tmo >>= 1; in drain_adc()
2730 tmo >>= 1; in drain_adc()
2731 if (!schedule_timeout(tmo + 1)) in drain_adc()
2746 unsigned tmo; in drain_dac() local
2776 tmo = in drain_dac()
2780 tmo >>= 1; in drain_dac()
2782 tmo >>= 1; in drain_dac()
2783 if (!schedule_timeout(tmo + 1)) in drain_dac()
[all …]

12