Lines Matching refs:pdev
221 * pci_read_config_dword(skge->hw->pdev, PCI_DEV_REG2, ®2);
225 * static u32 skge_vpd_read(struct pci_dev *pdev, int cap, u16 offset)
229 * pci_write_config_word(pdev, cap + PCI_VPD_ADDR, offset);
232 * pci_read_config_word(pdev, cap + PCI_VPD_ADDR, &offset);
235 * pci_read_config_dword(pdev, cap + PCI_VPD_DATA, &val);
239 * static void skge_vpd_write(struct pci_dev *pdev, int cap, u16 offset, u32 val)
241 * pci_write_config_dword(pdev, cap + PCI_VPD_DATA, val);
242 * pci_write_config_word(pdev, cap + PCI_VPD_ADDR,
246 * pci_read_config_word(pdev, cap + PCI_VPD_ADDR, &offset);
254 * struct pci_dev *pdev = skge->hw->pdev;
255 * int cap = pci_find_capability(pdev, PCI_CAP_ID_VPD);
265 * u32 val = skge_vpd_read(pdev, cap, offset);
280 * struct pci_dev *pdev = skge->hw->pdev;
281 * int cap = pci_find_capability(pdev, PCI_CAP_ID_VPD);
296 * val = skge_vpd_read(pdev, cap, offset);
299 * skge_vpd_write(pdev, cap, offset, val);
2150 pci_read_config_word(hw->pdev, PCI_STATUS, &pci_status);
2151 pci_write_config_word(hw->pdev, PCI_STATUS,
2237 pci_read_config_dword(hw->pdev, PCI_DEV_REG1, ®);
2239 pci_write_config_dword(hw->pdev, PCI_DEV_REG1, reg);
2307 dev->dev = &hw->pdev->dev;
2339 static int skge_probe(struct pci_device *pdev,
2346 adjust_pci_device(pdev);
2355 hw->pdev = pdev;
2357 hw->regs = (u32)ioremap(pci_bar_start(pdev, PCI_BASE_ADDRESS_0),
2369 (unsigned long long)pdev->ioaddr, pdev->irq,
2397 pci_set_drvdata(pdev, hw);
2411 pci_set_drvdata(pdev, NULL);
2415 static void skge_remove(struct pci_device *pdev)
2417 struct skge_hw *hw = pci_get_drvdata(pdev);
2444 pci_set_drvdata(pdev, NULL);