Home | History | Annotate | Download | only in ic

Lines Matching refs:xs

58 			       struct scsipi_xfer *xs, struct scb *scb);
201 struct scsipi_xfer *xs;
205 xs = scb->xs;
206 periph = xs->xs_periph;
219 callout_stop(&scb->xs->xs_callout);
221 if (xs->datalen) {
224 if (xs->xs_control & XS_CTL_DATA_IN)
246 if (!(list_scb->xs->xs_control & XS_CTL_POLL)) {
247 callout_reset(&list_scb->xs->xs_callout,
248 (list_scb->xs->timeout > 1000000) ?
249 (list_scb->xs->timeout / 1000) * hz :
250 (list_scb->xs->timeout * hz) / 1000,
258 scsipi_printaddr(xs->xs_periph);
260 ahc_name(ahc), xs->status);
268 if (xs->error != XS_NOERROR) {
281 memset(&xs->sense.scsi_sense, 0, sizeof(xs->sense.scsi_sense));
282 memcpy(&xs->sense.scsi_sense,
284 sizeof(xs->sense.scsi_sense));
285 xs->error = XS_SENSE;
296 scsipi_done(xs);
337 struct scsipi_xfer *xs;
345 xs = arg;
346 periph = xs->xs_periph;
351 SC_DEBUG(xs->xs_periph, SCSIPI_DB3, ("ahc_action\n"));
358 xs->error = XS_RESOURCE_SHORTAGE;
360 scsipi_done(xs);
368 scb->xs = xs;
376 if (xs->xs_control & XS_CTL_RESET) {
383 ahc_setup_data(ahc, xs, scb);
521 struct scsipi_xfer *xs;
530 xs = scb->xs;
531 xs->error = 0;
532 xs->status = 0;
533 xs->xs_status = 0;
535 xs->xs_periph->periph_channel->chan_adapter->adapt_dev);
565 if (xs->xs_control & XS_CTL_DATA_IN)
593 if (xs->xs_status & XS_STS_DONE) {
598 scsipi_done(xs);
617 if (xs->xs_tag_type)
618 scb->hscb->control |= xs->xs_tag_type;
621 if ((xs->xs_control & XS_CTL_DISCOVERY) && (tinfo->goal.width == 0
635 if (!(xs->xs_control & XS_CTL_POLL)) {
636 callout_reset(&scb->xs->xs_callout, xs->timeout > 1000000 ?
637 (xs->timeout / 1000) * hz : (xs->timeout * hz) / 1000,
675 if (!(xs->xs_control & XS_CTL_POLL)) {
684 SC_DEBUG(xs->xs_periph, SCSIPI_DB3, ("cmd_poll\n"));
686 if (ahc_poll(ahc, xs->timeout)) {
687 if (!(xs->xs_control & XS_CTL_SILENT))
692 } while (!(xs->xs_status & XS_STS_DONE));
717 ahc_setup_data(struct ahc_softc *ahc, struct scsipi_xfer *xs,
723 xs->resid = xs->status = 0;
725 hscb->cdb_len = xs->cmdlen;
733 scsipi_done(xs);
738 memcpy(hscb->cdb32, xs->cmd, hscb->cdb_len);
741 memcpy(hscb->shared_data.cdb, xs->cmd, hscb->cdb_len);
745 if (xs->datalen) {
749 scb->dmamap, xs->data,
750 xs->datalen, NULL,
751 ((xs->xs_control & XS_CTL_NOSLEEP) ?
754 ((xs->xs_control & XS_CTL_DATA_IN) ?
762 xs->error = XS_RESOURCE_SHORTAGE;
763 scsipi_done(xs);
797 callout_stop(&list_scb->xs->xs_callout);
905 newtimeout = MAX(active_scb->xs->timeout,
906 scb->xs->timeout);
907 callout_reset(&scb->xs->xs_callout,
943 callout_reset(&active_scb->xs->xs_callout,
1037 callout_reset(&scb->xs->xs_callout, 2 * hz,