Searched refs:xs (Results 1 - 25 of 191) sorted by relevance

12345678

/src/bin/ksh/
H A Dexpand.h19 #define Xinit(xs, xp, length, area) do { \
20 (xs).len = length; \
21 (xs).areap = (area); \
22 (xs).beg = alloc((xs).len + X_EXTRA, (xs).areap); \
23 (xs).end = (xs).beg + (xs).len; \
24 xp = (xs)
[all...]
/src/sys/dev/scsipi/
H A Datapi_base.c58 atapi_interpret_sense(struct scsipi_xfer *xs) argument
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
210 atapi_scsipi_cmd(struct scsipi_xfer * xs) argument
[all...]
H A Dscsipi_base.h62 struct scsipi_xfer *xs; local in function:scsipi_make_xs_internal
64 if ((xs = scsipi_get_xs(periph, flags)) == NULL)
71 memcpy(&xs->cmdstore, cmd, cmdlen);
72 xs->cmd = &xs->cmdstore;
73 xs->cmdlen = cmdlen;
74 xs->data = data_addr;
75 xs->datalen = datalen;
76 xs->xs_retries = retries;
77 xs
[all...]
H A Dscsipi_base.c69 "struct scsipi_xfer *"/*xs*/, "uint8_t"/*tag*/, "uint8_t"/*type*/);
71 "struct scsipi_xfer *"/*xs*/, "uint8_t"/*tag*/, "uint8_t"/*type*/);
86 "struct scsipi_xfer *"/*xs*/);
90 SDT_PROBE_DEFINE1(scsi, base, xfer, execute, "struct scsipi_xfer *"/*xs*/);
91 SDT_PROBE_DEFINE1(scsi, base, xfer, enqueue, "struct scsipi_xfer *"/*xs*/);
92 SDT_PROBE_DEFINE1(scsi, base, xfer, done, "struct scsipi_xfer *"/*xs*/);
93 SDT_PROBE_DEFINE1(scsi, base, xfer, redone, "struct scsipi_xfer *"/*xs*/);
94 SDT_PROBE_DEFINE1(scsi, base, xfer, complete, "struct scsipi_xfer *"/*xs*/);
95 SDT_PROBE_DEFINE1(scsi, base, xfer, restart, "struct scsipi_xfer *"/*xs*/);
96 SDT_PROBE_DEFINE1(scsi, base, xfer, free, "struct scsipi_xfer *"/*xs*/);
377 scsipi_get_tag(struct scsipi_xfer * xs) argument
423 scsipi_put_tag(struct scsipi_xfer * xs) argument
453 struct scsipi_xfer *xs; local in function:scsipi_get_xs
574 scsipi_put_xs(struct scsipi_xfer * xs) argument
880 scsipi_interpret_sense(struct scsipi_xfer * xs) argument
1541 scsipi_update_timeouts(struct scsipi_xfer * xs) argument
1605 scsipi_done(struct scsipi_xfer * xs) argument
1759 scsipi_complete(struct scsipi_xfer * xs) argument
1982 scsipi_request_sense(struct scsipi_xfer * xs) argument
2040 scsipi_enqueue(struct scsipi_xfer * xs) argument
2105 struct scsipi_xfer *xs; local in function:scsipi_run_queue
2214 scsipi_execute_xs(struct scsipi_xfer * xs) argument
2396 struct scsipi_xfer *xs; local in function:scsipi_completion_thread
2620 struct scsipi_xfer *xs, *xs_next; local in function:scsipi_async_event_channel_reset
2890 show_scsipi_xs(struct scsipi_xfer * xs) argument
2910 show_scsipi_cmd(struct scsipi_xfer * xs) argument
[all...]
/src/sys/dev/ic/
H A Dicpsp.c133 struct scsipi_xfer *xs; local in function:icpsp_scsipi_request
146 xs = arg;
147 periph = xs->xs_periph;
148 flags = xs->xs_control;
154 xs->error = XS_DRIVER_STUFFUP;
155 scsipi_done(xs);
160 if (xs->cmdlen > sizeof(rc->rc_cdb))
168 xs->error = XS_RESOURCE_SHORTAGE;
169 scsipi_done(xs);
184 memcpy(rc->rc_cdb, xs
273 struct scsipi_xfer *xs; local in function:icpsp_intr
[all...]
H A Disp_netbsd.h218 #define XS_CHANNEL(xs) \
219 ((int) (xs)->xs_periph->periph_channel->chan_channel)
220 #define XS_ISP(xs) \
221 device_private((xs)->xs_periph->periph_channel->chan_adapter->adapt_dev)
222 #define XS_LUN(xs) ((int) (xs)->xs_periph->periph_lun)
223 #define XS_TGT(xs) ((int) (xs)->xs_periph->periph_target)
224 #define XS_CDBP(xs) ((uint8_t *) (xs)
[all...]
H A Duha.c319 struct scsipi_xfer *xs = mscp->xs; local in function:uha_done
321 SC_DEBUG(xs->xs_periph, SCSIPI_DB2, ("uha_done\n"));
331 if (xs->datalen) {
334 (xs->xs_control & XS_CTL_DATA_IN) ? BUS_DMASYNC_POSTREAD :
348 if (xs->error == XS_NOERROR) {
352 xs->error = XS_SELTIMEOUT;
357 xs->error = XS_DRIVER_STUFFUP;
363 s2 = &xs->sense.scsi_sense;
365 xs
400 struct scsipi_xfer *xs; local in function:uha_scsipi_request
577 struct scsipi_xfer *xs = mscp->xs; local in function:uha_timeout
[all...]
H A Dadv.c315 if ((ccb->xs->xs_control & XS_CTL_POLL) == 0)
316 callout_reset(&ccb->xs->xs_callout,
524 struct scsipi_xfer *xs; local in function:adv_scsipi_request
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
762 adv_poll(ASC_SOFTC * sc,struct scsipi_xfer * xs,int count) argument
781 struct scsipi_xfer *xs = ccb->xs; local in function:adv_timeout
822 struct scsipi_xfer *xs = ccb->xs; local in function:adv_watchdog
852 struct scsipi_xfer *xs; local in function:adv_narrow_isr_callback
[all...]
H A Dadw.c351 if ((ccb->xs->xs_control & XS_CTL_POLL) == 0)
352 callout_reset(&ccb->xs->xs_callout,
541 struct scsipi_xfer *xs; local in function:adw_scsipi_request
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);
620 struct scsipi_xfer *xs = ccb->xs; local in function:adw_build_req
798 adw_poll(ADW_SOFTC * sc,struct scsipi_xfer * xs,int count) argument
817 struct scsipi_xfer *xs = ccb->xs; local in function:adw_timeout
917 struct scsipi_xfer *xs; local in function:adw_reset_bus
1026 struct scsipi_xfer *xs; local in function:adw_isr_callback
[all...]
H A Daic7xxx_osm.c58 struct scsipi_xfer *xs, struct scb *scb);
201 struct scsipi_xfer *xs; local in function:ahc_done
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
337 struct scsipi_xfer *xs; local in function:ahc_action
521 struct scsipi_xfer *xs; local in function:ahc_execute_scb
717 ahc_setup_data(struct ahc_softc * ahc,struct scsipi_xfer * xs,struct scb * scb) argument
[all...]
H A Daic79xx_osm.c60 static void ahd_setup_data(struct ahd_softc *ahd, struct scsipi_xfer *xs,
201 struct scsipi_xfer *xs; local in function:ahd_done
207 xs = scb->xs;
208 periph = xs->xs_periph;
210 callout_stop(&scb->xs->xs_callout);
212 if (xs->datalen) {
215 if (xs->xs_control & XS_CTL_DATA_IN)
238 struct scsipi_xfer *txs = list_scb->xs;
251 scsipi_printaddr(xs
333 struct scsipi_xfer *xs; local in function:ahd_action
531 struct scsipi_xfer *xs; local in function:ahd_execute_scb
682 ahd_setup_data(struct ahd_softc * ahd,struct scsipi_xfer * xs,struct scb * scb) argument
[all...]
/src/sys/arch/prep/stand/boot/
H A Dsiop.c99 struct scsi_xfer *xs)
104 htoc32((adp->clock_div << 24) | (xs->target << 16));
107 if (xs->cmd->opcode == SCSI_REQUEST_SENSE)
108 xfer->siop_tables.msg_out[0] = MSG_IDENTIFY(xs->lun, 0);
110 xfer->siop_tables.msg_out[0] = MSG_IDENTIFY(xs->lun, 1);
116 xfer->siop_tables.cmd.count = htoc32(xs->cmdlen);
117 xfer->siop_tables.cmd.addr = htoc32(local_to_PCI((u_long)xs->cmd));
118 if (xs->datalen != 0) {
119 xfer->siop_tables.data[0].count = htoc32(xs->datalen);
121 htoc32(local_to_PCI((u_long)xs
98 siop_setuptables(struct siop_adapter * adp,struct siop_xfer * xfer,struct scsi_xfer * xs) argument
126 siop_ma(struct siop_adapter * adp,struct scsi_xfer * xs) argument
147 siop_sdp(struct siop_adapter * adp,struct siop_xfer * xfer,struct scsi_xfer * xs,int offset) argument
201 siop_update_resid(struct siop_adapter * adp,struct siop_xfer * xfer,struct scsi_xfer * xs,int offset) argument
236 struct scsi_xfer *xs = NULL; local in function:siop_intr
471 siop_scsicmd_end(struct siop_adapter * adp,struct scsi_xfer * xs) argument
506 siop_scsi_request(struct siop_adapter * adp,struct scsi_xfer * xs) argument
603 siop_start(struct siop_adapter * adp,struct scsi_xfer * xs) argument
772 struct scsi_xfer xs; local in function:_scsi_inquire
801 scsi_request_sense(struct siop_adapter * adp,struct scsi_xfer * xs) argument
863 scsi_interpret_sense(struct siop_adapter * adp,struct scsi_xfer * xs) argument
1092 struct scsi_xfer xs; local in function:scsi_command
[all...]
/src/sys/dev/pci/
H A Dvioscsi.c252 #define XS2DMA(xs) \
253 ((((xs)->xs_control & XS_CTL_DATA_IN) ? BUS_DMA_READ : BUS_DMA_WRITE) | \
254 (((xs)->xs_control & XS_CTL_NOSLEEP) ? BUS_DMA_NOWAIT : BUS_DMA_WAITOK) | \
257 #define XS2DMAPRE(xs) (((xs)->xs_control & XS_CTL_DATA_IN) ? \
260 #define XS2DMAPOST(xs) (((xs)->xs_control & XS_CTL_DATA_IN) ? \
270 struct scsipi_xfer *xs; local in function:vioscsi_scsipi_request
297 xs = arg;
298 periph = xs
454 struct scsipi_xfer *xs = vr->vr_xs; local in function:vioscsi_req_done
505 vioscsi_bad_target(struct scsipi_xfer * xs) argument
[all...]
/src/sys/dev/usb/
H A Dusscanner.c452 struct scsipi_xfer *xs = sc->sc_xs; local in function:usscanner_sense
453 struct scsipi_periph *periph = xs->xs_periph;
461 sense_cmd.length = sizeof(xs->sense);
473 xs->error = XS_DRIVER_STUFFUP;
509 struct scsipi_xfer *xs = sc->sc_xs; local in function:usscanner_data_cb
522 xs->resid = xs->datalen - len;
526 xs->error = XS_NOERROR;
529 xs->error = XS_TIMEOUT;
532 if (xs
548 struct scsipi_xfer *xs = sc->sc_xs; local in function:usscanner_sensedata_cb
583 struct scsipi_xfer *xs = sc->sc_xs; local in function:usscanner_done
601 struct scsipi_xfer *xs = sc->sc_xs; local in function:usscanner_sensecmd_cb
644 struct scsipi_xfer *xs = sc->sc_xs; local in function:usscanner_cmd_cb
705 struct scsipi_xfer *xs; local in function:usscanner_scsipi_request
[all...]
H A Dumass_scsipi.c238 struct scsipi_xfer *xs; local in function:umass_scsipi_request
249 xs = arg;
250 periph = xs->xs_periph;
253 DPRINTFM(UDMASS_CMD, "sc %#jxp: %jd:%jd xs=%#jxp",
255 (uintptr_t)xs);
257 "poll=%jd)", xs->cmd->opcode, xs->datalen,
258 periph->periph_quirks, !!(xs->xs_control & XS_CTL_POLL));
261 show_scsipi_xs(xs);
263 show_scsipi_cmd(xs);
423 struct scsipi_xfer *xs = priv; local in function:umass_scsipi_cb
497 struct scsipi_xfer *xs = priv; local in function:umass_scsipi_sense_cb
[all...]
/src/sys/arch/bebox/stand/boot/
H A Dsiop.c103 struct scsi_xfer *xs)
108 htoc32((adp->clock_div << 24) | (xs->target << 16));
111 if (xs->cmd->opcode == SCSI_REQUEST_SENSE)
112 xfer->siop_tables.msg_out[0] = MSG_IDENTIFY(xs->lun, 0);
114 xfer->siop_tables.msg_out[0] = MSG_IDENTIFY(xs->lun, 1);
120 xfer->siop_tables.cmd.count = htoc32(xs->cmdlen);
121 xfer->siop_tables.cmd.addr = htoc32(local_to_PCI((u_long)xs->cmd));
122 if (xs->datalen != 0) {
123 xfer->siop_tables.data[0].count = htoc32(xs->datalen);
125 htoc32(local_to_PCI((u_long)xs
102 siop_setuptables(struct siop_adapter * adp,struct siop_xfer * xfer,struct scsi_xfer * xs) argument
130 siop_ma(struct siop_adapter * adp,struct scsi_xfer * xs) argument
170 siop_sdp(struct siop_adapter * adp,struct siop_xfer * xfer,struct scsi_xfer * xs,int offset) argument
224 siop_update_resid(struct siop_adapter * adp,struct siop_xfer * xfer,struct scsi_xfer * xs,int offset) argument
259 struct scsi_xfer *xs = NULL; local in function:siop_intr
492 siop_scsicmd_end(struct siop_adapter * adp,struct scsi_xfer * xs) argument
527 siop_scsi_request(struct siop_adapter * adp,struct scsi_xfer * xs) argument
624 siop_start(struct siop_adapter * adp,struct scsi_xfer * xs) argument
793 struct scsi_xfer xs; local in function:_scsi_inquire
822 scsi_request_sense(struct siop_adapter * adp,struct scsi_xfer * xs) argument
884 scsi_interpret_sense(struct siop_adapter * adp,struct scsi_xfer * xs) argument
1130 struct scsi_xfer xs; local in function:scsi_command
[all...]
/src/sys/arch/amiga/dev/
H A Dsci.c144 struct scsipi_xfer *xs; local in function:sci_scsipi_request
153 xs = arg;
155 periph = xs->xs_periph;
157 flags = xs->xs_control;
179 dev->sc_xs = xs;
203 struct scsipi_xfer *xs; local in function:sci_donextcmd
207 xs = dev->sc_xs;
208 periph = xs->xs_periph;
209 flags = xs->xs_control;
222 xs
237 struct scsipi_xfer *xs; local in function:sci_scsidone
351 struct scsipi_xfer *xs; local in function:scierror
597 scigo(struct sci_softc * dev,struct scsipi_xfer * xs) argument
[all...]
/src/sys/arch/newsmips/dev/
H A Dsc_wrap.c185 struct scsipi_xfer *xs; local in function:sc_scsipi_request
194 xs = arg;
195 periph = xs->xs_periph;
197 flags = xs->xs_control;
201 scb->xs = xs;
218 if (sc_poll(sc, target, xs->timeout)) {
220 if (sc_poll(sc, target, xs->timeout)) {
270 struct scsipi_xfer *xs; local in function:sc_sched
282 xs
354 struct scsipi_xfer *xs = scb->xs; local in function:sc_done
454 struct scsipi_xfer *xs = scb->xs; local in function:cxd1185_timeout
[all...]
/src/sys/dev/i2o/
H A Diopsp.c385 struct scsipi_xfer *xs; local in function:iopsp_scsipi_request
399 xs = arg;
400 periph = xs->xs_periph;
401 flags = xs->xs_control;
408 xs->error = XS_SELTIMEOUT;
409 scsipi_done(xs);
418 xs->error = XS_DRIVER_STUFFUP;
420 xs->error = XS_NOERROR;
422 scsipi_done(xs);
427 if (xs
533 struct scsipi_xfer *xs; local in function:iopsp_intr
[all...]
/src/sys/arch/evbppc/nintendo/dev/
H A Ddi.c245 di_sense(struct scsipi_xfer *xs, uint8_t skey, uint8_t asc, uint8_t ascq) argument
247 struct scsi_sense_data *sense = &xs->sense.scsi_sense;
249 xs->error = XS_SENSE;
257 di_request_error_sync(struct di_softc *sc, struct scsipi_xfer *xs) argument
275 di_sense(xs, (imm >> 16) & 0xff, (imm >> 8) & 0xff, imm & 0xff);
279 di_transfer_error(struct di_softc *sc, struct scsipi_xfer *xs) argument
281 if (xs == NULL) {
288 di_request_error_sync(sc, xs);
290 scsipi_done(xs);
296 di_transfer_complete(struct di_softc *sc, struct scsipi_xfer *xs) argument
425 struct scsipi_xfer *xs = sc->sc_cur_xs; local in function:di_timeout
451 di_start_request(struct di_softc * sc,struct scsipi_xfer * xs) argument
502 di_stop_motor(struct di_softc * sc,struct scsipi_xfer * xs,bool eject) argument
525 struct scsipi_xfer *xs; local in function:di_request
[all...]
/src/sys/arch/sparc64/dev/
H A Dvdsk.c423 struct scsipi_xfer *xs; local in function:vdsk_scsipi_request
427 xs = arg;
431 vdsk_scsi_cmd(sc, xs);
771 struct scsipi_xfer *xs; local in function:vdsk_rx_vio_dring_data
776 xs = sc->sc_vsd[cons].vsd_xs;
777 if (ISSET(xs->xs_control, XS_CTL_POLL) == 0)
778 vdsk_complete_cmd(sc, xs, cons);
1028 vdsk_scsi_cmd(struct vdsk_softc *sc, struct scsipi_xfer *xs) argument
1033 DPRINTF(("vdsk_scsi_cmd() opcode %x\n", xs->cmd->opcode));
1035 switch (xs
1168 vdsk_submit_cmd(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1297 vdsk_complete_cmd(struct vdsk_softc * sc,struct scsipi_xfer * xs,int desc) argument
1329 vdsk_scsi_inq(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1335 vdsk_scsi_inquiry(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1370 vdsk_scsi_mode_sense(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1385 vdsk_scsi_mode_sense_10(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1391 vdsk_scsi_mode_select(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1397 vdsk_scsi_read_toc(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1403 vdsk_scsi_maintenance_in(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1409 vdsk_scsi_start_stop(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1415 vdsk_scsi_prevent_allow_medium_removal(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1421 vdsk_scsi_test_unit_ready(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1427 vdsk_scsi_capacity(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1450 vdsk_scsi_capacity16(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1471 vdsk_scsi_report_luns(struct vdsk_softc * sc,struct scsipi_xfer * xs) argument
1477 vdsk_scsi_done(struct scsipi_xfer * xs,int error) argument
[all...]
/src/tests/dev/scsipi/libscsitest/
H A Dscsitest.c83 sense_notready(struct scsipi_xfer *xs) argument
85 struct scsi_sense_data *sense = &xs->sense.scsi_sense;
87 xs->error = XS_SENSE;
103 struct scsipi_xfer *xs = arg; local in function:scsitest_request
104 struct scsipi_generic *cmd = xs->cmd;
112 //show_scsipi_xs(xs);
117 sense_notready(xs);
121 struct scsipi_inquiry_data *inqbuf = (void *)xs->data;
132 struct scsipi_read_cd_cap_data *ret = (void *)xs->data;
140 struct scsipi_read_discinfo_data *ret = (void *)xs
[all...]
/src/sys/dev/hyperv/
H A Dhvs.c437 #define XS2DMA(xs) \
438 ((((xs)->xs_control & XS_CTL_DATA_IN) ? BUS_DMA_READ : BUS_DMA_WRITE) | \
439 (((xs)->xs_control & XS_CTL_NOSLEEP) ? BUS_DMA_NOWAIT : BUS_DMA_WAITOK) | \
442 #define XS2DMAPRE(xs) (((xs)->xs_control & XS_CTL_DATA_IN) ? \
445 #define XS2DMAPOST(xs) (((xs)->xs_control & XS_CTL_DATA_IN) ? \
454 struct scsipi_xfer *xs; local in function:hvs_scsipi_request
485 xs = arg;
487 if (xs
737 fixup_inquiry(struct scsipi_xfer * xs,struct hvs_srb * srb) argument
773 struct scsipi_xfer *xs = ccb->ccb_xfer; local in function:hvs_scsi_cmd_done
840 hvs_scsi_done(struct scsipi_xfer * xs,int error) argument
[all...]
/src/sys/dev/eisa/
H A Dahb.c298 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; local in function:ahb_done
535 SC_DEBUG(xs
788 struct scsipi_xfer *xs; local in function:ahb_scsipi_request
971 ahb_poll(struct ahb_softc * sc,struct scsipi_xfer * xs,int count) argument
995 struct scsipi_xfer *xs = ecb->xs; local in function:ahb_timeout
[all...]
/src/sys/dev/isa/
H A Dwds.c453 callout_stop(&scb->xs->xs_callout);
749 callout_reset(&scb->xs->xs_callout,
766 struct scsipi_xfer *xs = scb->xs; local in function:wds_done
771 if (xs == 0) {
780 if (xs->datalen) {
783 (xs->xs_control & XS_CTL_DATA_IN) ?
787 if (xs->error == XS_NOERROR) {
791 xs->resid = 0;
805 xs
1070 struct scsipi_xfer *xs; local in function:wds_scsipi_request
1273 wds_poll(struct wds_softc * sc,struct scsipi_xfer * xs,int count) argument
1323 struct scsipi_xfer *xs = scb->xs; local in function:wds_timeout
[all...]

Completed in 27 milliseconds

12345678