Home | History | Annotate | Download | only in scsipi

Lines Matching defs:softc

224  * the softc available to set stuff in.
230 struct ses_softc *softc = device_private(self);
234 softc->sc_dev = self;
236 softc->sc_periph = periph;
241 softc->ses_type = ses_device_type(sa);
242 switch (softc->ses_type) {
246 softc->ses_vec.softc_init = ses_softc_init;
247 softc->ses_vec.init_enc = ses_init_enc;
248 softc->ses_vec.get_encstat = ses_get_encstat;
249 softc->ses_vec.set_encstat = ses_set_encstat;
250 softc->ses_vec.get_objstat = ses_get_objstat;
251 softc->ses_vec.set_objstat = ses_set_objstat;
254 softc->ses_vec.softc_init = safte_softc_init;
255 softc->ses_vec.init_enc = safte_init_enc;
256 softc->ses_vec.get_encstat = safte_get_encstat;
257 softc->ses_vec.set_encstat = safte_set_encstat;
258 softc->ses_vec.get_objstat = safte_get_objstat;
259 softc->ses_vec.set_objstat = safte_set_objstat;
268 switch (softc->ses_type) {
290 aprint_normal("\n%s: %s\n", device_xname(softc->sc_dev), tname);
307 struct ses_softc *softc;
311 softc = device_lookup_private(&ses_cd, unit);
312 if (softc == NULL)
315 if (softc->ses_flags & SES_FLAG_INVALID) {
319 if (softc->ses_flags & SES_FLAG_OPEN) {
323 if (softc->ses_vec.softc_init == NULL) {
328 softc->sc_periph->periph_channel->chan_adapter);
333 softc->ses_flags |= SES_FLAG_OPEN;
334 if ((softc->ses_flags & SES_FLAG_INITIALIZED) == 0) {
335 error = (*softc->ses_vec.softc_init)(softc, 1);
337 softc->ses_flags &= ~SES_FLAG_OPEN;
339 softc->ses_flags |= SES_FLAG_INITIALIZED;
350 struct ses_softc *softc;
354 softc = device_lookup_private(&ses_cd, unit);
355 if (softc == NULL)
358 scsipi_wait_drain(softc->sc_periph);
359 scsipi_adapter_delref(softc->sc_periph->periph_channel->chan_adapter);
360 softc->ses_flags &= ~SES_FLAG_OPEN;