Lines Matching refs:epf_vf
65 struct pci_epf *epf_vf; in pci_epf_unbind() local
73 list_for_each_entry(epf_vf, &epf->pci_vepf, list) { in pci_epf_unbind()
74 if (epf_vf->is_bound) in pci_epf_unbind()
75 epf_vf->driver->ops->unbind(epf_vf); in pci_epf_unbind()
94 struct pci_epf *epf_vf; in pci_epf_bind() local
108 list_for_each_entry(epf_vf, &epf->pci_vepf, list) { in pci_epf_bind()
109 vfunc_no = epf_vf->vfunc_no; in pci_epf_bind()
151 epf_vf->func_no = epf->func_no; in pci_epf_bind()
152 epf_vf->sec_epc_func_no = epf->sec_epc_func_no; in pci_epf_bind()
153 epf_vf->epc = epf->epc; in pci_epf_bind()
154 epf_vf->sec_epc = epf->sec_epc; in pci_epf_bind()
155 ret = epf_vf->driver->ops->bind(epf_vf); in pci_epf_bind()
158 epf_vf->is_bound = true; in pci_epf_bind()
187 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()
209 epf_vf->vfunc_no = vfunc_no; in pci_epf_add_vepf()
211 epf_vf->epf_pf = epf_pf; in pci_epf_add_vepf()
212 epf_vf->is_vf = true; in pci_epf_add_vepf()
214 list_add_tail(&epf_vf->list, &epf_pf->pci_vepf); in pci_epf_add_vepf()
230 void pci_epf_remove_vepf(struct pci_epf *epf_pf, struct pci_epf *epf_vf) in pci_epf_remove_vepf() argument
232 if (IS_ERR_OR_NULL(epf_pf) || IS_ERR_OR_NULL(epf_vf)) in pci_epf_remove_vepf()
236 clear_bit(epf_vf->vfunc_no, &epf_pf->vfunction_num_map); in pci_epf_remove_vepf()
237 list_del(&epf_vf->list); in pci_epf_remove_vepf()