Lines Matching full:distance
436 * Find the distance through the nearest common upstream bridge between
455 * The distance is 4 because we traverse from Device A through the downstream
530 * pci_p2pdma_distance_many - Determine the cumulative distance between
552 int distance; in pci_p2pdma_distance_many() local
578 pci_client, &distance); in pci_p2pdma_distance_many()
581 &distance, NULL, NULL); in pci_p2pdma_distance_many()
591 total_dist += distance; in pci_p2pdma_distance_many()
613 * the specified list of clients and shortest distance (as determined
622 * distance away, one will be chosen at random.
631 int distance; in pci_p2pmem_find_many() local
646 distance = pci_p2pdma_distance_many(pdev, clients, in pci_p2pmem_find_many()
648 if (distance < 0 || distance > closest_distance) in pci_p2pmem_find_many()
651 if (distance == closest_distance && dev_cnt >= max_devs) in pci_p2pmem_find_many()
654 if (distance < closest_distance) { in pci_p2pmem_find_many()
659 closest_distance = distance; in pci_p2pmem_find_many()