Lines Matching refs:queue_depth
1034 int queue_depth) in __ata_change_queue_depth() argument
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()
1044 return sdev->queue_depth; in __ata_change_queue_depth()
1049 if (queue_depth == 1 || !ata_ncq_enabled(dev)) { in __ata_change_queue_depth()
1051 queue_depth = 1; in __ata_change_queue_depth()
1056 queue_depth = min(queue_depth, sdev->host->can_queue); in __ata_change_queue_depth()
1057 queue_depth = min(queue_depth, ata_id_queue_depth(dev->id)); in __ata_change_queue_depth()
1058 queue_depth = min(queue_depth, ATA_MAX_QUEUE); in __ata_change_queue_depth()
1060 if (sdev->queue_depth == queue_depth) in __ata_change_queue_depth()
1063 return scsi_change_queue_depth(sdev, queue_depth); in __ata_change_queue_depth()
1082 int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth) in ata_scsi_change_queue_depth() argument
1086 return __ata_change_queue_depth(ap, sdev, queue_depth); in ata_scsi_change_queue_depth()