Home
last modified time | relevance | path

Searched refs:epf_pf (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/pci/endpoint/
Dpci-epf-core.c187 int pci_epf_add_vepf(struct pci_epf *epf_pf, struct pci_epf *epf_vf) in pci_epf_add_vepf() argument
191 if (IS_ERR_OR_NULL(epf_pf) || IS_ERR_OR_NULL(epf_vf)) in pci_epf_add_vepf()
194 if (epf_pf->epc || epf_vf->epc || epf_vf->epf_pf) in pci_epf_add_vepf()
197 if (epf_pf->sec_epc || epf_vf->sec_epc) in pci_epf_add_vepf()
200 mutex_lock(&epf_pf->lock); in pci_epf_add_vepf()
201 vfunc_no = find_first_zero_bit(&epf_pf->vfunction_num_map, in pci_epf_add_vepf()
204 mutex_unlock(&epf_pf->lock); in pci_epf_add_vepf()
208 set_bit(vfunc_no, &epf_pf->vfunction_num_map); in pci_epf_add_vepf()
211 epf_vf->epf_pf = epf_pf; in pci_epf_add_vepf()
214 list_add_tail(&epf_vf->list, &epf_pf->pci_vepf); in pci_epf_add_vepf()
[all …]
Dpci-ep-cfs.c471 struct pci_epf *epf_pf = epf_pf_group->epf; in pci_epf_vepf_link() local
474 return pci_epf_add_vepf(epf_pf, epf_vf); in pci_epf_vepf_link()
482 struct pci_epf *epf_pf = epf_pf_group->epf; in pci_epf_vepf_unlink() local
485 pci_epf_remove_vepf(epf_pf, epf_vf); in pci_epf_vepf_unlink()
/linux-6.1.9/include/linux/
Dpci-epf.h154 struct pci_epf *epf_pf; member
214 int pci_epf_add_vepf(struct pci_epf *epf_pf, struct pci_epf *epf_vf);
215 void pci_epf_remove_vepf(struct pci_epf *epf_pf, struct pci_epf *epf_vf);