Lines Matching refs:cmdstatp
354 struct st_cmdstatus *cmdstatp;
359 cmdstatp = &STp->buffer->cmdstat;
360 st_analyze_sense(SRpnt, cmdstatp);
362 if (cmdstatp->have_sense)
373 if (cmdstatp->have_sense)
377 if (!cmdstatp->have_sense)
382 else if (cmdstatp->have_sense &&
395 if (cmdstatp->fixed_format &&
404 if (cmdstatp->have_sense &&
405 cmdstatp->sense_hdr.asc == 0 && cmdstatp->sense_hdr.ascq == 0x17)
410 if (cmdstatp->have_sense &&
432 if (cmdstatp->flags == 0)
597 struct st_cmdstatus *cmdstatp;
628 cmdstatp = &STbuffer->cmdstat;
631 if (cmdstatp->have_sense && !cmdstatp->deferred &&
632 (cmdstatp->flags & SENSE_EOM) &&
633 (cmdstatp->sense_hdr.sense_key == NO_SENSE ||
634 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR)) {
636 if (!cmdstatp->remainder_valid ||
637 cmdstatp->uremainder64 == 0)
725 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat;
727 if (cmdstatp->have_sense && !cmdstatp->deferred &&
728 (cmdstatp->flags & SENSE_EOM) &&
729 (cmdstatp->sense_hdr.sense_key == NO_SENSE ||
730 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) &&
731 (!cmdstatp->remainder_valid ||
732 cmdstatp->uremainder64 == 0)) { /* All written at EOM early warning */
909 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat;
924 if (cmdstatp->have_sense) {
926 scode = cmdstatp->sense_hdr.sense_key;
951 cmdstatp->sense_hdr.asc == 0x3a) /* Check ASC */
1304 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat;
1323 (cmdstatp->have_sense && !cmdstatp->deferred &&
1324 (cmdstatp->flags & SENSE_EOM) &&
1325 (cmdstatp->sense_hdr.sense_key == NO_SENSE ||
1326 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) &&
1327 (!cmdstatp->remainder_valid || cmdstatp->uremainder64 == 0))) {
1719 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat;
1722 if (cmdstatp->have_sense && (cmdstatp->flags & SENSE_EOM)) {
1723 scode = cmdstatp->sense_hdr.sense_key;
1724 if (cmdstatp->remainder_valid)
1725 undone = (int)cmdstatp->uremainder64;
1754 if (!retry_eot && !cmdstatp->deferred &&
1887 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat;
1896 if (cmdstatp->have_sense) {
1898 if (cmdstatp->sense_hdr.sense_key == BLANK_CHECK)
1899 cmdstatp->flags &= 0xcf; /* No need for EOM in this case */
1901 if (cmdstatp->flags != 0) { /* EOF, EOM, or ILI */
1903 if (cmdstatp->remainder_valid)
1904 transfer = (int)cmdstatp->uremainder64;
1908 cmdstatp->sense_hdr.sense_key == MEDIUM_ERROR)
1911 if (cmdstatp->flags & SENSE_ILI) { /* ILI */
1945 } else if (cmdstatp->flags & SENSE_FMK) { /* FM overrides EOM */
1958 } else if (cmdstatp->flags & SENSE_EOM) {
1979 cmdstatp->sense_hdr.sense_key == BLANK_CHECK) {
2901 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat;
2903 if (cmdstatp->flags & SENSE_EOM) {
2910 if (cmdstatp->remainder_valid)
2911 undone = (int)cmdstatp->uremainder64;
2916 cmdstatp->have_sense &&
2917 (cmdstatp->flags & SENSE_EOM)) {
2918 if (cmdstatp->sense_hdr.sense_key == NO_SENSE ||
2919 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) {
2944 if (cmdstatp->flags & SENSE_FMK) { /* Hit filemark */
2957 if (cmdstatp->flags & SENSE_FMK) { /* Hit filemark */
2975 if (cmdstatp->sense_hdr.sense_key == ILLEGAL_REQUEST &&
2987 if (cmdstatp->sense_hdr.sense_key == BLANK_CHECK)