Lines Matching refs:lun
588 u64 lun; member
1291 have_wlun = (scp->device->lun == SAM2_WLUN_REPORT_LUNS); in resp_inquiry()
1294 else if (scsi_debug_no_lun_0 && (0 == devip->lun)) in resp_inquiry()
1313 (devip->target * 1000) + devip->lun); in resp_inquiry()
3329 u64 lun; in resp_report_luns() local
3362 for (i = 0, lun = (scsi_debug_no_lun_0 ? 1 : 0); in resp_report_luns()
3364 i++, lun++) { in resp_report_luns()
3365 upper = (lun >> 8) & 0x3f; in resp_report_luns()
3369 one_lun[i].scsi_lun[1] = lun & 0xff; in resp_report_luns()
3593 (devip->lun == sdev->lun)) in devInfoReg()
3611 open_devip->lun = sdev->lun; in devInfoReg()
3623 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun); in scsi_debug_slave_alloc()
3634 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun); in scsi_debug_slave_configure()
3654 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun); in scsi_debug_slave_destroy()
5185 has_wlun_rl = (sdp->lun == SAM2_WLUN_REPORT_LUNS); in scsi_debug_queuecommand()
5186 if ((sdp->lun >= scsi_debug_max_luns) && !has_wlun_rl) in scsi_debug_queuecommand()