Lines Matching refs:lun
591 u64 lun; member
1294 have_wlun = (scp->device->lun == SCSI_W_LUN_REPORT_LUNS); in resp_inquiry()
1297 else if (scsi_debug_no_lun_0 && (0 == devip->lun)) in resp_inquiry()
1316 (devip->target * 1000) + devip->lun); in resp_inquiry()
3326 u64 lun; in resp_report_luns() local
3359 for (i = 0, lun = (scsi_debug_no_lun_0 ? 1 : 0); in resp_report_luns()
3361 i++, lun++) { in resp_report_luns()
3362 upper = (lun >> 8) & 0x3f; in resp_report_luns()
3366 one_lun[i].scsi_lun[1] = lun & 0xff; in resp_report_luns()
3590 (devip->lun == sdev->lun)) in devInfoReg()
3607 open_devip->lun = sdev->lun; in devInfoReg()
3619 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun); in scsi_debug_slave_alloc()
3630 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun); in scsi_debug_slave_configure()
3650 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun); in scsi_debug_slave_destroy()
5172 has_wlun_rl = (sdp->lun == SCSI_W_LUN_REPORT_LUNS); in scsi_debug_queuecommand()
5173 if ((sdp->lun >= scsi_debug_max_luns) && !has_wlun_rl) in scsi_debug_queuecommand()