Lines Matching refs:lun

267  * @lun: which lun
272 * Stores the @shost, @channel, @id, and @lun in the scsi_Device, and
279 u64 lun, void *hostdata)
298 sdev->lun = lun;
637 * Probe the lun associated with @req using a standard SCSI INQUIRY;
916 if (scsi_is_wlun(sdev->lun) && sdev->type != TYPE_WLUN) {
919 __func__, sdev->type, (unsigned int)sdev->lun);
1136 * @lun: LUN of target device
1155 u64 lun, blist_flags_t *bflagsp,
1170 sdev = scsi_device_lookup_by_target(starget, lun);
1189 sdev = scsi_alloc_sdev(starget, lun, hostdata);
1213 * logical disk configured at sdev->lun, but there
1219 if (lun == 0) {
1258 !scsi_is_wlun(lun)) {
1301 * scanned) to some maximum lun until a LUN is found with no device
1304 * Modifies sdevscan->lun.
1311 u64 sparse_lun, lun;
1330 * If less than SCSI_1_CCS, and no special lun scanning, stop
1339 * to alloc an sdev for lun > 0 on an already found SCSI_1 device.
1371 for (lun = 1; lun < max_dev_lun; ++lun)
1372 if ((scsi_probe_and_add_lun(starget, lun, NULL, NULL, rescan,
1403 u64 lun;
1536 lun = scsilun_to_int(lunp);
1538 if (lun > sdev->host->max_lun) {
1540 "lun%llu has a LUN larger than"
1541 " allowed by the host adapter\n", lun);
1546 lun, NULL, NULL, rescan, NULL);
1553 " from lun %llu while scanning, scan"
1554 " aborted\n", (unsigned long long)lun);
1573 uint id, u64 lun, void *hostdata)
1592 scsi_probe_and_add_lun(starget, lun, NULL, &sdev,
1610 uint target, u64 lun)
1613 __scsi_add_device(host, channel, target, lun, NULL);
1663 unsigned int id, u64 lun, enum scsi_scan_mode rescan)
1681 if (lun != SCAN_WILD_CARD) {
1683 * Scan for a specific host/chan/id/lun.
1685 scsi_probe_and_add_lun(starget, lun, NULL, NULL, rescan, NULL);
1720 * @lun: Specific LUN to scan or SCAN_WILD_CARD
1734 unsigned int id, u64 lun, enum scsi_scan_mode rescan)
1750 __scsi_scan_target(parent, channel, id, lun, rescan);
1758 unsigned int id, u64 lun,
1782 order_id, lun, rescan);
1786 id, lun, rescan);
1790 unsigned int id, u64 lun,
1795 __func__, channel, id, lun));
1799 ((lun != SCAN_WILD_CARD) && (lun >= shost->max_lun)))
1810 scsi_scan_channel(shost, channel, id, lun,
1813 scsi_scan_channel(shost, channel, id, lun, rescan);