Lines Matching refs:queue_depth
1272 int queue_depth) in __ata_change_queue_depth() argument
1277 if (queue_depth < 1 || queue_depth == sdev->queue_depth) in __ata_change_queue_depth()
1278 return sdev->queue_depth; in __ata_change_queue_depth()
1282 return sdev->queue_depth; in __ata_change_queue_depth()
1287 if (queue_depth == 1 || !ata_ncq_enabled(dev)) { in __ata_change_queue_depth()
1289 queue_depth = 1; in __ata_change_queue_depth()
1294 queue_depth = min(queue_depth, sdev->host->can_queue); in __ata_change_queue_depth()
1295 queue_depth = min(queue_depth, ata_id_queue_depth(dev->id)); in __ata_change_queue_depth()
1296 queue_depth = min(queue_depth, ATA_MAX_QUEUE - 1); in __ata_change_queue_depth()
1298 if (sdev->queue_depth == queue_depth) in __ata_change_queue_depth()
1301 return scsi_change_queue_depth(sdev, queue_depth); in __ata_change_queue_depth()
1319 int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth) in ata_scsi_change_queue_depth() argument
1323 return __ata_change_queue_depth(ap, sdev, queue_depth); in ata_scsi_change_queue_depth()