Lines Matching refs:xs
298 ecb->xs->xs_periph->periph_target);
300 if ((ecb->xs->xs_control & XS_CTL_POLL) == 0)
301 callout_reset(&ecb->xs->xs_callout,
329 ecb->xs->xs_periph->periph_target);
331 if ((ecb->xs->xs_control & XS_CTL_POLL) == 0)
332 callout_reset(&ecb->xs->xs_callout,
401 callout_stop(&ecb->xs->xs_callout);
533 struct scsipi_xfer *xs = ecb->xs;
535 SC_DEBUG(xs->xs_periph, SCSIPI_DB2, ("ahb_done\n"));
545 if (xs->datalen) {
548 (xs->xs_control & XS_CTL_DATA_IN) ? BUS_DMASYNC_POSTREAD :
563 xs->error = XS_DRIVER_STUFFUP;
566 if (xs->error == XS_NOERROR) {
570 xs->error = XS_SELTIMEOUT;
576 xs->error = XS_DRIVER_STUFFUP;
582 s2 = &xs->sense.scsi_sense;
584 xs->error = XS_SENSE;
587 xs->error = XS_BUSY;
593 xs->error = XS_DRIVER_STUFFUP;
596 xs->resid = 0;
600 scsipi_done(xs);
788 struct scsipi_xfer *xs;
797 xs = arg;
798 periph = xs->xs_periph;
799 flags = xs->xs_control;
817 ecb->xs = xs;
818 ecb->timeout = xs->timeout;
830 xs->error = XS_BUSY;
831 scsipi_done(xs);
846 if (ahb_poll(sc, xs, ecb->timeout))
854 if (xs->cmdlen > sizeof(ecb->scsi_cmd)) {
856 "cmdlen %d too large for ECB\n", xs->cmdlen);
857 xs->error = XS_DRIVER_STUFFUP;
863 memcpy(&ecb->scsi_cmd, xs->cmd,
864 ecb->scsi_cmd_length = xs->cmdlen);
873 if (xs->datalen) {
880 ecb->dmamap_xfer, (struct uio *)xs->data,
886 ecb->dmamap_xfer, xs->data, xs->datalen,
896 xs->error = XS_RESOURCE_SHORTAGE;
900 xs->error = XS_DRIVER_STUFFUP;
905 scsipi_done(xs);
950 if (ahb_poll(sc, xs, ecb->timeout)) {
952 if (ahb_poll(sc, xs, ecb->timeout))
971 ahb_poll(struct ahb_softc *sc, struct scsipi_xfer *xs, int count)
983 if (xs->xs_status & XS_STS_DONE)
995 struct scsipi_xfer *xs = ecb->xs;
996 struct scsipi_periph *periph = xs->xs_periph;
1024 ecb->xs->error = XS_TIMEOUT;