Lines Matching defs:wait
93 - Use completion queue for mailbox commands instead of busy wait
704 sp->wait = NULL;
748 struct completion *wait)
754 wait_for_completion_timeout(wait, 4*HZ);
756 sp->wait = NULL;
767 DECLARE_COMPLETION_ONSTACK(wait);
769 sp->wait = &wait;
770 return _qla1280_wait_for_single_command(ha, sp, &wait);
808 * wait for the results (or time out).
829 DECLARE_COMPLETION_ONSTACK(wait);
861 sp->wait = &wait; /* we'll wait for it to complete */
895 /* issued device reset, set wait conditions */
906 /* issued bus reset, set wait conditions */
939 result = _qla1280_wait_for_single_command(ha, sp, &wait);
950 * returned by the board, then wait for any additional
956 * to wait for them.
1280 if (sp->wait == NULL)
1283 complete(sp->wait);
1441 * needs to be able to drop the lock unconditionally to wait
1564 /* Soft reset chip and wait for it to finish. */
1571 * instead. Nothing to do but wait and hope for the best.
2428 DECLARE_COMPLETION_ONSTACK(wait);
2433 printk(KERN_ERR "Warning mailbox wait already in use!\n");
2435 ha->mailbox_wait = &wait;
2464 wait_for_completion(&wait);