Lines Matching defs:pdev

622 	struct pci_dev *pdev;
629 pdev = msi_desc_to_pci_dev(msi_desc);
630 pbus = pdev->bus;
651 PCI_FUNC(pdev->devfn);
1415 * @pdev: The PCI driver's representation for this device.
1423 static int hv_read_config_block(struct pci_dev *pdev, void *buf,
1428 container_of(pdev->bus->sysdata, struct hv_pcibus_device,
1450 read_blk->wslot.slot = devfn_to_wslot(pdev->devfn);
1497 * @pdev: The PCI driver's representation for this device.
1504 static int hv_write_config_block(struct pci_dev *pdev, void *buf,
1508 container_of(pdev->bus->sysdata, struct hv_pcibus_device,
1530 write_blk->wslot.slot = devfn_to_wslot(pdev->devfn);
1567 * @pdev: The PCI driver's representation for this device.
1573 static int hv_register_block_invalidate(struct pci_dev *pdev, void *context,
1578 container_of(pdev->bus->sysdata, struct hv_pcibus_device,
1582 hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(pdev->devfn));
1635 struct pci_dev *pdev;
1640 pdev = msi_desc_to_pci_dev(msi);
1647 hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(pdev->devfn));
1826 struct pci_dev *pdev;
1864 pdev = msi_desc_to_pci_dev(msi_desc);
1866 pbus = pdev->bus;
1869 hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(pdev->devfn));
2834 struct pci_dev *pdev;
2854 pdev = pci_get_domain_bus_and_slot(hbus->bridge->domain_nr, 0, wslot);
2855 if (pdev) {
2857 pci_stop_and_remove_bus_device(pdev);
2858 pci_dev_put(pdev);
3981 static int hv_pci_restore_msi_msg(struct pci_dev *pdev, void *arg)
3987 if (!pdev->msi_enabled && !pdev->msix_enabled)
3990 msi_lock_descs(&pdev->dev);
3991 msi_for_each_desc(entry, &pdev->dev, MSI_DESC_ASSOCIATED) {
4000 msi_unlock_descs(&pdev->dev);