Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/pci/endpoint/
H A Dpci-epf-core.c15 #include <linux/pci-epf.h>
26 * @epf: the EPF device which has lost the binding with the EPC device
31 void pci_epf_unbind(struct pci_epf *epf) in pci_epf_unbind() argument
33 if (!epf->driver) { in pci_epf_unbind()
34 dev_WARN(&epf->dev, "epf device not bound to driver\n"); in pci_epf_unbind()
38 mutex_lock(&epf->lock); in pci_epf_unbind()
39 epf->driver->ops->unbind(epf); in pci_epf_unbind()
40 mutex_unlock(&epf in pci_epf_unbind()
52 pci_epf_bind(struct pci_epf *epf) pci_epf_bind() argument
80 pci_epf_free_space(struct pci_epf *epf, void *addr, enum pci_barno bar) pci_epf_free_space() argument
107 pci_epf_alloc_space(struct pci_epf *epf, size_t size, enum pci_barno bar, size_t align) pci_epf_alloc_space() argument
231 pci_epf_destroy(struct pci_epf *epf) pci_epf_destroy() argument
248 struct pci_epf *epf; pci_epf_create() local
286 pci_epf_match_device(const struct pci_epf_device_id *id, struct pci_epf *epf) pci_epf_match_device() argument
303 struct pci_epf *epf = to_pci_epf(dev); pci_epf_dev_release() local
314 pci_epf_match_id(const struct pci_epf_device_id *id, const struct pci_epf *epf) pci_epf_match_id() argument
327 struct pci_epf *epf = to_pci_epf(dev); pci_epf_device_match() local
338 struct pci_epf *epf = to_pci_epf(dev); pci_epf_device_probe() local
352 struct pci_epf *epf = to_pci_epf(dev); pci_epf_device_remove() local
[all...]
H A Dpci-ep-cfs.c14 #include <linux/pci-epf.h>
24 struct pci_epf *epf; member
95 struct pci_epf *epf = epf_group->epf; in pci_epc_epf_link() local
97 ret = pci_epc_add_epf(epc, epf); in pci_epc_epf_link()
101 ret = pci_epf_bind(epf); in pci_epc_epf_link()
103 pci_epc_remove_epf(epc, epf); in pci_epc_epf_link()
114 struct pci_epf *epf; in pci_epc_epf_unlink() local
121 epf = epf_group->epf; in pci_epc_epf_unlink()
379 struct pci_epf *epf; pci_epf_make() local
[all...]
H A Dpci-epc-core.c15 #include <linux/pci-epf.h>
495 * @epf: the endpoint function to be added
501 int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf) in pci_epc_add_epf() argument
506 if (epf->epc) in pci_epc_add_epf()
527 epf->func_no = func_no; in pci_epc_add_epf()
528 epf->epc = epc; in pci_epc_add_epf()
530 list_add_tail(&epf->list, &epc->pci_epf); in pci_epc_add_epf()
542 * @epf: the endpoint function to be removed
546 void pci_epc_remove_epf(struct pci_epc *epc, struct pci_epf *epf) in pci_epc_remove_epf() argument
548 if (!epc || IS_ERR(epc) || !epf) in pci_epc_remove_epf()
[all...]
/kernel/linux/linux-6.6/drivers/pci/endpoint/functions/
H A Dpci-epf-test.c19 #include <linux/pci-epf.h>
51 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 in pci_epf_test_print_rate()
326 struct pci_epf *epf = epf_test->epf; pci_epf_test_copy() local
421 struct pci_epf *epf = epf_test->epf; pci_epf_test_read() local
505 struct pci_epf *epf = epf_test->epf; pci_epf_test_write() local
590 struct pci_epf *epf = epf_test->epf; pci_epf_test_raise_irq() local
638 struct pci_epf *epf = epf_test->epf; pci_epf_test_cmd_handler() local
689 pci_epf_test_unbind(struct pci_epf *epf) pci_epf_test_unbind() argument
710 pci_epf_test_set_bar(struct pci_epf *epf) pci_epf_test_set_bar() argument
749 pci_epf_test_core_init(struct pci_epf *epf) pci_epf_test_core_init() argument
801 pci_epf_test_link_up(struct pci_epf *epf) pci_epf_test_link_up() argument
816 pci_epf_test_alloc_space(struct pci_epf *epf) pci_epf_test_alloc_space() argument
880 pci_epf_configure_bar(struct pci_epf *epf, const struct pci_epc_features *epc_features) pci_epf_configure_bar() argument
897 pci_epf_test_bind(struct pci_epf *epf) pci_epf_test_bind() argument
955 pci_epf_test_probe(struct pci_epf *epf, const struct pci_epf_device_id *id) pci_epf_test_probe() argument
[all...]
H A Dpci-epf-mhi.c15 #include <linux/pci-epf.h>
121 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 in __pci_epf_mhi_unmap_free()
201 struct pci_epf *epf = epf_mhi->epf; pci_epf_mhi_raise_irq() local
472 pci_epf_mhi_core_init(struct pci_epf *epf) pci_epf_mhi_core_init() argument
512 pci_epf_mhi_link_up(struct pci_epf *epf) pci_epf_mhi_link_up() argument
558 pci_epf_mhi_link_down(struct pci_epf *epf) pci_epf_mhi_link_down() argument
574 pci_epf_mhi_bme(struct pci_epf *epf) pci_epf_mhi_bme() argument
599 pci_epf_mhi_bind(struct pci_epf *epf) pci_epf_mhi_bind() argument
627 pci_epf_mhi_unbind(struct pci_epf *epf) pci_epf_mhi_unbind() argument
658 pci_epf_mhi_probe(struct pci_epf *epf, const struct pci_epf_device_id *id) pci_epf_mhi_probe() argument
[all...]
H A Dpci-epf-vntb.c9 * Based on pci-epf-ntb.c
45 #include <linux/pci-epf.h>
120 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 in epf_ntb_teardown_mw()
416 struct pci_epf *epf = ntb->epf; epf_ntb_config_spad_bar_alloc() local
746 struct pci_epf *epf; epf_ntb_epc_init() local
974 epf_ntb_add_cfs(struct pci_epf *epf, struct config_group *group) epf_ntb_add_cfs() argument
1314 epf_ntb_bind(struct pci_epf *epf) epf_ntb_bind() argument
1374 epf_ntb_unbind(struct pci_epf *epf) epf_ntb_unbind() argument
1402 epf_ntb_probe(struct pci_epf *epf, const struct pci_epf_device_id *id) epf_ntb_probe() argument
[all...]
H A Dpci-epf-ntb.c43 #include <linux/pci-epf.h>
80 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
1510 struct pci_epf *epf; epf_ntb_epc_destroy_interface() local
1554 struct pci_epf *epf; epf_ntb_epc_create_interface() local
1602 struct pci_epf *epf; epf_ntb_epc_create() local
1723 struct pci_epf *epf; epf_ntb_epc_init_interface() local
1865 epf_ntb_bind(struct pci_epf *epf) epf_ntb_bind() argument
1924 epf_ntb_unbind(struct pci_epf *epf) epf_ntb_unbind() argument
2063 epf_ntb_add_cfs(struct pci_epf *epf, struct config_group *group) epf_ntb_add_cfs() argument
2083 epf_ntb_probe(struct pci_epf *epf, const struct pci_epf_device_id *id) epf_ntb_probe() argument
[all...]
/kernel/linux/linux-6.6/drivers/pci/endpoint/
H A Dpci-epf-core.c15 #include <linux/pci-epf.h>
26 * @epf: the EPF device which has lost the binding with the EPC device
31 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 in pci_epf_unbind()
59 pci_epf_bind(struct pci_epf *epf) pci_epf_bind() argument
219 pci_epf_free_space(struct pci_epf *epf, void *addr, enum pci_barno bar, enum pci_epc_interface_type type) pci_epf_free_space() argument
259 pci_epf_alloc_space(struct pci_epf *epf, size_t size, enum pci_barno bar, size_t align, enum pci_epc_interface_type type) pci_epf_alloc_space() argument
394 pci_epf_destroy(struct pci_epf *epf) pci_epf_destroy() argument
411 struct pci_epf *epf; pci_epf_create() local
454 struct pci_epf *epf = to_pci_epf(dev); pci_epf_dev_release() local
465 pci_epf_match_id(const struct pci_epf_device_id *id, const struct pci_epf *epf) pci_epf_match_id() argument
478 struct pci_epf *epf = to_pci_epf(dev); pci_epf_device_match() local
489 struct pci_epf *epf = to_pci_epf(dev); pci_epf_device_probe() local
502 struct pci_epf *epf = to_pci_epf(dev); pci_epf_device_remove() local
[all...]
H A Dpci-ep-cfs.c14 #include <linux/pci-epf.h>
28 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()
116 struct pci_epf *epf = epf_group->epf; pci_primary_epc_epf_link() local
137 struct pci_epf *epf; pci_primary_epc_epf_unlink() local
221 struct pci_epf *epf = epf_group->epf; pci_epc_epf_link() local
240 struct pci_epf *epf; pci_epc_epf_unlink() local
531 pci_epf_type_add_cfs(struct pci_epf *epf, struct config_group *group) pci_epf_type_add_cfs() argument
593 struct pci_epf *epf; pci_epf_make() local
[all...]
H A Dpci-epc-core.c14 #include <linux/pci-epf.h>
591 * @epf: the endpoint function to be added
599 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 in pci_epc_add_epf()
657 pci_epc_remove_epf(struct pci_epc *epc, struct pci_epf *epf, enum pci_epc_interface_type type) pci_epc_remove_epf() argument
692 struct pci_epf *epf; pci_epc_linkup() local
718 struct pci_epf *epf; pci_epc_linkdown() local
744 struct pci_epf *epf; pci_epc_init_notify() local
770 struct pci_epf *epf; pci_epc_bme_notify() local
[all...]
/kernel/linux/linux-5.10/drivers/pci/endpoint/functions/
H A Dpci-epf-test.c19 #include <linux/pci-epf.h>
51 struct pci_epf *epf; member
112 struct pci_epf *epf = epf_test->epf; in pci_epf_test_data_transfer() local
114 struct device *dev = &epf->dev; in pci_epf_test_data_transfer()
159 struct pci_epf *epf = epf_test->epf; in pci_epf_test_init_dma_chan() local
160 struct device *dev = &epf->dev; in pci_epf_test_init_dma_chan()
236 struct pci_epf *epf = epf_test->epf; in pci_epf_test_copy() local
329 struct pci_epf *epf = epf_test->epf; pci_epf_test_read() local
417 struct pci_epf *epf = epf_test->epf; pci_epf_test_write() local
504 struct pci_epf *epf = epf_test->epf; pci_epf_test_raise_irq() local
535 struct pci_epf *epf = epf_test->epf; pci_epf_test_cmd_handler() local
617 pci_epf_test_unbind(struct pci_epf *epf) pci_epf_test_unbind() argument
636 pci_epf_test_set_bar(struct pci_epf *epf) pci_epf_test_set_bar() argument
673 pci_epf_test_core_init(struct pci_epf *epf) pci_epf_test_core_init() argument
724 struct pci_epf *epf = container_of(nb, struct pci_epf, nb); pci_epf_test_notifier() local
748 pci_epf_test_alloc_space(struct pci_epf *epf) pci_epf_test_alloc_space() argument
811 pci_epf_configure_bar(struct pci_epf *epf, const struct pci_epc_features *epc_features) pci_epf_configure_bar() argument
828 pci_epf_test_bind(struct pci_epf *epf) pci_epf_test_bind() argument
890 pci_epf_test_probe(struct pci_epf *epf) pci_epf_test_probe() argument
[all...]
/kernel/linux/linux-6.6/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, voi argument
208 epf_get_drvdata(struct pci_epf *epf) epf_get_drvdata() argument
[all...]
H A Dpci-epc.h12 #include <linux/pci-epf.h>
203 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,
/kernel/linux/linux-5.10/include/linux/
H A Dpci-epf.h66 int (*bind)(struct pci_epf *epf);
67 void (*unbind)(struct pci_epf *epf);
82 int (*probe)(struct pci_epf *epf);
83 int (*remove)(struct pci_epf *epf);
158 static inline void epf_set_drvdata(struct pci_epf *epf, void *data) in epf_set_drvdata() argument
160 dev_set_drvdata(&epf->dev, data); in epf_set_drvdata()
163 static inline void *epf_get_drvdata(struct pci_epf *epf) in epf_get_drvdata() argument
165 return dev_get_drvdata(&epf->dev); in epf_get_drvdata()
169 pci_epf_match_device(const struct pci_epf_device_id *id, struct pci_epf *epf);
171 void pci_epf_destroy(struct pci_epf *epf);
[all...]
H A Dpci-epc.h12 #include <linux/pci-epf.h>
178 int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf);
181 void pci_epc_remove_epf(struct pci_epc *epc, struct pci_epf *epf);
/kernel/linux/linux-6.6/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 in cdns_pcie_ep_clear_bar()
490 struct cdns_pcie_epf *epf; cdns_pcie_ep_send_msix_irq() local
568 int ret, value, epf; cdns_pcie_ep_start() local
646 struct cdns_pcie_epf *epf; cdns_pcie_ep_setup() local
[all...]
H A Dpcie-cadence.h11 #include <linux/pci-epf.h>
336 * @epf: Info about virtual functions attached to the physical function
340 struct cdns_pcie_epf *epf; member
363 * @epf: Structure to hold info about endpoint function
379 struct cdns_pcie_epf *epf; member
/kernel/linux/linux-5.10/drivers/pci/controller/cadence/
H A Dpcie-cadence-ep.c54 struct cdns_pcie_epf *epf = &ep->epf[fn]; in cdns_pcie_ep_set_bar() local
115 epf->epf_bar[bar] = epf_bar; in cdns_pcie_ep_set_bar()
124 struct cdns_pcie_epf *epf = &ep->epf[fn]; in cdns_pcie_ep_clear_bar() local
147 epf->epf_bar[bar] = NULL; in cdns_pcie_ep_clear_bar()
391 struct cdns_pcie_epf *epf; in cdns_pcie_ep_send_msix_irq() local
407 epf = &ep->epf[fn]; in cdns_pcie_ep_send_msix_irq()
408 msix_tbl = epf in cdns_pcie_ep_send_msix_irq()
457 struct pci_epf *epf; cdns_pcie_ep_start() local
[all...]
H A Dpcie-cadence.h342 * @epf: Structure to hold info about endpoint function
357 struct cdns_pcie_epf *epf; member
/kernel/linux/linux-5.10/drivers/pci/controller/
H A Dpcie-rockchip-ep.c17 #include <linux/pci-epf.h>
472 struct pci_epf *epf; in rockchip_pcie_ep_start() local
476 list_for_each_entry(epf, &epc->pci_epf, list) in rockchip_pcie_ep_start()
477 cfg |= BIT(epf->func_no); in rockchip_pcie_ep_start()
/kernel/linux/linux-6.6/drivers/pci/controller/
H A Dpcie-rockchip-ep.c17 #include <linux/pci-epf.h>
429 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()
/kernel/linux/linux-5.10/drivers/dma/dw-edma/
H A Ddw-edma-pcie.c14 #include <linux/pci-epf.h>
/kernel/linux/linux-5.10/drivers/pci/controller/dwc/
H A Dpcie-designware.h21 #include <linux/pci-epf.h>
/kernel/linux/linux-6.6/drivers/misc/
H A Ddw-xdata-pcie.c11 #include <linux/pci-epf.h>
/kernel/linux/linux-6.6/drivers/dma/dw-edma/
H A Ddw-edma-pcie.c14 #include <linux/pci-epf.h>

Completed in 22 milliseconds

12