| /src/sys/dev/scsipi/ |
| scsiconf.c | 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 * local [all...] |
| /src/sys/dev/ieee1394/ |
| sbp.c | 315 struct sbp_dev **luns; member in struct:sbp_target 492 sc->sc_target.luns = NULL; 527 /* We reserve 16 bit space (4 bytes X 64 unit X 256 luns) */ 699 sdev = target->luns[lun]; 707 target->luns[lun] = NULL; 713 newluns = (struct sbp_dev **) realloc(target->luns, 728 target->luns = newluns; 746 sdev = target->luns[lun]; 750 target->luns[lun] = sdev; 782 target->luns[lun] = NULL [all...] |
| /src/external/bsd/iscsi/dist/src/lib/ |
| disk.c | 156 uint64_t luns; /* # of luns */ member in struct:iscsi_disk_t 696 } else if (strcmp(var, "luns") == 0) { 697 defaults.luns = strtoll(arg, (char **)NULL, 10); 772 /* handle REPORT LUNs SCSI command */ 774 report_luns(uint8_t *data, uint64_t luns) 780 for (i = 0; i < luns; i++) { 848 if ((idisk->luns = defaults.luns) == 0) { 849 idisk->luns = iSCSI_DEFAULT_LUNS [all...] |
| target.c | 1914 targv_t *luns; local 1919 NEW(targv_t, luns, "iscsi_target_reconf 1", return -1); 1932 tgt->lunv = luns;
|
| /src/sys/dev/ic/ |
| ncr53c9x.c | 182 LIST_FOREACH(li, &ti->luns, link) 320 for (li = LIST_FIRST(&sc->sc_tinfo[t].luns); li; 461 LIST_FOREACH(li, &sc->sc_tinfo[r].luns, link) { 514 LIST_INIT(&sc->sc_tinfo[r].luns); 1115 LIST_INSERT_HEAD(&ti->luns, li, link); 2298 /* Selection timeout -- discard all LUNs if empty */ 2301 li = LIST_FIRST(&ti->luns); 2311 li = LIST_FIRST(&ti->luns); 2967 li = LIST_FIRST(&ti->luns); 2977 li = LIST_FIRST(&ti->luns); [all...] |
| ncr53c9xvar.h | 142 * SCSI I and II devices can have up to 8 LUNs, each with up to 256 146 * Since SCSI II devices can have up to 8 LUNs, we use an array 148 * Longer LUNs need to traverse the linked list. 181 LIST_HEAD(lun_list, ncr53c9x_linfo) luns; member in struct:ncr53c9x_tinfo
|
| /src/sys/dev/sbus/ |
| esp_sbus.c | 741 LIST_FOREACH(li, &sc->sc_tinfo[t].luns, link) {
|