Lines Matching refs:lun
204 * @lun: which lun
209 * Stores the @shost, @channel, @id, and @lun in the scsi_Device, and
216 u64 lun, void *hostdata)
233 sdev->lun = lun;
554 * Probe the lun associated with @req using a standard SCSI INQUIRY;
821 if (scsi_is_wlun(sdev->lun) && sdev->type != TYPE_WLUN) {
824 __func__, sdev->type, (unsigned int)sdev->lun);
1025 * @lun: LUN of target device
1044 u64 lun, blist_flags_t *bflagsp,
1059 sdev = scsi_device_lookup_by_target(starget, lun);
1078 sdev = scsi_alloc_sdev(starget, lun, hostdata);
1103 * logical disk configured at sdev->lun, but there
1109 if (lun == 0) {
1148 !scsi_is_wlun(lun)) {
1191 * scanned) to some maximum lun until a LUN is found with no device
1194 * Modifies sdevscan->lun.
1201 u64 sparse_lun, lun;
1220 * If less than SCSI_1_CCS, and no special lun scanning, stop
1229 * to alloc an sdev for lun > 0 on an already found SCSI_1 device.
1261 for (lun = 1; lun < max_dev_lun; ++lun)
1262 if ((scsi_probe_and_add_lun(starget, lun, NULL, NULL, rescan,
1293 u64 lun;
1423 lun = scsilun_to_int(lunp);
1425 if (lun > sdev->host->max_lun) {
1427 "lun%llu has a LUN larger than"
1428 " allowed by the host adapter\n", lun);
1433 lun, NULL, NULL, rescan, NULL);
1440 " from lun %llu while scanning, scan"
1441 " aborted\n", (unsigned long long)lun);
1460 uint id, u64 lun, void *hostdata)
1479 scsi_probe_and_add_lun(starget, lun, NULL, &sdev, 1, hostdata);
1496 uint target, u64 lun)
1499 __scsi_add_device(host, channel, target, lun, NULL);
1531 unsigned int id, u64 lun, enum scsi_scan_mode rescan)
1549 if (lun != SCAN_WILD_CARD) {
1551 * Scan for a specific host/chan/id/lun.
1553 scsi_probe_and_add_lun(starget, lun, NULL, NULL, rescan, NULL);
1588 * @lun: Specific LUN to scan or SCAN_WILD_CARD
1602 unsigned int id, u64 lun, enum scsi_scan_mode rescan)
1618 __scsi_scan_target(parent, channel, id, lun, rescan);
1626 unsigned int id, u64 lun,
1650 order_id, lun, rescan);
1654 id, lun, rescan);
1658 unsigned int id, u64 lun,
1663 __func__, channel, id, lun));
1667 ((lun != SCAN_WILD_CARD) && (lun >= shost->max_lun)))
1678 scsi_scan_channel(shost, channel, id, lun,
1681 scsi_scan_channel(shost, channel, id, lun, rescan);