Lines Matching refs:sdev

67 static int sdev_init (struct scsi_device *sdev)  in sdev_init()  argument
69 struct us_data *us = host_to_us(sdev->host); in sdev_init()
76 sdev->inquiry_len = 36; in sdev_init()
80 sdev->sdev_bflags |= BLIST_FORCELUN; in sdev_init()
86 sdev->sdev_bflags |= BLIST_SKIP_IO_HINTS; in sdev_init()
91 static int sdev_configure(struct scsi_device *sdev, struct queue_limits *lim) in sdev_configure() argument
93 struct us_data *us = host_to_us(sdev->host); in sdev_configure()
107 } else if (sdev->type == TYPE_TAPE) { in sdev_configure()
134 if (sdev->type == TYPE_DISK) { in sdev_configure()
161 sdev->use_10_for_ms = 1; in sdev_configure()
167 sdev->use_192_bytes_for_3f = 1; in sdev_configure()
174 sdev->read_before_ms = 1; in sdev_configure()
186 sdev->skip_ms_page_3f = 1; in sdev_configure()
192 sdev->skip_ms_page_8 = 1; in sdev_configure()
198 sdev->skip_vpd_pages = !sdev->try_vpd_pages; in sdev_configure()
201 sdev->no_report_opcodes = 1; in sdev_configure()
204 sdev->no_write_same = 1; in sdev_configure()
212 sdev->fix_capacity = 1; in sdev_configure()
220 sdev->guess_capacity = 1; in sdev_configure()
224 sdev->no_read_capacity_16 = 1; in sdev_configure()
233 sdev->try_rc_10_first = 1; in sdev_configure()
239 if (sdev->scsi_level > SCSI_SPC_2 && in sdev_configure()
251 sdev->retry_hwerror = 1; in sdev_configure()
257 sdev->allow_restart = 1; in sdev_configure()
264 sdev->last_sector_bug = 1; in sdev_configure()
278 sdev->wce_default_on = 1; in sdev_configure()
282 sdev->broken_fua = 1; in sdev_configure()
287 sdev->skip_ms_page_8 = 1; in sdev_configure()
288 sdev->skip_ms_page_3f = 1; in sdev_configure()
290 sdev->wce_default_on = 1; in sdev_configure()
299 sdev->use_10_for_ms = 1; in sdev_configure()
303 sdev->no_read_disc_info = 1; in sdev_configure()
314 sdev->scsi_level == SCSI_UNKNOWN) in sdev_configure()
322 sdev->lockable = 0; in sdev_configure()
578 struct scsi_device *sdev = to_scsi_device(dev); in max_sectors_show() local
580 return sprintf(buf, "%u\n", queue_max_hw_sectors(sdev->request_queue)); in max_sectors_show()
587 struct scsi_device *sdev = to_scsi_device(dev); in max_sectors_store() local
595 lim = queue_limits_start_update(sdev->request_queue); in max_sectors_store()
597 ret = queue_limits_commit_update_frozen(sdev->request_queue, &lim); in max_sectors_store()