Home
last modified time | relevance | path

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

1234

/freebsd/sys/nlm/
H A Dnlm_prot_clnt.c17 … nlm_sm_status *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) in nlm_sm_notify_0() argument
22 timo)); in nlm_sm_notify_0()
26 …estargs *argp, nlm_testres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) in nlm_test_1() argument
31 timo)); in nlm_test_1()
35 …lm_lockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) in nlm_lock_1() argument
40 timo)); in nlm_lock_1()
44 …lm_cancargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) in nlm_cancel_1() argument
49 timo)); in nlm_cancel_1()
53 …_unlockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) in nlm_unlock_1() argument
58 timo)); in nlm_unlock_1()
[all …]
H A Dnlm_advlock.c76 rpcvers_t vers, struct timeval *timo, int retries,
80 rpcvers_t vers, struct timeval *timo, int retries,
84 rpcvers_t vers, struct timeval *timo, int retries,
205 struct timeval timo; in nlm_advlock_internal() local
231 nmp->nm_getinfo(vp, fh.fh_bytes, &fhlen, &ss, &is_v3, &size, &timo); in nlm_advlock_internal()
306 error = nlm_setlock(host, &ext, vers, &timo, retries, in nlm_advlock_internal()
311 error = nlm_clearlock(host, &ext, vers, &timo, in nlm_advlock_internal()
324 &timo, retries, vp, F_SETLK, fl, in nlm_advlock_internal()
330 error = nlm_setlock(host, &ext, vers, &timo, retries, in nlm_advlock_internal()
353 error = nlm_clearlock(host, &ext, vers, &timo, retries, in nlm_advlock_internal()
[all …]
H A Dnlm_prot_impl.c337 struct timeval timo; in nlm_get_rpc() local
395 timo.tv_sec = 25; in nlm_get_rpc()
396 timo.tv_usec = 0; in nlm_get_rpc()
407 (xdrproc_t) xdr_wrapstring, &uaddr, timo); in nlm_get_rpc()
448 (xdrproc_t) xdr_u_short, &port, timo); in nlm_get_rpc()
1152 struct timeval timo; in nlm_host_unmonitor() local
1169 timo.tv_sec = 25; in nlm_host_unmonitor()
1170 timo.tv_usec = 0; in nlm_host_unmonitor()
1173 (xdrproc_t) xdr_sm_stat, &smstat, timo); in nlm_host_unmonitor()
1197 struct timeval timo; in nlm_host_monitor() local
[all …]
/freebsd/sys/sys/
H A Dlockmgr.h71 const char *wmesg, int prio, int timo, const char *file, int line);
89 void lockinit(struct lock *lk, int prio, const char *wmesg, int timo,
103 int prio, int timo, const char *file, int line) in _lockmgr_args() argument
107 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args()
112 const char *wmesg, int prio, int timo, const char *file, int line) in _lockmgr_args_rw() argument
116 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args_rw()
126 #define lockmgr_args(lk, flags, ilk, wmesg, prio, timo) \ argument
127 _lockmgr_args((lk), (flags), (ilk), (wmesg), (prio), (timo), \
129 #define lockmgr_args_rw(lk, flags, ilk, wmesg, prio, timo) \ argument
130 _lockmgr_args_rw((lk), (flags), (ilk), (wmesg), (prio), (timo), \
H A Dcondvar.h71 #define cv_timedwait(cvp, lock, timo) \ argument
73 tick_sbt * (timo), 0, C_HARDCLOCK)
76 #define cv_timedwait_sig(cvp, lock, timo) \ argument
78 tick_sbt * (timo), 0, C_HARDCLOCK)
H A Dsema.h50 int _sema_timedwait(struct sema *sema, int timo, const char *file, int
57 #define sema_timedwait(sema, timo) \ argument
58 _sema_timedwait((sema), (timo), LOCK_FILE, LOCK_LINE)
H A Dsystm.h492 #define msleep(chan, mtx, pri, wmesg, timo) \ argument
494 tick_sbt * (timo), 0, C_HARDCLOCK)
500 #define msleep_spin(chan, mtx, wmesg, timo) \ argument
501 msleep_spin_sbt((chan), (mtx), (wmesg), tick_sbt * (timo), \
506 pause(const char *wmesg, int timo) in pause() argument
508 return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK)); in pause()
510 #define pause_sig(wmesg, timo) \ argument
511 pause_sbt((wmesg), tick_sbt * (timo), 0, C_HARDCLOCK | C_CATCH)
512 #define tsleep(chan, pri, wmesg, timo) \ argument
513 _sleep((chan), NULL, (pri), (wmesg), tick_sbt * (timo), \
H A Dsleepqueue.h103 #define sleepq_set_timeout(wchan, timo) \ argument
104 sleepq_set_timeout_sbt((wchan), tick_sbt * (timo), 0, C_HARDCLOCK)
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dcondvar.h115 cv_timedwait(kcondvar_t *cvp, kmutex_t *mp, clock_t timo) in cv_timedwait() argument
119 timo -= ddi_get_lbolt(); in cv_timedwait()
120 if (timo <= 0) in cv_timedwait()
123 tick_sbt * (timo), 0, C_HARDCLOCK); in cv_timedwait()
130 cv_timedwait_sig(kcondvar_t *cvp, kmutex_t *mp, clock_t timo) in cv_timedwait_sig() argument
134 timo -= ddi_get_lbolt(); in cv_timedwait_sig()
135 if (timo <= 0) in cv_timedwait_sig()
138 tick_sbt * (timo), 0, C_HARDCLOCK); in cv_timedwait_sig()
/freebsd/sys/dev/aq/
H A Daq2_fw.c58 int timo; in aq2_fw_interface_buffer_read() local
60 for (timo = 10000; timo > 0; timo--) { in aq2_fw_interface_buffer_read()
79 if (timo == 0) { in aq2_fw_interface_buffer_read()
91 int timo, err; in aq2_fw_reboot() local
98 for (timo = 20000; timo > 0; timo--) { in aq2_fw_reboot()
104 if (timo <= 0) { in aq2_fw_reboot()
108 trace(hw, dbg_init, "aq2> F/W boot started, %d ms", (20000 - timo) / 100); in aq2_fw_reboot()
110 for (timo = 200000; timo > 0; timo--) { in aq2_fw_reboot()
119 if (timo <= 0) { in aq2_fw_reboot()
124 (200000 - timo) / 100); in aq2_fw_reboot()
/freebsd/sys/fs/nfs/
H A Dnfs_commonkrpc.c268 struct timeval timo; in newnfs_connect() local
430 timo.tv_sec = nfsrv_lease / 4; in newnfs_connect()
431 if (timo.tv_sec < 10) in newnfs_connect()
432 timo.tv_sec = 10; in newnfs_connect()
433 timo.tv_usec = 0; in newnfs_connect()
435 &timo); in newnfs_connect()
470 timo.tv_sec = nfsrv_lease / 4; in newnfs_connect()
471 if (timo.tv_sec < 10) in newnfs_connect()
472 timo.tv_sec = 10; in newnfs_connect()
473 timo.tv_usec = 0; in newnfs_connect()
[all …]
/freebsd/usr.sbin/lpr/common_source/
H A Dnet.c90 int s, timo = 1, lport = IPPORT_RESERVED - 1; in getport() local
123 if (refused && timo <= 16) { in getport()
124 sleep(timo); in getport()
125 timo *= 2; in getport()
155 if (refused && timo <= 16) { in getport()
156 sleep(timo); in getport()
157 timo *= 2; in getport()
/freebsd/sys/dev/ipmi/
H A Dipmi_opal.c82 opal_ipmi_recv(struct opal_ipmi_softc *sc, uint64_t *msg_len, int timo) in opal_ipmi_recv() argument
86 if (timo == 0) in opal_ipmi_recv()
87 timo = MAX_TIMEOUT; in opal_ipmi_recv()
88 timo *= 10; /* Timeout is in milliseconds, we delay in 100us */ in opal_ipmi_recv()
101 if (timo-- <= 0) { in opal_ipmi_recv()
147 int timo) in opal_ipmi_polled_request() argument
196 if ((err = opal_ipmi_recv(sc, &msg_len, timo)) == 0) { in opal_ipmi_polled_request()
/freebsd/sys/dev/speaker/
H A Dspkr.c66 int timo; in tone() local
89 timo = centisecs * hz / 100; in tone()
90 if (timo > 0) in tone()
91 tsleep(&endtone, SPKRPRI | PCATCH, "spkrtn", timo); in tone()
105 int timo; in rest() local
115 timo = centisecs * hz / 100; in rest()
116 if (timo > 0) in rest()
117 tsleep(&endrest, SPKRPRI | PCATCH, "spkrrs", timo); in rest()
/freebsd/sys/kern/
H A Dkern_umtx.c174 static inline void umtx_abs_timeout_init2(struct umtx_abs_timeout *timo,
682 umtx_abs_timeout_init(struct umtx_abs_timeout *timo, int clockid, in umtx_abs_timeout_init() argument
686 timo->clockid = clockid; in umtx_abs_timeout_init()
688 timo->is_abs_real = false; in umtx_abs_timeout_init()
689 kern_clock_gettime(curthread, timo->clockid, &timo->cur); in umtx_abs_timeout_init()
690 timespecadd(&timo->cur, timeout, &timo->end); in umtx_abs_timeout_init()
692 timo->end = *timeout; in umtx_abs_timeout_init()
693 timo->is_abs_real = clockid == CLOCK_REALTIME || in umtx_abs_timeout_init()
702 umtx_abs_timeout_init2(struct umtx_abs_timeout *timo, in umtx_abs_timeout_init2() argument
706 umtx_abs_timeout_init(timo, umtxtime->_clockid, in umtx_abs_timeout_init2()
[all …]
H A Dkern_kthread.c188 kproc_suspend(struct proc *p, int timo) in kproc_suspend() argument
202 "suspkp", timo)); in kproc_suspend()
401 kthread_suspend(struct thread *td, int timo) in kthread_suspend() argument
425 timo)); in kthread_suspend()
/freebsd/sbin/nvmecontrol/
H A Dfabrics.c225 int error, timo; in connect_discovery_adminq() local
286 timo = NVME_CAP_LO_TO(cap); in connect_discovery_adminq()
295 if (timo == 0) in connect_discovery_adminq()
297 timo--; in connect_discovery_adminq()
317 int error, timo; in connect_nvm_adminq() local
384 timo = NVME_CAP_LO_TO(cap); in connect_nvm_adminq()
396 if (timo == 0) { in connect_nvm_adminq()
401 timo--; in connect_nvm_adminq()
/freebsd/sys/dev/acpica/Osd/
H A DOsdSchedule.c247 int timo; in AcpiOsSleep() local
251 timo = Milliseconds * hz / 1000; in AcpiOsSleep()
257 if (timo > 0) in AcpiOsSleep()
258 pause("acpislp", timo); in AcpiOsSleep()
/freebsd/sys/powerpc/powermac/
H A Dkiic.c356 int i, x, timo, err; in kiic_transfer() local
361 timo = 100; in kiic_transfer()
367 mtx_sleep(dev, &sc->sc_mutex, 0, "kiic", timo); in kiic_transfer()
397 timo = 1000 + sc->sc_resid * 200; in kiic_transfer()
398 timo += 100000; in kiic_transfer()
414 err = mtx_sleep(dev, &sc->sc_mutex, 0, "kiic", timo); in kiic_transfer()
/freebsd/sys/nfs/
H A Dkrpc_subr.c201 int error, rcvflg, timo, secs, len; in krpc_call() local
307 timo = 0; in krpc_call()
320 if (timo < MAX_RESEND_DELAY) in krpc_call()
321 timo++; in krpc_call()
335 secs = timo; in krpc_call()
/freebsd/libexec/phttpget/
H A Dphttpget.c53 static struct timeval timo = { 15, 0}; variable
193 timo.tv_sec = http_timeout; in readenv()
369 (void *)&timo, (socklen_t)sizeof(timo)); in main()
371 (void *)&timo, (socklen_t)sizeof(timo)); in main()
/freebsd/lib/libcompat/4.3/
H A Drexec.c295 int s, timo = 1, s3; in rexec() local
317 if (errno == ECONNREFUSED && timo <= 16) { in rexec()
319 sleep(timo); in rexec()
320 timo *= 2; in rexec()
/freebsd/sys/dev/firewire/
H A Dfw_helpers.h76 fw_xferwait_timo(struct fw_xfer *xfer, int timo) in fw_xferwait_timo() argument
85 err = msleep(xfer, lock, PWAIT, "fwxfer", timo); in fw_xferwait_timo()
109 fw_xfer_request_wait(struct firewire_comm *fc, struct fw_xfer *xfer, int timo) in fw_xfer_request_wait() argument
116 return (fw_xferwait_timo(xfer, timo)); in fw_xfer_request_wait()
/freebsd/sys/dev/usb/net/
H A Dusb_ethernet.h101 #define uether_do_request(ue,req,data,timo) \ argument
102 usbd_do_request_proc((ue)->ue_udev,&(ue)->ue_tq,req,data,0,NULL,timo)
/freebsd/sys/fs/nfsclient/
H A Dnfs_clnfsiod.c247 int myiod, timo; in nfssvc_iod() local
268 timo = (myiod < nfs_iodmin) ? 0 : nfs_iodmaxidle * hz; in nfssvc_iod()
270 "-", timo); in nfssvc_iod()

1234