Home
last modified time | relevance | path

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

123

/dragonfly/lib/libthread_xu/thread/
H A Dthr_umtx.c87 if (timo == 0) { in __thr_umtx_lock()
89 } else if (timo > 1500) { in __thr_umtx_lock()
96 timo -= 1000; in __thr_umtx_lock()
103 timo); in __thr_umtx_lock()
141 int timo, ret; in __thr_umtx_timedlock() local
158 if (timo == 0) in __thr_umtx_timedlock()
159 timo = 1; in __thr_umtx_timedlock()
161 timo = 1000000; in __thr_umtx_timedlock()
229 if (timo == 0) in _thr_umtx_wait()
230 timo = 1; in _thr_umtx_wait()
[all …]
H A Dthr_private.h498 #define THR_UMTX_TIMEDLOCK(thrd, lck, timo) \ argument
499 _thr_umtx_timedlock((lck), (thrd)->tid, (timo), 1)
515 #define THR_UMTX_TIMEDLOCK_PERSIST(thrd, lck, timo) \ argument
516 _thr_umtx_timedlock((lck), (thrd)->tid, (timo), 0)
/dragonfly/test/debug/
H A Dumtx.c28 static int userland_get_mutex(struct umtx *mtx, int timo);
29 static int userland_get_mutex_contested(struct umtx *mtx, int timo);
50 int timo = 0; in main() local
59 timo = strtol(optarg, NULL, 0); in main()
99 if (userland_get_mutex(mtx, timo) < 0) { in main()
120 userland_get_mutex(struct umtx *mtx, int timo) in userland_get_mutex() argument
141 return(userland_get_mutex_contested(mtx, timo)); in userland_get_mutex()
148 userland_get_mutex_contested(struct umtx *mtx, int timo) in userland_get_mutex_contested() argument
170 fprintf(stderr, "waiting on mutex timeout=%d\n", timo); in userland_get_mutex_contested()
171 if (timo == 0) { in userland_get_mutex_contested()
[all …]
/dragonfly/sys/dev/acpica/Osd/
H A DOsdSchedule.c170 int timo; in AcpiOsSleep() local
175 timo = Milliseconds * hz / 1000; in AcpiOsSleep()
183 while (timo > 1000000) { in AcpiOsSleep()
185 timo -= 1000000; in AcpiOsSleep()
187 if (timo) in AcpiOsSleep()
188 DELAY(timo * 1000); in AcpiOsSleep()
189 } else if (timo > 0) { in AcpiOsSleep()
190 tsleep(&dummy, 0, "acpislp", timo); in AcpiOsSleep()
/dragonfly/sys/kern/
H A Dkern_condvar.c21 _cv_timedwait(struct cv *c, struct lock *lk, int timo, int wakesig) in _cv_timedwait() argument
39 error = lksleep(c, lk, flags | PINTERLOCKED, c->cv_desc, timo); in _cv_timedwait()
41 error = tsleep(c, flags | PINTERLOCKED, c->cv_desc, timo); in _cv_timedwait()
50 _cv_mtx_timedwait(struct cv *c, struct mtx *mtx, int timo, int wakesig) in _cv_mtx_timedwait() argument
68 error = mtxsleep(c, mtx, flags | PINTERLOCKED, c->cv_desc, timo); in _cv_mtx_timedwait()
70 error = tsleep(c, flags | PINTERLOCKED, c->cv_desc, timo); in _cv_mtx_timedwait()
H A Dkern_lock.c114 int timo; in lockmgr_shared() local
171 timo = (extflags & LK_TIMELOCK) ? lkp->lk_timo : 0; in lockmgr_shared()
179 lkp->lk_wmesg, timo); in lockmgr_shared()
231 timo = (extflags & LK_TIMELOCK) ? lkp->lk_timo : 0; in lockmgr_shared()
251 lkp->lk_wmesg, timo); in lockmgr_shared()
292 int timo; in lockmgr_exclusive() local
363 timo = (extflags & LK_TIMELOCK) ? lkp->lk_timo : 0; in lockmgr_exclusive()
382 lkp->lk_wmesg, timo); in lockmgr_exclusive()
584 int timo; in lockmgr_upgrade() local
1305 lkp->lk_timo = timo; in lockinit()
[all …]
H A Dkern_threads.c84 int error, timo;
86 timo = 0;
104 timo = tvtohz_high(&atv);
111 error = tsleep(p, 0, "thrslp", timo);
H A Dkern_synch.c691 if (timo) { in tsleep()
692 _callout_setup_quick(&thandle1, &thandle2, timo, endtsleep, td); in tsleep()
741 if (timo) { in tsleep()
816 const char *wmesg, int timo) in ssleep() argument
823 error = tsleep(ident, flags | PINTERLOCKED, wmesg, timo); in ssleep()
832 const char *wmesg, int timo) in lksleep() argument
839 error = tsleep(ident, flags | PINTERLOCKED, wmesg, timo); in lksleep()
852 const char *wmesg, int timo) in mtxsleep() argument
859 error = tsleep(ident, flags | PINTERLOCKED, wmesg, timo); in mtxsleep()
873 const char *wmesg, int timo) in zsleep() argument
[all …]
H A Dsubr_sleepqueue.c320 struct sleepqueue_wchan *wc, sbintime_t timo, int tflags) in _sleepq_wait_begin() argument
328 if (timo) { in _sleepq_wait_begin()
329 timo -= sbticks; in _sleepq_wait_begin()
330 if (timo > 0) { in _sleepq_wait_begin()
331 ret = tsleep(td->td_wchan, tflags, td->td_wmesg, timo); in _sleepq_wait_begin()
/dragonfly/lib/libc/sysvipc/
H A Dlock_generic.c40 __sysv_umtx_lock(volatile umtx_t *mtx, int timo) in __sysv_umtx_lock() argument
48 if (timo == 0) in __sysv_umtx_lock()
49 umtx_sleep(mtx, 2, timo); in __sysv_umtx_lock()
50 else if ( (errval = umtx_sleep(mtx, 2, timo)) > 0) { in __sysv_umtx_lock()
/dragonfly/usr.sbin/lpr/common_source/
H A Dnet.c88 int s, timo = 1, lport = IPPORT_RESERVED - 1; in getport() local
121 if (refused && timo <= 16) { in getport()
122 sleep(timo); in getport()
123 timo *= 2; in getport()
153 if (refused && timo <= 16) { in getport()
154 sleep(timo); in getport()
155 timo *= 2; in getport()
/dragonfly/sys/dev/drm/include/linux/
H A Dsched.h119 int timo; in schedule_timeout() local
132 timo = 0; in schedule_timeout()
134 timo = timeout; in schedule_timeout()
141 ssleep(current, &current->kt_spin, PCATCH, "lstim", timo); in schedule_timeout()
149 ssleep(current, &current->kt_spin, 0, "lstim", timo); in schedule_timeout()
/dragonfly/sys/bus/u4b/
H A Dusb_util.c126 usb_pause_mtx(struct lock *lock, int timo) in usb_pause_mtx() argument
134 lksleep(&usb_pause_mtx, lock, 0, "USBSLP", timo + 1); in usb_pause_mtx()
136 KKASSERT(timo + 1 > 0); in usb_pause_mtx()
137 tsleep(&usb_pause_mtx, 0, "USBSLP", timo + 1); in usb_pause_mtx()
/dragonfly/lib/libcompat/4.3/
H A Drexec.c308 int s, timo = 1, s3; in rexec_af() local
348 if (errno == ECONNREFUSED && timo <= 16) { in rexec_af()
350 sleep(timo); in rexec_af()
351 timo *= 2; in rexec_af()
442 int s, timo = 1, s3; in rexec() local
465 if (errno == ECONNREFUSED && timo <= 16) { in rexec()
467 sleep(timo); in rexec()
468 timo *= 2; in rexec()
/dragonfly/sys/sys/
H A Dlock.h223 #define LOCK_INITIALIZER(wmesg, timo, flags) \ argument
226 .lk_timo = (timo), \
232 void lockinit (struct lock *, const char *wmesg, int timo, int flags);
233 void lockreinit (struct lock *, const char *wmesg, int timo, int flags);
H A Dcondvar.h18 int _cv_timedwait(struct cv *, struct lock *, int timo, int wakesig);
19 int _cv_mtx_timedwait(struct cv *, struct mtx *, int timo, int wakesig);
H A Dsleepqueue.h117 #define sleepq_set_timeout(wchan, timo) \ argument
118 sleepq_set_timeout_sbt((wchan), tick_sbt * (timo), 0, C_HARDCLOCK)
/dragonfly/sys/vfs/nfs/
H A Dkrpc_subr.c200 int error, rcvflg, timo, secs, len; in krpc_call() local
314 timo = 0; in krpc_call()
331 if (timo < MAX_RESEND_DELAY) in krpc_call()
332 timo++; in krpc_call()
346 secs = timo; in krpc_call()
/dragonfly/sys/bus/cam/
H A Dcam_sim.c120 sim_lock_sleep(void *ident, int flags, const char *wmesg, int timo, in sim_lock_sleep() argument
130 retval = tsleep(ident, flags | PINTERLOCKED, wmesg, timo); in sim_lock_sleep()
132 retval = tsleep(ident, flags, wmesg, timo); in sim_lock_sleep()
/dragonfly/sys/netgraph7/bluetooth/l2cap/
H A Dng_l2cap_misc.c438 ng_callout_init(&cmd->timo); in ng_l2cap_new_cmd()
515 ng_l2cap_command_timeout(ng_l2cap_cmd_p cmd, int timo) in ng_l2cap_command_timeout() argument
527 ng_callout(&cmd->timo, cmd->con->l2cap->node, NULL, timo, in ng_l2cap_command_timeout()
546 if (ng_uncallout(&cmd->timo, cmd->con->l2cap->node) == 0) in ng_l2cap_command_untimeout()
/dragonfly/sys/netgraph7/bluetooth/drivers/h4/
H A Dng_h4.c175 ng_callout_init(&sc->timo); in ng_h4_open()
250 if (callout_pending(&sc->timo)) in ng_h4_close()
251 ng_uncallout(&sc->timo, sc->node); in ng_h4_close()
640 if (!IF_QEMPTY(&sc->outq) && !callout_pending(&sc->timo))
641 ng_callout(&sc->timo, sc->node, NULL, 1,
732 if (callout_pending(&sc->timo))
733 ng_uncallout(&sc->timo, sc->node);
/dragonfly/sys/bus/u4b/net/
H A Dusb_ethernet.h110 #define uether_do_request(ue,req,data,timo) \ argument
111 usbd_do_request_proc((ue)->ue_udev,&(ue)->ue_tq,req,data,0,NULL,timo)
/dragonfly/sys/dev/raid/hpt27xx/
H A Dos_bsd.h198 … __inline int hpt_sleep(PVBUS_EXT vbus_ext, void *ident, int priority, const char *wmesg, int timo) in hpt_sleep() argument
200 return lksleep(ident, &vbus_ext->lock, priority, wmesg, timo); in hpt_sleep()
/dragonfly/sys/dev/raid/hptrr/
H A Dos_bsd.h201 … __inline int hpt_sleep(PVBUS_EXT vbus_ext, void *ident, int priority, const char *wmesg, int timo) in hpt_sleep() argument
203 return lksleep(ident, &vbus_ext->lock, priority, wmesg, timo); in hpt_sleep()
/dragonfly/sys/netproto/smb/
H A Dsmb_subr.c429 smb_sleep(void *chan, struct smb_slock *sl, int slpflags, const char *wmesg, int timo) in smb_sleep() argument
436 error = tsleep(chan, slpflags | PINTERLOCKED, wmesg, timo); in smb_sleep()
440 error = tsleep(chan, slpflags, wmesg, timo); in smb_sleep()

123