Lines Matching refs:queue_depth
1233 int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth, in ata_scsi_change_queue_depth() argument
1243 if (queue_depth < 1 || queue_depth == sdev->queue_depth) in ata_scsi_change_queue_depth()
1244 return sdev->queue_depth; in ata_scsi_change_queue_depth()
1248 return sdev->queue_depth; in ata_scsi_change_queue_depth()
1253 if (queue_depth == 1 || !ata_ncq_enabled(dev)) { in ata_scsi_change_queue_depth()
1255 queue_depth = 1; in ata_scsi_change_queue_depth()
1260 queue_depth = min(queue_depth, sdev->host->can_queue); in ata_scsi_change_queue_depth()
1261 queue_depth = min(queue_depth, ata_id_queue_depth(dev->id)); in ata_scsi_change_queue_depth()
1262 queue_depth = min(queue_depth, ATA_MAX_QUEUE - 1); in ata_scsi_change_queue_depth()
1264 if (sdev->queue_depth == queue_depth) in ata_scsi_change_queue_depth()
1267 scsi_adjust_queue_depth(sdev, MSG_SIMPLE_TAG, queue_depth); in ata_scsi_change_queue_depth()
1268 return queue_depth; in ata_scsi_change_queue_depth()