| /src/sys/dev/scsipi/ |
| scsipi_debug.h | 71 #define SC_DEBUG(periph, flags, x) \ 73 if ((periph)->periph_dbflags & (flags)) { \ 74 scsipi_printaddr((periph)); \ 79 #define SC_DEBUGN(periph, flags, x) \ 81 if ((periph)->periph_dbflags & (flags)) \ 85 #define SC_DEBUG(periph, flags, x) /* nothing */ 86 #define SC_DEBUGN(periph, flags, x) /* nothing */
|
| scsi_base.c | 56 scsi_change_def(struct scsipi_periph *periph, int flags) 64 return (scsipi_command(periph, (void *)&cmd, sizeof(cmd), 0, 0, 77 struct scsipi_periph *periph = xs->xs_periph; local 79 SC_DEBUG(periph, SCSIPI_DB2, ("scsi_scsipi_cmd\n")); 85 if (periph->periph_version <= 2) 87 ((periph->periph_lun << SCSI_CMD_LUN_SHIFT) & 96 * Print out the periph's address info. 99 scsi_print_addr(struct scsipi_periph *periph) 101 struct scsipi_channel *chan = periph->periph_channel; 104 printf("%s(%s:%d:%d:%d): ", periph->periph_dev != NULL 198 struct scsipi_periph *periph; local 249 struct scsipi_periph *periph; local [all...] |
| scsipiconf.c | 91 scsipi_command(struct scsipi_periph *periph, struct scsipi_generic *cmd, 101 xs = scsipi_make_xs_unlocked(periph, cmd, cmdlen, data_addr, datalen, retries, 106 mutex_enter(chan_mtx(periph->periph_channel)); 108 mutex_exit(chan_mtx(periph->periph_channel)); 129 struct scsipi_periph *periph; local 132 periph = malloc(sizeof(*periph), M_DEVBUF, malloc_flag|M_ZERO); 133 if (periph == NULL) 136 periph->periph_dev = NULL; 137 periph->periph_opcs = NULL [all...] |
| scsipi_ioctl.c | 135 struct scsipi_periph *periph = xs->xs_periph; local 140 scsipi_printaddr(periph); 148 scsipi_printaddr(periph); 162 SC_DEBUG(periph, SCSIPI_DB3, ("no error\n")); 168 SC_DEBUG(periph, SCSIPI_DB3, ("have sense\n")); 176 SC_DEBUG(periph, SCSIPI_DB3, ("have short sense\n")); 184 scsipi_printaddr(periph); 189 SC_DEBUG(periph, SCSIPI_DB3, ("seltimeout\n")); 193 SC_DEBUG(periph, SCSIPI_DB3, ("timeout\n")); 197 SC_DEBUG(periph, SCSIPI_DB3, ("busy\n")) 236 struct scsipi_periph *periph; local [all...] |
| atapi_base.c | 60 struct scsipi_periph *periph = xs->xs_periph; local 69 if (periph->periph_switch->psw_error != NULL) { 70 SC_DEBUG(periph, SCSIPI_DB2, 72 error = (*periph->periph_switch->psw_error)(xs); 94 if ((periph->periph_flags & PERIPH_REMOVABLE) != 0) 95 periph->periph_flags &= ~PERIPH_MEDIA_LOADED; 121 if ((periph->periph_flags & PERIPH_REMOVABLE) != 0) 122 periph->periph_flags &= ~PERIPH_MEDIA_LOADED; 126 (periph->periph_flags & PERIPH_REMOVABLE) == 0) 170 scsipi_printaddr(periph); 212 struct scsipi_periph *periph = xs->xs_periph; local [all...] |
| scsipi_base.c | 221 * Insert a periph into the channel. 224 scsipi_insert_periph(struct scsipi_channel *chan, struct scsipi_periph *periph) 228 hash = scsipi_chan_periph_hash(periph->periph_target, 229 periph->periph_lun); 232 LIST_INSERT_HEAD(&chan->chan_periphtab[hash], periph, periph_hash); 239 * Remove a periph from the channel. 243 struct scsipi_periph *periph) 246 LIST_REMOVE(periph, periph_hash); 252 * Lookup a periph on the specified channel. 257 struct scsipi_periph *periph; local 379 struct scsipi_periph *periph = xs->xs_periph; local 425 struct scsipi_periph *periph = xs->xs_periph; local 576 struct scsipi_periph *periph = xs->xs_periph; local 760 struct scsipi_periph *periph = arg; local 883 struct scsipi_periph *periph = xs->xs_periph; local 1607 struct scsipi_periph *periph = xs->xs_periph; local 1761 struct scsipi_periph *periph = xs->xs_periph; local 1984 struct scsipi_periph *periph = xs->xs_periph; local 2106 struct scsipi_periph *periph; local 2216 struct scsipi_periph *periph = xs->xs_periph; local 2537 struct scsipi_periph *periph; local 2621 struct scsipi_periph *periph; local 2667 struct scsipi_periph *periph; local [all...] |
| uk.c | 108 struct scsipi_periph *periph = sa->sa_periph; local 110 SC_DEBUG(periph, SCSIPI_DB2, ("ukattach: ")); 114 uk->sc_periph = periph; 115 periph->periph_dev = uk->sc_dev; 144 struct scsipi_periph *periph; local 152 periph = uk->sc_periph; 153 adapt = periph->periph_channel->chan_adapter; 155 SC_DEBUG(periph, SCSIPI_DB1, 160 if (periph->periph_flags & PERIPH_OPEN) { 167 periph->periph_flags |= PERIPH_OPEN 177 struct scsipi_periph *periph = uk->sc_periph; local [all...] |
| ss.c | 162 struct scsipi_periph *periph = sa->sa_periph; local 164 SC_DEBUG(periph, SCSIPI_DB2, ("ssattach: ")); 170 ss->sc_periph = periph; 171 periph->periph_dev = ss->sc_dev; 172 periph->periph_switch = &ss_switch; 185 SC_DEBUG(periph, SCSIPI_DB2, ("ssattach:\n")); 202 struct scsipi_periph *periph = ss->sc_periph; local 203 struct scsipi_channel *chan = periph->periph_channel; 218 scsipi_kill_pending(periph); 239 struct scsipi_periph *periph; local 307 struct scsipi_periph *periph = ss->sc_periph; local 342 struct scsipi_periph *periph = ss->sc_periph; local 392 struct scsipi_periph *periph = ss->sc_periph; local 492 struct scsipi_periph *periph = v; local [all...] |
| scsipi_base.h | 58 scsipi_make_xs_internal(struct scsipi_periph *periph, struct scsipi_generic *cmd, 64 if ((xs = scsipi_get_xs(periph, flags)) == NULL) 84 scsipi_make_xs_unlocked(struct scsipi_periph *periph, struct scsipi_generic *cmd, 89 return scsipi_make_xs_internal(periph, cmd, cmdlen, data_addr, 94 scsipi_make_xs_locked(struct scsipi_periph *periph, struct scsipi_generic *cmd, 99 KDASSERT(mutex_owned(chan_mtx(periph->periph_channel))); 100 return scsipi_make_xs_internal(periph, cmd, cmdlen, data_addr,
|
| scsiconf.c | 179 * per periph and don't use the tag (they eventually allocate one 342 struct scsipi_periph *periph; local 350 periph = scsipi_alloc_periph(M_WAITOK); 351 periph->periph_channel = chan; 352 periph->periph_switch = &scsi_probe_dev; 354 periph->periph_target = target; 355 periph->periph_lun = 0; 356 periph->periph_quirks = chan->chan_defquirks; 358 if ((error = scsipi_inquire(periph, &inqbuf, 361 periph->periph_version = inqbuf.version & SID_ANSII 524 struct scsipi_periph *periph; local 881 struct scsipi_periph *periph; local [all...] |
| sd.c | 257 struct scsipi_periph *periph = sa->sa_periph; local 262 SC_DEBUG(periph, SCSIPI_DB2, ("sdattach: ")); 270 periph->periph_quirks |= PQUIRK_ONLYBIG; 271 periph->periph_quirks |= PQUIRK_NOBIGMODESENSE; 277 if (periph->periph_version == 0) 304 sd->sc_periph = periph; 306 periph->periph_dev = dksc->sc_dev; 307 periph->periph_switch = &sd_switch; 310 * Increase our openings to the maximum-per-periph 314 periph->periph_openings 391 struct scsipi_periph *periph = sd->sc_periph; local 445 struct scsipi_periph *periph = sd->sc_periph; local 534 struct scsipi_periph *periph; local 579 struct scsipi_periph *periph = sd->sc_periph; local 639 struct scsipi_periph *periph = sd->sc_periph; local 672 struct scsipi_periph *periph = sd->sc_periph; local 950 struct scsipi_periph *periph = sd->sc_periph; local 1126 struct scsipi_periph *periph = xs->xs_periph; local 1239 struct scsipi_periph *periph; local 1269 struct scsipi_periph *periph; local 1412 struct scsipi_periph *periph = sd->sc_periph; local 1887 struct scsipi_periph *periph = sd->sc_periph; local 1919 struct scsipi_periph *periph = sd->sc_periph; local 1983 struct scsipi_periph *periph = sd->sc_periph; local [all...] |
| st_atapi.c | 86 struct scsipi_periph *periph = sa->sa_periph; local 92 error = scsipi_mode_sense(periph, SMS_DBD, 102 error = scsipi_mode_select(periph, SMS_PF, 141 struct scsipi_periph *periph = st->sc_periph; local 145 error = scsipi_mode_sense(periph, SMS_DBD, 166 SC_DEBUG(periph, SCSIPI_DB3, 170 SC_DEBUG(periph, SCSIPI_DB3, 174 periph->periph_flags |= PERIPH_MEDIA_LOADED;
|
| atapiconf.c | 132 struct scsipi_periph *periph = sa->sa_periph; local 135 cf->cf_loc[ATAPIBUSCF_DRIVE] != periph->periph_target) 181 struct scsipi_periph *periph; local 186 periph = scsipi_lookup_periph_locked(chan, target, 0); 187 if (periph == NULL || periph->periph_dev != child) 189 scsipi_remove_periph(chan, periph); 190 scsipi_free_periph(periph); 261 struct scsipi_periph *periph, struct scsipibus_attach_args *sa) 282 periph->periph_quirks |= quirks [all...] |
| ss_mustek.c | 103 struct scsipi_periph *periph = sa->sa_periph; local 106 SC_DEBUG(periph, SCSIPI_DB1, ("mustek_attach: start\n")); 123 SC_DEBUG(periph, SCSIPI_DB1, ("mustek_attach: scanner_type = %d\n", 252 struct scsipi_periph *periph = ss->sc_periph; local 255 SC_DEBUG(periph, SCSIPI_DB1, ("mustek_minphys: before: %d\n", 259 SC_DEBUG(periph, SCSIPI_DB1, ("mustek_minphys: after: %d\n", 276 struct scsipi_periph *periph = ss->sc_periph; local 282 SC_DEBUG(periph, SCSIPI_DB1, ("mustek_trigger_scanner\n")); 316 SC_DEBUG(periph, SCSIPI_DB1, ("mustek_set_parms: set_window\n")); 317 error = scsipi_command(periph, (void *)&window_cmd, sizeof(window_cmd) 418 struct scsipi_periph *periph = ss->sc_periph; local 452 struct scsipi_periph *periph = ss->sc_periph; local 517 struct scsipi_periph *periph = ss->sc_periph; local [all...] |
| st.c | 384 struct scsipi_periph *periph = sa->sa_periph; local 386 SC_DEBUG(periph, SCSIPI_DB2, ("stattach: ")); 390 st->sc_periph = periph; 391 periph->periph_dev = st->sc_dev; 392 periph->periph_switch = &st_switch; 412 if (scsipi_test_unit_ready(periph, 438 struct scsipi_periph *periph = st->sc_periph; local 439 struct scsipi_channel *chan = periph->periph_channel; 541 struct scsipi_periph *periph; local 552 periph = st->sc_periph 732 struct scsipi_periph *periph = st->sc_periph; local 851 struct scsipi_periph *periph; local 948 struct scsipi_periph *periph = st->sc_periph; local 1105 struct scsipi_periph *periph = st->sc_periph; local 1362 struct scsipi_periph *periph = (struct scsipi_periph *)v; local 2151 struct scsipi_periph *periph = xs->xs_periph; local 2502 struct scsipi_periph *periph = st->sc_periph; local [all...] |
| st_scsi.c | 147 struct scsipi_periph *periph = st->sc_periph; local 155 error = scsipi_command(periph, (void *)&cmd, sizeof(cmd), 164 SC_DEBUG(periph, SCSIPI_DB3, 189 struct scsipi_periph *periph = st->sc_periph; local 214 SC_DEBUG(periph, SCSIPI_DB3, 218 SC_DEBUG(periph, SCSIPI_DB3, 224 periph->periph_flags |= PERIPH_MEDIA_LOADED; 241 struct scsipi_periph *periph = st->sc_periph; local 252 error = scsipi_mode_sense(periph, byte2, page, 324 error = scsipi_mode_select(periph, SMS_PF, &scsi_pdata.header [all...] |
| cd.c | 151 static int cdcachesync(struct scsipi_periph *periph, int flags); 277 struct scsipi_periph *periph = sa->sa_periph; local 280 SC_DEBUG(periph, SCSIPI_DB2, ("cdattach: ")); 285 if (periph->periph_version == 0) 312 cd->sc_periph = periph; 314 periph->periph_dev = dksc->sc_dev; 315 periph->periph_switch = &cd_switch; 318 * Increase our openings to the maximum-per-periph 322 periph->periph_openings = 323 SCSIPI_CHAN_MAX_PERIPH(periph->periph_channel) 338 struct scsipi_periph *periph = cd->sc_periph; local 388 struct scsipi_periph *periph = cd->sc_periph; local 483 struct scsipi_periph *periph; local 524 struct scsipi_periph *periph = cd->sc_periph; local 713 struct scsipi_periph *periph = cd->sc_periph; local 767 struct scsipi_periph *periph = cd->sc_periph; local 940 struct scsipi_periph *periph = xs->xs_periph; local 1111 struct scsipi_periph *periph = cd->sc_periph; local 1207 struct scsipi_periph *periph = cd->sc_periph; local 1465 struct scsipi_periph *periph = cd->sc_periph; local [all...] |
| /src/sys/arch/news68k/news68k/ |
| autoconf.c | 142 struct scsipi_periph *periph; local 144 periph = scsipi_lookup_periph(sdv->sc_channel, ctlr, 0); 145 if (periph != NULL) { 146 booted_device = periph->periph_dev;
|
| /src/sys/arch/newsmips/newsmips/ |
| autoconf.c | 148 struct scsipi_periph *periph; local 150 periph = scsipi_lookup_periph(sdv->sc_channel, ctlr, 0); 151 if (periph != NULL) { 152 booted_device = periph->periph_dev;
|
| /src/sys/arch/mac68k/mac68k/ |
| autoconf.c | 166 struct scsipi_periph *periph; local 180 periph = scsipi_lookup_periph(scsi->sc_channel, 182 if (!periph) 184 return device_unit(periph->periph_dev); 196 periph = scsipi_lookup_periph(scsi->sc_channel, 198 if (!periph) 200 return device_unit(periph->periph_dev);
|
| /src/sys/arch/usermode/dev/ |
| vatapi.c | 65 static void vatapi_kill_pending(struct scsipi_periph *periph); 199 struct scsipi_periph *periph; local 211 /* allocate and set up periph structure */ 212 periph = scsipi_alloc_periph(M_NOWAIT); 213 if (periph == NULL) { 218 periph->periph_channel = chan; 219 periph->periph_switch = &atapi_probe_periphsw; 220 periph->periph_target = target; 221 periph->periph_quirks = chan->chan_defquirks; 226 if (scsipi_inquire(periph, &inqbuf, XS_CTL_DISCOVERY) != 0) [all...] |
| /src/sys/dev/usb/ |
| umass_scsipi.c | 237 struct scsipi_periph *periph; local 250 periph = xs->xs_periph; 251 DIF(UDMASS_UPPER, periph->periph_dbflags |= SCSIPI_DEBUG_FLAGS); 254 (uintptr_t)sc, periph->periph_target, periph->periph_lun, 258 periph->periph_quirks, !!(xs->xs_control & XS_CTL_POLL)); 274 periph->periph_target != UMASS_ATAPI_DRIVE : 275 periph->periph_target == chan->chan_id) { 277 (uintptr_t)sc, periph->periph_target, 0, 0); 309 sc->sc_methods->wire_xfer(sc, periph->periph_lun, cmd 424 struct scsipi_periph *periph = xs->xs_periph; local 534 struct scsipi_periph *periph; local [all...] |
| /src/sys/arch/alpha/pci/ |
| pci_bootdev.c | 118 struct scsipi_periph *periph = sa->sa_periph; local 125 unit = periph->periph_target * 100 + periph->periph_lun; 127 b->channel != periph->periph_channel->chan_channel) {
|
| /src/sys/arch/x68k/x68k/ |
| autoconf.c | 176 struct scsipi_periph *periph; local 213 periph = scsipi_lookup_periph(sbsc->sc_channel, 216 return periph ? periph->periph_dev : NULL;
|
| /src/sys/arch/newsmips/dev/ |
| sc_wrap.c | 186 struct scsipi_periph *periph; local 195 periph = xs->xs_periph; 217 target = periph->periph_target; 271 struct scsipi_periph *periph; local 283 periph = xs->xs_periph; 284 chan = periph->periph_target; 296 lun = periph->periph_lun; 355 struct scsipi_periph *periph = xs->xs_periph; local 358 sc = device_private(periph->periph_channel->chan_adapter->adapt_dev); 391 sc->inuse[periph->periph_target] = 0 455 struct scsipi_periph *periph = xs->xs_periph; local [all...] |