Lines Matching refs:pdev
191 static void atl1e_setup_pcicmd(struct pci_device *pdev)
195 pci_read_config_word(pdev, PCI_COMMAND, &cmd);
197 pci_write_config_word(pdev, PCI_COMMAND, cmd);
204 pci_write_config_dword(pdev, REG_PM_CTRLSTAT, 0);
219 struct pci_device *pdev = adapter->pdev;
227 pci_read_config_byte(pdev, PCI_REVISION_ID, &rev_id);
1109 static void atl1e_init_netdev(struct net_device *netdev, struct pci_device *pdev)
1113 netdev->dev = &pdev->dev;
1114 pci_set_drvdata(pdev, netdev);
1119 * @pdev: PCI device information struct
1128 static int atl1e_probe(struct pci_device *pdev,
1137 adjust_pci_device(pdev);
1146 atl1e_init_netdev(netdev, pdev);
1151 adapter->pdev = pdev;
1153 if (!pdev->membase) {
1158 adapter->hw.hw_addr = bus_to_virt(pdev->membase);
1171 atl1e_setup_pcicmd(pdev);
1229 * @pdev: PCI device information struct
1236 static void atl1e_remove(struct pci_device *pdev)
1238 struct net_device *netdev = pci_get_drvdata(pdev);
1626 struct pci_device *pdev = adapter->pdev;
1632 pci_read_config_word(pdev, PCI_COMMAND, &pci_cfg_cmd_word);
1639 pci_write_config_word(pdev, PCI_COMMAND, pci_cfg_cmd_word);