Lines Matching defs:func
45 struct pci_dev *func;
53 func = pci_get_device(pdev->vendor, pdev->device, NULL);
54 if (unlikely(!func))
57 if (func->devfn == pdev->devfn) {
58 func = pci_get_device(pdev->vendor, pdev->device, func);
59 if (unlikely(!func))
63 if (func->devfn != PCI_DEV_FN_HOST_DEVICE &&
64 func->devfn != PCI_DEV_FN_OTG) {
68 return func;
77 struct pci_dev *func;
88 func = cdns3_get_second_fun(pdev);
89 if (unlikely(!func))
100 if (pci_is_enabled(func)) {
101 wrap = pci_get_drvdata(func);
152 if (pci_is_enabled(func)) {
180 struct pci_dev *func;
182 func = cdns3_get_second_fun(pdev);
188 if (!pci_is_enabled(func))