Searched refs:closest_pdevs (Results 1 – 1 of 1) sorted by relevance
663 struct pci_dev **closest_pdevs; in pci_p2pmem_find_many() local665 const int max_devs = PAGE_SIZE / sizeof(*closest_pdevs); in pci_p2pmem_find_many()668 closest_pdevs = kmalloc(PAGE_SIZE, GFP_KERNEL); in pci_p2pmem_find_many()669 if (!closest_pdevs) in pci_p2pmem_find_many()686 pci_dev_put(closest_pdevs[i]); in pci_p2pmem_find_many()692 closest_pdevs[dev_cnt++] = pci_dev_get(pdev); in pci_p2pmem_find_many()696 pdev = pci_dev_get(closest_pdevs[prandom_u32_max(dev_cnt)]); in pci_p2pmem_find_many()699 pci_dev_put(closest_pdevs[i]); in pci_p2pmem_find_many()701 kfree(closest_pdevs); in pci_p2pmem_find_many()