Lines Matching refs:pdev
106 pci_write_config_dword(tg3.pdev, TG3PCI_REG_BASE_ADDR, off);
107 pci_write_config_dword(tg3.pdev, TG3PCI_REG_DATA, val);
133 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, off);
134 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_DATA, val);
137 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, 0);
142 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, off);
143 pci_read_config_dword(tg3.pdev, TG3PCI_MEM_WIN_DATA, val);
146 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, 0);
522 pci_write_config_dword(tp->pdev, TG3PCI_MISC_HOST_CTRL, tp->misc_host_ctrl);
524 pci_read_config_word(tp->pdev, pm + PCI_PM_CTRL, &power_control);
529 pci_write_config_word(tp->pdev, pm + PCI_PM_CTRL, power_control);
1600 pci_read_config_dword(tp->pdev, PCI_COMMAND, &val);
1605 pci_write_config_dword(tp->pdev, TG3PCI_MISC_HOST_CTRL,
1613 pci_write_config_dword(tp->pdev, TG3PCI_PCISTATE, val);
1615 pci_restore_state(tp->pdev, tp->pci_cfg_state);
1618 pci_read_config_dword(tp->pdev, TG3PCI_X_CAPS, &val);
1620 pci_write_config_dword(tp->pdev, TG3PCI_X_CAPS, val);
2714 pci_read_config_word(tp->pdev, PCI_SUBSYSTEM_VENDOR_ID, &tp->subsystem_vendor);
2715 pci_read_config_word(tp->pdev, PCI_SUBSYSTEM_ID, &tp->subsystem_device);
2737 pci_read_config_word(tp->pdev, PCI_COMMAND, &pci_cmd);
2741 pci_write_config_word(tp->pdev, PCI_COMMAND, pci_cmd);
2749 pci_read_config_dword(tp->pdev, TG3PCI_MISC_HOST_CTRL, &misc_ctrl_reg);
2756 pci_write_config_dword(tp->pdev, TG3PCI_MISC_HOST_CTRL,
2759 pci_read_config_byte(tp->pdev, PCI_LATENCY_TIMER, &pci_latency);
2761 pci_write_config_byte(tp->pdev, PCI_LATENCY_TIMER, 64);
2764 pci_read_config_dword(tp->pdev, TG3PCI_PCISTATE, &pci_state_reg);
2793 pci_write_config_dword(tp->pdev, TG3PCI_PCISTATE, pci_state_reg);
2799 val = pci_find_capability(tp->pdev, PCI_CAP_ID_EXP);
2878 (tp->pdev->vendor == PCI_VENDOR_ID_BROADCOM) &&
2879 ((tp->pdev->device == PCI_DEVICE_ID_TIGON3_5901) ||
2880 (tp->pdev->device == PCI_DEVICE_ID_TIGON3_5901_2)))) {
2912 if (PCI_FUNC(tp->pdev->devfn) == 0)
3264 static int tg3_probe ( struct nic *nic, struct pci_device *pdev ) {
3272 adjust_pci_device(pdev);
3275 nic->ioaddr = pdev->ioaddr;
3278 pm_cap = pci_find_capability(pdev, PCI_CAP_ID_PM);
3283 tg3reg_base = pci_bar_start(pdev, PCI_BASE_ADDRESS_0);
3288 tg3reg_len = pci_bar_size(pdev, PCI_BASE_ADDRESS_0);
3290 tp->pdev = pdev;
3347 pci_save_state(tp->pdev, tp->pci_cfg_state);