Lines Matching refs:scmnd

995 				struct scsi_cmnd *scmnd,
1012 set_host_byte(scmnd, DID_REQUEUE);
1028 set_host_byte(scmnd, DID_REQUEUE);
1045 switch (scmnd->cmnd[0]) {
1048 set_host_byte(scmnd, DID_PASSTHROUGH);
1058 set_host_byte(scmnd, DID_ERROR);
1063 set_host_byte(scmnd, DID_NO_CONNECT);
1076 set_host_byte(scmnd, DID_TARGET_FAILURE);
1091 struct scsi_cmnd *scmnd = cmd_request->cmd;
1104 scmnd->result = vm_srb->scsi_status;
1106 if (scmnd->result) {
1107 if (scsi_normalize_sense(scmnd->sense_buffer,
1112 scsi_print_sense_hdr(scmnd->device, "storvsc",
1117 storvsc_handle_error(vm_srb, scmnd, host, sense_hdr.asc,
1132 scsi_set_resid(scmnd,
1135 scmnd->scsi_done(scmnd);
1587 static int storvsc_host_reset_handler(struct scsi_cmnd *scmnd)
1589 struct hv_host_device *host_dev = shost_priv(scmnd->device->host);
1644 static enum blk_eh_timer_return storvsc_eh_timed_out(struct scsi_cmnd *scmnd)
1649 static bool storvsc_scsi_cmd_ok(struct scsi_cmnd *scmnd)
1652 u8 scsi_op = scmnd->cmnd[0];
1662 scmnd->result = ILLEGAL_REQUEST << 16;
1671 static int storvsc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scmnd)
1676 struct storvsc_cmd_request *cmd_request = scsi_cmd_priv(scmnd);
1695 if (!storvsc_scsi_cmd_ok(scmnd)) {
1696 scmnd->scsi_done(scmnd);
1702 cmd_request->cmd = scmnd;
1711 if (scmnd->device->tagged_supported) {
1719 switch (scmnd->sc_data_direction) {
1738 scmnd->sc_data_direction);
1744 vm_srb->path_id = scmnd->device->channel;
1745 vm_srb->target_id = scmnd->device->id;
1746 vm_srb->lun = scmnd->device->lun;
1748 vm_srb->cdb_length = scmnd->cmd_len;
1750 memcpy(vm_srb->cdb, scmnd->cmnd, vm_srb->cdb_length);
1752 sgl = (struct scatterlist *)scsi_sglist(scmnd);
1753 sg_count = scsi_sg_count(scmnd);
1755 length = scsi_bufflen(scmnd);