Lines Matching refs:queue_depth
1032 struct scsi_device *sdev, int queue_depth) in ata_change_queue_depth() argument
1037 return sdev->queue_depth; in ata_change_queue_depth()
1039 if (queue_depth < 1 || queue_depth == sdev->queue_depth) in ata_change_queue_depth()
1040 return sdev->queue_depth; in ata_change_queue_depth()
1045 if (queue_depth == 1 || !ata_ncq_enabled(dev)) { in ata_change_queue_depth()
1047 queue_depth = 1; in ata_change_queue_depth()
1052 queue_depth = min(queue_depth, sdev->host->can_queue); in ata_change_queue_depth()
1053 queue_depth = min(queue_depth, ata_id_queue_depth(dev->id)); in ata_change_queue_depth()
1054 queue_depth = min(queue_depth, ATA_MAX_QUEUE); in ata_change_queue_depth()
1056 if (sdev->queue_depth == queue_depth) in ata_change_queue_depth()
1059 return scsi_change_queue_depth(sdev, queue_depth); in ata_change_queue_depth()
1078 int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth) in ata_scsi_change_queue_depth() argument
1083 sdev, queue_depth); in ata_scsi_change_queue_depth()