Lines Matching defs:scbus
132 struct umass_scsipi_softc *scbus;
136 scbus = umass_scsipi_setup(sc);
138 scbus->sc_channel.chan_bustype = &scsi_bustype;
139 scbus->sc_channel.chan_ntargets = 2;
140 scbus->sc_channel.chan_nluns = sc->maxlun + 1;
141 scbus->sc_channel.chan_id = scbus->sc_channel.chan_ntargets - 1;
144 scbus->base.sc_child =
145 config_found(sc->sc_dev, &scbus->sc_channel, scsiprint,
154 struct umass_scsipi_softc *scbus = (struct umass_scsipi_softc *)sc->bus;
156 kmem_free(scbus, sizeof(*scbus));
166 struct umass_scsipi_softc *scbus;
170 scbus = umass_scsipi_setup(sc);
171 scbus->sc_atapi_adapter.atapi_probe_device = umass_atapi_probe_device;
173 scbus->sc_channel.chan_bustype = &umass_atapi_bustype;
174 scbus->sc_channel.chan_ntargets = 2;
175 scbus->sc_channel.chan_nluns = 1;
177 scbus->sc_channel.chan_defquirks |= sc->sc_busquirks;
180 scbus->base.sc_child =
181 config_found(sc->sc_dev, &scbus->sc_channel, atapiprint,
190 struct umass_scsipi_softc *scbus = (struct umass_scsipi_softc *)sc->bus;
192 kmem_free(scbus, sizeof(*scbus));
200 struct umass_scsipi_softc *scbus;
202 scbus = kmem_zalloc(sizeof(*scbus), KM_SLEEP);
203 sc->bus = &scbus->base;
210 memset(&scbus->sc_adapter, 0, sizeof(scbus->sc_adapter));
211 scbus->sc_adapter.adapt_dev = sc->sc_dev;
212 scbus->sc_adapter.adapt_nchannels = 1;
213 scbus->sc_adapter.adapt_request = umass_scsipi_request;
214 scbus->sc_adapter.adapt_minphys = umass_scsipi_minphys;
215 scbus->sc_adapter.adapt_ioctl = umass_scsipi_ioctl;
216 scbus->sc_adapter.adapt_getgeom = umass_scsipi_getgeom;
217 scbus->sc_adapter.adapt_flags = SCSIPI_ADAPT_MPSAFE;
220 memset(&scbus->sc_channel, 0, sizeof(scbus->sc_channel));
221 scbus->sc_channel.chan_adapter = &scbus->sc_adapter;
222 scbus->sc_channel.chan_channel = 0;
223 scbus->sc_channel.chan_flags = SCSIPI_CHAN_OPENINGS | SCSIPI_CHAN_NOSETTLE;
224 scbus->sc_channel.chan_openings = 1;
225 scbus->sc_channel.chan_max_periph = 1;
226 scbus->sc_channel.chan_defquirks |= sc->sc_busquirks;
228 return scbus;
240 struct umass_scsipi_softc *scbus = (struct umass_scsipi_softc *)sc->bus;
308 scbus->sc_sync_status = USBD_INVAL;
315 scbus->sc_sync_status, 0, 0, 0);
316 switch (scbus->sc_sync_status) {
369 /*struct umass_scsipi_softc *scbus = sc->bus;*/
422 struct umass_scsipi_softc *scbus = (struct umass_scsipi_softc *)sc->bus;
448 memset(&scbus->sc_sense_cmd, 0, sizeof(scbus->sc_sense_cmd));
449 scbus->sc_sense_cmd.opcode = SCSI_REQUEST_SENSE;
450 scbus->sc_sense_cmd.byte2 = periph->periph_lun <<
457 cmdlen = sizeof(scbus->sc_sense_cmd);
462 scbus->sc_sense_cmd.length = senselen;
464 &scbus->sc_sense_cmd, cmdlen,