Lines Matching refs:pci_dev
295 struct pci_dev *pci_dev[ISST_MAX_BUS_NUMBER];
301 struct pci_dev *pci_dev[ISST_MAX_BUS_NUMBER];
307 static struct pci_dev *_isst_if_get_pci_dev(int cpu, int bus_no, int dev, int fn)
309 struct pci_dev *matched_pci_dev = NULL;
310 struct pci_dev *pci_dev = NULL;
311 struct pci_dev *_pci_dev = NULL;
344 isst_pkg_info[pkg_id].pci_dev[bus_no] = _pci_dev;
346 pci_dev = _pci_dev;
352 * If there is no numa matched pci_dev, then there can be following cases:
361 if (!pci_dev && no_matches == 1)
362 pci_dev = matched_pci_dev;
364 /* Return pci_dev pointer for any matched CPU in the package */
365 if (!pci_dev)
366 pci_dev = isst_pkg_info[pkg_id].pci_dev[bus_no];
368 return pci_dev;
381 * Return: Return pci_dev pointer or NULL.
383 struct pci_dev *isst_if_get_pci_dev(int cpu, int bus_no, int dev, int fn)
385 struct pci_dev *pci_dev;
391 pci_dev = isst_cpu_info[cpu].pci_dev[bus_no];
393 if (pci_dev && pci_dev->devfn == PCI_DEVFN(dev, fn))
394 return pci_dev;
415 isst_cpu_info[cpu].pci_dev[0] = _isst_if_get_pci_dev(cpu, 0, 0, 1);
416 isst_cpu_info[cpu].pci_dev[1] = _isst_if_get_pci_dev(cpu, 1, 30, 1);