psdev 384 drivers/misc/mic/scif/scif_nodeqp.c struct scif_hw_dev *psdev = peerdev->sdev; psdev 387 drivers/misc/mic/scif/scif_nodeqp.c num_mmio_pages = psdev->mmio->len >> PAGE_SHIFT; psdev 388 drivers/misc/mic/scif/scif_nodeqp.c num_aper_pages = psdev->aper->len >> PAGE_SHIFT; psdev 393 drivers/misc/mic/scif/scif_nodeqp.c p2p->ppi_sg[SCIF_PPI_MMIO] = scif_p2p_setsg(psdev->mmio->pa, psdev 398 drivers/misc/mic/scif/scif_nodeqp.c sg_page_shift = get_order(min(psdev->aper->len, (u64)(1 << 30))); psdev 400 drivers/misc/mic/scif/scif_nodeqp.c p2p->ppi_sg[SCIF_PPI_APER] = scif_p2p_setsg(psdev->aper->pa, psdev 791 drivers/scsi/arcmsr/arcmsr_hba.c struct scsi_device *psdev; psdev 849 drivers/scsi/arcmsr/arcmsr_hba.c psdev = scsi_device_lookup(acb->host, psdev 851 drivers/scsi/arcmsr/arcmsr_hba.c if (psdev != NULL) { psdev 852 drivers/scsi/arcmsr/arcmsr_hba.c scsi_remove_device(psdev); psdev 853 drivers/scsi/arcmsr/arcmsr_hba.c scsi_device_put(psdev); psdev 1533 drivers/scsi/arcmsr/arcmsr_hba.c struct scsi_device *psdev; psdev 1550 drivers/scsi/arcmsr/arcmsr_hba.c psdev = scsi_device_lookup(acb->host, psdev 1552 drivers/scsi/arcmsr/arcmsr_hba.c if (psdev != NULL) { psdev 1553 drivers/scsi/arcmsr/arcmsr_hba.c scsi_remove_device(psdev); psdev 1554 drivers/scsi/arcmsr/arcmsr_hba.c scsi_device_put(psdev); psdev 70 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 74 drivers/xen/xen-pciback/pci_stub.c psdev = kzalloc(sizeof(*psdev), GFP_KERNEL); psdev 75 drivers/xen/xen-pciback/pci_stub.c if (!psdev) psdev 78 drivers/xen/xen-pciback/pci_stub.c psdev->dev = pci_dev_get(dev); psdev 79 drivers/xen/xen-pciback/pci_stub.c if (!psdev->dev) { psdev 80 drivers/xen/xen-pciback/pci_stub.c kfree(psdev); psdev 84 drivers/xen/xen-pciback/pci_stub.c kref_init(&psdev->kref); psdev 85 drivers/xen/xen-pciback/pci_stub.c spin_lock_init(&psdev->lock); psdev 87 drivers/xen/xen-pciback/pci_stub.c return psdev; psdev 93 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 97 drivers/xen/xen-pciback/pci_stub.c psdev = container_of(kref, struct pcistub_device, kref); psdev 98 drivers/xen/xen-pciback/pci_stub.c dev = psdev->dev; psdev 142 drivers/xen/xen-pciback/pci_stub.c kfree(psdev); psdev 145 drivers/xen/xen-pciback/pci_stub.c static inline void pcistub_device_get(struct pcistub_device *psdev) psdev 147 drivers/xen/xen-pciback/pci_stub.c kref_get(&psdev->kref); psdev 150 drivers/xen/xen-pciback/pci_stub.c static inline void pcistub_device_put(struct pcistub_device *psdev) psdev 152 drivers/xen/xen-pciback/pci_stub.c kref_put(&psdev->kref, pcistub_device_release); psdev 158 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 160 drivers/xen/xen-pciback/pci_stub.c list_for_each_entry(psdev, &pcistub_devices, dev_list) { psdev 161 drivers/xen/xen-pciback/pci_stub.c if (psdev->dev != NULL psdev 162 drivers/xen/xen-pciback/pci_stub.c && domain == pci_domain_nr(psdev->dev->bus) psdev 163 drivers/xen/xen-pciback/pci_stub.c && bus == psdev->dev->bus->number psdev 164 drivers/xen/xen-pciback/pci_stub.c && slot == PCI_SLOT(psdev->dev->devfn) psdev 165 drivers/xen/xen-pciback/pci_stub.c && func == PCI_FUNC(psdev->dev->devfn)) { psdev 166 drivers/xen/xen-pciback/pci_stub.c return psdev; psdev 176 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 181 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find_locked(domain, bus, slot, func); psdev 182 drivers/xen/xen-pciback/pci_stub.c if (psdev) psdev 183 drivers/xen/xen-pciback/pci_stub.c pcistub_device_get(psdev); psdev 186 drivers/xen/xen-pciback/pci_stub.c return psdev; psdev 190 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev) psdev 195 drivers/xen/xen-pciback/pci_stub.c pcistub_device_get(psdev); psdev 197 drivers/xen/xen-pciback/pci_stub.c spin_lock_irqsave(&psdev->lock, flags); psdev 198 drivers/xen/xen-pciback/pci_stub.c if (!psdev->pdev) { psdev 199 drivers/xen/xen-pciback/pci_stub.c psdev->pdev = pdev; psdev 200 drivers/xen/xen-pciback/pci_stub.c pci_dev = psdev->dev; psdev 202 drivers/xen/xen-pciback/pci_stub.c spin_unlock_irqrestore(&psdev->lock, flags); psdev 205 drivers/xen/xen-pciback/pci_stub.c pcistub_device_put(psdev); psdev 214 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 220 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find_locked(domain, bus, slot, func); psdev 221 drivers/xen/xen-pciback/pci_stub.c if (psdev) psdev 222 drivers/xen/xen-pciback/pci_stub.c found_dev = pcistub_device_get_pci_dev(pdev, psdev); psdev 231 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 237 drivers/xen/xen-pciback/pci_stub.c list_for_each_entry(psdev, &pcistub_devices, dev_list) { psdev 238 drivers/xen/xen-pciback/pci_stub.c if (psdev->dev == dev) { psdev 239 drivers/xen/xen-pciback/pci_stub.c found_dev = pcistub_device_get_pci_dev(pdev, psdev); psdev 261 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev, *found_psdev = NULL; psdev 268 drivers/xen/xen-pciback/pci_stub.c list_for_each_entry(psdev, &pcistub_devices, dev_list) { psdev 269 drivers/xen/xen-pciback/pci_stub.c if (psdev->dev == dev) { psdev 270 drivers/xen/xen-pciback/pci_stub.c found_psdev = psdev; psdev 450 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 457 drivers/xen/xen-pciback/pci_stub.c psdev = container_of(seized_devices.next, psdev 459 drivers/xen/xen-pciback/pci_stub.c list_del(&psdev->dev_list); psdev 463 drivers/xen/xen-pciback/pci_stub.c err = pcistub_init_device(psdev->dev); psdev 465 drivers/xen/xen-pciback/pci_stub.c dev_err(&psdev->dev->dev, psdev 467 drivers/xen/xen-pciback/pci_stub.c kfree(psdev); psdev 468 drivers/xen/xen-pciback/pci_stub.c psdev = NULL; psdev 473 drivers/xen/xen-pciback/pci_stub.c if (psdev) psdev 474 drivers/xen/xen-pciback/pci_stub.c list_add_tail(&psdev->dev_list, &pcistub_devices); psdev 517 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 521 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_alloc(dev); psdev 522 drivers/xen/xen-pciback/pci_stub.c if (!psdev) { psdev 533 drivers/xen/xen-pciback/pci_stub.c err = pcistub_init_device(psdev->dev); psdev 538 drivers/xen/xen-pciback/pci_stub.c list_add(&psdev->dev_list, &pcistub_devices); psdev 541 drivers/xen/xen-pciback/pci_stub.c list_add(&psdev->dev_list, &seized_devices); psdev 548 drivers/xen/xen-pciback/pci_stub.c pcistub_device_put(psdev); psdev 602 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev, *found_psdev = NULL; psdev 611 drivers/xen/xen-pciback/pci_stub.c list_for_each_entry(psdev, &pcistub_devices, dev_list) { psdev 612 drivers/xen/xen-pciback/pci_stub.c if (psdev->dev == dev) { psdev 613 drivers/xen/xen-pciback/pci_stub.c found_psdev = psdev; psdev 660 drivers/xen/xen-pciback/pci_stub.c static void kill_domain_by_device(struct pcistub_device *psdev) psdev 666 drivers/xen/xen-pciback/pci_stub.c BUG_ON(!psdev); psdev 668 drivers/xen/xen-pciback/pci_stub.c psdev->pdev->xdev->otherend_id); psdev 673 drivers/xen/xen-pciback/pci_stub.c dev_err(&psdev->dev->dev, psdev 683 drivers/xen/xen-pciback/pci_stub.c dev_err(&psdev->dev->dev, psdev 693 drivers/xen/xen-pciback/pci_stub.c static pci_ers_result_t common_process(struct pcistub_device *psdev, psdev 699 drivers/xen/xen-pciback/pci_stub.c struct xen_pcibk_device *pdev = psdev->pdev; psdev 709 drivers/xen/xen-pciback/pci_stub.c ret = xen_pcibk_get_pcifront_dev(psdev->dev, psdev->pdev, psdev 712 drivers/xen/xen-pciback/pci_stub.c dev_err(&psdev->dev->dev, psdev 718 drivers/xen/xen-pciback/pci_stub.c dev_dbg(&psdev->dev->dev, psdev 743 drivers/xen/xen-pciback/pci_stub.c dev_err(&psdev->dev->dev, psdev 755 drivers/xen/xen-pciback/pci_stub.c dev_dbg(&psdev->dev->dev, psdev 757 drivers/xen/xen-pciback/pci_stub.c xen_pcibk_test_and_schedule_op(psdev->pdev); psdev 773 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 781 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(pci_domain_nr(dev->bus), psdev 786 drivers/xen/xen-pciback/pci_stub.c if (!psdev || !psdev->pdev) { psdev 792 drivers/xen/xen-pciback/pci_stub.c if (!psdev->pdev->sh_info) { psdev 795 drivers/xen/xen-pciback/pci_stub.c kill_domain_by_device(psdev); psdev 800 drivers/xen/xen-pciback/pci_stub.c (unsigned long *)&psdev->pdev->sh_info->flags)) { psdev 805 drivers/xen/xen-pciback/pci_stub.c result = common_process(psdev, 1, XEN_PCI_OP_aer_slotreset, result); psdev 811 drivers/xen/xen-pciback/pci_stub.c kill_domain_by_device(psdev); psdev 814 drivers/xen/xen-pciback/pci_stub.c if (psdev) psdev 815 drivers/xen/xen-pciback/pci_stub.c pcistub_device_put(psdev); psdev 831 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 839 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(pci_domain_nr(dev->bus), psdev 844 drivers/xen/xen-pciback/pci_stub.c if (!psdev || !psdev->pdev) { psdev 850 drivers/xen/xen-pciback/pci_stub.c if (!psdev->pdev->sh_info) { psdev 853 drivers/xen/xen-pciback/pci_stub.c kill_domain_by_device(psdev); psdev 858 drivers/xen/xen-pciback/pci_stub.c (unsigned long *)&psdev->pdev->sh_info->flags)) { psdev 863 drivers/xen/xen-pciback/pci_stub.c result = common_process(psdev, 1, XEN_PCI_OP_aer_mmio, result); psdev 869 drivers/xen/xen-pciback/pci_stub.c kill_domain_by_device(psdev); psdev 872 drivers/xen/xen-pciback/pci_stub.c if (psdev) psdev 873 drivers/xen/xen-pciback/pci_stub.c pcistub_device_put(psdev); psdev 889 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 897 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(pci_domain_nr(dev->bus), psdev 902 drivers/xen/xen-pciback/pci_stub.c if (!psdev || !psdev->pdev) { psdev 908 drivers/xen/xen-pciback/pci_stub.c if (!psdev->pdev->sh_info) { psdev 911 drivers/xen/xen-pciback/pci_stub.c kill_domain_by_device(psdev); psdev 917 drivers/xen/xen-pciback/pci_stub.c (unsigned long *)&psdev->pdev->sh_info->flags)) { psdev 919 drivers/xen/xen-pciback/pci_stub.c kill_domain_by_device(psdev); psdev 922 drivers/xen/xen-pciback/pci_stub.c result = common_process(psdev, error, XEN_PCI_OP_aer_detected, result); psdev 928 drivers/xen/xen-pciback/pci_stub.c kill_domain_by_device(psdev); psdev 931 drivers/xen/xen-pciback/pci_stub.c if (psdev) psdev 932 drivers/xen/xen-pciback/pci_stub.c pcistub_device_put(psdev); psdev 945 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 951 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(pci_domain_nr(dev->bus), psdev 956 drivers/xen/xen-pciback/pci_stub.c if (!psdev || !psdev->pdev) { psdev 962 drivers/xen/xen-pciback/pci_stub.c if (!psdev->pdev->sh_info) { psdev 965 drivers/xen/xen-pciback/pci_stub.c kill_domain_by_device(psdev); psdev 970 drivers/xen/xen-pciback/pci_stub.c (unsigned long *)&psdev->pdev->sh_info->flags)) { psdev 973 drivers/xen/xen-pciback/pci_stub.c kill_domain_by_device(psdev); psdev 976 drivers/xen/xen-pciback/pci_stub.c common_process(psdev, 1, XEN_PCI_OP_aer_resume, psdev 979 drivers/xen/xen-pciback/pci_stub.c if (psdev) psdev 980 drivers/xen/xen-pciback/pci_stub.c pcistub_device_put(psdev); psdev 1139 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 1146 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(domain, bus, slot, func); psdev 1147 drivers/xen/xen-pciback/pci_stub.c if (!psdev) { psdev 1151 drivers/xen/xen-pciback/pci_stub.c dev = psdev->dev; psdev 1171 drivers/xen/xen-pciback/pci_stub.c if (psdev) psdev 1172 drivers/xen/xen-pciback/pci_stub.c pcistub_device_put(psdev); psdev 1239 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 1245 drivers/xen/xen-pciback/pci_stub.c list_for_each_entry(psdev, &pcistub_devices, dev_list) { psdev 1248 drivers/xen/xen-pciback/pci_stub.c if (!psdev->dev) psdev 1250 drivers/xen/xen-pciback/pci_stub.c dev_data = pci_get_drvdata(psdev->dev); psdev 1256 drivers/xen/xen-pciback/pci_stub.c pci_name(psdev->dev), psdev 1269 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 1278 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(domain, bus, slot, func); psdev 1279 drivers/xen/xen-pciback/pci_stub.c if (!psdev) { psdev 1284 drivers/xen/xen-pciback/pci_stub.c dev_data = pci_get_drvdata(psdev->dev); psdev 1290 drivers/xen/xen-pciback/pci_stub.c dev_dbg(&psdev->dev->dev, "%s fake irq handler: %d->%d\n", psdev 1298 drivers/xen/xen-pciback/pci_stub.c if (psdev) psdev 1299 drivers/xen/xen-pciback/pci_stub.c pcistub_device_put(psdev); psdev 1375 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 1382 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(domain, bus, slot, func); psdev 1383 drivers/xen/xen-pciback/pci_stub.c if (!psdev) { psdev 1388 drivers/xen/xen-pciback/pci_stub.c dev_data = pci_get_drvdata(psdev->dev); psdev 1397 drivers/xen/xen-pciback/pci_stub.c dev_warn(&psdev->dev->dev, "enabling permissive mode " psdev 1399 drivers/xen/xen-pciback/pci_stub.c dev_warn(&psdev->dev->dev, psdev 1403 drivers/xen/xen-pciback/pci_stub.c pcistub_device_put(psdev); psdev 1412 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev; psdev 1417 drivers/xen/xen-pciback/pci_stub.c list_for_each_entry(psdev, &pcistub_devices, dev_list) { psdev 1420 drivers/xen/xen-pciback/pci_stub.c if (!psdev->dev) psdev 1422 drivers/xen/xen-pciback/pci_stub.c dev_data = pci_get_drvdata(psdev->dev); psdev 1427 drivers/xen/xen-pciback/pci_stub.c pci_name(psdev->dev)); psdev 1566 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev = NULL; psdev 1571 drivers/xen/xen-pciback/pci_stub.c list_for_each_entry(psdev, &pcistub_devices, dev_list) { psdev 1572 drivers/xen/xen-pciback/pci_stub.c if (!psdev->pdev && psdev->dev != pdev psdev 1573 drivers/xen/xen-pciback/pci_stub.c && pci_physfn(psdev->dev) == pdev) { psdev 1580 drivers/xen/xen-pciback/pci_stub.c return psdev; psdev 1597 drivers/xen/xen-pciback/pci_stub.c struct pcistub_device *psdev = find_vfs(pdev); psdev 1598 drivers/xen/xen-pciback/pci_stub.c if (!psdev) psdev 1600 drivers/xen/xen-pciback/pci_stub.c device_release_driver(&psdev->dev->dev);