Lines Matching defs:sdev

521 	struct scsi_device *sdev = (struct scsi_device *)data;
522 struct mpi3mr_sdev_priv_data *sdev_priv_data = sdev->hostdata;
530 if (scmd->device == sdev)
962 * @sdev: SCSI device reference
969 static int mpi3mr_change_queue_depth(struct scsi_device *sdev,
972 struct scsi_target *starget = scsi_target(sdev);
976 if (!sdev->tagged_supported)
982 retval = scsi_change_queue_depth(sdev, q_depth);
983 sdev->max_queue_depth = sdev->queue_depth;
990 * @sdev: SCSI device reference
1000 mpi3mr_update_sdev(struct scsi_device *sdev, void *data)
1008 mpi3mr_change_queue_depth(sdev, tgtdev->q_depth);
1015 blk_queue_max_hw_sectors(sdev->request_queue,
1018 blk_queue_virt_boundary(sdev->request_queue,
1021 blk_queue_virt_boundary(sdev->request_queue,
1845 * @sdev: SCSI device reference
1853 static void mpi3mr_update_sdev_qd(struct scsi_device *sdev, void *data)
1857 scsi_change_queue_depth(sdev, (int)*q_depth);
1858 sdev->max_queue_depth = sdev->queue_depth;
3656 struct scsi_device *sdev = NULL;
3696 sdev = scmd->device;
3697 sdev_priv_data = sdev->hostdata;
3803 mpi3mr_count_dev_pending, (void *)sdev);
3822 * @sdev: SCSI device reference
3831 static int mpi3mr_bios_param(struct scsi_device *sdev,
4292 * @sdev: SCSI device reference
4298 static void mpi3mr_slave_destroy(struct scsi_device *sdev)
4308 if (!sdev->hostdata)
4311 starget = scsi_target(sdev);
4333 kfree(sdev->hostdata);
4334 sdev->hostdata = NULL;
4379 * @sdev: SCSI device reference
4386 static int mpi3mr_slave_configure(struct scsi_device *sdev)
4396 starget = scsi_target(sdev);
4412 mpi3mr_change_queue_depth(sdev, tgt_dev->q_depth);
4414 sdev->eh_timeout = MPI3MR_EH_SCMD_TIMEOUT;
4415 blk_queue_rq_timeout(sdev->request_queue, MPI3MR_SCMD_TIMEOUT);
4423 blk_queue_max_hw_sectors(sdev->request_queue,
4426 blk_queue_virt_boundary(sdev->request_queue,
4429 blk_queue_virt_boundary(sdev->request_queue,
4444 * @sdev: SCSI device reference
4450 static int mpi3mr_slave_alloc(struct scsi_device *sdev)
4462 starget = scsi_target(sdev);
4493 scsi_dev_priv_data->lun_id = sdev->lun;
4495 sdev->hostdata = scsi_dev_priv_data;