Lines Matching full:epc
14 #include <linux/pci-epc.h>
25 * EPF device and EPC device has been lost
26 * @epf: the EPF device which has lost the binding with the EPC device
29 * and EPC device has been lost.
54 * bound to a EPC device
55 * @epf: the EPF device which has been bound to the EPC device
57 * Invoke to notify the function driver that it has been bound to a EPC device
64 struct pci_epc *epc; in pci_epf_bind() local
85 epc = epf->epc; in pci_epf_bind()
87 if (!IS_ERR_OR_NULL(epc)) { in pci_epf_bind()
88 if (!epc->max_vfs) { in pci_epf_bind()
94 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind()
102 epc = epf->sec_epc; in pci_epf_bind()
104 if (!IS_ERR_OR_NULL(epc)) { in pci_epf_bind()
105 if (!epc->max_vfs) { in pci_epf_bind()
111 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind()
121 epf_vf->epc = epf->epc; in pci_epf_bind()
162 if (epf_pf->epc || epf_vf->epc || epf_vf->epf_pf) in pci_epf_add_vepf()
216 * @type: Identifies if the allocated space is for primary EPC or secondary EPC
225 struct pci_epc *epc; in pci_epf_free_space() local
231 epc = epf->epc; in pci_epf_free_space()
234 epc = epf->sec_epc; in pci_epf_free_space()
238 dev = epc->dev.parent; in pci_epf_free_space()
256 * @epc_features: the features provided by the EPC specific to this EPF
257 * @type: Identifies if the allocation is for primary EPC or secondary EPC
271 struct pci_epc *epc; in pci_epf_alloc_space() local
303 epc = epf->epc; in pci_epf_alloc_space()
306 epc = epf->sec_epc; in pci_epf_alloc_space()
310 dev = epc->dev.parent; in pci_epf_alloc_space()