Lines Matching refs:cmd
3033 struct scsi_cmnd *cmd = GET_CMD_SP(sp); in qla2x00_handle_dif_error() local
3058 cmd->cmnd[0], (u64)scsi_get_lba(cmd), a_ref_tag, e_ref_tag, in qla2x00_handle_dif_error()
3067 (scsi_get_prot_type(cmd) != SCSI_PROT_DIF_TYPE3 || in qla2x00_handle_dif_error()
3070 sector_t lba_s = scsi_get_lba(cmd); in qla2x00_handle_dif_error()
3075 resid = scsi_bufflen(cmd) - (blocks_done * in qla2x00_handle_dif_error()
3076 cmd->device->sector_size); in qla2x00_handle_dif_error()
3078 scsi_set_resid(cmd, resid); in qla2x00_handle_dif_error()
3079 cmd->result = DID_OK << 16; in qla2x00_handle_dif_error()
3082 if (scsi_prot_sg_count(cmd)) { in qla2x00_handle_dif_error()
3088 scsi_for_each_prot_sg(cmd, sg, in qla2x00_handle_dif_error()
3089 scsi_prot_sg_count(cmd), i) { in qla2x00_handle_dif_error()
3111 if (scsi_get_prot_type(cmd) == SCSI_PROT_DIF_TYPE3) in qla2x00_handle_dif_error()
3120 scsi_build_sense(cmd, 1, ILLEGAL_REQUEST, 0x10, 0x1); in qla2x00_handle_dif_error()
3121 set_host_byte(cmd, DID_ABORT); in qla2x00_handle_dif_error()
3127 scsi_build_sense(cmd, 1, ILLEGAL_REQUEST, 0x10, 0x3); in qla2x00_handle_dif_error()
3128 set_host_byte(cmd, DID_ABORT); in qla2x00_handle_dif_error()
3134 scsi_build_sense(cmd, 1, ILLEGAL_REQUEST, 0x10, 0x2); in qla2x00_handle_dif_error()
3135 set_host_byte(cmd, DID_ABORT); in qla2x00_handle_dif_error()