Lines Matching defs:scbus

125 	struct umass_scsipi_softc *scbus;
127 scbus = umass_scsipi_setup(sc);
129 scbus->sc_channel.chan_bustype = &scsi_bustype;
130 scbus->sc_channel.chan_ntargets = 2;
131 scbus->sc_channel.chan_nluns = sc->maxlun + 1;
132 scbus->sc_channel.chan_id = scbus->sc_channel.chan_ntargets - 1;
137 scbus->base.sc_child =
138 config_found_ia(sc->sc_dev, "scsi", &scbus->sc_channel,
151 struct umass_scsipi_softc *scbus;
153 scbus = umass_scsipi_setup(sc);
154 scbus->sc_atapi_adapter.atapi_probe_device = umass_atapi_probe_device;
156 scbus->sc_channel.chan_bustype = &umass_atapi_bustype;
157 scbus->sc_channel.chan_ntargets = 2;
158 scbus->sc_channel.chan_nluns = 1;
160 scbus->sc_channel.chan_defquirks |= sc->sc_busquirks;
165 scbus->base.sc_child =
166 config_found_ia(sc->sc_dev, "atapi", &scbus->sc_channel,
178 struct umass_scsipi_softc *scbus;
180 scbus = malloc(sizeof *scbus, M_DEVBUF, M_WAITOK | M_ZERO);
181 sc->bus = &scbus->base;
187 memset(&scbus->sc_adapter, 0, sizeof(scbus->sc_adapter));
188 scbus->sc_adapter.adapt_dev = sc->sc_dev;
189 scbus->sc_adapter.adapt_nchannels = 1;
190 scbus->sc_adapter.adapt_request = umass_scsipi_request;
191 scbus->sc_adapter.adapt_minphys = umass_scsipi_minphys;
192 scbus->sc_adapter.adapt_ioctl = umass_scsipi_ioctl;
193 scbus->sc_adapter.adapt_getgeom = umass_scsipi_getgeom;
196 memset(&scbus->sc_channel, 0, sizeof(scbus->sc_channel));
197 scbus->sc_channel.chan_adapter = &scbus->sc_adapter;
198 scbus->sc_channel.chan_channel = 0;
199 scbus->sc_channel.chan_flags = SCSIPI_CHAN_OPENINGS | SCSIPI_CHAN_NOSETTLE;
200 scbus->sc_channel.chan_openings = 1;
201 scbus->sc_channel.chan_max_periph = 1;
202 scbus->sc_channel.chan_defquirks |= sc->sc_busquirks;
204 return (scbus);
215 struct umass_scsipi_softc *scbus = (struct umass_scsipi_softc *)sc->bus;
286 scbus->sc_sync_status = USBD_INVAL;
293 scbus->sc_sync_status));
294 switch (scbus->sc_sync_status) {
349 /*struct umass_scsipi_softc *scbus = sc->bus;*/
395 struct umass_scsipi_softc *scbus = (struct umass_scsipi_softc *)sc->bus;
422 memset(&scbus->sc_sense_cmd, 0, sizeof(scbus->sc_sense_cmd));
423 scbus->sc_sense_cmd.opcode = SCSI_REQUEST_SENSE;
424 scbus->sc_sense_cmd.byte2 = periph->periph_lun <<
431 cmdlen = sizeof(scbus->sc_sense_cmd);
436 scbus->sc_sense_cmd.length = senselen;
438 &scbus->sc_sense_cmd, cmdlen,