Lines Matching defs:dsc
105 struct spc_dio_softc *dsc = device_private(self);
106 struct spc_softc *sc = &dsc->sc_spc;
108 bus_space_tag_t iot = &dsc->sc_tag;
133 dsc->sc_dflags |= SCSI_DMA32;
145 dsc->sc_iohsc = iohsc;
146 dsc->sc_dq.dq_softc = dsc;
147 dsc->sc_dq.dq_start = spc_dio_dmago;
148 dsc->sc_dq.dq_done = spc_dio_dmastop;
164 struct spc_dio_softc *dsc = (struct spc_dio_softc *)sc;
166 dsc->sc_dq.dq_chan = DMA0 | DMA1;
167 dsc->sc_dflags |= SCSI_HAVEDMA;
169 dsc->sc_dflags |= SCSI_DATAIN;
171 dsc->sc_dflags &= ~SCSI_DATAIN;
173 if (dmareq(&dsc->sc_dq) != 0)
175 spc_dio_dmago(dsc);
182 struct spc_dio_softc *dsc = arg;
183 struct spc_softc *sc = &dsc->sc_spc;
192 iohsc = dsc->sc_iohsc;
198 chan = dsc->sc_dq.dq_chan;
199 if ((dsc->sc_dflags & SCSI_DATAIN) != 0) {
203 if ((dsc->sc_dflags & SCSI_DMA32) != 0 &&
223 if ((dsc->sc_dflags & SCSI_DATAIN) != 0)
243 struct spc_dio_softc *dsc = (struct spc_dio_softc *)sc;
251 iohsc = dsc->sc_iohsc;
264 if ((dsc->sc_dflags & SCSI_HAVEDMA) != 0) {
265 dmafree(&dsc->sc_dq);
266 dsc->sc_dflags &= ~SCSI_HAVEDMA;
289 struct spc_dio_softc *dsc = arg;
290 struct spc_softc *sc = &dsc->sc_spc;
294 cmd = bus_space_read_1(sc->sc_iot, dsc->sc_iohsc, HPSCSI_CSR);
296 bus_space_write_1(sc->sc_iot, dsc->sc_iohsc, HPSCSI_CSR, cmd);
298 dsc->sc_dflags &= ~SCSI_HAVEDMA;