Lines Matching defs:cmd

149 	struct scsi_cmnd *cmd = lpfc_cmd->pCmd;
157 (cmd->result))
2517 * 2 - Invalid scsi cmd or prot-type. Do not rety.
2717 struct scsi_cmnd *cmd = lpfc_cmd->pCmd;
2734 prot = scsi_get_prot_op(cmd);
2746 sgpe = scsi_prot_sglist(cmd);
2755 sgde = scsi_sglist(cmd);
2756 blksize = lpfc_cmd_blksize(cmd);
2763 start_ref_tag = (uint32_t)scsi_get_lba(cmd); /* Truncate LBA */
2782 if (lpfc_cmd_guard_csum(cmd))
2848 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST,
2850 cmd->result = DRIVER_SENSE << 24 | DID_ABORT << 16 |
2855 (unsigned long)scsi_get_lba(cmd),
2859 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST,
2861 cmd->result = DRIVER_SENSE << 24 | DID_ABORT << 16 |
2867 (unsigned long)scsi_get_lba(cmd),
2871 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST,
2873 cmd->result = DRIVER_SENSE << 24 | DID_ABORT << 16 |
2879 (unsigned long)scsi_get_lba(cmd),
2901 struct scsi_cmnd *cmd = lpfc_cmd->pCmd;
2909 cmd->result = DID_ERROR << 16;
2911 "9072 BLKGRD: Invalid BG Profile in cmd"
2913 "bgstat=x%x bghm=x%x\n", cmd->cmnd[0],
2914 (unsigned long long)scsi_get_lba(cmd),
2915 blk_rq_sectors(cmd->request), bgstat, bghm);
2921 cmd->result = DID_ERROR << 16;
2923 "9073 BLKGRD: Invalid BG PDIF Block in cmd"
2925 "bgstat=x%x bghm=x%x\n", cmd->cmnd[0],
2926 (unsigned long long)scsi_get_lba(cmd),
2927 blk_rq_sectors(cmd->request), bgstat, bghm);
2935 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST,
2937 cmd->result = DRIVER_SENSE << 24 | DID_ABORT << 16 |
2941 "9055 BLKGRD: Guard Tag error in cmd"
2943 "bgstat=x%x bghm=x%x\n", cmd->cmnd[0],
2944 (unsigned long long)scsi_get_lba(cmd),
2945 blk_rq_sectors(cmd->request), bgstat, bghm);
2951 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST,
2953 cmd->result = DRIVER_SENSE << 24 | DID_ABORT << 16 |
2958 "9056 BLKGRD: Ref Tag error in cmd"
2960 "bgstat=x%x bghm=x%x\n", cmd->cmnd[0],
2961 (unsigned long long)scsi_get_lba(cmd),
2962 blk_rq_sectors(cmd->request), bgstat, bghm);
2968 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST,
2970 cmd->result = DRIVER_SENSE << 24 | DID_ABORT << 16 |
2975 "9061 BLKGRD: App Tag error in cmd"
2977 "bgstat=x%x bghm=x%x\n", cmd->cmnd[0],
2978 (unsigned long long)scsi_get_lba(cmd),
2979 blk_rq_sectors(cmd->request), bgstat, bghm);
2989 cmd->sense_buffer[7] = 0xc; /* Additional sense length */
2990 cmd->sense_buffer[8] = 0; /* Information descriptor type */
2991 cmd->sense_buffer[9] = 0xa; /* Additional descriptor length */
2992 cmd->sense_buffer[10] = 0x80; /* Validity bit */
2995 switch (scsi_get_prot_op(cmd)) {
2998 bghm /= cmd->device->sector_size;
3004 bghm /= (cmd->device->sector_size +
3009 failing_sector = scsi_get_lba(cmd);
3013 put_unaligned_be64(failing_sector, &cmd->sense_buffer[12]);
3019 "9057 BLKGRD: Unknown error in cmd"
3021 "bgstat=x%x bghm=x%x\n", cmd->cmnd[0],
3022 (unsigned long long)scsi_get_lba(cmd),
3023 blk_rq_sectors(cmd->request), bgstat, bghm);
3805 struct scsi_cmnd *cmd;
3816 cmd = lpfc_cmd->pCmd;
3817 if (!cmd || !phba) {
3832 shost = cmd->device->host;
3888 "9030 FCP cmd x%x failed <%d/%lld> "
3892 cmd->cmnd[0],
3893 cmd->device ? cmd->device->id : 0xffff,
3894 cmd->device ? cmd->device->lun : 0xffff,
3910 cmd->result = DID_TRANSPORT_DISRUPTED << 16;
3944 cmd->result = DID_NO_CONNECT << 16;
3951 cmd->result = DID_REQUEUE << 16;
3957 if (scsi_get_prot_op(cmd) != SCSI_PROT_NORMAL) {
3960 * cmd. Parse BG error
3969 "on unprotected cmd\n");
3985 cmd->result = DID_ERROR << 16;
3991 cmd->result = DID_TRANSPORT_DISRUPTED << 16 |
3994 cmd->result = DID_OK << 16;
3996 if (cmd->result || lpfc_cmd->fcp_rsp->rspSnsLen) {
3997 uint32_t *lp = (uint32_t *)cmd->sense_buffer;
4000 "0710 Iodone <%d/%llu> cmd x%px, error "
4002 cmd->device->id, cmd->device->lun, cmd,
4003 cmd->result, *lp, *(lp + 3), cmd->retries,
4004 scsi_get_resid(cmd));
4017 ((cmd->cmnd[0] == READ_10) ||
4018 (cmd->cmnd[0] == WRITE_10)))
4040 cmd->scsi_done(cmd);
4184 * lpfc_scsi_prep_task_mgmt_cmd - Convert SLI3 scsi TM cmd to FCP info unit
4493 * Driver registers this routine to scsi midlayer to submit a @cmd to process.
4535 "9058 BLKGRD: ERROR: rcvd protected cmd:%02x"
4603 "9033 BLKGRD: rcvd %s cmd:x%x "
4616 "9038 BLKGRD: rcvd PROT_NORMAL cmd: "
4654 "FCP cmd x%x <%d/%llu> "
4734 IOCB_t *cmd, *icmd;
4828 cmd = &iocb->iocb;
4831 icmd->un.acxri.abortContextTag = cmd->ulpContext;
4835 icmd->un.acxri.abortIoTag = cmd->ulpIoTag;
4838 icmd->ulpClass = cmd->ulpClass;