Lines Matching refs:pdev
1057 struct pci_device *pdev = tp->pci_dev;
1063 pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, 0x08);
1128 static void rtl_tx_performance_tweak(struct pci_device *pdev, u16 force)
1130 struct net_device *dev = pci_get_drvdata(pdev);
1139 pci_read_config_word(pdev, cap + PCI_EXP_DEVCTL, &ctl);
1141 pci_write_config_word(pdev, cap + PCI_EXP_DEVCTL, ctl);
1174 static void rtl_disable_clock_request(struct pci_device *pdev)
1176 struct net_device *dev = pci_get_drvdata(pdev);
1185 pci_read_config_word(pdev, cap + PCI_EXP_LNKCTL, &ctl);
1187 pci_write_config_word(pdev, cap + PCI_EXP_LNKCTL, ctl);
1202 static void rtl_hw_start_8168bb(void *ioaddr, struct pci_device *pdev)
1210 rtl_tx_performance_tweak(pdev,
1214 static void rtl_hw_start_8168bef(void *ioaddr, struct pci_device *pdev)
1218 rtl_hw_start_8168bb(ioaddr, pdev);
1225 static void __rtl_hw_start_8168cp(void *ioaddr, struct pci_device *pdev)
1233 rtl_tx_performance_tweak(pdev, 0x5 << MAX_READ_REQUEST_SHIFT);
1235 rtl_disable_clock_request(pdev);
1240 static void rtl_hw_start_8168cp_1(void *ioaddr, struct pci_device *pdev)
1256 __rtl_hw_start_8168cp(ioaddr, pdev);
1259 static void rtl_hw_start_8168cp_2(void *ioaddr, struct pci_device *pdev)
1267 rtl_tx_performance_tweak(pdev, 0x5 << MAX_READ_REQUEST_SHIFT);
1272 static void rtl_hw_start_8168cp_3(void *ioaddr, struct pci_device *pdev)
1285 rtl_tx_performance_tweak(pdev, 0x5 << MAX_READ_REQUEST_SHIFT);
1290 static void rtl_hw_start_8168c_1(void *ioaddr, struct pci_device *pdev)
1306 __rtl_hw_start_8168cp(ioaddr, pdev);
1309 static void rtl_hw_start_8168c_2(void *ioaddr, struct pci_device *pdev)
1322 __rtl_hw_start_8168cp(ioaddr, pdev);
1325 static void rtl_hw_start_8168c_3(void *ioaddr, struct pci_device *pdev)
1329 rtl_hw_start_8168c_2(ioaddr, pdev);
1332 static void rtl_hw_start_8168c_4(void *ioaddr, struct pci_device *pdev)
1338 __rtl_hw_start_8168cp(ioaddr, pdev);
1341 static void rtl_hw_start_8168d(void *ioaddr, struct pci_device *pdev)
1347 rtl_disable_clock_request(pdev);
1351 rtl_tx_performance_tweak(pdev, 0x5 << MAX_READ_REQUEST_SHIFT);
1360 struct pci_device *pdev = tp->pci_dev;
1393 rtl_hw_start_8168bb(ioaddr, pdev);
1398 rtl_hw_start_8168bef(ioaddr, pdev);
1402 rtl_hw_start_8168cp_1(ioaddr, pdev);
1406 rtl_hw_start_8168c_1(ioaddr, pdev);
1410 rtl_hw_start_8168c_2(ioaddr, pdev);
1414 rtl_hw_start_8168c_3(ioaddr, pdev);
1418 rtl_hw_start_8168c_4(ioaddr, pdev);
1422 rtl_hw_start_8168cp_2(ioaddr, pdev);
1426 rtl_hw_start_8168cp_3(ioaddr, pdev);
1430 rtl_hw_start_8168d(ioaddr, pdev);
1460 static void rtl_hw_start_8102e_1(void *ioaddr, struct pci_device *pdev)
1480 rtl_tx_performance_tweak(pdev, 0x5 << MAX_READ_REQUEST_SHIFT);
1495 static void rtl_hw_start_8102e_2(void *ioaddr, struct pci_device *pdev)
1501 rtl_tx_performance_tweak(pdev, 0x5 << MAX_READ_REQUEST_SHIFT);
1509 static void rtl_hw_start_8102e_3(void *ioaddr, struct pci_device *pdev)
1513 rtl_hw_start_8102e_2(ioaddr, pdev);
1522 struct pci_device *pdev = tp->pci_dev;
1531 pci_write_config_word(pdev, cap + PCI_EXP_DEVCTL,
1538 rtl_hw_start_8102e_1(ioaddr, pdev);
1542 rtl_hw_start_8102e_3(ioaddr, pdev);
1546 rtl_hw_start_8102e_2(ioaddr, pdev);
2099 rtl8169_probe ( struct pci_device *pdev, const struct pci_device_id *ent )
2137 pci_set_drvdata ( pdev, netdev );
2138 netdev->dev = &pdev->dev;
2144 tp->pci_dev = pdev;
2145 tp->irqno = pdev->irq;
2155 adjust_pci_device ( pdev );
2158 ioaddr = ioremap ( pdev->membase, R8169_REGS_SIZE );
2168 tp->pcie_cap = pci_find_capability ( pdev, PCI_CAP_ID_EXP );
2240 * @v pdev PCI device information struct
2244 rtl8169_remove ( struct pci_device *pdev )
2246 struct net_device *netdev = pci_get_drvdata ( pdev );