Home
last modified time | relevance | path

Searched refs:pdev (Results 1 – 25 of 33) sorted by relevance

12

/xen-4.10.0-shim-comet/xen/drivers/passthrough/
A Dpci.c305 if ( pdev->bus == bus && pdev->devfn == devfn ) in alloc_pdev()
309 if ( !pdev ) in alloc_pdev()
449 if ( pdev ) in pci_hide_device()
528 if ( pdev && stride != pdev->phantom_stride ) in pci_get_real_pdev()
719 pdev->vf_rlen[i] = -pdev->vf_rlen[i]; in pci_add_device()
787 if ( pdev->bus == bus && pdev->devfn == devfn ) in pci_remove_device()
1165 return pci_conf_read16(pdev->seg, pdev->bus, PCI_SLOT(pdev->devfn), in hest_match_type()
1223 struct aer_hest_parse_info info = { .pdev = pdev }; in pcie_aer_get_firmware_first()
1225 return pci_find_cap_offset(pdev->seg, pdev->bus, PCI_SLOT(pdev->devfn), in pcie_aer_get_firmware_first()
1343 for ( devfn = pdev->devfn ; pdev->phantom_stride; ) in iommu_remove_device()
[all …]
A Dats.h27 int enable_ats_device(struct pci_dev *pdev, struct list_head *ats_list);
28 void disable_ats_device(struct pci_dev *pdev);
/xen-4.10.0-shim-comet/xen/drivers/passthrough/amd/
A Dpci_amd_iommu.c118 u8 bus = pdev->bus; in amd_iommu_setup_domain_device()
306 u8 bus = pdev->bus; in amd_iommu_disable_domain_device()
345 bdf = PCI_BDF2(pdev->bus, pdev->devfn); in reassign_device()
351 pdev->seg, pdev->bus, PCI_SLOT(devfn), PCI_FUNC(devfn), in reassign_device()
370 pdev->seg, pdev->bus, PCI_SLOT(devfn), PCI_FUNC(devfn), in reassign_device()
469 if ( !pdev->domain ) in amd_iommu_add_device()
472 bdf = PCI_BDF2(pdev->bus, pdev->devfn); in amd_iommu_add_device()
481 pdev->seg, pdev->bus, PCI_SLOT(devfn), in amd_iommu_add_device()
492 amd_iommu_setup_domain_device(pdev->domain, iommu, devfn, pdev); in amd_iommu_add_device()
503 bdf = PCI_BDF2(pdev->bus, pdev->devfn); in amd_iommu_remove_device()
[all …]
A Diommu_cmd.c296 if ( !pci_ats_enabled(pdev->seg, pdev->bus, pdev->devfn) ) in amd_iommu_flush_iotlb()
299 iommu = find_iommu_for_device(pdev->seg, PCI_BDF2(pdev->bus, pdev->devfn)); in amd_iommu_flush_iotlb()
304 __func__, pdev->seg, pdev->bus, in amd_iommu_flush_iotlb()
305 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in amd_iommu_flush_iotlb()
314 maxpend = pdev->ats.queue_depth & 0xff; in amd_iommu_flush_iotlb()
326 struct pci_dev *pdev; in amd_iommu_flush_all_iotlbs() local
331 for_each_pdev( d, pdev ) in amd_iommu_flush_all_iotlbs()
333 u8 devfn = pdev->devfn; in amd_iommu_flush_all_iotlbs()
336 amd_iommu_flush_iotlb(devfn, pdev, gaddr, order); in amd_iommu_flush_all_iotlbs()
337 devfn += pdev->phantom_stride; in amd_iommu_flush_all_iotlbs()
[all …]
A Diommu_intr.c522 struct pci_dev *pdev = msi_desc->dev; in amd_iommu_msi_msg_update_ire() local
528 bdf = pdev ? PCI_BDF2(pdev->bus, pdev->devfn) : hpet_sbdf.bdf; in amd_iommu_msi_msg_update_ire()
529 seg = pdev ? pdev->seg : hpet_sbdf.seg; in amd_iommu_msi_msg_update_ire()
544 if ( !pdev || !pdev->phantom_stride ) in amd_iommu_msi_msg_update_ire()
546 bdf += pdev->phantom_stride; in amd_iommu_msi_msg_update_ire()
551 if ( pdev ) in amd_iommu_msi_msg_update_ire()
552 bdf = PCI_BDF2(pdev->bus, pdev->devfn); in amd_iommu_msi_msg_update_ire()
562 if ( rc || !pdev || !pdev->phantom_stride ) in amd_iommu_msi_msg_update_ire()
564 bdf += pdev->phantom_stride; in amd_iommu_msi_msg_update_ire()
582 u16 bdf = pdev ? PCI_BDF2(pdev->bus, pdev->devfn) : hpet_sbdf.bdf; in amd_iommu_read_msi_from_ire()
[all …]
A Diommu_map.c549 struct pci_dev *pdev; in update_paging_mode() local
599 for_each_pdev( d, pdev ) in update_paging_mode()
601 bdf = PCI_BDF2(pdev->bus, pdev->devfn); in update_paging_mode()
602 iommu = find_iommu_for_device(pdev->seg, bdf); in update_paging_mode()
611 req_id = get_dma_requestor_id(pdev->seg, bdf); in update_paging_mode()
622 bdf += pdev->phantom_stride; in update_paging_mode()
623 } while ( PCI_DEVFN2(bdf) != pdev->devfn && in update_paging_mode()
624 PCI_SLOT(bdf) == PCI_SLOT(pdev->devfn) ); in update_paging_mode()
/xen-4.10.0-shim-comet/xen/drivers/passthrough/x86/
A Dats.c26 u16 seg = pdev->seg; in enable_ats_device()
27 u8 bus = pdev->bus, devfn = pdev->devfn; in enable_ats_device()
44 if ( other == pdev ) in enable_ats_device()
60 pdev->ats.cap_pos = pos; in enable_ats_device()
65 list_add(&pdev->ats.list, ats_list); in enable_ats_device()
76 void disable_ats_device(struct pci_dev *pdev) in disable_ats_device() argument
79 u16 seg = pdev->seg; in disable_ats_device()
80 u8 bus = pdev->bus, devfn = pdev->devfn; in disable_ats_device()
82 BUG_ON(!pdev->ats.cap_pos); in disable_ats_device()
85 pdev->ats.cap_pos + ATS_REG_CTL); in disable_ats_device()
[all …]
/xen-4.10.0-shim-comet/xen/drivers/passthrough/vtd/x86/
A Dats.c56 if ( !acpi_find_matched_atsr_unit(pdev) ) in ats_device()
60 pos = pci_find_ext_capability(pdev->seg, pdev->bus, pdev->devfn, in ats_device()
75 const struct pci_dev *pdev, u16 did) in device_in_domain() argument
82 if ( !root_entry || !root_present(root_entry[pdev->bus]) ) in device_in_domain()
86 map_vtd_domain_page(root_entry[pdev->bus].val); in device_in_domain()
91 if ( context_domain_id(ctxt_entry[pdev->devfn]) != did ) in device_in_domain()
94 tt = context_translation_type(ctxt_entry[pdev->devfn]); in device_in_domain()
112 struct pci_dev *pdev, *temp; in dev_invalidate_iotlb() local
126 if ( !device_in_domain(iommu, pdev, did) ) in dev_invalidate_iotlb()
133 rc = qinval_device_iotlb_sync(iommu, pdev, did, sbit, addr); in dev_invalidate_iotlb()
[all …]
/xen-4.10.0-shim-comet/unmodified_drivers/linux-2.6/platform-pci/
A Dplatform-pci.c233 irq = pdev->irq; in get_callback_via()
239 pin = pdev->pin; in get_callback_via()
247 ((uint64_t)pdev->bus->number << 16) | in get_callback_via()
394 xen_platform_pdev = pdev; in platform_pci_init()
396 i = pci_enable_device(pdev); in platform_pci_init()
400 ioaddr = pci_resource_start(pdev, 0); in platform_pci_init()
401 iolen = pci_resource_len(pdev, 0); in platform_pci_init()
404 mmio_len = pci_resource_len(pdev, 1); in platform_pci_init()
438 if ((ret = xen_irq_init(pdev))) in platform_pci_init()
458 pci_release_region(pdev, 0); in platform_pci_init()
[all …]
A Devtchn.c342 int xen_irq_init(struct pci_dev *pdev) in xen_irq_init() argument
349 return request_irq(pdev->irq, evtchn_interrupt, in xen_irq_init()
361 "xen-platform-pci", pdev); in xen_irq_init()
/xen-4.10.0-shim-comet/xen/arch/x86/
A Dmsi.c449 desc->irq, domid, pdev->seg, pdev->bus, in msi_set_mask_bit()
450 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in msi_set_mask_bit()
597 control = pci_conf_read16(pdev->seg, pdev->bus, PCI_SLOT(pdev->devfn), in setup_msi_irq()
600 pci_conf_write16(pdev->seg, pdev->bus, PCI_SLOT(pdev->devfn), in setup_msi_irq()
611 pci_conf_write16(pdev->seg, pdev->bus, PCI_SLOT(pdev->devfn), in setup_msi_irq()
1046 if ( !pdev ) in __pci_enable_msi()
1207 if ( !pdev ) in pci_prepare_msix()
1378 pdev->seg, pdev->bus, PCI_SLOT(pdev->devfn), in pci_restore_msi_state()
1399 pci_conf_write16(pdev->seg, pdev->bus, slot, func, in pci_restore_msi_state()
1443 pci_conf_write16(pdev->seg, pdev->bus, PCI_SLOT(pdev->devfn), in pci_restore_msi_state()
[all …]
A Dpci.c76 struct pci_dev *pdev; in pci_conf_write_intercept() local
93 pdev = pci_get_pdev(seg, PCI_BUS(bdf), PCI_DEVFN2(bdf)); in pci_conf_write_intercept()
94 if ( pdev ) in pci_conf_write_intercept()
95 rc = pci_msi_conf_write_intercept(pdev, reg, size, data); in pci_conf_write_intercept()
A Dphysdev.c568 struct pci_dev *pdev; in do_physdev_op() local
575 pdev = pci_get_pdev(0, restore_msi.bus, restore_msi.devfn); in do_physdev_op()
576 ret = pdev ? pci_restore_msi_state(pdev) : -ENODEV; in do_physdev_op()
583 struct pci_dev *pdev; in do_physdev_op() local
590 pdev = pci_get_pdev(dev.seg, dev.bus, dev.devfn); in do_physdev_op()
591 ret = pdev ? pci_restore_msi_state(pdev) : -ENODEV; in do_physdev_op()
/xen-4.10.0-shim-comet/xen/drivers/passthrough/vtd/
A Diommu.c1347 if ( pdev ) in domain_context_mapping_one()
1355 pdev->domain ? pdev->domain->domain_id : -1); in domain_context_mapping_one()
1481 u8 seg = pdev->seg, bus = pdev->bus, secbus; in domain_context_mapping()
1540 (secbus != pdev->bus || pdev->devfn != 0) ) in domain_context_mapping()
1632 u8 seg = pdev->seg, bus = pdev->bus, tmp_bus, tmp_devfn, secbus; in domain_context_unmap()
1708 if ( pdev->seg == seg && pdev->bus == bus && pdev->devfn == devfn ) in domain_context_unmap()
1980 ret = domain_context_mapping(pdev->domain, devfn, pdev); in intel_iommu_add_device()
2048 return domain_context_unmap(pdev->domain, devfn, pdev); in intel_iommu_remove_device()
2053 return domain_context_mapping(pdev->domain, devfn, pdev); in setup_hwdom_device()
2414 seg = pdev->seg; in intel_iommu_assign_device()
[all …]
A Dquirks.c336 struct pci_dev *pdev; in map_me_phantom_function() local
340 pdev = pci_get_pdev(0, 0, PCI_DEVFN(dev, 0)); in map_me_phantom_function()
341 drhd = acpi_find_matched_drhd_unit(pdev); in map_me_phantom_function()
414 void pci_vtd_quirk(const struct pci_dev *pdev) in pci_vtd_quirk() argument
416 int seg = pdev->seg; in pci_vtd_quirk()
417 int bus = pdev->bus; in pci_vtd_quirk()
418 int dev = PCI_SLOT(pdev->devfn); in pci_vtd_quirk()
419 int func = PCI_FUNC(pdev->devfn); in pci_vtd_quirk()
457 pos = pci_find_ext_capability(seg, bus, pdev->devfn, in pci_vtd_quirk()
461 pos = pci_find_ext_capability(seg, bus, pdev->devfn, in pci_vtd_quirk()
[all …]
A Dintremap.c478 if ( !pdev || !ire ) in set_msi_source_id()
481 seg = pdev->seg; in set_msi_source_id()
482 bus = pdev->bus; in set_msi_source_id()
483 devfn = pdev->devfn; in set_msi_source_id()
484 switch ( pdev->type ) in set_msi_source_id()
492 switch ( pdev->phantom_stride ) in set_msi_source_id()
530 pdev->domain->domain_id, pdev->type, in set_msi_source_id()
675 if ( pdev ) in msi_msg_to_remap_entry()
708 struct pci_dev *pdev = msi_desc->dev; in msi_msg_read_remap_rte() local
711 drhd = pdev ? acpi_find_matched_drhd_unit(pdev) in msi_msg_read_remap_rte()
[all …]
A Ddmar.c211 if ( pdev == NULL ) in acpi_find_matched_drhd_unit()
214 if ( pdev->info.is_virtfn ) in acpi_find_matched_drhd_unit()
216 bus = pdev->info.physfn.bus; in acpi_find_matched_drhd_unit()
217 devfn = !pdev->info.is_extfn ? pdev->info.physfn.devfn : 0; in acpi_find_matched_drhd_unit()
219 else if ( pdev->info.is_extfn ) in acpi_find_matched_drhd_unit()
221 bus = pdev->bus; in acpi_find_matched_drhd_unit()
226 bus = pdev->bus; in acpi_find_matched_drhd_unit()
227 devfn = pdev->devfn; in acpi_find_matched_drhd_unit()
232 if ( drhd->segment != pdev->seg ) in acpi_find_matched_drhd_unit()
255 if ( atsr->segment != pdev->seg ) in acpi_find_matched_atsr_unit()
[all …]
A Dqinval.c212 struct pci_dev *pdev, u16 did) in dev_invalidate_sync() argument
233 iommu_dev_iotlb_flush_timeout(d, pdev); in dev_invalidate_sync()
240 int qinval_device_iotlb_sync(struct iommu *iommu, struct pci_dev *pdev, in qinval_device_iotlb_sync() argument
248 ASSERT(pdev); in qinval_device_iotlb_sync()
258 qinval_entry->q.dev_iotlb_inv_dsc.lo.max_invs_pend = pdev->ats.queue_depth; in qinval_device_iotlb_sync()
260 qinval_entry->q.dev_iotlb_inv_dsc.lo.sid = PCI_BDF2(pdev->bus, pdev->devfn); in qinval_device_iotlb_sync()
271 return dev_invalidate_sync(iommu, pdev, did); in qinval_device_iotlb_sync()
/xen-4.10.0-shim-comet/xen/arch/x86/hvm/
A Dvmsi.c151 struct pci_dev *pdev; member
197 if ( !entry || !entry->pdev ) in msixtbl_addr_to_desc()
419 struct pci_dev *pdev, in add_msixtbl_entry() argument
428 entry->pdev = pdev; in add_msixtbl_entry()
453 struct pci_dev *pdev; in msixtbl_pt_register() local
482 pdev = msi_desc->dev; in msixtbl_pt_register()
485 if ( pdev == entry->pdev ) in msixtbl_pt_register()
490 add_msixtbl_entry(d, pdev, gtable, entry); in msixtbl_pt_register()
524 struct pci_dev *pdev; in msixtbl_pt_unregister() local
541 pdev = msi_desc->dev; in msixtbl_pt_unregister()
[all …]
A Dirq.c216 unsigned int gsi, pdev, pintx, asserted; in hvm_set_callback_irq_level() local
246 pdev = hvm_irq->callback_via.pci.dev; in hvm_set_callback_irq_level()
249 __hvm_pci_intx_assert(d, pdev, pintx); in hvm_set_callback_irq_level()
251 __hvm_pci_intx_deassert(d, pdev, pintx); in hvm_set_callback_irq_level()
386 unsigned int gsi=0, pdev=0, pintx=0; in hvm_set_callback_via() local
412 pdev = hvm_irq->callback_via.pci.dev; in hvm_set_callback_via()
440 __hvm_pci_intx_assert(d, pdev, pintx); in hvm_set_callback_via()
616 unsigned int asserted, pdev, pintx; in irq_save_pci() local
621 pdev = hvm_irq->callback_via.pci.dev; in irq_save_pci()
632 __hvm_pci_intx_deassert(d, pdev, pintx); in irq_save_pci()
[all …]
/xen-4.10.0-shim-comet/xen/drivers/video/
A Dvga.c116 const struct pci_dev *pdev; in video_endboot() local
120 pdev = pci_get_pdev(0, bus, devfn); in video_endboot()
123 if ( !pdev || in video_endboot()
/xen-4.10.0-shim-comet/xen/common/
A Dsysctl.c423 const struct pci_dev *pdev; in do_sysctl() local
432 pdev = pci_get_pdev(dev.seg, dev.bus, dev.devfn); in do_sysctl()
433 if ( !pdev ) in do_sysctl()
435 else if ( pdev->node == NUMA_NO_NODE ) in do_sysctl()
438 node = pdev->node; in do_sysctl()
/xen-4.10.0-shim-comet/xen/include/asm-x86/
A Dmsi.h87 extern void pci_cleanup_msi(struct pci_dev *pdev);
93 extern int pci_restore_msi_state(struct pci_dev *pdev);
/xen-4.10.0-shim-comet/xen/include/xen/
A Dpci.h97 #define for_each_pdev(domain, pdev) \ argument
98 list_for_each_entry(pdev, &(domain->arch.pdev_list), domain_list)
/xen-4.10.0-shim-comet/xen/drivers/passthrough/arm/
A Dsmmu.c100 ret = dt_device_get_address(pdev, num, &res.addr, &res.size); in platform_get_resource()
105 ret = platform_get_irq(pdev, num); in platform_get_resource()
185 static inline int pci_for_each_dma_alias(struct pci_dev *pdev, in pci_for_each_dma_alias() argument
186 int (*fn) (struct pci_dev *pdev, in pci_for_each_dma_alias()
1932 struct pci_dev *pdev = to_pci_dev(dev); in arm_smmu_add_device() local
1945 pci_for_each_dma_alias(pdev, __arm_smmu_get_pci_sid, in arm_smmu_add_device()
2288 struct device *dev = &pdev->dev; in arm_smmu_device_dt_probe()
2303 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in arm_smmu_device_dt_probe()
2341 int irq = platform_get_irq(pdev, i); in arm_smmu_device_dt_probe()
2424 static int arm_smmu_device_remove(struct platform_device *pdev)
[all …]

Completed in 2465 milliseconds

12