sys/bus/u4b/usb_util.c
void
usb_pause_mtx(struct lock *lock, int timo)
{
	/*
	 * Add one tick to the timeout so that we don't return too
	 * early! Note that pause() will assert that the passed
	 * timeout is positive and non-zero!
	 */
	if (lock != NULL) {
		lksleep(&usb_pause_mtx, lock, 0, "USBSLP", timo + 1);
	} else {
		KKASSERT(timo + 1 > 0);
		tsleep(&usb_pause_mtx, 0, "USBSLP", timo + 1);
	}
}
/*------------------------------------------------------------------------*
 *	 usb_pause_mtx - factored out code
 *
 * This function will delay the code by the passed number of system
 * ticks. The passed mutex "mtx" will be dropped while waiting, if
 * "mtx" is different from NULL.
 *------------------------------------------------------------------------*/
factored out code
This function will delay the code by the passed number of system
ticks. The passed mutex "mtx" will be dropped while waiting, if
"mtx" is different from NULL.
factored out code This function will delay the code by the passed number of system ticks . The passed mutex " mtx " will be dropped while waiting if " mtx " is different from NULL .
void
usb_pause_mtx(struct lock *lock, int timo)
{
	if (lock != NULL) {
		lksleep(&usb_pause_mtx, lock, 0, "USBSLP", timo + 1);
	} else {
		KKASSERT(timo + 1 > 0);
		tsleep(&usb_pause_mtx, 0, "USBSLP", timo + 1);
	}
}
void usb_pause_mtx ( struct lock * lock , int timo ) { if ( lock != NULL ) { lksleep ( & usb_pause_mtx , lock , 0 , " " , timo + 1 ) ; } else { KKASSERT ( timo + 1 > 0 ) ; tsleep ( & usb_pause_mtx , 0 , " " , timo + 1 ) ; } }
usb_pause_mtx - factored out code
 This function will delay the code by the passed number of system
 ticks.
usb_pause_mtx - factored out code This function will delay the code by the passed number of system ticks .
/*
	 * Add one tick to the timeout so that we don't return too
	 * early! Note that pause() will assert that the passed
	 * timeout is positive and non-zero!
	 */