Lines Matching refs:queue_depth
1406 int queue_depth) in __ata_change_queue_depth() argument
1411 if (queue_depth < 1 || queue_depth == sdev->queue_depth) in __ata_change_queue_depth()
1412 return sdev->queue_depth; in __ata_change_queue_depth()
1416 return sdev->queue_depth; in __ata_change_queue_depth()
1421 if (queue_depth == 1 || !ata_ncq_enabled(dev)) { in __ata_change_queue_depth()
1423 queue_depth = 1; in __ata_change_queue_depth()
1428 queue_depth = min(queue_depth, sdev->host->can_queue); in __ata_change_queue_depth()
1429 queue_depth = min(queue_depth, ata_id_queue_depth(dev->id)); in __ata_change_queue_depth()
1430 queue_depth = min(queue_depth, ATA_MAX_QUEUE); in __ata_change_queue_depth()
1432 if (sdev->queue_depth == queue_depth) in __ata_change_queue_depth()
1435 return scsi_change_queue_depth(sdev, queue_depth); in __ata_change_queue_depth()
1453 int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth) in ata_scsi_change_queue_depth() argument
1457 return __ata_change_queue_depth(ap, sdev, queue_depth); in ata_scsi_change_queue_depth()