Lines Matching defs:cmd

416 int qla2xxx_mqueuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd,
724 struct scsi_cmnd *cmd = GET_CMD_SP(sp);
727 scsi_dma_unmap(cmd);
732 dma_unmap_sg(&ha->pdev->dev, scsi_prot_sglist(cmd),
733 scsi_prot_sg_count(cmd), cmd->sc_data_direction);
766 struct scsi_cmnd *cmd = GET_CMD_SP(sp);
771 cmd->result = res;
773 scsi_done(cmd);
780 struct scsi_cmnd *cmd = GET_CMD_SP(sp);
784 scsi_dma_unmap(cmd);
789 dma_unmap_sg(&ha->pdev->dev, scsi_prot_sglist(cmd),
790 scsi_prot_sg_count(cmd), cmd->sc_data_direction);
860 struct scsi_cmnd *cmd = GET_CMD_SP(sp);
865 cmd->result = res;
867 scsi_done(cmd);
873 qla2xxx_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
876 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
877 struct fc_rport *rport = starget_to_rport(scsi_target(cmd->device));
885 cmd->result = DID_NO_CONNECT << 16;
894 tag = blk_mq_unique_tag(scsi_cmd_to_rq(cmd));
899 return qla2xxx_mqueuecommand(host, cmd, qpair);
906 "cmd=%p.\n", cmd);
907 cmd->result = DID_NO_CONNECT << 16;
910 "EEH_Busy, Requeuing the cmd=%p.\n", cmd);
911 cmd->result = DID_REQUEUE << 16;
918 cmd->result = rval;
920 "fc_remote_port_chkready failed for cmd=%p, rval=0x%x.\n",
921 cmd, rval);
926 scsi_get_prot_op(cmd) != SCSI_PROT_NORMAL) {
928 "DIF Cap not reg, fail DIF capable cmd's:%p.\n",
929 cmd);
930 cmd->result = DID_NO_CONNECT << 16;
935 cmd->result = DID_IMM_RETRY << 16;
946 cmd->result = DID_NO_CONNECT << 16;
963 sp = scsi_cmd_priv(cmd);
967 sp->u.scmd.cmd = cmd;
975 "Start scsi failed rval=%d for cmd=%p.\n", rval, cmd);
989 scsi_done(cmd);
996 qla2xxx_mqueuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd,
1000 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
1001 struct fc_rport *rport = starget_to_rport(scsi_target(cmd->device));
1009 cmd->result = rval;
1011 "fc_remote_port_chkready failed for cmd=%p, rval=0x%x.\n",
1012 cmd, rval);
1019 cmd->result = DID_NO_CONNECT << 16;
1024 cmd->result = DID_IMM_RETRY << 16;
1035 cmd->result = DID_NO_CONNECT << 16;
1052 sp = scsi_cmd_priv(cmd);
1056 sp->u.scmd.cmd = cmd;
1064 "Start scsi failed rval=%d for cmd=%p.\n", rval, cmd);
1078 scsi_done(cmd);
1239 * cmd = Linux SCSI command packet to be aborted.
1248 qla2xxx_eh_abort(struct scsi_cmnd *cmd)
1250 scsi_qla_host_t *vha = shost_priv(cmd->device->host);
1271 ret = fc_block_scsi_eh(cmd);
1275 sp = scsi_cmd_priv(cmd);
1288 id = cmd->device->id;
1289 lun = cmd->device->lun;
1292 "Aborting from RISC nexus=%ld:%d:%llu sp=%p cmd=%p handle=%x\n",
1293 vha->host_no, id, lun, sp, cmd, sp->handle);
1303 "Abort command mbx cmd=%p, rval=%x.\n", cmd, rval);
1348 struct scsi_cmnd *cmd;
1368 cmd = GET_CMD_SP(sp);
1382 cmd->device->lun == l);
1448 qla2xxx_eh_device_reset(struct scsi_cmnd *cmd)
1450 struct scsi_device *sdev = cmd->device;
1476 "DEVICE RESET ISSUED nexus=%ld:%d:%llu cmd=%p.\n", vha->host_no,
1477 sdev->id, sdev->lun, cmd);
1482 "Wait for hba online failed for cmd=%p.\n", cmd);
1489 "do_reset failed for cmd=%p.\n", cmd);
1494 cmd->device->lun,
1497 "wait for pending cmds failed for cmd=%p.\n", cmd);
1502 "DEVICE RESET SUCCEEDED nexus:%ld:%d:%llu cmd=%p.\n",
1503 vha->host_no, sdev->id, sdev->lun, cmd);
1509 "DEVICE RESET FAILED: %s nexus=%ld:%d:%llu cmd=%p.\n",
1511 cmd);
1517 qla2xxx_eh_target_reset(struct scsi_cmnd *cmd)
1519 struct scsi_device *sdev = cmd->device;
1545 "TARGET RESET ISSUED nexus=%ld:%d cmd=%p.\n", vha->host_no,
1546 sdev->id, cmd);
1551 "Wait for hba online failed for cmd=%p.\n", cmd);
1557 "target_reset failed for cmd=%p.\n", cmd);
1564 "wait for pending cmds failed for cmd=%p.\n", cmd);
1569 "TARGET RESET SUCCEEDED nexus:%ld:%d cmd=%p.\n",
1570 vha->host_no, sdev->id, cmd);
1576 "TARGET RESET FAILED: %s nexus=%ld:%d:%llu cmd=%p.\n",
1577 reset_errors[err], vha->host_no, cmd->device->id, cmd->device->lun,
1578 cmd);
1591 * cmd = Linux SCSI command packet of the command that cause the
1599 qla2xxx_eh_bus_reset(struct scsi_cmnd *cmd)
1601 scsi_qla_host_t *vha = shost_priv(cmd->device->host);
1614 id = cmd->device->id;
1615 lun = cmd->device->lun;
1658 * cmd = Linux SCSI command packet of the command that cause the
1667 qla2xxx_eh_host_reset(struct scsi_cmnd *cmd)
1669 scsi_qla_host_t *vha = shost_priv(cmd->device->host);
1683 id = cmd->device->id;
1684 lun = cmd->device->lun;
1794 struct scsi_cmnd *cmd = GET_CMD_SP(sp);
1841 if (ret_cmd && blk_mq_request_started(scsi_cmd_to_rq(cmd)))
1868 struct qla_tgt_cmd *cmd;
1900 cmd = (struct qla_tgt_cmd *)sp;
1901 cmd->aborted = 1;
4478 "Alloc failed for els reject cmd.\n");
4490 "Alloc failed for nvme fc reject cmd.\n");
6158 rsp_payload->hdr.cmd = cpu_to_be32(0x2 << 24); /* LS_ACC */