Lines Matching refs:work_q

399  * @work_q:	Queue of scsi cmds to process.
402 struct list_head *work_q)
412 list_for_each_entry(scmd, work_q, eh_entry) {
1285 * @work_q: Queue of commands to process.
1303 int scsi_eh_get_sense(struct list_head *work_q,
1314 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
1372 return list_empty(work_q);
1411 * @work_q: queue for commands which still need more error recovery
1418 * are still failing to respond are returned to the work_q for more
1422 struct list_head *work_q,
1435 /* Push items back onto work_q */
1436 list_splice_init(cmd_list, work_q);
1457 list_move_tail(&scmd->eh_entry, work_q);
1460 return list_empty(work_q);
1492 * @work_q: &list_head for pending commands.
1500 struct list_head *work_q,
1516 list_for_each_entry(scmd, work_q, eh_entry)
1535 work_q, eh_entry) {
1549 return list_empty(work_q);
1556 * @work_q: &list_head for pending commands.
1566 struct list_head *work_q,
1583 list_for_each_entry(scmd, work_q, eh_entry)
1601 work_q, eh_entry) {
1615 return list_empty(work_q);
1621 * @work_q: &list_head for pending commands.
1628 struct list_head *work_q,
1634 list_splice_init(work_q, &tmp_list);
1643 list_splice_init(&check_list, work_q);
1644 list_splice_init(&tmp_list, work_q);
1649 return list_empty(work_q);
1676 list_move(&scmd->eh_entry, work_q);
1680 return scsi_eh_test_devices(&check_list, work_q, done_q, 0);
1686 * @work_q: &list_head for pending commands.
1690 struct list_head *work_q,
1707 list_splice_init(&check_list, work_q);
1712 return list_empty(work_q);
1716 list_for_each_entry(scmd, work_q, eh_entry) {
1735 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
1752 return scsi_eh_test_devices(&check_list, work_q, done_q, 0);
1758 * @work_q: &list_head for pending commands.
1762 struct list_head *work_q,
1769 if (!list_empty(work_q)) {
1770 scmd = list_entry(work_q->next,
1780 list_splice_init(work_q, &check_list);
1782 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
1792 return scsi_eh_test_devices(&check_list, work_q, done_q, 1);
1797 * @work_q: &list_head for pending commands.
1800 static void scsi_eh_offline_sdevs(struct list_head *work_q,
1806 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
2174 * @work_q: &list_head for pending commands.
2178 struct list_head *work_q,
2181 if (!scsi_eh_stu(shost, work_q, done_q))
2182 if (!scsi_eh_bus_device_reset(shost, work_q, done_q))
2183 if (!scsi_eh_target_reset(shost, work_q, done_q))
2184 if (!scsi_eh_bus_reset(shost, work_q, done_q))
2185 if (!scsi_eh_host_reset(shost, work_q, done_q))
2186 scsi_eh_offline_sdevs(work_q,