Home
last modified time | relevance | path

Searched refs:periph_flags (Results 1 – 22 of 22) sorted by relevance

/netbsd/src/sys/dev/scsipi/
Datapi_base.c94 if ((periph->periph_flags & PERIPH_REMOVABLE) != 0) in atapi_interpret_sense()
95 periph->periph_flags &= ~PERIPH_MEDIA_LOADED; in atapi_interpret_sense()
121 if ((periph->periph_flags & PERIPH_REMOVABLE) != 0) in atapi_interpret_sense()
122 periph->periph_flags &= ~PERIPH_MEDIA_LOADED; in atapi_interpret_sense()
126 (periph->periph_flags & PERIPH_REMOVABLE) == 0) in atapi_interpret_sense()
Dscsipi_base.c495 if (periph->periph_flags & PERIPH_SENSE) { in scsipi_get_xs()
499 if ((periph->periph_flags & in scsipi_get_xs()
502 periph->periph_flags |= PERIPH_RECOVERY_ACTIVE; in scsipi_get_xs()
507 (periph->periph_flags & PERIPH_RECOVERING) != 0) in scsipi_get_xs()
520 periph->periph_flags |= PERIPH_WAITING; in scsipi_get_xs()
535 periph->periph_flags &= ~PERIPH_RECOVERY_ACTIVE; in scsipi_get_xs()
588 if ((periph->periph_flags & PERIPH_RECOVERY_ACTIVE) != 0 && in scsipi_put_xs()
598 periph->periph_flags &= ~PERIPH_RECOVERY_ACTIVE; in scsipi_put_xs()
602 (periph->periph_flags & PERIPH_WAITDRAIN) != 0) { in scsipi_put_xs()
603 periph->periph_flags &= ~PERIPH_WAITDRAIN; in scsipi_put_xs()
[all …]
Dss.c259 if (periph->periph_flags & PERIPH_OPEN) { in ssopen()
280 periph->periph_flags |= PERIPH_OPEN; /* unit attn now errors */ in ssopen()
295 periph->periph_flags &= ~PERIPH_OPEN; in ssopen()
329 periph->periph_flags &= ~PERIPH_OPEN; in ssclose()
401 if (periph->periph_flags & PERIPH_OPEN) in ssstrategy()
470 if (periph->periph_flags & PERIPH_WAITING) { in ssstart()
471 periph->periph_flags &= ~PERIPH_WAITING; in ssstart()
Dsd.c316 periph->periph_flags |= PERIPH_GROW_OPENINGS; in sdattach()
479 removable = (periph->periph_flags & PERIPH_REMOVABLE) != 0; in sd_firstopen()
490 if ((periph->periph_flags & PERIPH_MEDIA_LOADED) == 0) { in sd_firstopen()
506 periph->periph_flags |= PERIPH_MEDIA_LOADED; in sd_firstopen()
511 periph->periph_flags |= PERIPH_OPEN; in sd_firstopen()
558 if ((periph->periph_flags & (PERIPH_OPEN | PERIPH_MEDIA_LOADED)) == in sdopen()
597 if (periph->periph_flags & PERIPH_REMOVABLE) in sd_lastclose()
602 periph->periph_flags &= ~PERIPH_OPEN; in sd_lastclose()
648 if ((periph->periph_flags & PERIPH_MEDIA_LOADED) == 0 || in sdstrategy()
650 if (periph->periph_flags & PERIPH_OPEN) in sdstrategy()
[all …]
Dscsi_base.c223 if ((periph->periph_flags & PERIPH_MODE_VALID) == 0 || in scsi_async_event_xfer_mode()
232 periph->periph_flags |= PERIPH_MODE_VALID; in scsi_async_event_xfer_mode()
266 if ((periph->periph_flags & PERIPH_MODE_VALID) == 0 || in scsi_fc_sas_async_event_xfer_mode()
271 periph->periph_flags |= PERIPH_MODE_VALID; in scsi_fc_sas_async_event_xfer_mode()
Duk.c160 if (periph->periph_flags & PERIPH_OPEN) { in ukopen()
167 periph->periph_flags |= PERIPH_OPEN; in ukopen()
185 periph->periph_flags &= ~PERIPH_OPEN; in ukclose()
Dst.c560 if (periph->periph_flags & PERIPH_OPEN) { in stopen()
656 oflags = periph->periph_flags; in stopen()
657 periph->periph_flags |= PERIPH_OPEN; in stopen()
661 periph->periph_flags = oflags; /* restore flags */ in stopen()
679 periph->periph_flags |= PERIPH_OPEN; in stopen()
692 periph->periph_flags |= PERIPH_OPEN; /* unit attn are now errors */ in stopen()
700 (periph->periph_flags & PERIPH_MEDIA_LOADED) == 0) in stopen()
723 periph->periph_flags &= ~PERIPH_OPEN; in stopen()
794 if ((periph->periph_flags & PERIPH_MEDIA_LOADED) == 0) { in stclose()
835 periph->periph_flags &= ~PERIPH_OPEN; in stclose()
[all …]
Dch.c282 if (periph->periph_flags & PERIPH_OPEN) in chopen()
300 periph->periph_flags |= PERIPH_OPEN; in chopen()
312 periph->periph_flags &= ~PERIPH_OPEN; in chopen()
329 periph->periph_flags &= ~PERIPH_OPEN; in chclose()
417 sc->sc_periph->periph_flags |= PERIPH_MEDIA_LOADED; in chioctl()
532 if (periph->periph_flags & PERIPH_RECOVERING) in ch_interpret_sense()
558 sc->sc_periph->periph_flags &= ~PERIPH_MEDIA_LOADED; in ch_interpret_sense()
1226 if ((sc->sc_periph->periph_flags & PERIPH_MEDIA_LOADED) == 0) in ch_get_params()
1229 sc->sc_periph->periph_flags |= PERIPH_MEDIA_LOADED; in ch_get_params()
1231 sc->sc_periph->periph_flags &= ~PERIPH_MEDIA_LOADED; in ch_get_params()
Dcd.c324 periph->periph_flags |= PERIPH_GROW_OPENINGS; in cdattach()
440 if ((periph->periph_flags & PERIPH_MEDIA_LOADED) == 0) { in cd_firstopen()
449 periph->periph_flags |= PERIPH_MEDIA_LOADED; in cd_firstopen()
459 periph->periph_flags |= PERIPH_OPEN; in cd_firstopen()
504 if ((periph->periph_flags & (PERIPH_OPEN | PERIPH_MEDIA_LOADED)) == in cdopen()
529 (periph->periph_flags & PERIPH_MEDIA_LOADED) == 0) in cd_lastclose()
542 periph->periph_flags &= ~PERIPH_OPEN; in cd_lastclose()
724 if ((periph->periph_flags & PERIPH_MEDIA_LOADED) == 0) { in cdstrategy()
725 if (periph->periph_flags & PERIPH_OPEN) in cdstrategy()
789 if (periph->periph_flags & PERIPH_WAITING) { in cd_diskstart()
[all …]
Dst_atapi.c174 periph->periph_flags |= PERIPH_MEDIA_LOADED; in st_atapibus_mode_sense()
Dscsipiconf.h413 int periph_flags; /* misc. flags */ member
447 (((periph)->periph_flags & PERIPH_MODE_VALID) ? \
Dst_scsi.c224 periph->periph_flags |= PERIPH_MEDIA_LOADED; in st_scsibus_mode_sense()
Dif_se.c1217 periph->periph_flags |= PERIPH_OPEN; in seopen()
1239 periph->periph_flags &= ~PERIPH_OPEN; in seclose()
Dif_dse.c1356 periph->periph_flags |= PERIPH_OPEN; in dseopen()
1380 periph->periph_flags &= ~PERIPH_OPEN; in dseclose()
Dscsiconf.c949 periph->periph_flags |= PERIPH_REMOVABLE; in scsi_probe_device()
Datapi_wdc.c310 periph->periph_flags |= PERIPH_REMOVABLE; in wdc_atapi_probe_device()
/netbsd/src/sys/dev/usb/
Dusscanner.c608 xs->xs_periph->periph_flags |= 1; /* XXX 1 */ in usscanner_sensecmd_cb()
652 xs->xs_periph->periph_flags |= 1; /* XXX 1 */ in usscanner_cmd_cb()
Dumass_scsipi.c578 periph->periph_flags |= PERIPH_REMOVABLE; in umass_atapi_probe_device()
/netbsd/src/sys/arch/usermode/dev/
Dvatapi.c243 periph->periph_flags |= PERIPH_REMOVABLE; in vatapi_probe_device()
/netbsd/src/sys/dev/ic/
Dsiisata.c1667 periph->periph_flags |= PERIPH_REMOVABLE; in siisata_atapi_probe_device()
Dahcisata_core.c2156 periph->periph_flags |= PERIPH_REMOVABLE; in ahci_atapi_probe_device()
Dmvsata.c809 periph->periph_flags |= PERIPH_REMOVABLE; in mvsata_atapi_probe_device()