Lines Matching defs:sdev
803 struct scsi_device *sdev;
864 sdev = __scsi_add_device(shost, 0, 0, sbp2_lun2int(lu->lun), lu);
869 * unusable sdev. As a workaround we check for this and retry the
874 if (IS_ERR(sdev))
880 scsi_remove_device(sdev);
881 scsi_device_put(sdev);
887 scsi_device_put(sdev);
1218 struct scsi_device *sdev;
1225 sdev = scsi_device_lookup(shost, 0, 0, sbp2_lun2int(lu->lun));
1226 if (sdev) {
1227 scsi_remove_device(sdev);
1228 scsi_device_put(sdev);
1492 static int sbp2_scsi_slave_alloc(struct scsi_device *sdev)
1494 struct sbp2_logical_unit *lu = sdev->hostdata;
1500 sdev->allow_restart = 1;
1506 blk_queue_update_dma_alignment(sdev->request_queue, 4 - 1);
1509 sdev->inquiry_len = 36;
1514 static int sbp2_scsi_slave_configure(struct scsi_device *sdev)
1516 struct sbp2_logical_unit *lu = sdev->hostdata;
1518 sdev->use_10_for_rw = 1;
1521 sdev->manage_start_stop = 1;
1523 if (sdev->type == TYPE_ROM)
1524 sdev->use_10_for_ms = 1;
1526 if (sdev->type == TYPE_DISK &&
1528 sdev->skip_ms_page_8 = 1;
1531 sdev->fix_capacity = 1;
1534 sdev->start_stop_pwr_cond = 1;
1537 blk_queue_max_hw_sectors(sdev->request_queue, 128 * 1024 / 512);
1567 struct scsi_device *sdev = to_scsi_device(dev);
1570 if (!sdev)
1573 lu = sdev->hostdata;