Lines Matching defs:xs
155 #define ncr5380_show_scsi_cmd(xs) /* nada */
526 struct scsipi_xfer *xs;
534 xs = sr->sr_xs;
535 if (xs == NULL) {
539 periph = xs->xs_periph;
601 struct scsipi_xfer *xs;
611 xs = arg;
612 periph = xs->xs_periph;
613 flags = xs->xs_control;
656 sr->sr_xs = xs;
660 sr->sr_dataptr = xs->data;
661 sr->sr_datalen = xs->datalen;
663 if (xs->xs_control & XS_CTL_REQSENSE)
688 if ((xs->xs_status & XS_STS_DONE) == 0)
723 struct scsipi_xfer *xs;
733 xs = sr->sr_xs;
751 NCR_TRACE("done: aborting, error=%d\n", xs->error);
752 if (xs->error == XS_NOERROR)
753 xs->error = XS_TIMEOUT;
756 NCR_TRACE("done: check error=%d\n", (long) xs->error);
759 if (xs->error != XS_NOERROR)
764 xs->status = sr->sr_status;
767 xs->error = XS_NOERROR;
772 xs->error = XS_BUSY;
781 xs->error = XS_DRIVER_STUFFUP;
787 NCR_TRACE("done: finish, error=%d\n", xs->error);
815 scsipi_done(xs);
835 struct scsipi_xfer *xs;
916 xs = sr->sr_xs;
924 xs = sr->sr_xs;
950 xs->error = error; /* from select */
987 xs->xs_periph->periph_target, xs->xs_periph->periph_lun);
988 ncr5380_show_scsi_cmd(xs);
991 if (xs->xs_control & XS_CTL_RESET) {
999 if ((xs->xs_control & (XS_CTL_DATA_IN | XS_CTL_DATA_OUT)) == 0) {
1036 i = mstohz(xs->timeout);
1298 * Select target: xs is the transfer that we are selecting for.
1534 * BUS DEVICE RESET # if XS_CTL_RESET & xs->xs_control (or in
1557 struct scsipi_xfer *xs = sr->sr_xs;
1706 if ((xs->xs_periph->periph_quirks & PQUIRK_AUTOSAVE) == 0)
2020 struct scsipi_xfer *xs = sr->sr_xs;
2028 len = ncr5380_pio_out(sc, PHASE_COMMAND, xs->cmdlen,
2029 (uint8_t *)xs->cmd);
2031 if (len != xs->cmdlen) {
2034 __func__, xs->cmdlen, len);
2035 ncr5380_show_scsi_cmd(xs);
2039 xs->error = XS_DRIVER_STUFFUP;
2057 struct scsipi_xfer *xs = sr->sr_xs;
2071 expected_phase = (xs->xs_control & XS_CTL_DATA_OUT) ?
2174 struct scsipi_xfer *xs;
2185 xs = sr->sr_xs;
2203 xs->error = XS_DRIVER_STUFFUP;
2352 xs->resid = sc->sc_datalen;
2415 ncr5380_show_scsi_cmd(struct scsipi_xfer *xs)
2417 uint8_t *b = (uint8_t *)xs->cmd;
2420 scsipi_printaddr(xs->xs_periph);
2421 if ((xs->xs_control & XS_CTL_RESET) == 0) {
2422 while (i < xs->cmdlen) {
2491 struct scsipi_xfer *xs = sr->sr_xs;
2501 if (xs == NULL) {
2502 db_printf("(xs=NULL)\n");
2507 show_scsipi_xs(xs);
2509 db_printf("xs=%p\n", xs);