Home | History | Annotate | Download | only in ic

Lines Matching defs:xs

315 		if ((ccb->xs->xs_control & XS_CTL_POLL) == 0)
316 callout_reset(&ccb->xs->xs_callout,
524 struct scsipi_xfer *xs;
533 xs = arg;
534 periph = xs->xs_periph;
535 flags = xs->xs_control;
553 ccb->xs = xs;
554 ccb->timeout = xs->timeout;
565 ccb->scsiq.cdbptr = &xs->cmd->opcode;
566 ccb->scsiq.q2.cdb_len = xs->cmdlen;
589 xs->bp == NULL || (xs->bp->b_flags & B_ASYNC) == 0) {
595 if (xs->datalen) {
602 ccb->dmamap_xfer, (struct uio *) xs->data,
611 xs->data, xs->datalen, NULL,
625 xs->error = XS_RESOURCE_SHORTAGE;
629 xs->error = XS_DRIVER_STUFFUP;
643 scsipi_done(xs);
679 periph->periph_lun, xs->cmd->opcode,
690 if (adv_poll(sc, xs, ccb->timeout)) {
692 if (adv_poll(sc, xs, ccb->timeout))
759 * Poll a particular unit, looking for a particular xs
762 adv_poll(ASC_SOFTC *sc, struct scsipi_xfer *xs, int count)
768 if (xs->xs_status & XS_STS_DONE)
781 struct scsipi_xfer *xs = ccb->xs;
782 struct scsipi_periph *periph = xs->xs_periph;
808 ccb->xs->error = XS_TIMEOUT;
822 struct scsipi_xfer *xs = ccb->xs;
823 struct scsipi_periph *periph = xs->xs_periph;
852 struct scsipi_xfer *xs;
857 xs = ccb->xs;
862 xs->xs_periph->periph_target,
863 xs->xs_periph->periph_lun, xs->cmd->opcode);
865 callout_stop(&ccb->xs->xs_callout);
871 if (xs->datalen) {
874 (xs->xs_control & XS_CTL_DATA_IN) ?
893 xs->error = XS_NOERROR;
896 * According to the original Linux driver, xs->resid
902 xs->resid = 0;
907 xs->error = XS_DRIVER_STUFFUP;
915 if ((xs->cmd->opcode == SCSICMD_Inquiry) &&
916 (xs->xs_periph->periph_lun == 0) &&
917 (xs->datalen - qdonep->remain_bytes) >= 8) {
919 xs->xs_periph->periph_target & 0x7,
920 (ASC_SCSI_INQUIRY *) xs->data);
929 s2 = &xs->sense.scsi_sense;
931 xs->error = XS_SENSE;
933 xs->error = XS_DRIVER_STUFFUP;
938 xs->error = XS_SELTIMEOUT;
943 xs->error = XS_DRIVER_STUFFUP;
950 xs->error = XS_DRIVER_STUFFUP;
955 scsipi_done(xs);