/drivers/pci/endpoint/ |
D | pci-epf-core.c | 34 struct config_group *pci_epf_type_add_cfs(struct pci_epf *epf, in pci_epf_type_add_cfs() argument 39 if (!epf->driver) { in pci_epf_type_add_cfs() 40 dev_err(&epf->dev, "epf device not bound to driver\n"); in pci_epf_type_add_cfs() 44 if (!epf->driver->ops->add_cfs) in pci_epf_type_add_cfs() 47 mutex_lock(&epf->lock); in pci_epf_type_add_cfs() 48 epf_type_group = epf->driver->ops->add_cfs(epf, group); in pci_epf_type_add_cfs() 49 mutex_unlock(&epf->lock); in pci_epf_type_add_cfs() 63 void pci_epf_unbind(struct pci_epf *epf) in pci_epf_unbind() argument 67 if (!epf->driver) { in pci_epf_unbind() 68 dev_WARN(&epf->dev, "epf device not bound to driver\n"); in pci_epf_unbind() [all …]
|
D | pci-ep-cfs.c | 27 struct pci_epf *epf; member 54 struct pci_epf *epf = epf_group->epf; in pci_secondary_epc_epf_link() local 56 ret = pci_epc_add_epf(epc, epf, SECONDARY_INTERFACE); in pci_secondary_epc_epf_link() 60 ret = pci_epf_bind(epf); in pci_secondary_epc_epf_link() 62 pci_epc_remove_epf(epc, epf, SECONDARY_INTERFACE); in pci_secondary_epc_epf_link() 75 struct pci_epf *epf; in pci_secondary_epc_epf_unlink() local 80 epf = epf_group->epf; in pci_secondary_epc_epf_unlink() 81 pci_epf_unbind(epf); in pci_secondary_epc_epf_unlink() 82 pci_epc_remove_epf(epc, epf, SECONDARY_INTERFACE); in pci_secondary_epc_epf_unlink() 115 struct pci_epf *epf = epf_group->epf; in pci_primary_epc_epf_link() local [all …]
|
D | pci-epc-core.c | 600 int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf, in pci_epc_add_epf() argument 607 if (IS_ERR_OR_NULL(epc) || epf->is_vf) in pci_epc_add_epf() 610 if (type == PRIMARY_INTERFACE && epf->epc) in pci_epc_add_epf() 613 if (type == SECONDARY_INTERFACE && epf->sec_epc) in pci_epc_add_epf() 632 epf->func_no = func_no; in pci_epc_add_epf() 633 epf->epc = epc; in pci_epc_add_epf() 634 list = &epf->list; in pci_epc_add_epf() 636 epf->sec_epc_func_no = func_no; in pci_epc_add_epf() 637 epf->sec_epc = epc; in pci_epc_add_epf() 638 list = &epf->sec_epc_list; in pci_epc_add_epf() [all …]
|
D | Makefile | 7 obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\
|
/drivers/pci/endpoint/functions/ |
D | pci-epf-test.c | 51 struct pci_epf *epf; member 128 struct pci_epf *epf = epf_test->epf; in pci_epf_test_data_transfer() local 131 struct device *dev = &epf->dev; in pci_epf_test_data_transfer() 217 struct pci_epf *epf = epf_test->epf; in pci_epf_test_init_dma_chan() local 218 struct device *dev = &epf->dev; in pci_epf_test_init_dma_chan() 224 filter.dev = epf->epc->dev.parent; in pci_epf_test_init_dma_chan() 337 struct pci_epf *epf = epf_test->epf; in pci_epf_test_copy() local 338 struct device *dev = &epf->dev; in pci_epf_test_copy() 339 struct pci_epc *epc = epf->epc; in pci_epf_test_copy() 351 ret = pci_epc_map_addr(epc, epf->func_no, epf->vfunc_no, src_phys_addr, in pci_epf_test_copy() [all …]
|
D | pci-epf-vntb.c | 120 struct pci_epf *epf; member 214 func_no = ntb->epf->func_no; in epf_ntb_configure_mw() 215 vfunc_no = ntb->epf->vfunc_no; in epf_ntb_configure_mw() 217 ret = pci_epc_map_addr(ntb->epf->epc, func_no, vfunc_no, phys_addr, addr, size); in epf_ntb_configure_mw() 219 dev_err(&ntb->epf->epc->dev, in epf_ntb_configure_mw() 234 pci_epc_unmap_addr(ntb->epf->epc, in epf_ntb_teardown_mw() 235 ntb->epf->func_no, in epf_ntb_teardown_mw() 236 ntb->epf->vfunc_no, in epf_ntb_teardown_mw() 280 dev = &ntb->epf->dev; in epf_ntb_cmd_handler() 349 epf_bar = &ntb->epf->bar[barno]; in epf_ntb_config_sspad_bar_clear() [all …]
|
D | pci-epf-ntb.c | 80 struct pci_epf *epf; member 645 dev = &ntb->epf->dev; in epf_ntb_cmd_handler() 791 dev = &ntb->epf->dev; in epf_ntb_peer_spad_bar_set() 906 dev = &ntb->epf->dev; in epf_ntb_config_sspad_bar_set() 953 struct pci_epf *epf; in epf_ntb_config_spad_bar_free() local 955 epf = ntb->epf; in epf_ntb_config_spad_bar_free() 960 pci_epf_free_space(epf, ntb_epc->reg, barno, type); in epf_ntb_config_spad_bar_free() 1003 struct pci_epf *epf; in epf_ntb_config_spad_bar_alloc() local 1009 epf = ntb->epf; in epf_ntb_config_spad_bar_alloc() 1010 dev = &epf->dev; in epf_ntb_config_spad_bar_alloc() [all …]
|
D | Makefile | 6 obj-$(CONFIG_PCI_EPF_TEST) += pci-epf-test.o 7 obj-$(CONFIG_PCI_EPF_NTB) += pci-epf-ntb.o 8 obj-$(CONFIG_PCI_EPF_VNTB) += pci-epf-vntb.o
|
/drivers/pci/controller/cadence/ |
D | pcie-cadence-ep.c | 80 struct cdns_pcie_epf *epf = &ep->epf[fn]; in cdns_pcie_ep_set_bar() local 144 epf = &epf->epf[vfn - 1]; in cdns_pcie_ep_set_bar() 145 epf->epf_bar[bar] = epf_bar; in cdns_pcie_ep_set_bar() 154 struct cdns_pcie_epf *epf = &ep->epf[fn]; in cdns_pcie_ep_clear_bar() local 179 epf = &epf->epf[vfn - 1]; in cdns_pcie_ep_clear_bar() 180 epf->epf_bar[bar] = NULL; in cdns_pcie_ep_clear_bar() 490 struct cdns_pcie_epf *epf; in cdns_pcie_ep_send_msix_irq() local 496 epf = &ep->epf[fn]; in cdns_pcie_ep_send_msix_irq() 498 epf = &epf->epf[vfn - 1]; in cdns_pcie_ep_send_msix_irq() 512 msix_tbl = epf->epf_bar[bir]->addr + tbl_offset; in cdns_pcie_ep_send_msix_irq() [all …]
|
D | pcie-cadence.h | 340 struct cdns_pcie_epf *epf; member 379 struct cdns_pcie_epf *epf; member
|
/drivers/ntb/hw/ |
D | Makefile | 5 obj-$(CONFIG_NTB_EPF) += epf/
|
D | Kconfig | 5 source "drivers/ntb/hw/epf/Kconfig"
|
/drivers/pci/controller/ |
D | pcie-rockchip-ep.c | 429 struct pci_epf *epf; in rockchip_pcie_ep_start() local 433 list_for_each_entry(epf, &epc->pci_epf, list) in rockchip_pcie_ep_start() 434 cfg |= BIT(epf->func_no); in rockchip_pcie_ep_start()
|