/openbmc/linux/drivers/pci/endpoint/functions/ |
H A D | pci-epf-ntb.c | 508 epf_bar = &ntb_epc->epf_bar[ntb_epc->msix_bar]; in epf_ntb_configure_msix() 745 epf_bar = &ntb_epc->epf_bar[barno]; in epf_ntb_peer_spad_bar_clear() 799 epf_bar = &ntb_epc->epf_bar[barno]; in epf_ntb_peer_spad_bar_set() 861 epf_bar = &ntb_epc->epf_bar[barno]; in epf_ntb_config_sspad_bar_clear() 912 epf_bar = &ntb_epc->epf_bar[barno]; in epf_ntb_config_sspad_bar_set() 1173 epf_bar = &ntb_epc->epf_bar[barno]; in epf_ntb_free_peer_mem() 1238 epf_bar = &ntb_epc->epf_bar[barno]; in epf_ntb_db_mw_bar_clear() 1410 epf_bar = &ntb_epc->epf_bar[barno]; in epf_ntb_alloc_peer_mem() 1479 epf_bar = &ntb_epc->epf_bar[barno]; in epf_ntb_db_mw_bar_init() 1567 epf_bar = epf->bar; in epf_ntb_epc_create_interface() [all …]
|
H A 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() 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() 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() 1076 struct pci_epf_bar *epf_bar; in vntb_epf_mw_set_trans() local 1083 epf_bar = &ntb->epf->bar[barno]; in vntb_epf_mw_set_trans() 1084 epf_bar->phys_addr = addr; in vntb_epf_mw_set_trans() 1085 epf_bar->barno = barno; in vntb_epf_mw_set_trans() [all …]
|
H A 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() 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() 883 struct pci_epf_bar *epf_bar; in pci_epf_configure_bar() local 888 epf_bar = &epf->bar[i]; in pci_epf_configure_bar() [all …]
|
H A 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()
|
/openbmc/linux/drivers/pci/endpoint/ |
H A 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() 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() 278 epf_bar = epf->bar; in pci_epf_alloc_space() 292 epf_bar[bar].addr = space; in pci_epf_alloc_space() 293 epf_bar[bar].size = size; in pci_epf_alloc_space() [all …]
|
H A 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()
|
/openbmc/linux/drivers/pci/controller/dwc/ |
H A 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() 259 if (ep->epf_bar[bar]) in dw_pcie_ep_set_bar() 272 ep->epf_bar[bar] = epf_bar; in dw_pcie_ep_set_bar() [all …]
|
H A D | pcie-designware.h | 366 struct pci_epf_bar *epf_bar[PCI_STD_NUM_BARS]; member
|
/openbmc/linux/drivers/pci/controller/cadence/ |
H A 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 …]
|
H A D | pcie-cadence.h | 341 struct pci_epf_bar *epf_bar[PCI_STD_NUM_BARS]; member
|
/openbmc/linux/include/linux/ |
H A D | pci-epc.h | 68 struct pci_epf_bar *epf_bar); 70 struct pci_epf_bar *epf_bar); 214 struct pci_epf_bar *epf_bar); 216 struct pci_epf_bar *epf_bar);
|
/openbmc/linux/drivers/pci/controller/ |
H A 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()
|
H A 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()
|