Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/pci/endpoint/
Dpci-epf-core.c155 int pci_epf_add_vepf(struct pci_epf *epf_pf, struct pci_epf *epf_vf) in pci_epf_add_vepf() argument
159 if (IS_ERR_OR_NULL(epf_pf) || IS_ERR_OR_NULL(epf_vf)) in pci_epf_add_vepf()
162 if (epf_pf->epc || epf_vf->epc || epf_vf->epf_pf) in pci_epf_add_vepf()
165 if (epf_pf->sec_epc || epf_vf->sec_epc) in pci_epf_add_vepf()
168 mutex_lock(&epf_pf->lock); in pci_epf_add_vepf()
169 vfunc_no = find_first_zero_bit(&epf_pf->vfunction_num_map, in pci_epf_add_vepf()
172 mutex_unlock(&epf_pf->lock); in pci_epf_add_vepf()
176 set_bit(vfunc_no, &epf_pf->vfunction_num_map); in pci_epf_add_vepf()
179 epf_vf->epf_pf = epf_pf; in pci_epf_add_vepf()
182 list_add_tail(&epf_vf->list, &epf_pf->pci_vepf); in pci_epf_add_vepf()
[all …]
Dpci-ep-cfs.c483 struct pci_epf *epf_pf = epf_pf_group->epf; in pci_epf_vepf_link() local
486 return pci_epf_add_vepf(epf_pf, epf_vf); in pci_epf_vepf_link()
494 struct pci_epf *epf_pf = epf_pf_group->epf; in pci_epf_vepf_unlink() local
497 pci_epf_remove_vepf(epf_pf, epf_vf); in pci_epf_vepf_unlink()
/linux-6.12.1/include/linux/
Dpci-epf.h167 struct pci_epf *epf_pf; member
227 int pci_epf_add_vepf(struct pci_epf *epf_pf, struct pci_epf *epf_vf);
228 void pci_epf_remove_vepf(struct pci_epf *epf_pf, struct pci_epf *epf_vf);