Lines Matching defs:timeout
87 #define AAC_BUSYWAIT(cond, timeout /* in millisecond */) { \
89 int count = (timeout) * 10; \
96 (timeout) = (count + 9) / 10; \
926 /* Create a thread for command timeout */
927 softs->timeout_id = timeout(aac_timer, (void *)softs,
2801 i = AAC_FWUP_TIMEOUT * 1000; /* set timeout */
3059 int timeout;
3075 timeout = AAC_IMMEDIATE_TIMEOUT * 1000;
3076 AAC_BUSYWAIT(AAC_STATUS_GET(softs) & AAC_DB_SYNC_COMMAND, timeout);
3077 if (!timeout) {
3115 acp->timeout = AAC_SYNC_TIMEOUT;
4382 softs->drain_timeid = timeout(aac_check_drain, softs,
4397 softs->drain_timeid = timeout(aac_check_drain, softs,
4487 else /* probably timeout */
4624 int timeout = AAC_QUIESCE_TIMEOUT * 1000 * 10;
4635 softs->bus_ncmds[AAC_CMDQ_ASYNC]) && timeout) {
4638 timeout--;
4965 acp->timeout = acp->pkt->pkt_time;
5783 ddi_put32(acc, &srb->timeout, 0); /* use driver timeout */
5944 if (acp->timeout) /* 0 indicates no timeout */
5945 acp->timeout += aac_timebase + aac_tick;
6593 * adapter may also incur pkt timeout.
6656 int time_out; /* set if timeout happened */
6666 /* Check slots for timeout pkts */
6673 if (acp->timeout == 0)
6677 * If timeout happened, update outstanding cmds
6681 acp->timeout += time_adjust;
6685 if (acp->timeout <= softs_timebase) {
6689 break; /* timeout happened */
6691 break; /* no timeout */
6759 softs->timeout_id = timeout(aac_timer, (void *)softs,