Lines Matching refs:queue_depth
1025 int queue_depth) in __ata_change_queue_depth() argument
1030 if (queue_depth < 1 || queue_depth == sdev->queue_depth) in __ata_change_queue_depth()
1031 return sdev->queue_depth; in __ata_change_queue_depth()
1035 return sdev->queue_depth; in __ata_change_queue_depth()
1040 if (queue_depth == 1 || !ata_ncq_enabled(dev)) { in __ata_change_queue_depth()
1042 queue_depth = 1; in __ata_change_queue_depth()
1047 queue_depth = min(queue_depth, sdev->host->can_queue); in __ata_change_queue_depth()
1048 queue_depth = min(queue_depth, ata_id_queue_depth(dev->id)); in __ata_change_queue_depth()
1049 queue_depth = min(queue_depth, ATA_MAX_QUEUE); in __ata_change_queue_depth()
1051 if (sdev->queue_depth == queue_depth) in __ata_change_queue_depth()
1054 return scsi_change_queue_depth(sdev, queue_depth); in __ata_change_queue_depth()
1073 int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth) in ata_scsi_change_queue_depth() argument
1077 return __ata_change_queue_depth(ap, sdev, queue_depth); in ata_scsi_change_queue_depth()