Home
last modified time | relevance | path

Searched refs:timo (Results 1 – 25 of 197) sorted by relevance

12345678

/netbsd-src/sys/fs/nfs/nlm/
H A Dnlm_prot_clnt.c23 … nlm_sm_status *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) in nlm_sm_notify_0() argument
28 timo)); in nlm_sm_notify_0()
32 …estargs *argp, nlm_testres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) in nlm_test_1() argument
37 timo)); in nlm_test_1()
41 …lm_lockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) in nlm_lock_1() argument
46 timo)); in nlm_lock_1()
50 …lm_cancargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) in nlm_cancel_1() argument
55 timo)); in nlm_cancel_1()
59 …_unlockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) in nlm_unlock_1() argument
64 timo)); in nlm_unlock_1()
[all …]
H A Dnlm_advlock.c79 rpcvers_t vers, struct timeval *timo, int retries,
83 rpcvers_t vers, struct timeval *timo, int retries,
87 rpcvers_t vers, struct timeval *timo, int retries,
208 struct timeval timo; in nlm_advlock_internal() local
233 nmp->nm_getinfo(vp, fh.fh_bytes, &fhlen, &ss, &is_v3, &size, &timo); in nlm_advlock_internal()
308 error = nlm_setlock(host, &ext, vers, &timo, retries, in nlm_advlock_internal()
313 error = nlm_clearlock(host, &ext, vers, &timo, in nlm_advlock_internal()
326 &timo, retries, vp, F_SETLK, fl, in nlm_advlock_internal()
332 error = nlm_setlock(host, &ext, vers, &timo, retries, in nlm_advlock_internal()
355 error = nlm_clearlock(host, &ext, vers, &timo, retries, in nlm_advlock_internal()
[all …]
/netbsd-src/sys/kern/
H A Dkern_condvar.c217 cv_timedwait(kcondvar_t *cv, kmutex_t *mtx, int timo) in cv_timedwait() argument
225 error = sleepq_block(timo, false, &cv_syncobj, nlocks); in cv_timedwait()
242 cv_timedwait_sig(kcondvar_t *cv, kmutex_t *mtx, int timo) in cv_timedwait_sig() argument
250 error = sleepq_block(timo, true, &cv_syncobj, nlocks); in cv_timedwait_sig()
309 timo2bintime(unsigned timo) in timo2bintime() argument
313 .sec = timo / hz, in timo2bintime()
314 .frac = (((uint64_t)(timo % hz) << 32)/hz << 32), in timo2bintime()
345 int timo; in cv_timedwaitbt() local
356 timo = bintime2timo(bt); in cv_timedwaitbt()
357 KASSERTMSG(timo >= 0, "negative ticks: %d", timo); in cv_timedwaitbt()
[all …]
/netbsd-src/sys/arch/evbsh3/t_sh7706lan/
H A Dssumci.c359 int timo; in ssumci_exec_command() local
377 for (timo = MMC_TIME_OVER; timo > 0; timo--) { in ssumci_exec_command()
379 if (!(resp & 0x80) && timo <= (MMC_TIME_OVER - 2)) in ssumci_exec_command()
382 if (timo == 0) { in ssumci_exec_command()
441 int timo; in ssumci_cmd_cfgread() local
446 for (timo = MMC_TIME_OVER; timo > 0; timo--) { in ssumci_cmd_cfgread()
451 if (timo == 0) { in ssumci_cmd_cfgread()
481 int timo; in ssumci_cmd_read() local
486 for (timo = MMC_TIME_OVER; timo > 0; timo--) { in ssumci_cmd_read()
491 if (timo == 0) { in ssumci_cmd_read()
[all …]
H A Dscimci.c422 int timo; in scimci_exec_command() local
448 timo = MMC_TIME_OVER; in scimci_exec_command()
450 if(--timo == 0) { in scimci_exec_command()
512 int timo; in scimci_cmd_cfgread() local
517 for (timo = MMC_TIME_OVER; timo > 0; timo--) { in scimci_cmd_cfgread()
527 if (timo == 0) { in scimci_cmd_cfgread()
564 int timo; in scimci_cmd_read() local
569 for (timo = MMC_TIME_OVER; timo > 0; timo--) { in scimci_cmd_read()
579 if (timo == 0) { in scimci_cmd_read()
616 int timo; in scimci_cmd_write() local
[all …]
/netbsd-src/sys/arch/arm/rockchip/
H A Drk3399_pcie_phy.c206 int timo; in rkpcie_phy_poweron() local
222 for (timo = 50; timo > 0; timo--) { in rkpcie_phy_poweron()
228 if (timo == 0) { in rkpcie_phy_poweron()
239 for (timo = 50; timo > 0; timo--) { in rkpcie_phy_poweron()
245 if (timo == 0) { in rkpcie_phy_poweron()
255 for (timo in rkpcie_phy_poweron()
[all...]
/netbsd-src/sys/rump/librump/rumpkern/
H A Dltsleep.c64 sleeper(wchan_t ident, int timo, bool kinterlock) in sleeper() argument
81 if (timo) { in sleeper()
83 rv = cv_timedwait(&lts.kcv, &qlock, timo); in sleeper()
88 ts.tv_sec = timo / hz; in sleeper()
89 ts.tv_nsec = (timo % hz) * (1000000000/hz); in sleeper()
121 tsleep(wchan_t ident, pri_t prio, const char *wmesg, int timo) in tsleep() argument
134 rv = sleeper(ident, timo, false); in tsleep()
141 mtsleep(wchan_t ident, pri_t prio, const char *wmesg, int timo, kmutex_t *lock) in mtsleep() argument
147 rv = sleeper(ident, timo, true); in mtsleep()
/netbsd-src/sys/arch/i386/stand/lib/
H A Dcomio_direct.c143 int timo; in computc_d() local
159 timo = 50000; in computc_d()
161 && --timo) in computc_d()
163 if (timo == 0) return 0; in computc_d()
166 timo = 1500000; in computc_d()
168 && --timo) in computc_d()
170 if (timo == 0) return 0; in computc_d()
/netbsd-src/sys/arch/hpcmips/stand/lcboot/
H A Dcom.c106 int timo; in comcnputc() local
109 timo = 150000; in comcnputc()
111 && --timo) in comcnputc()
117 timo = 1500000; in comcnputc()
119 && --timo) in comcnputc()
/netbsd-src/sys/dev/acpi/acpica/
H A DOsdSynch.c170 int timo, error; in AcpiOsWaitSemaphore() local
185 timo = 0; in AcpiOsWaitSemaphore()
188 timo = (Timeout * 1000) / (1000000 / hz); in AcpiOsWaitSemaphore()
189 if (timo <= 0) in AcpiOsWaitSemaphore()
190 timo = 1; in AcpiOsWaitSemaphore()
207 "semaphore blocked, sleeping %d ticks\n", timo)); in AcpiOsWaitSemaphore()
209 error = cv_timedwait(&as->as_cv, &as->as_slock, timo); in AcpiOsWaitSemaphore()
/netbsd-src/sys/arch/hp300/stand/common/
H A Dapci.c170 int timo; in apciputchar() local
174 timo = 50000; in apciputchar()
175 while (((stat = apci->ap_lsr) & LSR_TXRDY) == 0 && --timo) in apciputchar()
179 timo = 1000000; in apciputchar()
180 while (((stat = apci->ap_lsr) & LSR_TXRDY) == 0 && --timo) in apciputchar()
H A Ddca.c132 int timo; in dcaputchar() local
136 timo = 50000; in dcaputchar()
137 while (((stat = dca->dca_lsr) & LSR_TXRDY) == 0 && --timo) in dcaputchar()
141 timo = 1000000; in dcaputchar()
142 while (((stat = dca->dca_lsr) & LSR_TXRDY) == 0 && --timo) in dcaputchar()
H A Dnhpib.c186 int timo = 100000; in nhpibowait() local
188 while ((hd->hpib_mis & MIS_BO) == 0 && --timo) in nhpibowait()
190 if (timo == 0) in nhpibowait()
198 int timo = 100000; in nhpibiwait() local
200 while ((hd->hpib_mis & MIS_BI) == 0 && --timo) in nhpibiwait()
202 if (timo == 0) in nhpibiwait()
H A Ddcm.c144 int timo; in dcmputchar() local
151 timo = 50000; in dcmputchar()
152 while (tail != (pp->t_head & TX_MASK) && --timo) in dcmputchar()
160 timo = 1000000; in dcmputchar()
161 while (tail != (pp->t_head & TX_MASK) && --timo) in dcmputchar()
/netbsd-src/sys/arch/zaurus/stand/zboot/
H A Dunixcons.c46 static int common_getc(int fd, int timo);
125 common_getc(int fd, int timo) in common_getc() argument
132 for (; timo < 0 || timo > 0; --timo) { in common_getc()
145 if (timo > 0) { in common_getc()
/netbsd-src/sys/arch/evbarm/stand/board/
H A Dns16550.c112 int timo; in iputchar() local
115 timo = 50000; in iputchar()
116 while (!ISSET(stat = INB(com_lsr), LSR_TXRDY) && --timo) in iputchar()
122 timo = 1500000; in iputchar()
123 while (!ISSET(stat = INB(com_lsr), LSR_TXRDY) && --timo) in iputchar()
H A Dsscom.c160 int timo; in iputchar() local
163 timo = 50000; in iputchar()
164 while (ISSET(stat = INW(SSCOM_UFSTAT), UFSTAT_TXFULL) && --timo) in iputchar()
171 timo = 1500000; in iputchar()
172 while (!ISSET(stat = INW(SSCOM_UFSTAT), UFSTAT_TXFULL) && --timo) in iputchar()
/netbsd-src/sys/arch/evbmips/rasoc/
H A Dconsole.c73 u_int timo; in ra_console_putc() local
75 timo = 150000; in ra_console_putc()
79 } while(--timo != 0); in ra_console_putc()
85 timo = 150000; in ra_console_putc()
89 } while(--timo != 0); in ra_console_putc()
/netbsd-src/sys/arch/arm/at91/
H A Dat91twi.c207 at91twi_poll(struct at91twi_softc *sc, int timo, int flags) in at91twi_poll() argument
210 timo = 1000000U; in at91twi_poll()
213 if (timo < 0) { in at91twi_poll()
220 timo--; in at91twi_poll()
223 timo -= 100; in at91twi_poll()
234 int timo, s; in at91twi_start() local
242 timo = 1000 + len * 200; in at91twi_start()
259 if (at91twi_poll(sc, timo, flags)) in at91twi_start()
/netbsd-src/sys/dev/i2c/
H A Dmotoi2c.c162 u_int timo; in motoi2c_stop_wait() local
165 timo = 1000; in motoi2c_stop_wait()
166 while ((I2C_READ(I2CSR) & SR_MBB) != 0 && --timo) in motoi2c_stop_wait()
169 if (timo == 0) { in motoi2c_stop_wait()
192 u_int timo; in motoi2c_busy_wait() local
195 timo = 1000; in motoi2c_busy_wait()
196 while (((sr = I2C_READ(I2CSR)) & SR_MIF) == 0 && --timo) in motoi2c_busy_wait()
199 if (timo == 0) { in motoi2c_busy_wait()
209 __func__, sr, 1000 - timo)); in motoi2c_busy_wait()
/netbsd-src/sys/arch/mips/cavium/dev/
H A Docteon_smi.c198 int timo; in octsmi_read() local
205 timo = 10000; in octsmi_read()
208 if (timo-- == 0) in octsmi_read()
226 int timo; in octsmi_write() local
237 timo = 10000; in octsmi_write()
240 if (timo-- == 0) { in octsmi_write()
/netbsd-src/sys/arch/mac68k/dev/
H A Dsbc.c116 int timo = sbc_wait_busy_timo; in sbc_wait_busy() local
119 timo = 0; /* return 0 */ in sbc_wait_busy()
122 if (--timo < 0) in sbc_wait_busy()
126 return (timo); in sbc_wait_busy()
132 int timo = sbc_ready_timo; in sbc_ready() local
137 timo = 0; in sbc_ready()
142 timo = -1; in sbc_ready()
145 if (--timo < 0) in sbc_ready()
149 return (timo); in sbc_ready()
155 int timo in sbc_wait_dreq() local
[all...]
/netbsd-src/sys/fs/nfs/common/
H A Dnfs_commonkrpc.c179 struct timeval timo; in newnfs_connect() local
339 timo.tv_sec = nmp->nm_timeo / NFS_HZ; in newnfs_connect()
340 timo.tv_usec = (nmp->nm_timeo % NFS_HZ) * 1000000 / NFS_HZ; in newnfs_connect()
341 CLNT_CONTROL(client, CLSET_RETRY_TIMEOUT, &timo); in newnfs_connect()
493 struct timeval timo; in newnfs_request() local
705 timo.tv_usec = 0; in newnfs_request()
707 timo.tv_sec = NFSV4_UPCALLTIMEO; in newnfs_request()
709 timo.tv_sec = NFSV4_CALLBACKTIMEO; in newnfs_request()
712 timo.tv_usec = 0; in newnfs_request()
714 timo.tv_sec = INT_MAX; in newnfs_request()
[all …]
/netbsd-src/sys/dev/ic/
H A Dncr5380sbc.c194 int timo = ncr5380_wait_req_timo; in ncr5380_wait_req() local
198 timo = 0; /* return 0 */ in ncr5380_wait_req()
201 if (--timo < 0) in ncr5380_wait_req()
205 return timo; in ncr5380_wait_req()
212 int timo = ncr5380_wait_nrq_timo; in ncr5380_wait_not_req() local
216 timo = 0; /* return 0 */ in ncr5380_wait_not_req()
219 if (--timo < 0) in ncr5380_wait_not_req()
223 return timo; in ncr5380_wait_not_req()
1073 int target, lun, phase, timo; in ncr5380_reselect()
1105 timo in ncr5380_reselect()
1060 int target, lun, phase, timo; ncr5380_reselect() local
1297 int timo, s, target_mask; ncr5380_select() local
2162 int act_flags, phase, timo; ncr5380_machine() local
[all...]
/netbsd-src/sys/arch/sh3/dev/
H A Dadc.c125 int timo; in adc_sample_channel() local
138 timo = 300; in adc_sample_channel()
159 if (timo-- == 0) in adc_sample_channel()
167 if (timo <= 0) { in adc_sample_channel()

12345678