Home
last modified time | relevance | path

Searched refs:ep_bar (Results 1 – 4 of 4) sorted by relevance

/external/u-boot/drivers/pci_endpoint/
Dpci_ep-uclass.c40 int pci_ep_set_bar(struct udevice *dev, uint func_no, struct pci_bar *ep_bar) in pci_ep_set_bar() argument
43 int flags = ep_bar->flags; in pci_ep_set_bar()
46 if (ep_bar->barno > BAR_5 || ep_bar->barno < BAR_0) in pci_ep_set_bar()
49 if ((ep_bar->barno == BAR_5 && in pci_ep_set_bar()
53 (upper_32_bits(ep_bar->size) && in pci_ep_set_bar()
60 return ops->set_bar(dev, func_no, ep_bar); in pci_ep_set_bar()
63 int pci_ep_read_bar(struct udevice *dev, uint func_no, struct pci_bar *ep_bar, in pci_ep_read_bar() argument
75 return ops->read_bar(dev, func_no, ep_bar, barno); in pci_ep_read_bar()
Dsandbox-pci_ep.c67 struct pci_bar *ep_bar) in sandbox_set_bar() argument
75 bar_idx = ep_bar->barno; in sandbox_set_bar()
77 memcpy(&priv->bars[bar_idx], ep_bar, sizeof(*ep_bar)); in sandbox_set_bar()
83 struct pci_bar *ep_bar, enum pci_barno barno) in sandbox_read_bar() argument
90 memcpy(ep_bar, &priv->bars[barno], sizeof(*ep_bar)); in sandbox_read_bar()
Dpcie-cadence-ep.c51 static int cdns_set_bar(struct udevice *dev, uint fn, struct pci_bar *ep_bar) in cdns_set_bar() argument
54 dma_addr_t bar_phys = ep_bar->phys_addr; in cdns_set_bar()
55 enum pci_barno bar = ep_bar->barno; in cdns_set_bar()
56 int flags = ep_bar->flags; in cdns_set_bar()
61 sz = max_t(size_t, ep_bar->size, CDNS_PCIE_EP_MIN_APERTURE); in cdns_set_bar()
74 !!(ep_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64); in cdns_set_bar()
80 ep_bar->flags |= PCI_BASE_ADDRESS_MEM_TYPE_64; in cdns_set_bar()
/external/u-boot/include/
Dpci_ep.h292 int pci_ep_read_bar(struct udevice *dev, uint func_no, struct pci_bar *ep_bar,