Home | History | Annotate | Download | only in ic

Lines Matching defs:xs

351 		if ((ccb->xs->xs_control & XS_CTL_POLL) == 0)
352 callout_reset(&ccb->xs->xs_callout,
541 struct scsipi_xfer *xs;
548 xs = arg;
563 scsipi_printaddr(xs->xs_periph);
569 ccb->xs = xs;
570 ccb->timeout = xs->timeout;
579 xs->error = XS_RESOURCE_SHORTAGE;
581 scsipi_done(xs);
585 xs->error = XS_DRIVER_STUFFUP;
587 scsipi_done(xs);
590 if ((xs->xs_control & XS_CTL_POLL) == 0)
595 if (adw_poll(sc, xs, ccb->timeout)) {
597 if (adw_poll(sc, xs, ccb->timeout))
620 struct scsipi_xfer *xs = ccb->xs;
621 struct scsipi_periph *periph = xs->xs_periph;
644 memcpy(&scsiqp->cdb, xs->cmd, ((scsiqp->cdb_len = xs->cmdlen) <= 12)?
645 xs
646 if(xs->cmdlen > 12)
647 memcpy(&scsiqp->cdb16, &(xs->cmd[12]), xs->cmdlen - 12);
660 if (xs->datalen) {
665 if (xs->xs_control & SCSI_DATA_UIO) {
667 ccb->dmamap_xfer, (struct uio *) xs->data,
676 ccb->dmamap_xfer, xs->data, xs->datalen, NULL,
677 ((xs->xs_control & XS_CTL_NOSLEEP) ?
680 ((xs->xs_control & XS_CTL_DATA_IN) ?
689 xs->error = XS_RESOURCE_SHORTAGE;
693 xs->error = XS_DRIVER_STUFFUP;
698 scsipi_done(xs);
704 (xs->xs_control & XS_CTL_DATA_IN) ?
710 scsiqp->data_cnt = htole32(xs->datalen);
711 scsiqp->vdata_addr = xs->data;
795 * Poll a particular unit, looking for a particular xs
798 adw_poll(ADW_SOFTC *sc, struct scsipi_xfer *xs, int count)
804 if (xs->xs_status & XS_STS_DONE)
817 struct scsipi_xfer *xs = ccb->xs;
818 struct scsipi_periph *periph = xs->xs_periph;
835 callout_stop(&xs->xs_callout);
847 xs->error = XS_TIMEOUT;
871 callout_reset(&xs->xs_callout,
880 xs->error = XS_TIMEOUT;
904 callout_reset(&xs->xs_callout,
917 struct scsipi_xfer *xs;
923 callout_stop(&ccb->xs->xs_callout);
925 xs = ccb->xs;
927 xs->error = XS_RESOURCE_SHORTAGE;
928 scsipi_done(xs);
1026 struct scsipi_xfer *xs;
1032 callout_stop(&ccb->xs->xs_callout);
1034 xs = ccb->xs;
1040 if (xs->datalen) {
1043 (xs->xs_control & XS_CTL_DATA_IN) ?
1068 xs->error = XS_NOERROR;
1069 xs->resid = le32toh(scsiq->data_cnt);
1076 s2 = &xs->sense.scsi_sense;
1078 xs->error = XS_SENSE;
1083 xs->error = XS_BUSY;
1088 xs->error = XS_DRIVER_STUFFUP;
1092 xs->error = XS_SELTIMEOUT;
1100 xs->error = XS_DRIVER_STUFFUP;
1106 xs->error = XS_DRIVER_STUFFUP;
1112 xs->error = XS_DRIVER_STUFFUP;
1117 xs->error = XS_DRIVER_STUFFUP;
1122 xs->error = XS_DRIVER_STUFFUP;
1138 xs->error = XS_BUSY;
1148 xs->error = XS_BUSY;
1153 xs->error = XS_DRIVER_STUFFUP;
1160 xs->error = XS_DRIVER_STUFFUP;
1165 xs->error = XS_DRIVER_STUFFUP;
1170 xs->error = XS_DRIVER_STUFFUP;
1180 xs->error = XS_DRIVER_STUFFUP;
1185 xs->error = XS_DRIVER_STUFFUP;
1196 scsipi_done(xs);