Lines Matching refs:cmdstatp

363 	struct st_cmdstatus *cmdstatp;  in st_chk_result()  local
368 cmdstatp = &STp->buffer->cmdstat; in st_chk_result()
369 st_analyze_sense(SRpnt, cmdstatp); in st_chk_result()
371 if (cmdstatp->have_sense) in st_chk_result()
382 if (cmdstatp->have_sense) in st_chk_result()
387 if (!cmdstatp->have_sense) in st_chk_result()
391 else if (cmdstatp->have_sense && in st_chk_result()
405 if (cmdstatp->fixed_format && in st_chk_result()
414 if (cmdstatp->have_sense && in st_chk_result()
415 cmdstatp->sense_hdr.asc == 0 && cmdstatp->sense_hdr.ascq == 0x17) in st_chk_result()
420 if (cmdstatp->have_sense && in st_chk_result()
443 if (cmdstatp->flags == 0) in st_chk_result()
669 struct st_cmdstatus *cmdstatp; in write_behind_check() local
700 cmdstatp = &STbuffer->cmdstat; in write_behind_check()
703 if (cmdstatp->have_sense && !cmdstatp->deferred && in write_behind_check()
704 (cmdstatp->flags & SENSE_EOM) && in write_behind_check()
705 (cmdstatp->sense_hdr.sense_key == NO_SENSE || in write_behind_check()
706 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR)) { in write_behind_check()
708 if (!cmdstatp->remainder_valid || in write_behind_check()
709 cmdstatp->uremainder64 == 0) in write_behind_check()
798 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat; in st_flush_write_buffer() local
800 if (cmdstatp->have_sense && !cmdstatp->deferred && in st_flush_write_buffer()
801 (cmdstatp->flags & SENSE_EOM) && in st_flush_write_buffer()
802 (cmdstatp->sense_hdr.sense_key == NO_SENSE || in st_flush_write_buffer()
803 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) && in st_flush_write_buffer()
804 (!cmdstatp->remainder_valid || in st_flush_write_buffer()
805 cmdstatp->uremainder64 == 0)) { /* All written at EOM early warning */ in st_flush_write_buffer()
972 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat; in test_ready() local
987 if (cmdstatp->have_sense) { in test_ready()
989 scode = cmdstatp->sense_hdr.sense_key; in test_ready()
1014 cmdstatp->sense_hdr.asc == 0x3a) /* Check ASC */ in test_ready()
1374 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat; in st_flush() local
1395 (cmdstatp->have_sense && !cmdstatp->deferred && in st_flush()
1396 (cmdstatp->flags & SENSE_EOM) && in st_flush()
1397 (cmdstatp->sense_hdr.sense_key == NO_SENSE || in st_flush()
1398 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) && in st_flush()
1399 (!cmdstatp->remainder_valid || cmdstatp->uremainder64 == 0))) { in st_flush()
1791 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat; in st_write() local
1794 if (cmdstatp->have_sense && (cmdstatp->flags & SENSE_EOM)) { in st_write()
1795 scode = cmdstatp->sense_hdr.sense_key; in st_write()
1796 if (cmdstatp->remainder_valid) in st_write()
1797 undone = (int)cmdstatp->uremainder64; in st_write()
1826 if (!retry_eot && !cmdstatp->deferred && in st_write()
1957 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat; in read_tape() local
1966 if (cmdstatp->have_sense) { in read_tape()
1968 if (cmdstatp->sense_hdr.sense_key == BLANK_CHECK) in read_tape()
1969 cmdstatp->flags &= 0xcf; /* No need for EOM in this case */ in read_tape()
1971 if (cmdstatp->flags != 0) { /* EOF, EOM, or ILI */ in read_tape()
1973 if (cmdstatp->remainder_valid) in read_tape()
1974 transfer = (int)cmdstatp->uremainder64; in read_tape()
1977 if (cmdstatp->sense_hdr.sense_key == MEDIUM_ERROR) { in read_tape()
1981 cmdstatp->flags &= ~SENSE_ILI; in read_tape()
1984 if (cmdstatp->flags & SENSE_ILI) { /* ILI */ in read_tape()
2024 } else if (cmdstatp->flags & SENSE_FMK) { /* FM overrides EOM */ in read_tape()
2037 } else if (cmdstatp->flags & SENSE_EOM) { in read_tape()
2058 cmdstatp->sense_hdr.sense_key == BLANK_CHECK) { in read_tape()
3002 struct st_cmdstatus *cmdstatp = &STp->buffer->cmdstat; in st_int_ioctl() local
3004 if (cmdstatp->flags & SENSE_EOM) { in st_int_ioctl()
3011 if (cmdstatp->remainder_valid) in st_int_ioctl()
3012 undone = (int)cmdstatp->uremainder64; in st_int_ioctl()
3017 cmdstatp->have_sense && in st_int_ioctl()
3018 (cmdstatp->flags & SENSE_EOM)) { in st_int_ioctl()
3019 if (cmdstatp->sense_hdr.sense_key == NO_SENSE || in st_int_ioctl()
3020 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) { in st_int_ioctl()
3045 if (cmdstatp->flags & SENSE_FMK) { /* Hit filemark */ in st_int_ioctl()
3058 if (cmdstatp->flags & SENSE_FMK) { /* Hit filemark */ in st_int_ioctl()
3076 if (cmdstatp->sense_hdr.sense_key == ILLEGAL_REQUEST && in st_int_ioctl()
3088 if (cmdstatp->sense_hdr.sense_key == BLANK_CHECK) in st_int_ioctl()