Lines Matching defs:xs
58 atapi_interpret_sense(struct scsipi_xfer *xs)
60 struct scsipi_periph *periph = xs->xs_periph;
72 error = (*periph->periph_switch->psw_error)(xs);
80 if (xs->error == XS_SENSE)
81 return (scsipi_interpret_sense(xs));
83 key = (xs->sense.atapi_sense & 0xf0) >> 4;
89 if (xs->resid == xs->datalen)
90 xs->resid = 0; /* not short read */
96 if ((xs->xs_control & XS_CTL_IGNORE_NOT_READY) != 0)
98 if ((xs->xs_control & XS_CTL_SILENT) != 0)
112 if ((xs->xs_control &
115 if ((xs->xs_control & XS_CTL_SILENT) != 0)
123 if ((xs->xs_control &
128 if ((xs->xs_control & XS_CTL_SILENT) != 0)
139 if (xs->xs_retries != 0) {
140 xs->xs_retries--;
151 if (xs->sense.atapi_sense & 0x01) {
156 if (xs->sense.atapi_sense & 0x02) { /* vol overflow */
160 if (xs->sense.atapi_sense & 0x04) { /* Aborted command */
162 if (xs->xs_retries != 0) {
163 xs->xs_retries--;
176 xs->sense.atapi_sense);
210 atapi_scsipi_cmd(struct scsipi_xfer *xs)
212 struct scsipi_periph *periph = xs->xs_periph;
216 xs->cmdlen = (periph->periph_cap & PERIPH_CAP_CMD16) ? 16 : 12;