Lines Matching defs:luns
334 uint16_t ** const luns, size_t *nluns)
398 KASSERT(luns != NULL);
399 *luns = kmem_alloc(*nluns * sizeof(**luns), KM_SLEEP);
407 (*luns)[i] = 0;
410 (*luns)[i] = _2btol(&lunp->lun[0]) & 0x3FFF;
413 (*luns)[i] = _2btol(&lunp->lun[0]) & 0x00FF;
418 kheapsort(*luns, *nluns, sizeof(**luns), lun_compar, &tmp);
431 uint16_t *luns = NULL; /* XXX gcc */
434 if (scsi_report_luns(sc, target, &luns, &nluns) == 0) {
436 if (luns[i] >= minlun && luns[i] <= maxlun)
437 scsi_probe_device(sc, target, luns[i]);
438 kmem_free(luns, sizeof(*luns) * nluns);