Lines Matching full:distance
466 * Find the distance through the nearest common upstream bridge between
485 * The distance is 4 because we traverse from Device A through the downstream
560 * pci_p2pdma_distance_many - Determine the cumulative distance between
582 int distance; in pci_p2pdma_distance_many() local
608 pci_client, &distance); in pci_p2pdma_distance_many()
611 &distance, NULL, NULL); in pci_p2pdma_distance_many()
621 total_dist += distance; in pci_p2pdma_distance_many()
643 * the specified list of clients and shortest distance (as determined
652 * distance away, one will be chosen at random.
661 int distance; in pci_p2pmem_find_many() local
676 distance = pci_p2pdma_distance_many(pdev, clients, in pci_p2pmem_find_many()
678 if (distance < 0 || distance > closest_distance) in pci_p2pmem_find_many()
681 if (distance == closest_distance && dev_cnt >= max_devs) in pci_p2pmem_find_many()
684 if (distance < closest_distance) { in pci_p2pmem_find_many()
689 closest_distance = distance; in pci_p2pmem_find_many()