Lines Matching defs:efx
16 static int efx_ef100_pci_sriov_enable(struct efx_nic *efx, int num_vfs)
18 struct ef100_nic_data *nic_data = efx->nic_data;
19 struct pci_dev *dev = efx->pci_dev;
23 efx->vf_count = num_vfs;
32 rc = efx_ef100_vfrep_create(efx, i);
39 list_for_each_entry_safe(efv, next, &efx->vf_reps, list)
40 efx_ef100_vfrep_destroy(efx, efv);
43 netif_err(efx, probe, efx->net_dev, "Failed to enable SRIOV VFs\n");
44 efx->vf_count = 0;
48 int efx_ef100_pci_sriov_disable(struct efx_nic *efx, bool force)
50 struct pci_dev *dev = efx->pci_dev;
55 netif_info(efx, drv, efx->net_dev, "VFs are assigned to guests; "
60 efx_ef100_fini_vfreps(efx);
66 int efx_ef100_sriov_configure(struct efx_nic *efx, int num_vfs)
69 return efx_ef100_pci_sriov_disable(efx, false);
71 return efx_ef100_pci_sriov_enable(efx, num_vfs);