| /linux/drivers/iommu/amd/ |
| H A D | debugfs.c | 22 static int sbdf = -1; variable 148 sbdf = -1; in devid_write() 190 sbdf = PCI_SEG_DEVID_TO_SBDF(seg, devid); in devid_write() 201 if (sbdf >= 0) { in devid_show() 202 devid = PCI_SBDF_TO_DEVID(sbdf); in devid_show() 203 seq_printf(m, "%04x:%02x:%02x.%x\n", PCI_SBDF_TO_SEGID(sbdf), in devid_show() 241 if (sbdf < 0) { in iommu_devtbl_show() 245 seg = PCI_SBDF_TO_SEGID(sbdf); in iommu_devtbl_show() 246 devid = PCI_SBDF_TO_DEVID(sbdf); in iommu_devtbl_show() 345 if (sbdf < 0) { in iommu_irqtbl_show() [all …]
|
| H A D | iommu.c | 302 int sbdf; in get_device_sbdf_id() local 305 sbdf = get_pci_sbdf_id(to_pci_dev(dev)); in get_device_sbdf_id() 307 sbdf = get_acpihid_device_id(dev, NULL); in get_device_sbdf_id() 309 return sbdf; in get_device_sbdf_id() 674 int devid, sbdf; in check_device() local 679 sbdf = get_device_sbdf_id(dev); in check_device() 680 if (sbdf < 0) in check_device() 682 devid = PCI_SBDF_TO_DEVID(sbdf); in check_device() 699 int devid, sbdf; in iommu_init_device() local 704 sbdf = get_device_sbdf_id(dev); in iommu_init_device() [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_acpi.c | 71 uint32_t sbdf; member 997 static struct amdgpu_acpi_dev_info *amdgpu_acpi_get_dev(u32 sbdf) in amdgpu_acpi_get_dev() argument 1005 if (acpi_dev->sbdf == sbdf) in amdgpu_acpi_get_dev() 1012 struct amdgpu_acpi_xcc_info *xcc_info, u32 sbdf) in amdgpu_acpi_dev_init() argument 1025 tmp->sbdf = sbdf; in amdgpu_acpi_dev_init() 1077 tmp->sbdf, tmp->supp_xcp_mode, tmp->xcp_mode, tmp->mem_mode, in amdgpu_acpi_dev_init() 1093 u32 *sbdf) in amdgpu_acpi_get_xcc_info() argument 1125 *sbdf = (obj->integer.value) & 0xFFFF0000; in amdgpu_acpi_get_xcc_info() 1127 *sbdf |= (obj->integer.value >> 48) & 0xFFFF; in amdgpu_acpi_get_xcc_info() 1152 u32 sbdf; in amdgpu_acpi_enumerate_xcc() local [all …]
|
| /linux/include/xen/ |
| H A D | acpi.h | 38 typedef int (*get_gsi_from_sbdf_t)(u32 sbdf); 78 int xen_acpi_get_gsi_from_sbdf(u32 sbdf); 101 static inline int xen_acpi_get_gsi_from_sbdf(u32 sbdf) in xen_acpi_get_gsi_from_sbdf() argument
|
| /linux/drivers/perf/ |
| H A D | dwc_pcie_pmu.c | 645 u32 sbdf; in dwc_pcie_register_dev() local 647 sbdf = (pci_domain_nr(pdev->bus) << 16) | PCI_DEVID(pdev->bus->number, pdev->devfn); in dwc_pcie_register_dev() 648 plat_dev = platform_device_register_simple("dwc_pcie_pmu", sbdf, NULL, 0); in dwc_pcie_register_dev() 700 u32 sbdf; in dwc_pcie_pmu_probe() local 704 sbdf = plat_dev->id; in dwc_pcie_pmu_probe() 705 pdev = pci_get_domain_bus_and_slot(sbdf >> 16, PCI_BUS_NUM(sbdf & 0xffff), in dwc_pcie_pmu_probe() 706 sbdf & 0xff); in dwc_pcie_pmu_probe() 708 pr_err("No pdev found for the sbdf 0x%x\n", sbdf); in dwc_pcie_pmu_probe() 717 name = devm_kasprintf(&plat_dev->dev, GFP_KERNEL, "dwc_rootport_%x", sbdf); in dwc_pcie_pmu_probe() 748 pci_err(pdev, "Error %d registering hotplug @%x\n", ret, sbdf); in dwc_pcie_pmu_probe() [all …]
|
| /linux/drivers/acpi/apei/ |
| H A D | einj-cxl.c | 50 static int cxl_dport_get_sbdf(struct pci_dev *dport_dev, u64 *sbdf) in cxl_dport_get_sbdf() argument 66 *sbdf = (seg << 24) | (bus << 16) | (dport_dev->devfn << 8); in cxl_dport_get_sbdf()
|
| H A D | einj-core.c | 270 u32 sbdf; in check_vendor_extension() local 279 sbdf = v.pcie_sbdf; in check_vendor_extension() 281 sbdf >> 24, (sbdf >> 16) & 0xff, in check_vendor_extension() 282 (sbdf >> 11) & 0x1f, (sbdf >> 8) & 0x7, in check_vendor_extension()
|
| /linux/drivers/xen/ |
| H A D | acpi.c | 141 int xen_acpi_get_gsi_from_sbdf(u32 sbdf) in xen_acpi_get_gsi_from_sbdf() argument 147 ret = get_gsi_from_sbdf(sbdf); in xen_acpi_get_gsi_from_sbdf()
|
| H A D | privcmd.c | 857 rc = xen_acpi_get_gsi_from_sbdf(kdata.sbdf); in privcmd_ioctl_pcidev_get_gsi()
|
| /linux/include/uapi/xen/ |
| H A D | privcmd.h | 130 __u32 sbdf; member
|
| /linux/drivers/xen/xen-pciback/ |
| H A D | pci_stub.c | 230 static int pcistub_get_gsi_from_sbdf(unsigned int sbdf) in pcistub_get_gsi_from_sbdf() argument 233 int domain = (sbdf >> 16) & 0xffff; in pcistub_get_gsi_from_sbdf() 234 int bus = PCI_BUS_NUM(sbdf); in pcistub_get_gsi_from_sbdf() 235 int slot = PCI_SLOT(sbdf); in pcistub_get_gsi_from_sbdf() 236 int func = PCI_FUNC(sbdf); in pcistub_get_gsi_from_sbdf()
|
| /linux/Documentation/admin-guide/perf/ |
| H A D | dwc_pcie_pmu.rst | 58 /sys/bus/event_source/devices/dwc_rootport_{sbdf}.
|