Searched refs:epf_bar (Results 1 – 10 of 10) sorted by relevance
/drivers/pci/endpoint/functions/ |
D | pci-epf-ntb.c | 100 struct pci_epf_bar *epf_bar; member 253 peer_epf_bar = &peer_ntb_epc->epf_bar[peer_barno]; in epf_ntb_configure_mw() 310 peer_epf_bar = &peer_ntb_epc->epf_bar[peer_barno]; in epf_ntb_teardown_mw() 401 peer_epf_bar = &peer_ntb_epc->epf_bar[peer_barno]; in epf_ntb_configure_msi() 493 struct pci_epf_bar *peer_epf_bar, *epf_bar; in epf_ntb_configure_msix() local 508 epf_bar = &ntb_epc->epf_bar[ntb_epc->msix_bar]; in epf_ntb_configure_msix() 509 msix_tbl = epf_bar->addr + ntb_epc->msix_table_offset; in epf_ntb_configure_msix() 513 peer_epf_bar = &peer_ntb_epc->epf_bar[peer_barno]; in epf_ntb_configure_msix() 603 peer_epf_bar = &peer_ntb_epc->epf_bar[peer_barno]; in epf_ntb_teardown_db() 736 struct pci_epf_bar *epf_bar; in epf_ntb_peer_spad_bar_clear() local [all …]
|
D | pci-epf-test.c | 625 struct pci_epf_bar *epf_bar; in pci_epf_test_unbind() local 631 epf_bar = &epf->bar[bar]; in pci_epf_test_unbind() 635 epf_bar); in pci_epf_test_unbind() 646 struct pci_epf_bar *epf_bar; in pci_epf_test_set_bar() local 656 epf_bar = &epf->bar[bar]; in pci_epf_test_set_bar() 662 add = (epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64) ? 2 : 1; in pci_epf_test_set_bar() 668 epf_bar); in pci_epf_test_set_bar() 764 struct pci_epf_bar *epf_bar; in pci_epf_test_alloc_space() local 803 epf_bar = &epf->bar[bar]; in pci_epf_test_alloc_space() 804 add = (epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64) ? 2 : 1; in pci_epf_test_alloc_space() [all …]
|
/drivers/pci/endpoint/ |
D | pci-epf-core.c | 255 struct pci_epf_bar *epf_bar; in pci_epf_free_space() local 263 epf_bar = epf->bar; in pci_epf_free_space() 266 epf_bar = epf->sec_epc_bar; in pci_epf_free_space() 270 dma_free_coherent(dev, epf_bar[bar].size, addr, in pci_epf_free_space() 271 epf_bar[bar].phys_addr); in pci_epf_free_space() 273 epf_bar[bar].phys_addr = 0; in pci_epf_free_space() 274 epf_bar[bar].addr = NULL; in pci_epf_free_space() 275 epf_bar[bar].size = 0; in pci_epf_free_space() 276 epf_bar[bar].barno = 0; in pci_epf_free_space() 277 epf_bar[bar].flags = 0; in pci_epf_free_space() [all …]
|
D | pci-epc-core.c | 494 struct pci_epf_bar *epf_bar) in pci_epc_clear_bar() argument 497 (epf_bar->barno == BAR_5 && in pci_epc_clear_bar() 498 epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64)) in pci_epc_clear_bar() 508 epc->ops->clear_bar(epc, func_no, vfunc_no, epf_bar); in pci_epc_clear_bar() 523 struct pci_epf_bar *epf_bar) in pci_epc_set_bar() argument 526 int flags = epf_bar->flags; in pci_epc_set_bar() 529 (epf_bar->barno == BAR_5 && in pci_epc_set_bar() 533 (upper_32_bits(epf_bar->size) && in pci_epc_set_bar() 544 ret = epc->ops->set_bar(epc, func_no, vfunc_no, epf_bar); in pci_epc_set_bar()
|
/drivers/pci/controller/cadence/ |
D | pcie-cadence-ep.c | 77 struct pci_epf_bar *epf_bar) in cdns_pcie_ep_set_bar() argument 82 dma_addr_t bar_phys = epf_bar->phys_addr; in cdns_pcie_ep_set_bar() 83 enum pci_barno bar = epf_bar->barno; in cdns_pcie_ep_set_bar() 84 int flags = epf_bar->flags; in cdns_pcie_ep_set_bar() 89 sz = max_t(size_t, epf_bar->size, CDNS_PCIE_EP_MIN_APERTURE); in cdns_pcie_ep_set_bar() 107 epf_bar->flags |= PCI_BASE_ADDRESS_MEM_TYPE_64; in cdns_pcie_ep_set_bar() 145 epf->epf_bar[bar] = epf_bar; in cdns_pcie_ep_set_bar() 151 struct pci_epf_bar *epf_bar) in cdns_pcie_ep_clear_bar() argument 156 enum pci_barno bar = epf_bar->barno; in cdns_pcie_ep_clear_bar() 180 epf->epf_bar[bar] = NULL; in cdns_pcie_ep_clear_bar() [all …]
|
D | pcie-cadence.h | 336 struct pci_epf_bar *epf_bar[PCI_STD_NUM_BARS]; member
|
/drivers/pci/controller/dwc/ |
D | pcie-designware-ep.c | 207 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 …]
|
D | pcie-designware.h | 245 struct pci_epf_bar *epf_bar[PCI_STD_NUM_BARS]; member
|
/drivers/pci/controller/ |
D | pcie-rcar-ep.c | 199 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()
|
D | pcie-rockchip-ep.c | 132 struct pci_epf_bar *epf_bar) in rockchip_pcie_ep_set_bar() argument 136 dma_addr_t bar_phys = epf_bar->phys_addr; in rockchip_pcie_ep_set_bar() 137 enum pci_barno bar = epf_bar->barno; in rockchip_pcie_ep_set_bar() 138 int flags = epf_bar->flags; in rockchip_pcie_ep_set_bar() 143 sz = max_t(size_t, epf_bar->size, MIN_EP_APERTURE); in rockchip_pcie_ep_set_bar() 200 struct pci_epf_bar *epf_bar) in rockchip_pcie_ep_clear_bar() argument 205 enum pci_barno bar = epf_bar->barno; in rockchip_pcie_ep_clear_bar()
|