Home
last modified time | relevance | path

Searched refs:pbdf (Results 1 – 8 of 8) sorted by relevance

/hypervisor/dm/vpci/
A Dvmsi.c43 union pci_bdf pbdf = vdev->pdev->bdf; in enable_disable_msi() local
45 uint32_t msgctrl = pci_pdev_read_cfg(pbdf, capoff + PCIR_MSI_CTRL, 2U); in enable_disable_msi()
52 pci_pdev_write_cfg(pbdf, capoff + PCIR_MSI_CTRL, 2U, msgctrl); in enable_disable_msi()
65 union pci_bdf pbdf = vdev->pdev->bdf; in remap_vmsi() local
81 if (ptirq_prepare_msix_remap(vm, vdev->bdf.value, pbdf.value, 0U, &info, INVALID_IRTE_ID) == 0) { in remap_vmsi()
82 pci_pdev_write_cfg(pbdf, capoff + PCIR_MSI_ADDR, 0x4U, (uint32_t)info.addr.full); in remap_vmsi()
84 pci_pdev_write_cfg(pbdf, capoff + PCIR_MSI_ADDR_HIGH, 0x4U, in remap_vmsi()
86 pci_pdev_write_cfg(pbdf, capoff + PCIR_MSI_DATA_64BIT, 0x2U, (uint16_t)info.data.full); in remap_vmsi()
88 pci_pdev_write_cfg(pbdf, capoff + PCIR_MSI_DATA, 0x2U, (uint16_t)info.data.full); in remap_vmsi()
92 enable_disable_pci_intx(pbdf, false); in remap_vmsi()
A Dvmsix_on_msi.c165 union pci_bdf pbdf = vdev->pdev->bdf; in remap_one_vmsix_entry_on_msi() local
170 mask_bits = pci_pdev_read_cfg(pbdf, get_mask_bits_offset(vdev), 4U); in remap_one_vmsix_entry_on_msi()
172 pci_pdev_write_cfg(pbdf, get_mask_bits_offset(vdev), 4U, mask_bits); in remap_one_vmsix_entry_on_msi()
179 ret = ptirq_prepare_msix_remap(vpci2vm(vdev->vpci), vdev->bdf.value, pbdf.value, in remap_one_vmsix_entry_on_msi()
187 pci_pdev_write_cfg(pbdf, capoff + PCIR_MSI_ADDR, 0x4U, (uint32_t)info.addr.full); in remap_one_vmsix_entry_on_msi()
189 pci_pdev_write_cfg(pbdf, capoff + PCIR_MSI_ADDR_HIGH, 0x4U, in remap_one_vmsix_entry_on_msi()
191 pci_pdev_write_cfg(pbdf, capoff + PCIR_MSI_DATA_64BIT, 0x2U, in remap_one_vmsix_entry_on_msi()
194 pci_pdev_write_cfg(pbdf, capoff + PCIR_MSI_DATA, 0x2U, in remap_one_vmsix_entry_on_msi()
202 pci_pdev_write_cfg(pbdf, get_mask_bits_offset(vdev), 4U, mask_bits); in remap_one_vmsix_entry_on_msi()
A Dpci_pt.c402 union pci_bdf pbdf; in init_bars() local
411 pbdf.value = vdev->pdev->bdf.value; in init_bars()
421 lo = pci_pdev_read_cfg(pbdf, offset, 4U); in init_bars()
448 hi = pci_pdev_read_cfg(pbdf, offset + 4U, 4U); in init_bars()
453 pci_pdev_write_cfg(pbdf, offset, 4U, ~0U); in init_bars()
454 size32 = pci_pdev_read_cfg(pbdf, offset, 4U); in init_bars()
455 pci_pdev_write_cfg(pbdf, offset, 4U, lo); in init_bars()
472 pci_pdev_write_cfg(pbdf, offset, 4U, ~0U); in init_bars()
473 size32 = pci_pdev_read_cfg(pbdf, offset, 4U); in init_bars()
474 pci_pdev_write_cfg(pbdf, offset, 4U, hi); in init_bars()
A Dvroot_port.c139 dev_config->pbdf.value = vrp_config->phy_bdf; in create_vrp()
/hypervisor/hw/
A Dpci.c288 if (pbdf == tmp->bdf.value) { in pci_find_pdev()
305 uint32_t pci_lookup_drhd_for_pbdf(uint16_t pbdf) in pci_lookup_drhd_for_pbdf() argument
345 bool is_hv_owned_pdev(union pci_bdf pbdf) in is_hv_owned_pdev() argument
352 pr_info("hv owned dev: (%x:%x:%x)", pbdf.bits.b, pbdf.bits.d, pbdf.bits.f); in is_hv_owned_pdev()
420 union pci_bdf pbdf; in scan_pci_hierarchy() local
439 pbdf.bits.b = current_bus_index; in scan_pci_hierarchy()
440 if ((pbdf.bits.b < phys_pci_mmcfg.start_bus) || (pbdf.bits.b > phys_pci_mmcfg.end_bus)) { in scan_pci_hierarchy()
445 pbdf.bits.d = dev; in scan_pci_hierarchy()
446 pbdf.bits.f = 0U; in scan_pci_hierarchy()
455 pbdf.bits.f = func; in scan_pci_hierarchy()
[all …]
/hypervisor/arch/x86/configs/
A Dpci_dev.c29 bdf_is_equal(dev_config->pbdf, pdev->bdf)) { in allocate_to_prelaunched_vm()
92 dev_config->pbdf.value = pdev->bdf.value; in init_one_dev_config()
/hypervisor/include/hw/
A Dpci.h366 struct pci_pdev *pci_init_pdev(union pci_bdf pbdf, uint32_t drhd_index);
371 bool is_hv_owned_pdev(union pci_bdf pbdf);
390 uint32_t pci_lookup_drhd_for_pbdf(uint16_t pbdf);
/hypervisor/include/arch/x86/asm/
A Dvm_config.h143 union pci_bdf pbdf; /* physical BDF of PCI device */ member

Completed in 14 milliseconds