Lines Matching refs:sdev
324 struct scsi_device *sdev; in virtscsi_handle_transport_reset() local
334 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_transport_reset()
335 if (sdev) { in virtscsi_handle_transport_reset()
336 scsi_remove_device(sdev); in virtscsi_handle_transport_reset()
337 scsi_device_put(sdev); in virtscsi_handle_transport_reset()
351 struct scsi_device *sdev; in virtscsi_handle_param_change() local
358 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_param_change()
359 if (!sdev) { in virtscsi_handle_param_change()
368 scsi_rescan_device(&sdev->sdev_gendev); in virtscsi_handle_param_change()
370 scsi_device_put(sdev); in virtscsi_handle_param_change()
703 static int virtscsi_change_queue_depth(struct scsi_device *sdev, int qdepth) in virtscsi_change_queue_depth() argument
705 struct Scsi_Host *shost = sdev->host; in virtscsi_change_queue_depth()
708 return scsi_change_queue_depth(sdev, min(max_depth, qdepth)); in virtscsi_change_queue_depth()