FreeBSD/sys/dev/mvs/mvs.c
/* Must be called with channel locked. */
Must be called with channel locked.
Must be called with channel locked .
static void
mvs_process_timeout(device_t dev)
{
	struct mvs_channel *ch = device_get_softc(dev);
	int i;
	mtx_assert(&ch->mtx, MA_OWNED);
	for (i = 0; i < MVS_MAX_SLOTS; i++) {
		if (ch->slot[i].state < MVS_SLOT_RUNNING)
			continue;
		mvs_end_transaction(&ch->slot[i], MVS_ERR_TIMEOUT);
	}
}
static void mvs_process_timeout ( device_t dev ) { struct mvs_channel * ch = device_get_softc ( dev ) ; int i ; mtx_assert ( & ch -> mtx , MA_OWNED ) ; for ( i = 0 ; i < MVS_MAX_SLOTS ; i ++ ) { if ( ch -> slot [ i ] . state < MVS_SLOT_RUNNING ) continue ; mvs_end_transaction ( & ch -> slot [ i ] , MVS_ERR_TIMEOUT ) ; } }
Must be called with channel locked.
Must be called with channel locked .
/* Handle the rest of commands. */ /* Do we have a running request on slot? */