| /linux/tools/testing/selftests/vfio/lib/ |
| H A D | vfio_pci_device.c | 207 static unsigned int vfio_pci_get_group_from_dev(const char *bdf) in vfio_pci_get_group_from_dev() 214 snprintf(sysfs_path, PATH_MAX, "%s/%s/iommu_group", PCI_SYSFS_PATH, bdf); in vfio_pci_get_group_from_dev() 217 VFIO_ASSERT_NE(ret, -1, "Failed to get the IOMMU group for device: %s\n", bdf); in vfio_pci_get_group_from_dev() 220 VFIO_ASSERT_EQ(ret, 1, "Failed to get the IOMMU group for device: %s\n", bdf); in vfio_pci_get_group_from_dev() 225 static void vfio_pci_group_setup(struct vfio_pci_device *device, const char *bdf) in vfio_pci_group_setup() 233 group = vfio_pci_get_group_from_dev(bdf); in vfio_pci_group_setup() 245 static void vfio_pci_container_setup(struct vfio_pci_device *device, const char *bdf) in vfio_pci_container_setup() 251 vfio_pci_group_setup(device, bdf); in vfio_pci_container_setup() 263 device->fd = ioctl(device->group_fd, VFIO_GROUP_GET_DEVICE_FD, bdf); in vfio_pci_container_setup() 295 const char *vfio_pci_get_cdev_path(const char *bdf) in vfio_pci_get_cdev_path() 205 vfio_pci_get_group_from_dev(const char * bdf) vfio_pci_get_group_from_dev() argument 223 vfio_pci_group_setup(struct vfio_pci_device * device,const char * bdf) vfio_pci_group_setup() argument 243 vfio_pci_container_setup(struct vfio_pci_device * device,const char * bdf) vfio_pci_container_setup() argument 293 vfio_pci_get_cdev_path(const char * bdf) vfio_pci_get_cdev_path() argument 343 vfio_pci_iommufd_setup(struct vfio_pci_device * device,const char * bdf) vfio_pci_iommufd_setup() argument 355 vfio_pci_device_init(const char * bdf,struct iommu * iommu) vfio_pci_device_init() argument [all...] |
| H A D | libvfio.c | 37 char *bdf; in get_bdf_env() 39 bdf = getenv("VFIO_SELFTESTS_BDF"); in get_bdf_env() 40 if (!bdf) in get_bdf_env() 43 VFIO_ASSERT_TRUE(is_bdf(bdf), "Invalid BDF: %s\n", bdf); 44 return bdf; in vfio_selftests_get_bdfs() 34 char *bdf; get_bdf_env() local
|
| /linux/Documentation/admin-guide/perf/ |
| H A D | hisi-pcie-pmu.rst | 68 "bdf" interfaces for users. 73 "bdf" filter will be in effect, because "bdf=0" meaning 0000:000:00.0. 91 - bdf 93 "bdf" filter can only be used in bandwidth events, target Endpoint is 94 selected by configuring BDF to "bdf". Counter only counts the bandwidth of 97 For example, "bdf=0x3900" means BDF of target Endpoint is 0000:39:00.0. 101 $# perf stat -e hisi_pcie0_core0/rx_mrd_flux,bdf=0x3900/ sleep 5
|
| H A D | hns3-pmu.rst | 35 The "bdf_min" and "bdf_max" files show the supported bdf range of each 106 PMU collect performance statistic of one PF/VF. The function id is BDF of 112 BDF func 120 $# perf stat -a -e hns3_pmu_sicl_0/config=0x1020F,bdf=0x3500,queue=0xFFFF/ -I 1000 124 is BDF of PF/VF, the "queue" filter option must be set to the exact queue 128 $# perf stat -a -e hns3_pmu_sicl_0/config=0x1020F,bdf=0x3500,queue=0/ -I 1000 132 id is BDF of PF/VF, the "intr" filter option must be set to the exact 136 $# perf stat -a -e hns3_pmu_sicl_0/config=0x00301,bdf=0x3500,intr=0/ -I 1000
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | pci_reset.sh | 22 local bdf=$(echo $DEVLINK_DEV | cut -d '/' -f 2) 30 if [ ! -f /sys/bus/pci/devices/$bdf/reset_method ]; then 36 [[ $(cat /sys/bus/pci/devices/$bdf/reset_method) == "bus" ]] 41 echo 1 > /sys/bus/pci/devices/$bdf/reset
|
| /linux/tools/testing/selftests/vfio/lib/include/libvfio/ |
| H A D | vfio_pci_device.h | 19 const char *bdf; member 38 #define dev_info(_dev, _fmt, ...) printf("%s: " _fmt, (_dev)->bdf, ##__VA_ARGS__) 39 #define dev_err(_dev, _fmt, ...) fprintf(stderr, "%s: " _fmt, (_dev)->bdf, ##__VA_ARGS__) 41 struct vfio_pci_device *vfio_pci_device_init(const char *bdf, struct iommu *iommu); 123 const char *vfio_pci_get_cdev_path(const char *bdf);
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_dev_mgr.c | 15 u32 bdf; member 34 static struct vf_id_map *adf_find_vf(u32 bdf) in adf_find_vf() argument 42 if (ptr->bdf == bdf) in adf_find_vf() 76 if (map->bdf != -1) { in adf_clean_vf_map() 81 if (vf && map->bdf == -1) in adf_clean_vf_map() 180 map->bdf = ~0; in adf_devmgr_add_dev() 220 map->bdf = adf_get_vf_num(accel_dev); in adf_devmgr_add_dev() 352 if (ptr->bdf != ~0 && !ptr->attached) in adf_get_num_dettached_vfs()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-intel_pmt-features | 1 What: /sys/class/intel_pmt/features-<PCI BDF>/ 6 The `features-<PCI BDF>/` directory represents the "features" 16 /sys/class/intel_pmt/features-<PCI BDF>/ 66 For a device with PCI BDF `0000:00:03.1`, the directory tree could look like:
|
| /linux/tools/testing/selftests/vfio/lib/include/ |
| H A D | libvfio.h | 12 * Return the BDF string of the device that the test should use. 14 * If a BDF string is provided by the user on the command line (as the last 21 * If BDF cannot be determined then the test will exit with KSFT_SKIP.
|
| /linux/drivers/perf/hisilicon/ |
| H A D | hisi_pcie_pmu.c | 73 /* Minimum and maximum BDF of root ports monitored by PMU */ 85 #define GET_PCI_DEVFN(bdf) ((bdf) & 0xff) argument 100 HISI_PCIE_PMU_FILTER_ATTR(bdf, config2, 31, 16); 282 static bool hisi_pcie_pmu_valid_requester_id(struct hisi_pcie_pmu *pcie_pmu, u32 bdf) in hisi_pcie_pmu_valid_requester_id() argument 287 pdev = pci_get_domain_bus_and_slot(pci_domain_nr(pcie_pmu->pdev->bus), PCI_BUS_NUM(bdf), in hisi_pcie_pmu_valid_requester_id() 288 GET_PCI_DEVFN(bdf)); in hisi_pcie_pmu_valid_requester_id() 314 /* Need to explicitly set filter of "port" or "bdf" */ in hisi_pcie_pmu_valid_filter() 771 HISI_PCIE_PMU_FORMAT_ATTR(bdf, "config2:16-31"),
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_gt_sriov_pf_debugfs.c | 29 * /sys/kernel/debug/dri/BDF/ 70 * /sys/kernel/debug/dri/BDF/ 105 * /sys/kernel/debug/dri/BDF/ 159 * /sys/kernel/debug/dri/BDF/ 452 * /sys/kernel/debug/dri/BDF/ 511 * /sys/kernel/debug/dri/BDF/ 607 * /sys/kernel/debug/dri/BDF/ 685 * /sys/kernel/debug/dri/BDF/ 858 * /sys/kernel/debug/dri/BDF/ in xe_gt_sriov_pf_debugfs_populate()
|
| /linux/tools/testing/selftests/vfio/ |
| H A D | vfio_dma_mapping_test.c | 38 static int intel_iommu_mapping_get(const char *bdf, u64 iova, in intel_iommu_mapping_get() argument 49 bdf); in intel_iommu_mapping_get() 86 static int iommu_mapping_get(const char *bdf, u64 iova, in iommu_mapping_get() argument 90 return intel_iommu_mapping_get(bdf, iova, mapping); in iommu_mapping_get()
|
| /linux/drivers/acpi/ |
| H A D | viot.c | 78 u16 segment, u16 bdf) in viot_get_pci_iommu_fwnode() argument 83 pdev = pci_get_domain_bus_and_slot(segment, PCI_BUS_NUM(bdf), in viot_get_pci_iommu_fwnode() 84 bdf & 0xff); in viot_get_pci_iommu_fwnode() 156 node->pci.bdf); in viot_get_iommu()
|
| /linux/arch/x86/hyperv/ |
| H A D | irqdomain.c | 132 dev_id.pci.bdf.bus = PCI_BUS_NUM(data.rid); in hv_build_pci_dev_id() 133 dev_id.pci.bdf.device = PCI_SLOT(data.rid); in hv_build_pci_dev_id() 134 dev_id.pci.bdf.function = PCI_FUNC(data.rid); in hv_build_pci_dev_id()
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | acpi.c | 47 ath12k_warn(ab, "invalid ACPI DSM BDF size: %d\n", in ath12k_acpi_dsm_get_data() 394 ath12k_warn(ab, "failed to get ACPI BDF EXT: %d\n", ret); in ath12k_acpi_start() 494 "acpi bdf variant longer than the buffer (variant: %s)\n", in ath12k_acpi_check_bdf_variant_name()
|
| H A D | acpi.h | 63 #define ATH12K_ACPI_BDF_ANCHOR_STRING "BDF"
|
| H A D | core.c | 741 "wrong smbios bdf ext type length (%d).\n", in ath12k_core_check_cc_code_bdfext() 769 ath12k_dbg(ab, ATH12K_DBG_BOOT, "bdf variant name not found.\n"); in ath12k_core_check_cc_code_bdfext() 776 "bdf variant magic does not match.\n"); in ath12k_core_check_cc_code_bdfext() 785 "bdf variant name contains non ascii chars.\n"); in ath12k_core_check_cc_code_bdfext() 795 "bdf variant string is longer than the buffer can accommodate\n"); in ath12k_core_check_cc_code_bdfext() 800 "found and validated bdf variant smbios_type 0x%x bdf %s\n", in ath12k_core_check_cc_code_bdfext()
|
| /linux/drivers/acpi/riscv/ |
| H A D | rimt.c | 75 u16 bdf; in rimt_match_node_callback() local 78 bdf = PCI_DEVID(pdev->bus->number, pdev->devfn); in rimt_match_node_callback() 80 bdf == iommu_node->pcie_bdf) { in rimt_match_node_callback()
|
| /linux/drivers/hwtracing/ptt/ |
| H A D | hisi_ptt.h | 206 * @upper_bdf: the upper BDF range of the PCI devices managed by this PTT device 207 * @lower_bdf: the lower BDF range of the PCI devices managed by this PTT device
|
| /linux/include/linux/ |
| H A D | intel_tpmi.h | 28 TPMI_INFO_ID = 0x81, /* Special ID for PCI BDF and Package ID information */
|
| /linux/Documentation/devicetree/bindings/virtio/ |
| H A D | pci-iommu.yaml | 66 * itself. Omit BDF 00:01.0.
|
| /linux/drivers/misc/ocxl/ |
| H A D | ocxl_internal.h | 88 __be16 bdf; member
|
| H A D | link.c | 539 u64 amr, u16 bdf, struct mm_struct *mm, in ocxl_link_add_pe() argument 577 pe->bdf = cpu_to_be16(bdf); in ocxl_link_add_pe()
|
| /linux/arch/x86/kernel/ |
| H A D | early_printk.c | 285 * Part the param to get the BDF values in early_pci_serial_init() 305 * Find the device from the BDF in early_pci_serial_init()
|
| /linux/Documentation/devicetree/bindings/iommu/ |
| H A D | riscv,iommu.yaml | 135 * itself. Omit BDF 00:01.0.
|