Home
last modified time | relevance | path

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

/linux-6.15/drivers/pci/endpoint/
H A Dpci-epf-core.c35 if (!epf->driver) { in pci_epf_unbind()
45 if (epf->is_bound) in pci_epf_unbind()
46 epf->driver->ops->unbind(epf); in pci_epf_unbind()
85 epc = epf->epc; in pci_epf_bind()
129 ret = epf->driver->ops->bind(epf); in pci_epf_bind()
231 epc = epf->epc; in pci_epf_free_space()
435 epf = kzalloc(sizeof(*epf), GFP_KERNEL); in pci_epf_create()
436 if (!epf) in pci_epf_create()
442 kfree(epf); in pci_epf_create()
468 return epf; in pci_epf_create()
[all …]
H A Dpci-ep-cfs.c54 struct pci_epf *epf = epf_group->epf; in pci_secondary_epc_epf_link() local
83 epf = epf_group->epf; in pci_secondary_epc_epf_unlink()
118 struct pci_epf *epf = epf_group->epf; in pci_primary_epc_epf_link() local
147 epf = epf_group->epf; in pci_primary_epc_epf_unlink()
226 struct pci_epf *epf = epf_group->epf; in pci_epc_epf_link() local
255 epf = epf_group->epf; in pci_epc_epf_unlink()
331 struct pci_epf *epf = to_pci_epf_group(item)->epf; \
342 struct pci_epf *epf = to_pci_epf_group(item)->epf; \
356 struct pci_epf *epf = to_pci_epf_group(item)->epf; \
553 epf_type_group = epf->driver->ops->add_cfs(epf, group); in pci_epf_type_add_cfs()
[all …]
H A Dpci-epc-core.c808 if (epf->event_ops && epf->event_ops->link_up) in pci_epc_linkup()
809 epf->event_ops->link_up(epf); in pci_epc_linkup()
834 if (epf->event_ops && epf->event_ops->link_down) in pci_epc_linkdown()
835 epf->event_ops->link_down(epf); in pci_epc_linkdown()
860 if (epf->event_ops && epf->event_ops->epc_init) in pci_epc_init_notify()
861 epf->event_ops->epc_init(epf); in pci_epc_init_notify()
883 if (epf->event_ops && epf->event_ops->epc_init) in pci_epc_notify_pending_init()
884 epf->event_ops->epc_init(epf); in pci_epc_notify_pending_init()
906 if (epf->event_ops && epf->event_ops->epc_deinit) in pci_epc_deinit_notify()
907 epf->event_ops->epc_deinit(epf); in pci_epc_deinit_notify()
[all …]
H A DMakefile7 obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\
/linux-6.15/drivers/pci/endpoint/functions/
H A Dpci-epf-test.c134 struct pci_epf *epf = epf_test->epf; in pci_epf_test_data_transfer() local
223 struct pci_epf *epf = epf_test->epf; in pci_epf_test_init_dma_chan() local
326 struct pci_epf *epf = epf_test->epf; in pci_epf_test_copy() local
364 ret = pci_epc_mem_map(epf->epc, epf->func_no, epf->vfunc_no, in pci_epf_test_copy()
369 pci_epc_mem_unmap(epc, epf->func_no, epf->vfunc_no, in pci_epf_test_copy()
430 struct pci_epf *epf = epf_test->epf; in pci_epf_test_read() local
527 struct pci_epf *epf = epf_test->epf; in pci_epf_test_write() local
624 struct pci_epf *epf = epf_test->epf; in pci_epf_test_raise_irq() local
641 pci_epc_raise_irq(epc, epf->func_no, epf->vfunc_no, in pci_epf_test_raise_irq()
675 struct pci_epf *epf = epf_test->epf; in pci_epf_test_cmd_handler() local
[all …]
H A Dpci-epf-vntb.c348 pci_epc_clear_bar(ntb->epf->epc, ntb->epf->func_no, ntb->epf->vfunc_no, epf_bar); in epf_ntb_config_sspad_bar_clear()
416 struct pci_epf *epf = ntb->epf; in epf_ntb_config_spad_bar_alloc() local
492 epc_features = pci_epc_get_features(ntb->epf->epc, ntb->epf->func_no, ntb->epf->vfunc_no); in epf_ntb_configure_interrupt()
552 ret = pci_epc_set_bar(ntb->epf->epc, ntb->epf->func_no, ntb->epf->vfunc_no, epf_bar); in epf_ntb_db_bar_init()
673 pci_epc_remove_epf(ntb->epf->epc, ntb->epf, 0); in epf_ntb_epc_destroy()
696 epc_features = pci_epc_get_features(ntb->epf->epc, ntb->epf->func_no, ntb->epf->vfunc_no); in epf_ntb_init_epc_bar()
739 epf = ntb->epf; in epf_ntb_epc_init()
740 dev = &epf->dev; in epf_ntb_epc_init()
741 epc = epf->epc; in epf_ntb_epc_init()
1309 if (!epf->epc) { in epf_ntb_bind()
[all …]
H A Dpci-epf-mhi.c171 struct pci_epf *epf = epf_mhi->epf; in __pci_epf_mhi_alloc_map() local
179 ret = pci_epc_map_addr(epc, epf->func_no, epf->vfunc_no, *paddr, in __pci_epf_mhi_alloc_map()
209 struct pci_epf *epf = epf_mhi->epf; in __pci_epf_mhi_unmap_free() local
231 struct pci_epf *epf = epf_mhi->epf; in pci_epf_mhi_raise_irq() local
238 pci_epc_raise_irq(epc, epf->func_no, epf->vfunc_no, PCI_IRQ_MSI, in pci_epf_mhi_raise_irq()
733 ret = pci_epc_set_bar(epc, epf->func_no, epf->vfunc_no, epf_bar); in pci_epf_mhi_epc_init()
739 ret = pci_epc_set_msi(epc, epf->func_no, epf->vfunc_no, in pci_epf_mhi_epc_init()
746 ret = pci_epc_write_header(epc, epf->func_no, epf->vfunc_no, in pci_epf_mhi_epc_init()
783 pci_epc_clear_bar(epc, epf->func_no, epf->vfunc_no, epf_bar); in pci_epf_mhi_epc_deinit()
921 pci_epc_clear_bar(epc, epf->func_no, epf->vfunc_no, epf_bar); in pci_epf_mhi_unbind()
[all …]
H A Dpci-epf-ntb.c80 struct pci_epf *epf; member
955 epf = ntb->epf; in epf_ntb_config_spad_bar_free()
1009 epf = ntb->epf; in epf_ntb_config_spad_bar_alloc()
1010 dev = &epf->dev; in epf_ntb_config_spad_bar_alloc()
1515 epf = ntb->epf; in epf_ntb_epc_destroy_interface()
1563 epf = ntb->epf; in epf_ntb_epc_create_interface()
1606 epf = ntb->epf; in epf_ntb_epc_create()
1607 dev = &epf->dev; in epf_ntb_epc_create()
1728 epf = ntb->epf; in epf_ntb_epc_init_interface()
1729 dev = &epf->dev; in epf_ntb_epc_init_interface()
[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
/linux-6.15/include/linux/
H A Dpci-epf.h65 int (*bind)(struct pci_epf *epf);
66 void (*unbind)(struct pci_epf *epf);
80 int (*epc_init)(struct pci_epf *epf);
81 void (*epc_deinit)(struct pci_epf *epf);
82 int (*link_up)(struct pci_epf *epf);
83 int (*link_down)(struct pci_epf *epf);
99 int (*probe)(struct pci_epf *epf,
101 void (*remove)(struct pci_epf *epf);
208 dev_set_drvdata(&epf->dev, data); in epf_set_drvdata()
213 return dev_get_drvdata(&epf->dev); in epf_get_drvdata()
[all …]
H A Dpci-epc.h267 int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf,
272 void pci_epc_notify_pending_init(struct pci_epc *epc, struct pci_epf *epf);
275 void pci_epc_remove_epf(struct pci_epc *epc, struct pci_epf *epf,
/linux-6.15/drivers/nvme/target/
H A Dpci-epf.c259 struct pci_epf *epf = nvme_epf->epf; in nvmet_pci_epf_mem_map() local
261 return pci_epc_mem_map(epf->epc, epf->func_no, epf->vfunc_no, in nvmet_pci_epf_mem_map()
268 struct pci_epf *epf = nvme_epf->epf; in nvmet_pci_epf_mem_unmap() local
270 pci_epc_mem_unmap(epf->epc, epf->func_no, epf->vfunc_no, map); in nvmet_pci_epf_mem_unmap()
642 ret = pci_epc_raise_irq(epf->epc, epf->func_no, epf->vfunc_no, in nvmet_pci_epf_raise_irq()
648 ret = pci_epc_raise_irq(epf->epc, epf->func_no, epf->vfunc_no, in nvmet_pci_epf_raise_irq()
2225 pci_epc_clear_bar(epf->epc, epf->func_no, epf->vfunc_no, in nvmet_pci_epf_clear_bar()
2237 ret = pci_epc_set_msix(epf->epc, epf->func_no, epf->vfunc_no, in nvmet_pci_epf_init_irq()
2252 ret = pci_epc_set_msi(epf->epc, epf->func_no, epf->vfunc_no, in nvmet_pci_epf_init_irq()
2328 ret = pci_epc_set_bar(epf->epc, epf->func_no, epf->vfunc_no, in nvmet_pci_epf_epc_init()
[all …]
H A DMakefile11 obj-$(CONFIG_NVME_TARGET_PCI_EPF) += nvmet-pci-epf.o
24 nvmet-pci-epf-y += pci-epf.o
/linux-6.15/drivers/pci/controller/cadence/
H A Dpcie-cadence-ep.c81 struct cdns_pcie_epf *epf = &ep->epf[fn]; in cdns_pcie_ep_set_bar() local
142 epf = &epf->epf[vfn - 1]; in cdns_pcie_ep_set_bar()
152 struct cdns_pcie_epf *epf = &ep->epf[fn]; in cdns_pcie_ep_clear_bar() local
177 epf = &epf->epf[vfn - 1]; in cdns_pcie_ep_clear_bar()
493 epf = &ep->epf[fn]; in cdns_pcie_ep_send_msix_irq()
495 epf = &epf->epf[vfn - 1]; in cdns_pcie_ep_send_msix_irq()
585 for (epf = 0; epf < max_epfs; epf++) { in cdns_pcie_ep_start()
700 if (!ep->epf) in cdns_pcie_ep_setup()
712 epf = &ep->epf[i]; in cdns_pcie_ep_setup()
715 epf->epf = devm_kcalloc(dev, epc->max_vfs[i], in cdns_pcie_ep_setup()
[all …]
H A Dpcie-cadence.h345 struct cdns_pcie_epf *epf; member
384 struct cdns_pcie_epf *epf; member
/linux-6.15/Documentation/PCI/endpoint/
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
109 Binding pci-epf-ntb Device to EP Controller
137 "Creating pci-epf-ntb Device" section above::
[all …]
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
108 Binding pci-epf-ntb Device to EP Controller
117 # ln -s controllers/2900000.pcie-ep/ functions/pci-epf-ntb/func1/primary
[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
/linux-6.15/drivers/ntb/hw/
H A DMakefile5 obj-$(CONFIG_NTB_EPF) += epf/
H A DKconfig5 source "drivers/ntb/hw/epf/Kconfig"
/linux-6.15/drivers/pci/controller/
H A Dpcie-rockchip-ep.c473 struct pci_epf *epf; in rockchip_pcie_ep_start() local
477 list_for_each_entry(epf, &epc->pci_epf, list) in rockchip_pcie_ep_start()
478 cfg |= BIT(epf->func_no); in rockchip_pcie_ep_start()
/linux-6.15/Documentation/nvme/
H A Dnvme-pci-endpoint-target.rst216 # echo -n "Linux-pci-epf" > nvmepf.0.nqn/attr_model
327 mn : Linux-pci-epf
/linux-6.15/
H A DMAINTAINERS15860 F: drivers/pci/endpoint/functions/pci-epf-mhi.c
17472 F: drivers/pci/endpoint/functions/pci-epf-*ntb.c