/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-vntb.c | 342 struct pci_epf_bar *epf_bar; in epf_ntb_config_sspad_bar_clear() local 346 epf_bar = &ntb->epf->bar[barno]; in epf_ntb_config_sspad_bar_clear() 348 pci_epc_clear_bar(ntb->epf->epc, ntb->epf->func_no, ntb->epf->vfunc_no, epf_bar); in epf_ntb_config_sspad_bar_clear() 365 struct pci_epf_bar *epf_bar; in epf_ntb_config_sspad_bar_set() local 375 epf_bar = &ntb->epf->bar[barno]; in epf_ntb_config_sspad_bar_set() 377 ret = pci_epc_set_bar(ntb->epf->epc, func_no, vfunc_no, epf_bar); in epf_ntb_config_sspad_bar_set() 533 struct pci_epf_bar *epf_bar; in epf_ntb_db_bar_init() local 561 epf_bar = &ntb->epf->bar[barno]; in epf_ntb_db_bar_init() 563 ret = pci_epc_set_bar(ntb->epf->epc, ntb->epf->func_no, ntb->epf->vfunc_no, epf_bar); in epf_ntb_db_bar_init() 1076 struct pci_epf_bar *epf_bar; in vntb_epf_mw_set_trans() local [all …]
|
D | pci-epf-test.c | 693 struct pci_epf_bar *epf_bar; in pci_epf_test_unbind() local 699 epf_bar = &epf->bar[bar]; in pci_epf_test_unbind() 703 epf_bar); in pci_epf_test_unbind() 714 struct pci_epf_bar *epf_bar; in pci_epf_test_set_bar() local 724 epf_bar = &epf->bar[bar]; in pci_epf_test_set_bar() 730 add = (epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64) ? 2 : 1; in pci_epf_test_set_bar() 736 epf_bar); in pci_epf_test_set_bar() 820 struct pci_epf_bar *epf_bar; in pci_epf_test_alloc_space() local 859 epf_bar = &epf->bar[bar]; in pci_epf_test_alloc_space() 860 add = (epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64) ? 2 : 1; in pci_epf_test_alloc_space() [all …]
|
D | pci-epf-mhi.c | 476 struct pci_epf_bar *epf_bar = &epf->bar[info->bar_num]; in pci_epf_mhi_core_init() local 481 epf_bar->phys_addr = epf_mhi->mmio_phys; in pci_epf_mhi_core_init() 482 epf_bar->size = epf_mhi->mmio_size; in pci_epf_mhi_core_init() 483 epf_bar->barno = info->bar_num; in pci_epf_mhi_core_init() 484 epf_bar->flags = info->epf_flags; in pci_epf_mhi_core_init() 485 ret = pci_epc_set_bar(epc, epf->func_no, epf->vfunc_no, epf_bar); in pci_epf_mhi_core_init() 631 struct pci_epf_bar *epf_bar = &epf->bar[info->bar_num]; in pci_epf_mhi_unbind() local 648 pci_epc_clear_bar(epc, epf->func_no, epf->vfunc_no, epf_bar); in pci_epf_mhi_unbind()
|
/drivers/pci/endpoint/ |
D | pci-epf-core.c | 223 struct pci_epf_bar *epf_bar; in pci_epf_free_space() local 231 epf_bar = epf->bar; in pci_epf_free_space() 234 epf_bar = epf->sec_epc_bar; in pci_epf_free_space() 238 dma_free_coherent(dev, epf_bar[bar].size, addr, in pci_epf_free_space() 239 epf_bar[bar].phys_addr); in pci_epf_free_space() 241 epf_bar[bar].phys_addr = 0; in pci_epf_free_space() 242 epf_bar[bar].addr = NULL; in pci_epf_free_space() 243 epf_bar[bar].size = 0; in pci_epf_free_space() 244 epf_bar[bar].barno = 0; in pci_epf_free_space() 245 epf_bar[bar].flags = 0; in pci_epf_free_space() [all …]
|
D | pci-epc-core.c | 493 struct pci_epf_bar *epf_bar) in pci_epc_clear_bar() argument 496 (epf_bar->barno == BAR_5 && in pci_epc_clear_bar() 497 epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64)) in pci_epc_clear_bar() 507 epc->ops->clear_bar(epc, func_no, vfunc_no, epf_bar); in pci_epc_clear_bar() 522 struct pci_epf_bar *epf_bar) in pci_epc_set_bar() argument 525 int flags = epf_bar->flags; in pci_epc_set_bar() 528 (epf_bar->barno == BAR_5 && in pci_epc_set_bar() 532 (upper_32_bits(epf_bar->size) && in pci_epc_set_bar() 543 ret = epc->ops->set_bar(epc, func_no, vfunc_no, epf_bar); in pci_epc_set_bar()
|
/drivers/pci/controller/dwc/ |
D | pcie-designware-ep.c | 216 struct pci_epf_bar *epf_bar) in dw_pcie_ep_clear_bar() argument 220 enum pci_barno bar = epf_bar->barno; in dw_pcie_ep_clear_bar() 226 __dw_pcie_ep_reset_bar(pci, func_no, bar, epf_bar->flags); in dw_pcie_ep_clear_bar() 230 ep->epf_bar[bar] = NULL; in dw_pcie_ep_clear_bar() 235 struct pci_epf_bar *epf_bar) in dw_pcie_ep_set_bar() argument 239 enum pci_barno bar = epf_bar->barno; in dw_pcie_ep_set_bar() 240 size_t size = epf_bar->size; in dw_pcie_ep_set_bar() 241 int flags = epf_bar->flags; in dw_pcie_ep_set_bar() 255 ret = dw_pcie_ep_inbound_atu(ep, func_no, type, epf_bar->phys_addr, bar); in dw_pcie_ep_set_bar() 259 if (ep->epf_bar[bar]) in dw_pcie_ep_set_bar() [all …]
|
D | pcie-designware.h | 366 struct pci_epf_bar *epf_bar[PCI_STD_NUM_BARS]; member
|
/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 | 341 struct pci_epf_bar *epf_bar[PCI_STD_NUM_BARS]; member
|
/drivers/pci/controller/ |
D | pcie-rcar-ep.c | 196 struct pci_epf_bar *epf_bar) in rcar_pcie_ep_set_bar() argument 198 int flags = epf_bar->flags | LAR_ENABLE | LAM_64BIT; in rcar_pcie_ep_set_bar() 200 u64 size = 1ULL << fls64(epf_bar->size - 1); in rcar_pcie_ep_set_bar() 201 dma_addr_t cpu_addr = epf_bar->phys_addr; in rcar_pcie_ep_set_bar() 202 enum pci_barno bar = epf_bar->barno; in rcar_pcie_ep_set_bar() 247 struct pci_epf_bar *epf_bar) in rcar_pcie_ep_clear_bar() argument 250 enum pci_barno bar = epf_bar->barno; in rcar_pcie_ep_clear_bar()
|
D | pcie-rockchip-ep.c | 130 struct pci_epf_bar *epf_bar) in rockchip_pcie_ep_set_bar() argument 134 dma_addr_t bar_phys = epf_bar->phys_addr; in rockchip_pcie_ep_set_bar() 135 enum pci_barno bar = epf_bar->barno; in rockchip_pcie_ep_set_bar() 136 int flags = epf_bar->flags; in rockchip_pcie_ep_set_bar() 141 sz = max_t(size_t, epf_bar->size, MIN_EP_APERTURE); in rockchip_pcie_ep_set_bar() 198 struct pci_epf_bar *epf_bar) in rockchip_pcie_ep_clear_bar() argument 203 enum pci_barno bar = epf_bar->barno; in rockchip_pcie_ep_clear_bar()
|