Home
last modified time | relevance | path

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

/openbmc/linux/drivers/pci/endpoint/
H A Dpci-epf-core.c31 void pci_epf_unbind(struct pci_epf *epf) in pci_epf_unbind() argument
35 if (!epf->driver) { in pci_epf_unbind()
36 dev_WARN(&epf->dev, "epf device not bound to driver\n"); in pci_epf_unbind()
40 mutex_lock(&epf->lock); in pci_epf_unbind()
41 list_for_each_entry(epf_vf, &epf->pci_vepf, list) { in pci_epf_unbind()
45 if (epf->is_bound) in pci_epf_unbind()
46 epf->driver->ops->unbind(epf); in pci_epf_unbind()
47 mutex_unlock(&epf->lock); in pci_epf_unbind()
48 module_put(epf->driver->owner); in pci_epf_unbind()
59 int pci_epf_bind(struct pci_epf *epf) in pci_epf_bind() argument
[all …]
H A Dpci-ep-cfs.c28 struct pci_epf *epf; member
55 struct pci_epf *epf = epf_group->epf; in pci_secondary_epc_epf_link() local
57 ret = pci_epc_add_epf(epc, epf, SECONDARY_INTERFACE); in pci_secondary_epc_epf_link()
61 ret = pci_epf_bind(epf); in pci_secondary_epc_epf_link()
63 pci_epc_remove_epf(epc, epf, SECONDARY_INTERFACE); in pci_secondary_epc_epf_link()
76 struct pci_epf *epf; in pci_secondary_epc_epf_unlink() local
81 epf = epf_group->epf; in pci_secondary_epc_epf_unlink()
82 pci_epf_unbind(epf); in pci_secondary_epc_epf_unlink()
83 pci_epc_remove_epf(epc, epf, SECONDARY_INTERFACE); in pci_secondary_epc_epf_unlink()
116 struct pci_epf *epf = epf_group->epf; in pci_primary_epc_epf_link() local
[all …]
H A Dpci-epc-core.c599 int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf, in pci_epc_add_epf() argument
606 if (IS_ERR_OR_NULL(epc) || epf->is_vf) in pci_epc_add_epf()
609 if (type == PRIMARY_INTERFACE && epf->epc) in pci_epc_add_epf()
612 if (type == SECONDARY_INTERFACE && epf->sec_epc) in pci_epc_add_epf()
631 epf->func_no = func_no; in pci_epc_add_epf()
632 epf->epc = epc; in pci_epc_add_epf()
633 list = &epf->list; in pci_epc_add_epf()
635 epf->sec_epc_func_no = func_no; in pci_epc_add_epf()
636 epf->sec_epc = epc; in pci_epc_add_epf()
637 list = &epf->sec_epc_list; in pci_epc_add_epf()
[all …]
H A DMakefile7 obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\
/openbmc/linux/drivers/pci/endpoint/functions/
H A 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()
311 dev_info(&epf_test->epf->dev, in pci_epf_test_print_rate()
326 struct pci_epf *epf = epf_test->epf; in pci_epf_test_copy() local
327 struct device *dev = &epf->dev; in pci_epf_test_copy()
328 struct pci_epc *epc = epf->epc; in pci_epf_test_copy()
[all …]
H A Dpci-epf-vntb.c120 struct pci_epf *epf; member
213 func_no = ntb->epf->func_no; in epf_ntb_configure_mw()
214 vfunc_no = ntb->epf->vfunc_no; in epf_ntb_configure_mw()
216 ret = pci_epc_map_addr(ntb->epf->epc, func_no, vfunc_no, phys_addr, addr, size); in epf_ntb_configure_mw()
218 dev_err(&ntb->epf->epc->dev, in epf_ntb_configure_mw()
233 pci_epc_unmap_addr(ntb->epf->epc, in epf_ntb_teardown_mw()
234 ntb->epf->func_no, in epf_ntb_teardown_mw()
235 ntb->epf->vfunc_no, in epf_ntb_teardown_mw()
277 dev = &ntb->epf->dev; in epf_ntb_cmd_handler()
346 epf_bar = &ntb->epf->bar[barno]; in epf_ntb_config_sspad_bar_clear()
[all …]
H A Dpci-epf-mhi.c121 struct pci_epf *epf; member
141 struct pci_epf *epf = epf_mhi->epf; in __pci_epf_mhi_alloc_map() local
142 struct pci_epc *epc = epf->epc; in __pci_epf_mhi_alloc_map()
149 ret = pci_epc_map_addr(epc, epf->func_no, epf->vfunc_no, *paddr, in __pci_epf_mhi_alloc_map()
179 struct pci_epf *epf = epf_mhi->epf; in __pci_epf_mhi_unmap_free() local
180 struct pci_epc *epc = epf->epc; in __pci_epf_mhi_unmap_free()
182 pci_epc_unmap_addr(epc, epf->func_no, epf->vfunc_no, paddr - offset); in __pci_epf_mhi_unmap_free()
201 struct pci_epf *epf = epf_mhi->epf; in pci_epf_mhi_raise_irq() local
202 struct pci_epc *epc = epf->epc; in pci_epf_mhi_raise_irq()
208 pci_epc_raise_irq(epc, epf->func_no, epf->vfunc_no, PCI_EPC_IRQ_MSI, in pci_epf_mhi_raise_irq()
[all …]
H A 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 …]
H A 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
9 obj-$(CONFIG_PCI_EPF_MHI) += pci-epf-mhi.o
/openbmc/linux/include/linux/
H A Dpci-epf.h64 int (*bind)(struct pci_epf *epf);
65 void (*unbind)(struct pci_epf *epf);
66 struct config_group *(*add_cfs)(struct pci_epf *epf,
78 int (*core_init)(struct pci_epf *epf);
79 int (*link_up)(struct pci_epf *epf);
80 int (*link_down)(struct pci_epf *epf);
81 int (*bme)(struct pci_epf *epf);
96 int (*probe)(struct pci_epf *epf,
98 void (*remove)(struct pci_epf *epf);
203 static inline void epf_set_drvdata(struct pci_epf *epf, void *data) in epf_set_drvdata() argument
[all …]
H A Dpci-epc.h203 int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf,
209 void pci_epc_remove_epf(struct pci_epc *epc, struct pci_epf *epf,
/openbmc/linux/drivers/pci/controller/cadence/
H A 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 …]
H A Dpcie-cadence.h340 struct cdns_pcie_epf *epf; member
379 struct cdns_pcie_epf *epf; member
/openbmc/linux/Documentation/PCI/endpoint/
H A Dpci-ntb-howto.rst9 This document is a guide to help users use pci-epf-ntb function driver
40 # ls /sys/bus/pci-epf/drivers
49 Creating pci-epf-ntb Device
53 pci-epf-ntb device, the following commands can be used::
59 The "mkdir func1" above creates the pci-epf-ntb function device that will
66 baseclass_code deviceid msi_interrupts pci-epf-ntb.0
72 when the device is bound to the driver. The pci-epf-ntb driver populates
81 Configuring pci-epf-ntb Device
84 The user can configure the pci-epf-ntb device using its configfs entry. In order
108 Binding pci-epf-ntb Device to EP Controller
[all …]
H A Dpci-vntb-howto.rst9 This document is a guide to help users use pci-epf-vntb function driver
36 # ls /sys/bus/pci-epf/drivers
45 Creating pci-epf-vntb Device
49 pci-epf-vntb device, the following commands can be used::
55 The "mkdir func1" above creates the pci-epf-ntb function device that will
62 baseclass_code deviceid msi_interrupts pci-epf-ntb.0
68 when the device is bound to the driver. The pci-epf-vntb driver populates
77 Configuring pci-epf-vntb Device
80 The user can configure the pci-epf-vntb device using its configfs entry. In order
109 Binding pci-epf-ntb Device to EP Controller
[all …]
H A Dpci-test-howto.rst9 This document is a guide to help users use pci-epf-test function driver
35 # ls /sys/bus/pci-epf/drivers
44 Creating pci-epf-test Device
48 pci-epf-test device, the following commands can be used::
54 The "mkdir func1" above creates the pci-epf-test function device that will
66 when the device is bound to the driver. The pci-epf-test driver populates
75 Configuring pci-epf-test Device
78 The user can configure the pci-epf-test device using configfs entry. In order
88 Binding pci-epf-test Device to EP Controller
/openbmc/linux/drivers/ntb/hw/
H A DMakefile5 obj-$(CONFIG_NTB_EPF) += epf/
H A DKconfig5 source "drivers/ntb/hw/epf/Kconfig"
/openbmc/linux/drivers/pci/controller/
H A Dpcie-rockchip-ep.c437 struct pci_epf *epf; in rockchip_pcie_ep_start() local
441 list_for_each_entry(epf, &epc->pci_epf, list) in rockchip_pcie_ep_start()
442 cfg |= BIT(epf->func_no); in rockchip_pcie_ep_start()
/openbmc/linux/
H A DMAINTAINERS13908 F: drivers/pci/endpoint/functions/pci-epf-mhi.c
15213 F: drivers/pci/endpoint/functions/pci-epf-*ntb.c
H A Dopengrok2.0.log[all...]
H A Dopengrok0.0.log[all...]
H A Dopengrok1.0.log[all...]
/openbmc/
Dopengrok1.0.log[all...]
Dopengrok2.0.log[all...]