Lines Matching refs:pdev
125 struct pci_device *pdev = adapter->pdev;
129 hw->vendor_id = pdev->vendor;
130 hw->device_id = pdev->device;
132 pci_read_config_word ( pdev, PCI_COMMAND, &hw->pci_cmd_word );
822 e1000_probe ( struct pci_device *pdev,
846 pci_set_drvdata ( pdev, netdev );
847 netdev->dev = &pdev->dev;
853 adapter->hw.io_base = pdev->ioaddr;
854 adapter->ioaddr = pdev->ioaddr;
855 adapter->irqno = pdev->irq;
857 adapter->pdev = pdev;
863 mmio_start = pci_bar_start ( pdev, PCI_BASE_ADDRESS_0 );
864 mmio_len = pci_bar_size ( pdev, PCI_BASE_ADDRESS_0 );
870 adjust_pci_device ( pdev );
889 if ( ( adapter->hw.mac_type == e1000_ich8lan ) && ( pdev->ioaddr ) ) {
890 flash_start = pci_bar_start ( pdev, PCI_BASE_ADDRESS_1 );
891 flash_len = pci_bar_size ( pdev, PCI_BASE_ADDRESS_1 );
979 * @v pdev PCI device information struct
983 e1000_remove ( struct pci_device *pdev )
985 struct net_device *netdev = pci_get_drvdata ( pdev );
1062 cap_offset = pci_find_capability(adapter->pdev, PCI_CAP_ID_EXP);
1066 pci_read_config_word(adapter->pdev, cap_offset + reg, value);
1076 pci_write_config_word ( adapter->pdev, PCI_COMMAND,
1085 pci_write_config_word ( adapter->pdev, PCI_COMMAND, hw->pci_cmd_word );
1093 pci_read_config_word ( adapter->pdev, reg, value );
1101 pci_write_config_word ( adapter->pdev, reg, *value );