Home
last modified time | relevance | path

Searched refs:epf_bar (Results 1 – 8 of 8) sorted by relevance

/drivers/pci/controller/cadence/
Dpcie-cadence-ep.c51 struct pci_epf_bar *epf_bar) in cdns_pcie_ep_set_bar() argument
56 dma_addr_t bar_phys = epf_bar->phys_addr; in cdns_pcie_ep_set_bar()
57 enum pci_barno bar = epf_bar->barno; in cdns_pcie_ep_set_bar()
58 int flags = epf_bar->flags; in cdns_pcie_ep_set_bar()
63 sz = max_t(size_t, epf_bar->size, CDNS_PCIE_EP_MIN_APERTURE); in cdns_pcie_ep_set_bar()
81 epf_bar->flags |= PCI_BASE_ADDRESS_MEM_TYPE_64; in cdns_pcie_ep_set_bar()
115 epf->epf_bar[bar] = epf_bar; in cdns_pcie_ep_set_bar()
121 struct pci_epf_bar *epf_bar) in cdns_pcie_ep_clear_bar() argument
126 enum pci_barno bar = epf_bar->barno; in cdns_pcie_ep_clear_bar()
147 epf->epf_bar[bar] = NULL; in cdns_pcie_ep_clear_bar()
[all …]
Dpcie-cadence.h320 struct pci_epf_bar *epf_bar[PCI_STD_NUM_BARS]; member
/drivers/pci/endpoint/
Dpci-epc-core.c412 struct pci_epf_bar *epf_bar) in pci_epc_clear_bar() argument
415 (epf_bar->barno == BAR_5 && in pci_epc_clear_bar()
416 epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64)) in pci_epc_clear_bar()
423 epc->ops->clear_bar(epc, func_no, epf_bar); in pci_epc_clear_bar()
437 struct pci_epf_bar *epf_bar) in pci_epc_set_bar() argument
440 int flags = epf_bar->flags; in pci_epc_set_bar()
443 (epf_bar->barno == BAR_5 && in pci_epc_set_bar()
447 (upper_32_bits(epf_bar->size) && in pci_epc_set_bar()
455 ret = epc->ops->set_bar(epc, func_no, epf_bar); in pci_epc_set_bar()
/drivers/pci/endpoint/functions/
Dpci-epf-test.c621 struct pci_epf_bar *epf_bar; in pci_epf_test_unbind() local
627 epf_bar = &epf->bar[bar]; in pci_epf_test_unbind()
630 pci_epc_clear_bar(epc, epf->func_no, epf_bar); in pci_epf_test_unbind()
640 struct pci_epf_bar *epf_bar; in pci_epf_test_set_bar() local
650 epf_bar = &epf->bar[bar]; in pci_epf_test_set_bar()
656 add = (epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64) ? 2 : 1; in pci_epf_test_set_bar()
661 ret = pci_epc_set_bar(epc, epf->func_no, epf_bar); in pci_epf_test_set_bar()
752 struct pci_epf_bar *epf_bar; in pci_epf_test_alloc_space() local
791 epf_bar = &epf->bar[bar]; in pci_epf_test_alloc_space()
792 add = (epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64) ? 2 : 1; in pci_epf_test_alloc_space()
[all …]
/drivers/pci/controller/dwc/
Dpcie-designware-ep.c207 struct pci_epf_bar *epf_bar) in dw_pcie_ep_clear_bar() argument
211 enum pci_barno bar = epf_bar->barno; in dw_pcie_ep_clear_bar()
214 __dw_pcie_ep_reset_bar(pci, func_no, bar, epf_bar->flags); in dw_pcie_ep_clear_bar()
218 ep->epf_bar[bar] = NULL; in dw_pcie_ep_clear_bar()
222 struct pci_epf_bar *epf_bar) in dw_pcie_ep_set_bar() argument
227 enum pci_barno bar = epf_bar->barno; in dw_pcie_ep_set_bar()
228 size_t size = epf_bar->size; in dw_pcie_ep_set_bar()
229 int flags = epf_bar->flags; in dw_pcie_ep_set_bar()
244 epf_bar->phys_addr, as_type); in dw_pcie_ep_set_bar()
258 ep->epf_bar[bar] = epf_bar; in dw_pcie_ep_set_bar()
[all …]
Dpcie-designware.h243 struct pci_epf_bar *epf_bar[PCI_STD_NUM_BARS]; member
/drivers/pci/controller/
Dpcie-rcar-ep.c199 struct pci_epf_bar *epf_bar) in rcar_pcie_ep_set_bar() argument
201 int flags = epf_bar->flags | LAR_ENABLE | LAM_64BIT; in rcar_pcie_ep_set_bar()
203 u64 size = 1ULL << fls64(epf_bar->size - 1); in rcar_pcie_ep_set_bar()
204 dma_addr_t cpu_addr = epf_bar->phys_addr; in rcar_pcie_ep_set_bar()
205 enum pci_barno bar = epf_bar->barno; in rcar_pcie_ep_set_bar()
250 struct pci_epf_bar *epf_bar) in rcar_pcie_ep_clear_bar() argument
253 enum pci_barno bar = epf_bar->barno; in rcar_pcie_ep_clear_bar()
Dpcie-rockchip-ep.c165 struct pci_epf_bar *epf_bar) in rockchip_pcie_ep_set_bar() argument
169 dma_addr_t bar_phys = epf_bar->phys_addr; in rockchip_pcie_ep_set_bar()
170 enum pci_barno bar = epf_bar->barno; in rockchip_pcie_ep_set_bar()
171 int flags = epf_bar->flags; in rockchip_pcie_ep_set_bar()
176 sz = max_t(size_t, epf_bar->size, MIN_EP_APERTURE); in rockchip_pcie_ep_set_bar()
233 struct pci_epf_bar *epf_bar) in rockchip_pcie_ep_clear_bar() argument
238 enum pci_barno bar = epf_bar->barno; in rockchip_pcie_ep_clear_bar()