Lines Matching refs:lun
323 unsigned int target = event->lun[1]; in virtscsi_handle_transport_reset()
324 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_transport_reset() local
328 scsi_add_device(shost, 0, target, lun); in virtscsi_handle_transport_reset()
331 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_transport_reset()
337 shost->host_no, target, lun); in virtscsi_handle_transport_reset()
350 unsigned int target = event->lun[1]; in virtscsi_handle_param_change()
351 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_param_change() local
355 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_param_change()
358 shost->host_no, target, lun); in virtscsi_handle_param_change()
488 cmd->lun[0] = 1; in virtio_scsi_init_hdr()
489 cmd->lun[1] = sc->device->id; in virtio_scsi_init_hdr()
490 cmd->lun[2] = (sc->device->lun >> 8) | 0x40; in virtio_scsi_init_hdr()
491 cmd->lun[3] = sc->device->lun & 0xff; in virtio_scsi_init_hdr()
659 .lun[0] = 1, in virtscsi_device_reset()
660 .lun[1] = sc->device->id, in virtscsi_device_reset()
661 .lun[2] = (sc->device->lun >> 8) | 0x40, in virtscsi_device_reset()
662 .lun[3] = sc->device->lun & 0xff, in virtscsi_device_reset()
712 .lun[0] = 1, in virtscsi_abort()
713 .lun[1] = sc->device->id, in virtscsi_abort()
714 .lun[2] = (sc->device->lun >> 8) | 0x40, in virtscsi_abort()
715 .lun[3] = sc->device->lun & 0xff, in virtscsi_abort()