Lines Matching refs:scsi_cmnd

60 static int scsi_eh_try_stu(struct scsi_cmnd *scmd);
62 struct scsi_cmnd *);
117 static bool scsi_cmd_retry_allowed(struct scsi_cmnd *cmd) in scsi_cmd_retry_allowed()
125 static bool scsi_eh_should_retry_cmd(struct scsi_cmnd *cmd) in scsi_eh_should_retry_cmd()
136 static void scsi_eh_complete_abort(struct scsi_cmnd *scmd, struct Scsi_Host *shost) in scsi_eh_complete_abort()
166 struct scsi_cmnd *scmd = in scmd_eh_abort_handler()
167 container_of(work, struct scsi_cmnd, abort_work.work); in scmd_eh_abort_handler()
227 scsi_abort_command(struct scsi_cmnd *scmd) in scsi_abort_command()
266 static void scsi_eh_reset(struct scsi_cmnd *scmd) in scsi_eh_reset()
277 struct scsi_cmnd *scmd = container_of(head, typeof(*scmd), rcu); in scsi_eh_inc_host_failed()
291 void scsi_eh_scmd_add(struct scsi_cmnd *scmd) in scsi_eh_scmd_add()
329 struct scsi_cmnd *scmd = blk_mq_rq_to_pdu(req); in scsi_times_out()
398 struct scsi_cmnd *scmd; in scsi_eh_prt_fail_stats()
524 enum scsi_disposition scsi_check_sense(struct scsi_cmnd *scmd) in scsi_check_sense()
750 static enum scsi_disposition scsi_eh_completed_normally(struct scsi_cmnd *scmd) in scsi_eh_completed_normally()
809 void scsi_eh_done(struct scsi_cmnd *scmd) in scsi_eh_done()
825 static enum scsi_disposition scsi_try_host_reset(struct scsi_cmnd *scmd) in scsi_try_host_reset()
855 static enum scsi_disposition scsi_try_bus_reset(struct scsi_cmnd *scmd) in scsi_try_bus_reset()
897 static enum scsi_disposition scsi_try_target_reset(struct scsi_cmnd *scmd) in scsi_try_target_reset()
928 static enum scsi_disposition scsi_try_bus_device_reset(struct scsi_cmnd *scmd) in scsi_try_bus_device_reset()
960 scsi_try_to_abort_cmd(struct scsi_host_template *hostt, struct scsi_cmnd *scmd) in scsi_try_to_abort_cmd()
968 static void scsi_abort_eh_cmnd(struct scsi_cmnd *scmd) in scsi_abort_eh_cmnd()
991 void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses, in scsi_eh_prep_cmnd()
1062 void scsi_eh_restore_cmnd(struct scsi_cmnd* scmd, struct scsi_eh_save *ses) in scsi_eh_restore_cmnd()
1093 static enum scsi_disposition scsi_send_eh_cmnd(struct scsi_cmnd *scmd, in scsi_send_eh_cmnd()
1202 static enum scsi_disposition scsi_request_sense(struct scsi_cmnd *scmd) in scsi_request_sense()
1208 scsi_eh_action(struct scsi_cmnd *scmd, enum scsi_disposition rtn) in scsi_eh_action()
1230 void scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q) in scsi_eh_finish_cmd()
1259 struct scsi_cmnd *scmd, *next; in scsi_eh_get_sense()
1336 static int scsi_eh_tur(struct scsi_cmnd *scmd) in scsi_eh_tur()
1378 struct scsi_cmnd *scmd, *next; in scsi_eh_test_devices()
1383 scmd = list_entry(cmd_list->next, struct scsi_cmnd, eh_entry); in scsi_eh_test_devices()
1423 static int scsi_eh_try_stu(struct scsi_cmnd *scmd) in scsi_eh_try_stu()
1455 struct scsi_cmnd *scmd, *stu_scmd, *next; in scsi_eh_stu()
1521 struct scsi_cmnd *scmd, *bdr_scmd, *next; in scsi_eh_bus_device_reset()
1589 struct scsi_cmnd *next, *scmd; in scsi_eh_target_reset()
1604 scmd = list_entry(tmp_list.next, struct scsi_cmnd, eh_entry); in scsi_eh_target_reset()
1645 struct scsi_cmnd *scmd, *chan_scmd, *next; in scsi_eh_bus_reset()
1717 struct scsi_cmnd *scmd, *next; in scsi_eh_host_reset()
1723 struct scsi_cmnd, eh_entry); in scsi_eh_host_reset()
1755 struct scsi_cmnd *scmd, *next; in scsi_eh_offline_sdevs()
1776 int scsi_noretry_cmd(struct scsi_cmnd *scmd) in scsi_noretry_cmd()
1825 enum scsi_disposition scsi_decide_disposition(struct scsi_cmnd *scmd) in scsi_decide_disposition()
2136 struct scsi_cmnd *scmd, *next; in scsi_eh_flush_done_q()
2374 struct scsi_cmnd *scmd; in scsi_ioctl_reset()
2392 rq = kzalloc(sizeof(struct request) + sizeof(struct scsi_cmnd) + in scsi_ioctl_reset()
2398 scmd = (struct scsi_cmnd *)(rq + 1); in scsi_ioctl_reset()
2466 bool scsi_command_normalize_sense(const struct scsi_cmnd *cmd, in scsi_command_normalize_sense()