Lines Matching refs:sdev
79 static int slave_alloc (struct scsi_device *sdev) in slave_alloc() argument
81 struct us_data *us = host_to_us(sdev->host); in slave_alloc()
88 sdev->inquiry_len = 36; in slave_alloc()
105 blk_queue_update_dma_alignment(sdev->request_queue, (512 - 1)); in slave_alloc()
109 sdev->sdev_bflags |= BLIST_FORCELUN; in slave_alloc()
114 static int slave_configure(struct scsi_device *sdev) in slave_configure() argument
116 struct us_data *us = host_to_us(sdev->host); in slave_configure()
127 if (queue_max_hw_sectors(sdev->request_queue) > max_sectors) in slave_configure()
128 blk_queue_max_hw_sectors(sdev->request_queue, in slave_configure()
130 } else if (sdev->type == TYPE_TAPE) { in slave_configure()
135 blk_queue_max_hw_sectors(sdev->request_queue, 0x7FFFFF); in slave_configure()
144 blk_queue_bounce_limit(sdev->request_queue, BLK_BOUNCE_HIGH); in slave_configure()
149 if (sdev->type == TYPE_DISK) { in slave_configure()
172 sdev->use_10_for_ms = 1; in slave_configure()
176 sdev->use_192_bytes_for_3f = 1; in slave_configure()
186 sdev->skip_ms_page_3f = 1; in slave_configure()
190 sdev->skip_ms_page_8 = 1; in slave_configure()
193 sdev->skip_vpd_pages = 1; in slave_configure()
196 sdev->no_report_opcodes = 1; in slave_configure()
199 sdev->no_write_same = 1; in slave_configure()
205 sdev->fix_capacity = 1; in slave_configure()
211 sdev->guess_capacity = 1; in slave_configure()
215 sdev->no_read_capacity_16 = 1; in slave_configure()
224 sdev->try_rc_10_first = 1; in slave_configure()
227 if (sdev->scsi_level > SCSI_SPC_2) in slave_configure()
236 sdev->retry_hwerror = 1; in slave_configure()
240 sdev->allow_restart = 1; in slave_configure()
245 sdev->last_sector_bug = 1; in slave_configure()
257 sdev->wce_default_on = 1; in slave_configure()
261 sdev->broken_fua = 1; in slave_configure()
268 sdev->use_10_for_ms = 1; in slave_configure()
272 sdev->no_read_disc_info = 1; in slave_configure()
282 sdev->scsi_level == SCSI_UNKNOWN) in slave_configure()
288 sdev->lockable = 0; in slave_configure()
514 struct scsi_device *sdev = to_scsi_device(dev); in max_sectors_show() local
516 return sprintf(buf, "%u\n", queue_max_hw_sectors(sdev->request_queue)); in max_sectors_show()
523 struct scsi_device *sdev = to_scsi_device(dev); in max_sectors_store() local
527 blk_queue_max_hw_sectors(sdev->request_queue, ms); in max_sectors_store()