Lines Matching refs:xs
453 callout_stop(&scb->xs->xs_callout);
749 callout_reset(&scb->xs->xs_callout,
766 struct scsipi_xfer *xs = scb->xs;
771 if (xs == 0) {
780 if (xs->datalen) {
783 (xs->xs_control & XS_CTL_DATA_IN) ?
787 if (xs->error == XS_NOERROR) {
791 xs->resid = 0;
805 xs->error = XS_DRIVER_STUFFUP;
814 xs->status = scb->cmd.stat;
815 xs->error = XS_BUSY;
831 xs->resid = 0;
840 xs->error = XS_DRIVER_STUFFUP;
851 xs->error = XS_SELTIMEOUT;
860 xs->error = XS_DRIVER_STUFFUP;
867 scsipi_done(xs);
1010 scb->xs = NULL;
1070 struct scsipi_xfer *xs;
1079 xs = arg;
1080 periph = xs->xs_periph;
1082 if (xs->xs_control & XS_CTL_RESET) {
1086 scsipi_done(xs);
1090 if (xs->xs_control & XS_CTL_DATA_UIO) {
1098 xs->error = XS_DRIVER_STUFFUP;
1099 scsipi_done(xs);
1103 flags = xs->xs_control;
1119 scb->xs = xs;
1120 scb->timeout = xs->timeout;
1123 if (xs->cmdlen > sizeof(scb->cmd.scb)) {
1125 "cmdlen %d too large for SCB\n", xs->cmdlen);
1126 xs->error = XS_DRIVER_STUFFUP;
1130 memcpy(&scb->cmd.scb, xs->cmd, xs->cmdlen);
1141 scb->cmd.write = (xs->xs_control & XS_CTL_DATA_IN) ?
1144 if (xs->datalen) {
1149 scb->dmamap_xfer, (struct uio *)xs->data,
1157 scb->dmamap_xfer, xs->data, xs->datalen,
1169 xs->error = XS_RESOURCE_SHORTAGE;
1173 xs->error = XS_DRIVER_STUFFUP;
1178 scsipi_done(xs);
1252 if (wds_poll(sc, xs, scb->timeout)) {
1254 if (wds_poll(sc, xs, scb->timeout))
1273 wds_poll(struct wds_softc *sc, struct scsipi_xfer *xs, int count)
1286 if (xs->xs_status & XS_STS_DONE)
1323 struct scsipi_xfer *xs = scb->xs;
1324 struct scsipi_periph *periph = xs->xs_periph;
1357 scb->xs->error = XS_TIMEOUT;