| /linux/drivers/pci/endpoint/ |
| A D | pci-epf-core.c | 35 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() 230 epc = epf->epc; in pci_epf_free_space() 430 epf = kzalloc(sizeof(*epf), GFP_KERNEL); in pci_epf_create() 431 if (!epf) in pci_epf_create() 437 kfree(epf); in pci_epf_create() 463 return epf; in pci_epf_create() [all …]
|
| A D | pci-ep-cfs.c | 54 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 …]
|
| A D | pci-epc-core.c | 697 if (epf->event_ops && epf->event_ops->link_up) in pci_epc_linkup() 698 epf->event_ops->link_up(epf); in pci_epc_linkup() 723 if (epf->event_ops && epf->event_ops->link_down) in pci_epc_linkdown() 724 epf->event_ops->link_down(epf); in pci_epc_linkdown() 749 if (epf->event_ops && epf->event_ops->epc_init) in pci_epc_init_notify() 750 epf->event_ops->epc_init(epf); in pci_epc_init_notify() 772 if (epf->event_ops && epf->event_ops->epc_init) in pci_epc_notify_pending_init() 773 epf->event_ops->epc_init(epf); in pci_epc_notify_pending_init() 795 if (epf->event_ops && epf->event_ops->epc_deinit) in pci_epc_deinit_notify() 796 epf->event_ops->epc_deinit(epf); in pci_epc_deinit_notify() [all …]
|
| A D | Makefile | 7 obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\
|
| /linux/drivers/pci/endpoint/functions/ |
| A D | pci-epf-test.c | 128 struct pci_epf *epf = epf_test->epf; in pci_epf_test_data_transfer() local 217 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 421 struct pci_epf *epf = epf_test->epf; in pci_epf_test_read() local 505 struct pci_epf *epf = epf_test->epf; in pci_epf_test_write() local 590 struct pci_epf *epf = epf_test->epf; in pci_epf_test_raise_irq() local 604 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() 624 pci_epc_raise_irq(epc, epf->func_no, epf->vfunc_no, in pci_epf_test_raise_irq() 638 struct pci_epf *epf = epf_test->epf; in pci_epf_test_cmd_handler() local [all …]
|
| A D | pci-epf-vntb.c | 348 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 …]
|
| A D | pci-epf-mhi.c | 171 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() 915 pci_epc_clear_bar(epc, epf->func_no, epf->vfunc_no, epf_bar); in pci_epf_mhi_unbind() [all …]
|
| A D | pci-epf-ntb.c | 80 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 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 9 obj-$(CONFIG_PCI_EPF_MHI) += pci-epf-mhi.o
|
| /linux/include/linux/ |
| A D | pci-epf.h | 65 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); 207 dev_set_drvdata(&epf->dev, data); in epf_set_drvdata() 212 return dev_get_drvdata(&epf->dev); in epf_get_drvdata() [all …]
|
| A D | pci-epc.h | 228 int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf, 233 void pci_epc_notify_pending_init(struct pci_epc *epc, struct pci_epf *epf); 236 void pci_epc_remove_epf(struct pci_epc *epc, struct pci_epf *epf,
|
| /linux/drivers/pci/controller/cadence/ |
| A D | pcie-cadence-ep.c | 81 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() 494 epf = &ep->epf[fn]; in cdns_pcie_ep_send_msix_irq() 496 epf = &epf->epf[vfn - 1]; in cdns_pcie_ep_send_msix_irq() 586 for (epf = 0; epf < max_epfs; epf++) { in cdns_pcie_ep_start() 701 if (!ep->epf) in cdns_pcie_ep_setup() 713 epf = &ep->epf[i]; in cdns_pcie_ep_setup() 716 epf->epf = devm_kcalloc(dev, epc->max_vfs[i], in cdns_pcie_ep_setup() [all …]
|
| A D | pcie-cadence.h | 345 struct cdns_pcie_epf *epf; member 384 struct cdns_pcie_epf *epf; member
|
| /linux/Documentation/PCI/endpoint/ |
| A D | pci-ntb-howto.rst | 9 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 …]
|
| A D | pci-vntb-howto.rst | 9 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 …]
|
| A D | pci-test-howto.rst | 9 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/drivers/ntb/hw/ |
| A D | Makefile | 5 obj-$(CONFIG_NTB_EPF) += epf/
|
| A D | Kconfig | 5 source "drivers/ntb/hw/epf/Kconfig"
|
| /linux/drivers/pci/controller/ |
| A D | pcie-rockchip-ep.c | 426 struct pci_epf *epf; in rockchip_pcie_ep_start() local 430 list_for_each_entry(epf, &epc->pci_epf, list) in rockchip_pcie_ep_start() 431 cfg |= BIT(epf->func_no); in rockchip_pcie_ep_start()
|
| /linux/ |
| A D | MAINTAINERS | 14989 F: drivers/pci/endpoint/functions/pci-epf-mhi.c 16467 F: drivers/pci/endpoint/functions/pci-epf-*ntb.c
|