Lines Matching refs:queue_depth
1013 int queue_depth) in __ata_change_queue_depth() argument
1018 if (queue_depth < 1 || queue_depth == sdev->queue_depth) in __ata_change_queue_depth()
1019 return sdev->queue_depth; in __ata_change_queue_depth()
1023 return sdev->queue_depth; in __ata_change_queue_depth()
1028 if (queue_depth == 1 || !ata_ncq_enabled(dev)) { in __ata_change_queue_depth()
1030 queue_depth = 1; in __ata_change_queue_depth()
1035 queue_depth = min(queue_depth, sdev->host->can_queue); in __ata_change_queue_depth()
1036 queue_depth = min(queue_depth, ata_id_queue_depth(dev->id)); in __ata_change_queue_depth()
1037 queue_depth = min(queue_depth, ATA_MAX_QUEUE); in __ata_change_queue_depth()
1039 if (sdev->queue_depth == queue_depth) in __ata_change_queue_depth()
1042 return scsi_change_queue_depth(sdev, queue_depth); in __ata_change_queue_depth()
1061 int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth) in ata_scsi_change_queue_depth() argument
1065 return __ata_change_queue_depth(ap, sdev, queue_depth); in ata_scsi_change_queue_depth()