Searched refs:epf_bar (Results 1 – 9 of 9) sorted by relevance
| /Linux-v5.10/drivers/pci/controller/cadence/ |
| D | pcie-cadence-ep.c | 51 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 …]
|
| D | pcie-cadence.h | 308 struct pci_epf_bar *epf_bar[PCI_STD_NUM_BARS]; member
|
| /Linux-v5.10/drivers/pci/endpoint/ |
| D | pci-epc-core.c | 386 struct pci_epf_bar *epf_bar) in pci_epc_clear_bar() argument 389 (epf_bar->barno == BAR_5 && in pci_epc_clear_bar() 390 epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64)) in pci_epc_clear_bar() 397 epc->ops->clear_bar(epc, func_no, epf_bar); in pci_epc_clear_bar() 411 struct pci_epf_bar *epf_bar) in pci_epc_set_bar() argument 414 int flags = epf_bar->flags; in pci_epc_set_bar() 417 (epf_bar->barno == BAR_5 && in pci_epc_set_bar() 421 (upper_32_bits(epf_bar->size) && in pci_epc_set_bar() 429 ret = epc->ops->set_bar(epc, func_no, epf_bar); in pci_epc_set_bar()
|
| /Linux-v5.10/drivers/pci/endpoint/functions/ |
| D | pci-epf-test.c | 611 struct pci_epf_bar *epf_bar; in pci_epf_test_unbind() local 618 epf_bar = &epf->bar[bar]; in pci_epf_test_unbind() 621 pci_epc_clear_bar(epc, epf->func_no, epf_bar); in pci_epf_test_unbind() 631 struct pci_epf_bar *epf_bar; in pci_epf_test_set_bar() local 641 epf_bar = &epf->bar[bar]; in pci_epf_test_set_bar() 647 add = (epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64) ? 2 : 1; in pci_epf_test_set_bar() 652 ret = pci_epc_set_bar(epc, epf->func_no, epf_bar); in pci_epf_test_set_bar() 743 struct pci_epf_bar *epf_bar; in pci_epf_test_alloc_space() local 782 epf_bar = &epf->bar[bar]; in pci_epf_test_alloc_space() 783 add = (epf_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64) ? 2 : 1; in pci_epf_test_alloc_space() [all …]
|
| /Linux-v5.10/drivers/pci/controller/dwc/ |
| D | pcie-designware-ep.c | 205 struct pci_epf_bar *epf_bar) in dw_pcie_ep_clear_bar() argument 209 enum pci_barno bar = epf_bar->barno; in dw_pcie_ep_clear_bar() 212 __dw_pcie_ep_reset_bar(pci, func_no, bar, epf_bar->flags); in dw_pcie_ep_clear_bar() 216 ep->epf_bar[bar] = NULL; in dw_pcie_ep_clear_bar() 220 struct pci_epf_bar *epf_bar) in dw_pcie_ep_set_bar() argument 225 enum pci_barno bar = epf_bar->barno; in dw_pcie_ep_set_bar() 226 size_t size = epf_bar->size; in dw_pcie_ep_set_bar() 227 int flags = epf_bar->flags; in dw_pcie_ep_set_bar() 242 epf_bar->phys_addr, as_type); in dw_pcie_ep_set_bar() 256 ep->epf_bar[bar] = epf_bar; in dw_pcie_ep_set_bar() [all …]
|
| D | pcie-designware.h | 246 struct pci_epf_bar *epf_bar[PCI_STD_NUM_BARS]; member
|
| /Linux-v5.10/include/linux/ |
| D | pci-epc.h | 47 struct pci_epf_bar *epf_bar); 49 struct pci_epf_bar *epf_bar); 185 struct pci_epf_bar *epf_bar); 187 struct pci_epf_bar *epf_bar);
|
| /Linux-v5.10/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 | 163 struct pci_epf_bar *epf_bar) in rockchip_pcie_ep_set_bar() argument 167 dma_addr_t bar_phys = epf_bar->phys_addr; in rockchip_pcie_ep_set_bar() 168 enum pci_barno bar = epf_bar->barno; in rockchip_pcie_ep_set_bar() 169 int flags = epf_bar->flags; in rockchip_pcie_ep_set_bar() 174 sz = max_t(size_t, epf_bar->size, MIN_EP_APERTURE); in rockchip_pcie_ep_set_bar() 231 struct pci_epf_bar *epf_bar) in rockchip_pcie_ep_clear_bar() argument 236 enum pci_barno bar = epf_bar->barno; in rockchip_pcie_ep_clear_bar()
|