Lines Matching refs:ups
18 struct pci_dev *ups = pci_upstream_bridge(dev); in pci_upstream_ptm() local
26 if (ups && pci_pcie_type(ups) == PCI_EXP_TYPE_DOWNSTREAM) in pci_upstream_ptm()
27 ups = pci_upstream_bridge(ups); in pci_upstream_ptm()
29 if (ups && ups->ptm_cap) in pci_upstream_ptm()
30 return ups; in pci_upstream_ptm()
43 struct pci_dev *ups; in pci_ptm_init() local
64 ups = pci_upstream_ptm(dev); in pci_ptm_init()
65 if (ups) { in pci_ptm_init()
66 if (ups->ptm_granularity == 0) in pci_ptm_init()
68 else if (ups->ptm_granularity > dev->ptm_granularity) in pci_ptm_init()
69 dev->ptm_granularity = ups->ptm_granularity; in pci_ptm_init()
125 struct pci_dev *ups; in __pci_enable_ptm() local
140 ups = pci_upstream_ptm(dev); in __pci_enable_ptm()
141 if (!ups || !ups->ptm_enabled) in __pci_enable_ptm()