/netbsd/tests/dev/scsipi/libscsitest/ |
H A D | scsitest.c | 62 struct scsipi_adapter sc_adapter; member 242 memset(&sc->sc_adapter, 0, sizeof(sc->sc_adapter)); in scsitest_attach() 243 sc->sc_adapter.adapt_nchannels = 1; in scsitest_attach() 244 sc->sc_adapter.adapt_request = scsitest_request; in scsitest_attach() 245 sc->sc_adapter.adapt_minphys = minphys; in scsitest_attach() 246 sc->sc_adapter.adapt_dev = self; in scsitest_attach() 247 sc->sc_adapter.adapt_max_periph = 1; in scsitest_attach() 248 sc->sc_adapter.adapt_openings = 1; in scsitest_attach() 256 sc->sc_channel.chan_adapter = &sc->sc_adapter; in scsitest_attach()
|
/netbsd/sys/arch/amiga/dev/ |
H A D | zssc.c | 127 sc->sc_adapter.adapt_dev = self; in zsscattach() 128 sc->sc_adapter.adapt_nchannels = 1; in zsscattach() 129 sc->sc_adapter.adapt_openings = 7; in zsscattach() 130 sc->sc_adapter.adapt_max_periph = 1; in zsscattach() 131 sc->sc_adapter.adapt_ioctl = NULL; in zsscattach() 132 sc->sc_adapter.adapt_minphys = siop_minphys; in zsscattach() 133 sc->sc_adapter.adapt_request = siop_scsipi_request; in zsscattach() 135 sc->sc_channel.chan_adapter = &sc->sc_adapter; in zsscattach()
|
/netbsd/sys/arch/acorn32/podulebus/ |
H A D | asc.c | 218 sbic->sc_adapter.adapt_dev = self; in ascattach() 219 sbic->sc_adapter.adapt_nchannels = 1; in ascattach() 220 sbic->sc_adapter.adapt_openings = 7; in ascattach() 221 sbic->sc_adapter.adapt_max_periph = 1; in ascattach() 222 sbic->sc_adapter.adapt_ioctl = NULL; in ascattach() 223 sbic->sc_adapter.adapt_minphys = asc_minphys; in ascattach() 224 sbic->sc_adapter.adapt_request = sbic_scsi_request; in ascattach() 226 sbic->sc_channel.chan_adapter = &sbic->sc_adapter; in ascattach() 245 sbic->sc_adapter.adapt_flags |= SCSIPI_ADAPT_POLL_ONLY; in ascattach()
|
H A D | csc.c | 157 sc->sc_softc.sc_adapter.adapt_dev = self; in cscattach() 158 sc->sc_softc.sc_adapter.adapt_nchannels = 1; in cscattach() 159 sc->sc_softc.sc_adapter.adapt_openings = 7; in cscattach() 160 sc->sc_softc.sc_adapter.adapt_max_periph = 1; in cscattach() 161 sc->sc_softc.sc_adapter.adapt_ioctl = NULL; in cscattach() 162 sc->sc_softc.sc_adapter.adapt_minphys = sfas_minphys; in cscattach() 163 sc->sc_softc.sc_adapter.adapt_request = sfas_scsi_request; in cscattach() 165 sc->sc_softc.sc_channel.chan_adapter = &sc->sc_softc.sc_adapter; in cscattach() 195 sc->sc_softc.sc_adapter.adapt_flags |= SCSIPI_ADAPT_POLL_ONLY; in cscattach()
|
H A D | cosc.c | 229 sc->sc_softc.sc_adapter.adapt_flags |= SCSIPI_ADAPT_POLL_ONLY; in coscattach() 239 sc->sc_softc.sc_adapter.adapt_dev = sc->sc_softc.sc_dev; in coscattach() 240 sc->sc_softc.sc_adapter.adapt_nchannels = 1; in coscattach() 241 sc->sc_softc.sc_adapter.adapt_openings = 7; in coscattach() 242 sc->sc_softc.sc_adapter.adapt_max_periph = 1; in coscattach() 243 sc->sc_softc.sc_adapter.adapt_ioctl = NULL; in coscattach() 244 sc->sc_softc.sc_adapter.adapt_minphys = esc_minphys; in coscattach() 245 sc->sc_softc.sc_adapter.adapt_request = esc_scsi_request; in coscattach() 247 sc->sc_softc.sc_channel.chan_adapter = &sc->sc_softc.sc_adapter; in coscattach()
|
H A D | ptsc.c | 199 sc->sc_softc.sc_adapter.adapt_dev = sc->sc_softc.sc_dev; in ptscattach() 200 sc->sc_softc.sc_adapter.adapt_nchannels = 1; in ptscattach() 201 sc->sc_softc.sc_adapter.adapt_openings = 7; in ptscattach() 202 sc->sc_softc.sc_adapter.adapt_max_periph = 1; in ptscattach() 203 sc->sc_softc.sc_adapter.adapt_ioctl = NULL; in ptscattach() 204 sc->sc_softc.sc_adapter.adapt_minphys = sfas_minphys; in ptscattach() 205 sc->sc_softc.sc_adapter.adapt_request = sfas_scsi_request; in ptscattach() 207 sc->sc_softc.sc_channel.chan_adapter = &sc->sc_softc.sc_adapter; in ptscattach() 234 sc->sc_softc.sc_adapter.adapt_flags = SCSIPI_ADAPT_POLL_ONLY; in ptscattach()
|
/netbsd/sys/arch/mvme68k/dev/ |
H A D | wdsc.c | 145 sc->sc_adapter.adapt_dev = self; in wdsc_pcc_attach() 146 sc->sc_adapter.adapt_nchannels = 1; in wdsc_pcc_attach() 147 sc->sc_adapter.adapt_openings = 7; in wdsc_pcc_attach() 148 sc->sc_adapter.adapt_max_periph = 1; in wdsc_pcc_attach() 149 sc->sc_adapter.adapt_ioctl = NULL; in wdsc_pcc_attach() 150 sc->sc_adapter.adapt_minphys = sbic_minphys; in wdsc_pcc_attach() 151 sc->sc_adapter.adapt_request = sbic_scsi_request; in wdsc_pcc_attach() 153 sc->sc_channel.chan_adapter = &sc->sc_adapter; in wdsc_pcc_attach()
|
/netbsd/sys/dev/ic/ |
H A D | icpsp.c | 60 struct scsipi_adapter sc_adapter; member 110 sc->sc_adapter.adapt_dev = sc->sc_dv; in icpsp_attach() 111 sc->sc_adapter.adapt_nchannels = 1; in icpsp_attach() 112 sc->sc_adapter.adapt_openings = icp->icp_openings; in icpsp_attach() 113 sc->sc_adapter.adapt_max_periph = icp->icp_openings; in icpsp_attach() 114 sc->sc_adapter.adapt_minphys = minphys; in icpsp_attach() 115 sc->sc_adapter.adapt_request = icpsp_scsipi_request; in icpsp_attach() 117 sc->sc_channel.chan_adapter = &sc->sc_adapter; in icpsp_attach() 335 sc->sc_adapter.adapt_openings += openings - sc->sc_openings; in icpsp_adjqparam()
|
H A D | aic79xx_osm.c | 85 ahd->sc_adapter.adapt_dev = ahd->sc_dev; in ahd_attach() 86 ahd->sc_adapter.adapt_nchannels = 1; in ahd_attach() 88 ahd->sc_adapter.adapt_openings = ahd->scb_data.numscbs - 1; in ahd_attach() 89 ahd->sc_adapter.adapt_max_periph = 32; in ahd_attach() 91 ahd->sc_adapter.adapt_ioctl = ahd_ioctl; in ahd_attach() 92 ahd->sc_adapter.adapt_minphys = ahd_minphys; in ahd_attach() 93 ahd->sc_adapter.adapt_request = ahd_action; in ahd_attach() 95 ahd->sc_channel.chan_adapter = &ahd->sc_adapter; in ahd_attach()
|
H A D | sunscpal.c | 2058 memset(&sc->sc_adapter, 0, sizeof(sc->sc_adapter)); in sunscpal_attach() 2059 sc->sc_adapter.adapt_dev = sc->sc_dev; in sunscpal_attach() 2060 sc->sc_adapter.adapt_nchannels = 1; in sunscpal_attach() 2061 sc->sc_adapter.adapt_openings = SUNSCPAL_OPENINGS; in sunscpal_attach() 2062 sc->sc_adapter.adapt_max_periph = 1; in sunscpal_attach() 2063 sc->sc_adapter.adapt_request = sunscpal_scsipi_request; in sunscpal_attach() 2064 sc->sc_adapter.adapt_minphys = sunscpal_minphys; in sunscpal_attach() 2066 sc->sc_adapter.adapt_flags |= SCSIPI_ADAPT_POLL_ONLY; in sunscpal_attach() 2068 sc->sc_channel.chan_adapter = &sc->sc_adapter; in sunscpal_attach() 2079 if (scsipi_adapter_addref(&sc->sc_adapter) != 0) { in sunscpal_attach() [all …]
|
H A D | aic7xxx_osm.c | 84 ahc->sc_adapter.adapt_dev = ahc->sc_dev; in ahc_attach() 85 ahc->sc_adapter.adapt_nchannels = (ahc->features & AHC_TWIN) ? 2 : 1; in ahc_attach() 87 ahc->sc_adapter.adapt_openings = ahc->scb_data->numscbs - 1; in ahc_attach() 88 ahc->sc_adapter.adapt_max_periph = 16; in ahc_attach() 90 ahc->sc_adapter.adapt_ioctl = ahc_ioctl; in ahc_attach() 91 ahc->sc_adapter.adapt_minphys = ahc_minphys; in ahc_attach() 92 ahc->sc_adapter.adapt_request = ahc_action; in ahc_attach() 94 ahc->sc_channel.chan_adapter = &ahc->sc_adapter; in ahc_attach()
|
/netbsd/sys/dev/usb/ |
H A D | umass_scsipi.c | 85 #define sc_adapter sc_atapi_adapter._generic macro 210 memset(&scbus->sc_adapter, 0, sizeof(scbus->sc_adapter)); in umass_scsipi_setup() 211 scbus->sc_adapter.adapt_dev = sc->sc_dev; in umass_scsipi_setup() 212 scbus->sc_adapter.adapt_nchannels = 1; in umass_scsipi_setup() 213 scbus->sc_adapter.adapt_request = umass_scsipi_request; in umass_scsipi_setup() 214 scbus->sc_adapter.adapt_minphys = umass_scsipi_minphys; in umass_scsipi_setup() 215 scbus->sc_adapter.adapt_ioctl = umass_scsipi_ioctl; in umass_scsipi_setup() 216 scbus->sc_adapter.adapt_getgeom = umass_scsipi_getgeom; in umass_scsipi_setup() 217 scbus->sc_adapter.adapt_flags = SCSIPI_ADAPT_MPSAFE; in umass_scsipi_setup() 221 scbus->sc_channel.chan_adapter = &scbus->sc_adapter; in umass_scsipi_setup()
|
H A D | usscanner.c | 133 struct scsipi_adapter sc_adapter; member 314 sc->sc_adapter.adapt_request = usscanner_scsipi_request; in usscanner_attach() 315 sc->sc_adapter.adapt_dev = sc->sc_dev; in usscanner_attach() 316 sc->sc_adapter.adapt_nchannels = 1; in usscanner_attach() 317 sc->sc_adapter.adapt_openings = 1; in usscanner_attach() 318 sc->sc_adapter.adapt_max_periph = 1; in usscanner_attach() 319 sc->sc_adapter.adapt_minphys = usscanner_scsipi_minphys; in usscanner_attach() 325 sc->sc_channel.chan_adapter = &sc->sc_adapter; in usscanner_attach()
|
/netbsd/sys/arch/newsmips/dev/ |
H A D | sc_wrap.c | 100 sc->sc_adapter.adapt_dev = self; in cxd1185_attach() 101 sc->sc_adapter.adapt_nchannels = 1; in cxd1185_attach() 102 sc->sc_adapter.adapt_openings = 7; in cxd1185_attach() 103 sc->sc_adapter.adapt_max_periph = 1; in cxd1185_attach() 104 sc->sc_adapter.adapt_ioctl = NULL; in cxd1185_attach() 105 sc->sc_adapter.adapt_minphys = minphys; in cxd1185_attach() 106 sc->sc_adapter.adapt_request = sc_scsipi_request; in cxd1185_attach() 109 sc->sc_channel.chan_adapter = &sc->sc_adapter; in cxd1185_attach()
|
/netbsd/sys/dev/i2o/ |
H A D | iopsp.c | 172 sc->sc_adapter.adapt_dev = sc->sc_dev; in iopsp_attach() 173 sc->sc_adapter.adapt_nchannels = 1; in iopsp_attach() 174 sc->sc_adapter.adapt_openings = 1; in iopsp_attach() 175 sc->sc_adapter.adapt_max_periph = 1; in iopsp_attach() 176 sc->sc_adapter.adapt_ioctl = iopsp_ioctl; in iopsp_attach() 177 sc->sc_adapter.adapt_minphys = minphys; in iopsp_attach() 178 sc->sc_adapter.adapt_request = iopsp_scsipi_request; in iopsp_attach() 181 sc->sc_channel.chan_adapter = &sc->sc_adapter; in iopsp_attach() 648 sc->sc_adapter.adapt_openings += mpi - sc->sc_openings; in iopsp_adjqparam()
|
/netbsd/sys/arch/newsmips/apbus/ |
H A D | spifi.c | 82 struct scsipi_adapter sc_adapter; member 189 sc->sc_adapter.adapt_dev = self; in spifi_attach() 190 sc->sc_adapter.adapt_nchannels = 1; in spifi_attach() 191 sc->sc_adapter.adapt_openings = 7; in spifi_attach() 192 sc->sc_adapter.adapt_max_periph = 1; in spifi_attach() 193 sc->sc_adapter.adapt_ioctl = NULL; in spifi_attach() 194 sc->sc_adapter.adapt_minphys = minphys; in spifi_attach() 195 sc->sc_adapter.adapt_request = spifi_scsipi_request; in spifi_attach() 198 sc->sc_channel.chan_adapter = &sc->sc_adapter; in spifi_attach()
|
/netbsd/sys/dev/pcmcia/ |
H A D | spc_pcmcia.c | 130 spc->sc_adapter.adapt_enable = spc_pcmcia_enable; in spc_pcmcia_attach() 131 spc->sc_adapter.adapt_refcnt = 1; in spc_pcmcia_attach() 137 scsipi_adapter_delref(&spc->sc_adapter); in spc_pcmcia_attach()
|
H A D | aic_pcmcia.c | 142 sc->sc_adapter.adapt_enable = aic_pcmcia_enable; in aic_pcmcia_attach() 143 sc->sc_adapter.adapt_refcnt = 1; in aic_pcmcia_attach() 146 scsipi_adapter_delref(&sc->sc_adapter); in aic_pcmcia_attach()
|
H A D | nca_pcmcia.c | 180 sc->sc_adapter.adapt_enable = nca_pcmcia_enable; in nca_pcmcia_attach() 181 sc->sc_adapter.adapt_refcnt = 1; in nca_pcmcia_attach() 184 scsipi_adapter_delref(&sc->sc_adapter); in nca_pcmcia_attach()
|
H A D | esp_pcmcia.c | 176 sc->sc_adapter.adapt_minphys = minphys; in esp_pcmcia_attach() 177 sc->sc_adapter.adapt_request = ncr53c9x_scsipi_request; in esp_pcmcia_attach() 178 sc->sc_adapter.adapt_enable = esp_pcmcia_enable; in esp_pcmcia_attach()
|
/netbsd/sys/dev/pci/ |
H A D | nca_pci.c | 118 sc->sc_adapter.adapt_request = ncr5380_scsipi_request; in nca_pci_attach() 119 sc->sc_adapter.adapt_minphys = minphys; in nca_pci_attach()
|
/netbsd/sys/arch/macppc/dev/ |
H A D | mesh.c | 102 struct scsipi_adapter sc_adapter; member 247 sc->sc_adapter.adapt_dev = self; in mesh_attach() 248 sc->sc_adapter.adapt_nchannels = 1; in mesh_attach() 249 sc->sc_adapter.adapt_openings = 7; in mesh_attach() 250 sc->sc_adapter.adapt_max_periph = 1; in mesh_attach() 251 sc->sc_adapter.adapt_ioctl = NULL; in mesh_attach() 252 sc->sc_adapter.adapt_minphys = mesh_minphys; in mesh_attach() 253 sc->sc_adapter.adapt_request = mesh_scsi_request; in mesh_attach() 255 sc->sc_channel.chan_adapter = &sc->sc_adapter; in mesh_attach()
|
/netbsd/sys/arch/pmax/ibus/ |
H A D | sii_ds.c | 113 sc->sc_adapter.adapt_request = sii_scsi_request; in sii_ds_attach() 114 sc->sc_adapter.adapt_minphys = minphys; in sii_ds_attach()
|
/netbsd/sys/arch/sparc64/dev/ |
H A D | vdsk.c | 140 struct scsipi_adapter sc_adapter; member 380 sc->sc_adapter.adapt_dev = sc->sc_dv; in vdsk_attach() 381 sc->sc_adapter.adapt_nchannels = 1; in vdsk_attach() 382 sc->sc_adapter.adapt_openings = sc->sc_vd->vd_nentries - 1; in vdsk_attach() 383 sc->sc_adapter.adapt_max_periph = sc->sc_vd->vd_nentries - 1; in vdsk_attach() 385 sc->sc_adapter.adapt_minphys = minphys; in vdsk_attach() 386 sc->sc_adapter.adapt_request = vdsk_scsipi_request; in vdsk_attach() 388 sc->sc_channel.chan_adapter = &sc->sc_adapter; in vdsk_attach()
|
/netbsd/sys/arch/sun3/dev/ |
H A D | esp.c | 240 sc->sc_adapter.adapt_minphys = minphys; in espattach() 241 sc->sc_adapter.adapt_request = ncr53c9x_scsipi_request; in espattach()
|