Lines Matching refs:sdev

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