Lines Matching refs:epf_vf

33 	struct pci_epf *epf_vf;  in pci_epf_unbind()  local
41 list_for_each_entry(epf_vf, &epf->pci_vepf, list) { in pci_epf_unbind()
42 if (epf_vf->is_bound) in pci_epf_unbind()
43 epf_vf->driver->ops->unbind(epf_vf); in pci_epf_unbind()
62 struct pci_epf *epf_vf; in pci_epf_bind() local
76 list_for_each_entry(epf_vf, &epf->pci_vepf, list) { in pci_epf_bind()
77 vfunc_no = epf_vf->vfunc_no; in pci_epf_bind()
119 epf_vf->func_no = epf->func_no; in pci_epf_bind()
120 epf_vf->sec_epc_func_no = epf->sec_epc_func_no; in pci_epf_bind()
121 epf_vf->epc = epf->epc; in pci_epf_bind()
122 epf_vf->sec_epc = epf->sec_epc; in pci_epf_bind()
123 ret = epf_vf->driver->ops->bind(epf_vf); in pci_epf_bind()
126 epf_vf->is_bound = true; in pci_epf_bind()
155 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()
177 epf_vf->vfunc_no = vfunc_no; in pci_epf_add_vepf()
179 epf_vf->epf_pf = epf_pf; in pci_epf_add_vepf()
180 epf_vf->is_vf = true; in pci_epf_add_vepf()
182 list_add_tail(&epf_vf->list, &epf_pf->pci_vepf); in pci_epf_add_vepf()
198 void pci_epf_remove_vepf(struct pci_epf *epf_pf, struct pci_epf *epf_vf) in pci_epf_remove_vepf() argument
200 if (IS_ERR_OR_NULL(epf_pf) || IS_ERR_OR_NULL(epf_vf)) in pci_epf_remove_vepf()
204 clear_bit(epf_vf->vfunc_no, &epf_pf->vfunction_num_map); in pci_epf_remove_vepf()
205 list_del(&epf_vf->list); in pci_epf_remove_vepf()