Lines Matching defs:work_q

400  * @work_q:	Queue of scsi cmds to process.
403 struct list_head *work_q)
413 list_for_each_entry(scmd, work_q, eh_entry) {
1286 * @work_q: Queue of commands to process.
1304 int scsi_eh_get_sense(struct list_head *work_q,
1315 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
1373 return list_empty(work_q);
1412 * @work_q: queue for commands which still need more error recovery
1419 * are still failing to respond are returned to the work_q for more
1423 struct list_head *work_q,
1436 /* Push items back onto work_q */
1437 list_splice_init(cmd_list, work_q);
1458 list_move_tail(&scmd->eh_entry, work_q);
1461 return list_empty(work_q);
1493 * @work_q: &list_head for pending commands.
1501 struct list_head *work_q,
1517 list_for_each_entry(scmd, work_q, eh_entry)
1536 work_q, eh_entry) {
1550 return list_empty(work_q);
1557 * @work_q: &list_head for pending commands.
1567 struct list_head *work_q,
1584 list_for_each_entry(scmd, work_q, eh_entry)
1602 work_q, eh_entry) {
1616 return list_empty(work_q);
1622 * @work_q: &list_head for pending commands.
1629 struct list_head *work_q,
1635 list_splice_init(work_q, &tmp_list);
1644 list_splice_init(&check_list, work_q);
1645 list_splice_init(&tmp_list, work_q);
1650 return list_empty(work_q);
1677 list_move(&scmd->eh_entry, work_q);
1681 return scsi_eh_test_devices(&check_list, work_q, done_q, 0);
1687 * @work_q: &list_head for pending commands.
1691 struct list_head *work_q,
1708 list_splice_init(&check_list, work_q);
1713 return list_empty(work_q);
1717 list_for_each_entry(scmd, work_q, eh_entry) {
1736 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
1753 return scsi_eh_test_devices(&check_list, work_q, done_q, 0);
1759 * @work_q: &list_head for pending commands.
1763 struct list_head *work_q,
1770 if (!list_empty(work_q)) {
1771 scmd = list_entry(work_q->next,
1781 list_splice_init(work_q, &check_list);
1783 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
1793 return scsi_eh_test_devices(&check_list, work_q, done_q, 1);
1798 * @work_q: &list_head for pending commands.
1801 static void scsi_eh_offline_sdevs(struct list_head *work_q,
1807 list_for_each_entry_safe(scmd, next, work_q, eh_entry) {
2175 * @work_q: &list_head for pending commands.
2179 struct list_head *work_q,
2182 if (!scsi_eh_stu(shost, work_q, done_q))
2183 if (!scsi_eh_bus_device_reset(shost, work_q, done_q))
2184 if (!scsi_eh_target_reset(shost, work_q, done_q))
2185 if (!scsi_eh_bus_reset(shost, work_q, done_q))
2186 if (!scsi_eh_host_reset(shost, work_q, done_q))
2187 scsi_eh_offline_sdevs(work_q,