Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/pci/endpoint/
A Dpci-epf-core.c39 if (!epf->driver) { in pci_epf_type_add_cfs()
48 epf_type_group = epf->driver->ops->add_cfs(epf, group); in pci_epf_type_add_cfs()
77 if (epf->is_bound) in pci_epf_unbind()
78 epf->driver->ops->unbind(epf); in pci_epf_unbind()
117 epc = epf->epc; in pci_epf_bind()
161 ret = epf->driver->ops->bind(epf); in pci_epf_bind()
447 epf = kzalloc(sizeof(*epf), GFP_KERNEL); in pci_epf_create()
448 if (!epf) in pci_epf_create()
454 kfree(epf); in pci_epf_create()
480 return epf; in pci_epf_create()
[all …]
A Dpci-ep-cfs.c54 struct pci_epf *epf = epf_group->epf; in pci_secondary_epc_epf_link() local
80 epf = epf_group->epf; in pci_secondary_epc_epf_unlink()
115 struct pci_epf *epf = epf_group->epf; in pci_primary_epc_epf_link() local
141 epf = epf_group->epf; in pci_primary_epc_epf_unlink()
217 struct pci_epf *epf = epf_group->epf; in pci_epc_epf_link() local
243 epf = epf_group->epf; in pci_epc_epf_unlink()
319 struct pci_epf *epf = to_pci_epf_group(item)->epf; \
330 struct pci_epf *epf = to_pci_epf_group(item)->epf; \
344 struct pci_epf *epf = to_pci_epf_group(item)->epf; \
358 struct pci_epf *epf = to_pci_epf_group(item)->epf; \
[all …]
A Dpci-epc-core.c633 epf->epc = epc; in pci_epc_add_epf()
634 list = &epf->list; in pci_epc_add_epf()
637 epf->sec_epc = epc; in pci_epc_add_epf()
669 list = &epf->list; in pci_epc_remove_epf()
678 epf->epc = NULL; in pci_epc_remove_epf()
693 struct pci_epf *epf; in pci_epc_linkup() local
701 if (epf->event_ops && epf->event_ops->link_up) in pci_epc_linkup()
702 epf->event_ops->link_up(epf); in pci_epc_linkup()
719 struct pci_epf *epf; in pci_epc_init_notify() local
727 if (epf->event_ops && epf->event_ops->core_init) in pci_epc_init_notify()
[all …]
A DMakefile7 obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\
/linux-6.3-rc2/drivers/pci/endpoint/functions/
A Dpci-epf-test.c119 struct pci_epf *epf = epf_test->epf; in pci_epf_test_data_transfer() local
201 struct pci_epf *epf = epf_test->epf; in pci_epf_test_init_dma_chan() local
321 struct pci_epf *epf = epf_test->epf; in pci_epf_test_copy() local
421 struct pci_epf *epf = epf_test->epf; in pci_epf_test_read() local
510 struct pci_epf *epf = epf_test->epf; in pci_epf_test_write() local
600 struct pci_epf *epf = epf_test->epf; in pci_epf_test_raise_irq() local
610 pci_epc_raise_irq(epc, epf->func_no, epf->vfunc_no, in pci_epf_test_raise_irq()
614 pci_epc_raise_irq(epc, epf->func_no, epf->vfunc_no, in pci_epf_test_raise_irq()
618 pci_epc_raise_irq(epc, epf->func_no, epf->vfunc_no, in pci_epf_test_raise_irq()
634 struct pci_epf *epf = epf_test->epf; in pci_epf_test_cmd_handler() local
[all …]
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()
563 ret = pci_epc_set_bar(ntb->epf->epc, ntb->epf->func_no, ntb->epf->vfunc_no, epf_bar); in epf_ntb_db_bar_init()
684 pci_epc_remove_epf(ntb->epf->epc, ntb->epf, 0); in epf_ntb_epc_destroy()
707 epc_features = pci_epc_get_features(ntb->epf->epc, ntb->epf->func_no, ntb->epf->vfunc_no); in epf_ntb_init_epc_bar()
750 epf = ntb->epf; in epf_ntb_epc_init()
751 dev = &epf->dev; in epf_ntb_epc_init()
752 epc = epf->epc; in epf_ntb_epc_init()
1323 if (!epf->epc) { in epf_ntb_bind()
[all …]
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 …]
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
/linux-6.3-rc2/include/linux/
A Dpci-epf.h64 int (*bind)(struct pci_epf *epf);
65 void (*unbind)(struct pci_epf *epf);
76 int (*core_init)(struct pci_epf *epf);
77 int (*link_up)(struct pci_epf *epf);
92 int (*probe)(struct pci_epf *epf);
93 void (*remove)(struct pci_epf *epf);
198 dev_set_drvdata(&epf->dev, data); in epf_set_drvdata()
203 return dev_get_drvdata(&epf->dev); in epf_get_drvdata()
207 void pci_epf_destroy(struct pci_epf *epf);
215 int pci_epf_bind(struct pci_epf *epf);
[all …]
A Dpci-epc.h203 int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf,
207 void pci_epc_remove_epf(struct pci_epc *epc, struct pci_epf *epf,
/linux-6.3-rc2/drivers/pci/controller/cadence/
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()
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()
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()
577 for (epf = 0; epf < max_epfs; epf++) { in cdns_pcie_ep_start()
692 if (!ep->epf) in cdns_pcie_ep_setup()
704 epf = &ep->epf[i]; in cdns_pcie_ep_setup()
707 epf->epf = devm_kcalloc(dev, epc->max_vfs[i], in cdns_pcie_ep_setup()
[all …]
A Dpcie-cadence.h340 struct cdns_pcie_epf *epf; member
379 struct cdns_pcie_epf *epf; member
/linux-6.3-rc2/Documentation/PCI/endpoint/
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
111 Binding pci-epf-ntb Device to EP Controller
120 # ln -s controllers/2900000.pcie-ep/ functions/pci-epf-ntb/func1/primary
[all …]
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
112 Binding pci-epf-ntb Device to EP Controller
140 "Creating pci-epf-ntb Device" section above::
[all …]
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.3-rc2/drivers/ntb/hw/
A DMakefile5 obj-$(CONFIG_NTB_EPF) += epf/
A DKconfig5 source "drivers/ntb/hw/epf/Kconfig"
/linux-6.3-rc2/drivers/pci/controller/
A Dpcie-rockchip-ep.c493 struct pci_epf *epf; in rockchip_pcie_ep_start() local
497 list_for_each_entry(epf, &epc->pci_epf, list) in rockchip_pcie_ep_start()
498 cfg |= BIT(epf->func_no); in rockchip_pcie_ep_start()
/linux-6.3-rc2/
A DMAINTAINERS14807 F: drivers/pci/endpoint/functions/pci-epf-*ntb.c

Completed in 52 milliseconds