Lines Matching refs:lun
206 aprint_normal(": %d target%s, %d lun%s per target\n",
350 * target and lun optionally narrow the search if not -1
353 scsi_probe_bus(struct scsibus_softc *sc, int target, int lun)
371 if (lun == -1) {
375 if (lun < 0 || lun >= chan->chan_nluns)
377 maxlun = minlun = lun;
393 for (lun = minlun; lun <= maxlun; lun++) {
397 if (scsi_probe_device(sc, target, lun) == 0)
433 int target, lun;
436 lun = device_locator(child, SCSIBUSCF_LUN);
441 periph = scsipi_lookup_periph(chan, target, lun);
469 int target, lun;
477 lun = sa->sa_periph->periph_lun;
486 aprint_normal(" target %d lun %d: <%s, %s, %s> %s %s",
487 target, lun, vendor, product, revision, dtype,
760 * given a target and lun, ask the device what
765 scsi_probe_device(struct scsibus_softc *sc, int target, int lun)
786 if (scsipi_lookup_periph(chan, target, lun) != NULL)
793 "cannot allocate periph for target %d lun %d\n",
794 target, lun);
802 periph->periph_lun = lun;
808 SCSIPI_DEBUG_LUN == lun)
988 locs[SCSIBUSCF_LUN] = lun;