Lines Matching refs:work_q

351  * @work_q:	Queue of scsi cmds to process.
354 struct list_head *work_q)
364 list_for_each_entry(scmd, work_q, eh_entry) {
1201 * @work_q: Queue of commands to process.
1219 int scsi_eh_get_sense(struct list_head *work_q,
1230 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
1288 return list_empty(work_q);
1327 * @work_q: queue for commands which still need more error recovery
1334 * are still failing to respond are returned to the work_q for more
1338 struct list_head *work_q,
1351 /* Push items back onto work_q */
1352 list_splice_init(cmd_list, work_q);
1373 list_move_tail(&scmd->eh_entry, work_q);
1376 return list_empty(work_q);
1407 * @work_q: &list_head for pending commands.
1415 struct list_head *work_q,
1431 list_for_each_entry(scmd, work_q, eh_entry)
1450 work_q, eh_entry) {
1464 return list_empty(work_q);
1471 * @work_q: &list_head for pending commands.
1481 struct list_head *work_q,
1498 list_for_each_entry(scmd, work_q, eh_entry)
1516 work_q, eh_entry) {
1530 return list_empty(work_q);
1536 * @work_q: &list_head for pending commands.
1543 struct list_head *work_q,
1549 list_splice_init(work_q, &tmp_list);
1558 list_splice_init(&check_list, work_q);
1559 list_splice_init(&tmp_list, work_q);
1564 return list_empty(work_q);
1591 list_move(&scmd->eh_entry, work_q);
1595 return scsi_eh_test_devices(&check_list, work_q, done_q, 0);
1601 * @work_q: &list_head for pending commands.
1605 struct list_head *work_q,
1622 list_splice_init(&check_list, work_q);
1627 return list_empty(work_q);
1631 list_for_each_entry(scmd, work_q, eh_entry) {
1650 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
1667 return scsi_eh_test_devices(&check_list, work_q, done_q, 0);
1673 * @work_q: &list_head for pending commands.
1677 struct list_head *work_q,
1684 if (!list_empty(work_q)) {
1685 scmd = list_entry(work_q->next,
1695 list_splice_init(work_q, &check_list);
1697 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
1707 return scsi_eh_test_devices(&check_list, work_q, done_q, 1);
1712 * @work_q: &list_head for pending commands.
1715 static void scsi_eh_offline_sdevs(struct list_head *work_q,
1721 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
2077 * @work_q: &list_head for pending commands.
2081 struct list_head *work_q,
2084 if (!scsi_eh_stu(shost, work_q, done_q))
2085 if (!scsi_eh_bus_device_reset(shost, work_q, done_q))
2086 if (!scsi_eh_target_reset(shost, work_q, done_q))
2087 if (!scsi_eh_bus_reset(shost, work_q, done_q))
2088 if (!scsi_eh_host_reset(shost, work_q, done_q))
2089 scsi_eh_offline_sdevs(work_q,