Home
last modified time | relevance | path

Searched refs:epf (Results 1 – 13 of 13) sorted by relevance

/drivers/pci/endpoint/
Dpci-epf-core.c34 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 …]
Dpci-ep-cfs.c27 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 …]
Dpci-epc-core.c600 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 …]
DMakefile7 obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\
/drivers/pci/endpoint/functions/
Dpci-epf-test.c51 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 …]
Dpci-epf-vntb.c120 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 …]
Dpci-epf-ntb.c80 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 …]
DMakefile6 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/
Dpcie-cadence-ep.c80 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 …]
Dpcie-cadence.h340 struct cdns_pcie_epf *epf; member
379 struct cdns_pcie_epf *epf; member
/drivers/ntb/hw/
DMakefile5 obj-$(CONFIG_NTB_EPF) += epf/
DKconfig5 source "drivers/ntb/hw/epf/Kconfig"
/drivers/pci/controller/
Dpcie-rockchip-ep.c429 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()