Lines Matching refs:lun

669 	int lun, tag, flags;
679 lun = periph->periph_lun;
681 li = TINFO_LUN(ti, lun);
703 li->lun = lun;
704 if (lun < SBIC_NLUN)
705 ti->lun[lun] = li;
710 * We've found a potential command, but is the target/lun busy?
781 KASSERT(sc->lun == xs->xs_periph->periph_lun);
784 sc->target, sc->lun);
791 sc->target, sc->lun, status));
811 li = TINFO_LUN(ti, sc->lun);
816 if (sc->lun < SBIC_NLUN)
817 ti->lun[sc->lun] = NULL;
846 int lun = acb->xs->xs_periph->periph_lun;
848 li = TINFO_LUN(ti, lun);
850 if (li == NULL || li->lun != lun)
851 panic("wd33c93_dequeue: lun %d for ecb %p does not exist",
852 lun, acb);
862 panic("wd33c93_dequeue: slot %d for lun %d has %p "
864 lun, li->queued[acb->tag_id], acb);
985 u_char target, lun, asr, csr, id;
990 lun = xs->xs_periph->periph_lun;
995 sc->lun = lun;
1102 sc->sc_omsg[0] = MSG_IDENTIFY(lun, 0); /* No Disc */
1120 sc->target, sc->lun,
1122 sc->sc_omsg[0] = MSG_IDENTIFY(lun, 1);
1133 SEND_BYTE(sc, MSG_IDENTIFY(lun, !no_disc));
1314 SBIC_DEBUG(ACBS, ("wd33c93_go(%d:%d)\n", sc->target, sc->lun));
1319 sc->lun = xs->xs_periph->periph_lun;
1550 li = TINFO_LUN(ti, sc->lun);
1586 sc->target, sc->lun, msgaddr[0], msgaddr[1]);
1739 wd33c93_reselect(sc, sc->target, sc->lun,
2130 SBIC_DEBUG(RSEL, ("wd33c93next: reselect from targ %d lun %d",
2165 wd33c93_reselect(struct wd33c93_softc *sc, int target, int lun, int tag_type, int tag_id)
2183 li = TINFO_LUN(ti, sc->lun);
2199 li = TINFO_LUN(ti, lun);
2207 sc->lun = lun;
2215 printf("%s: reselect from target %d lun %d tag %x:%x "
2217 device_xname(sc->sc_dev), target, lun, tag_type, tag_id);
2222 sc->lun = lun;
2323 ti->lun[li->lun] = NULL;