Lines Matching refs:sdev
310 static int aac_biosparm(struct scsi_device *sdev, struct block_device *bdev, in aac_biosparm() argument
402 static int aac_slave_configure(struct scsi_device *sdev) in aac_slave_configure() argument
404 struct aac_dev *aac = (struct aac_dev *)sdev->host->hostdata; in aac_slave_configure()
405 if (aac->jbod && (sdev->type == TYPE_DISK)) in aac_slave_configure()
406 sdev->removable = 1; in aac_slave_configure()
407 if ((sdev->type == TYPE_DISK) && in aac_slave_configure()
408 (sdev_channel(sdev) != CONTAINER_CHANNEL) && in aac_slave_configure()
409 (!aac->jbod || sdev->inq_periph_qual) && in aac_slave_configure()
410 (!aac->raid_scsi_mode || (sdev_channel(sdev) != 2))) { in aac_slave_configure()
414 sdev->no_uld_attach = 1; in aac_slave_configure()
416 if (sdev->tagged_supported && (sdev->type == TYPE_DISK) && in aac_slave_configure()
417 (!aac->raid_scsi_mode || (sdev_channel(sdev) != 2)) && in aac_slave_configure()
418 !sdev->no_uld_attach) { in aac_slave_configure()
420 struct Scsi_Host *host = sdev->host; in aac_slave_configure()
430 if (sdev->request_queue->rq_timeout < (45 * HZ)) in aac_slave_configure()
431 blk_queue_rq_timeout(sdev->request_queue, 45*HZ); in aac_slave_configure()
438 (sdev_channel(sdev) != 2)) && in aac_slave_configure()
453 scsi_change_queue_depth(sdev, depth); in aac_slave_configure()
455 scsi_change_queue_depth(sdev, 1); in aac_slave_configure()
469 static int aac_change_queue_depth(struct scsi_device *sdev, int depth) in aac_change_queue_depth() argument
471 if (sdev->tagged_supported && (sdev->type == TYPE_DISK) && in aac_change_queue_depth()
472 (sdev_channel(sdev) == CONTAINER_CHANNEL)) { in aac_change_queue_depth()
474 struct Scsi_Host *host = sdev->host; in aac_change_queue_depth()
491 return scsi_change_queue_depth(sdev, depth); in aac_change_queue_depth()
494 return scsi_change_queue_depth(sdev, 1); in aac_change_queue_depth()
499 struct scsi_device *sdev = to_scsi_device(dev); in aac_show_raid_level() local
500 struct aac_dev *aac = (struct aac_dev *)(sdev->host->hostdata); in aac_show_raid_level()
501 if (sdev_channel(sdev) != CONTAINER_CHANNEL) in aac_show_raid_level()
502 return snprintf(buf, PAGE_SIZE, sdev->no_uld_attach in aac_show_raid_level()
504 ((aac->jbod && (sdev->type == TYPE_DISK)) ? "JBOD\n" : "")); in aac_show_raid_level()
506 get_container_type(aac->fsa_dev[sdev_id(sdev)].type)); in aac_show_raid_level()
522 static int aac_ioctl(struct scsi_device *sdev, int cmd, void __user * arg) in aac_ioctl() argument
524 struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata; in aac_ioctl()
757 static int aac_compat_ioctl(struct scsi_device *sdev, int cmd, void __user *arg) in aac_compat_ioctl() argument
759 struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata; in aac_compat_ioctl()