HomeSort by: relevance | last modified time | path
    Searched refs:xs (Results 1 - 25 of 191) sorted by relevancy

1 2 3 4 5 6 7 8

  /src/bin/ksh/
expand.h 19 #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).beg;
    [all...]
  /src/sys/dev/scsipi/
atapi_base.c 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
    [all...]
scsipi_base.h 62 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->timeout = timeout
    [all...]
scsipi_base.c 69 "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*/);
453 struct scsipi_xfer *xs; local in function:scsipi_get_xs
2105 struct scsipi_xfer *xs; local in function:scsipi_run_queue
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
    [all...]
  /src/sys/dev/ic/
icpsp.c 133 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->cmd, xs->cmdlen)
273 struct scsipi_xfer *xs; local in function:icpsp_intr
    [all...]
isp_netbsd.h 218 #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)->cmd
    [all...]
uha.c 319 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->error = XS_SENSE
400 struct scsipi_xfer *xs; local in function:uha_scsipi_request
577 struct scsipi_xfer *xs = mscp->xs; local in function:uha_timeout
    [all...]
adv.c 315 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->cmd->opcode
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...]
adw.c 351 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
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...]
aic7xxx_osm.c 58 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->xs_callout
337 struct scsipi_xfer *xs; local in function:ahc_action
521 struct scsipi_xfer *xs; local in function:ahc_execute_scb
    [all...]
aic79xx_osm.c 60 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->xs_periph)
333 struct scsipi_xfer *xs; local in function:ahd_action
531 struct scsipi_xfer *xs; local in function:ahd_execute_scb
    [all...]
  /src/sys/arch/prep/stand/boot/
siop.c 99 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->data))
236 struct scsi_xfer *xs = NULL; local in function:siop_intr
772 struct scsi_xfer xs; local in function:_scsi_inquire
1092 struct scsi_xfer xs; local in function:scsi_command
    [all...]
  /src/sys/dev/usb/
usscanner.c 452 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->error == XS_SENSE)
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...]
umass_scsipi.c 238 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/dev/pci/
vioscsi.c 252 #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->xs_periph
454 struct scsipi_xfer *xs = vr->vr_xs; local in function:vioscsi_req_done
    [all...]
  /src/sys/arch/bebox/stand/boot/
siop.c 103 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->data))
259 struct scsi_xfer *xs = NULL; local in function:siop_intr
793 struct scsi_xfer xs; local in function:_scsi_inquire
1130 struct scsi_xfer xs; local in function:scsi_command
    [all...]
  /src/sys/arch/amiga/dev/
sci.c 144 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->cmd->bytes[0] |= periph->periph_lun << 5
237 struct scsipi_xfer *xs; local in function:sci_scsidone
351 struct scsipi_xfer *xs; local in function:scierror
    [all...]
  /src/sys/arch/newsmips/dev/
sc_wrap.c 185 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 = scb->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/
iopsp.c 385 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->cmdlen > sizeof(mf->cdb)
533 struct scsipi_xfer *xs; local in function:iopsp_intr
    [all...]
  /src/sys/arch/evbppc/wii/dev/
di.c 244 di_sense(struct scsipi_xfer *xs, uint8_t skey, uint8_t asc, uint8_t ascq)
246 struct scsi_sense_data *sense = &xs->sense.scsi_sense;
248 xs->error = XS_SENSE;
256 di_request_error_sync(struct di_softc *sc, struct scsipi_xfer *xs)
274 di_sense(xs, (imm >> 16) & 0xff, (imm >> 8) & 0xff, imm & 0xff);
278 di_transfer_error(struct di_softc *sc, struct scsipi_xfer *xs)
280 if (xs == NULL) {
287 di_request_error_sync(sc, xs);
289 scsipi_done(xs);
295 di_transfer_complete(struct di_softc *sc, struct scsipi_xfer *xs)
424 struct scsipi_xfer *xs = sc->sc_cur_xs; local in function:di_timeout
524 struct scsipi_xfer *xs; local in function:di_request
    [all...]
  /src/sys/arch/sparc64/dev/
vdsk.c 423 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)
1033 DPRINTF(("vdsk_scsi_cmd() opcode %x\n", xs->cmd->opcode));
1035 switch (xs->cmd->opcode)
    [all...]
  /src/tests/dev/scsipi/libscsitest/
scsitest.c 83 sense_notready(struct scsipi_xfer *xs)
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->data
    [all...]
  /src/sys/dev/hyperv/
hvs.c 437 #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->cmdlen > MAX_SRB_DATA)
773 struct scsipi_xfer *xs = ccb->ccb_xfer; local in function:hvs_scsi_cmd_done
    [all...]
  /src/sys/dev/eisa/
ahb.c 298 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->xs_periph, SCSIPI_DB2, ("ahb_done\n"))
788 struct scsipi_xfer *xs; local in function:ahb_scsipi_request
995 struct scsipi_xfer *xs = ecb->xs; local in function:ahb_timeout
    [all...]
  /src/sys/dev/isa/
wds.c 453 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->error = XS_DRIVER_STUFFUP
1070 struct scsipi_xfer *xs; local in function:wds_scsipi_request
1323 struct scsipi_xfer *xs = scb->xs; local in function:wds_timeout
    [all...]

Completed in 22 milliseconds

1 2 3 4 5 6 7 8