Lines Matching refs:pci_dev

212 					  pci_name(efx->pci_dev),
226 pci_name(other->pci_dev),
717 net_dev->irq = efx->pci_dev->irq;
733 pci_err(efx->pci_dev, "aborting probe due to scheduled reset\n");
762 rc = device_create_file(&efx->pci_dev->dev, &dev_attr_phy_type);
793 strscpy(efx->name, pci_name(efx->pci_dev), sizeof(efx->name));
795 device_remove_file(&efx->pci_dev->dev, &dev_attr_phy_type);
874 static void efx_pci_remove(struct pci_dev *pci_dev)
879 efx = pci_get_drvdata(pci_dev);
902 pci_dbg(efx->pci_dev, "shutdown successful\n");
917 struct pci_dev *dev = efx->pci_dev;
964 pci_err(efx->pci_dev, "failed to initialise NIC\n");
1011 pci_err(efx->pci_dev, "SR-IOV can't be enabled rc %d\n",
1047 pci_err(efx->pci_dev, "devlink registration failed");
1067 static int efx_pci_probe(struct pci_dev *pci_dev,
1079 probe_data->pci_dev = pci_dev;
1094 pci_set_drvdata(pci_dev, efx);
1095 SET_NETDEV_DEV(net_dev, &pci_dev->dev);
1096 rc = efx_init_struct(efx, pci_dev);
1101 pci_info(pci_dev, "Solarflare NIC detected\n");
1166 static int efx_pci_sriov_configure(struct pci_dev *dev, int num_vfs)
1202 static void efx_pci_shutdown(struct pci_dev *pci_dev)
1204 struct efx_nic *efx = pci_get_drvdata(pci_dev);
1209 efx_pm_freeze(&pci_dev->dev);
1210 pci_disable_device(pci_dev);
1253 struct pci_dev *pci_dev = to_pci_dev(dev);
1254 struct efx_nic *efx = pci_get_drvdata(pci_dev);
1260 pci_save_state(pci_dev);
1261 return pci_set_power_state(pci_dev, PCI_D3hot);
1267 struct pci_dev *pci_dev = to_pci_dev(dev);
1268 struct efx_nic *efx = pci_get_drvdata(pci_dev);
1271 rc = pci_set_power_state(pci_dev, PCI_D0);
1274 pci_restore_state(pci_dev);
1275 rc = pci_enable_device(pci_dev);
1278 pci_set_master(efx->pci_dev);