Home
last modified time | relevance | path

Searched refs:bdf (Results 1 – 24 of 24) sorted by relevance

/linux/tools/testing/selftests/vfio/lib/
H A Dvfio_pci_device.c183 static unsigned int vfio_pci_get_group_from_dev(const char *bdf) in vfio_pci_get_group_from_dev() argument
190 snprintf(sysfs_path, PATH_MAX, "%s/%s/iommu_group", PCI_SYSFS_PATH, bdf); in vfio_pci_get_group_from_dev()
193 VFIO_ASSERT_NE(ret, -1, "Failed to get the IOMMU group for device: %s\n", bdf); in vfio_pci_get_group_from_dev()
196 VFIO_ASSERT_EQ(ret, 1, "Failed to get the IOMMU group for device: %s\n", bdf); in vfio_pci_get_group_from_dev()
201 static void vfio_pci_group_setup(struct vfio_pci_device *device, const char *bdf) in vfio_pci_group_setup() argument
209 group = vfio_pci_get_group_from_dev(bdf); in vfio_pci_group_setup()
221 static void vfio_pci_container_setup(struct vfio_pci_device *device, const char *bdf) in vfio_pci_container_setup() argument
227 vfio_pci_group_setup(device, bdf); in vfio_pci_container_setup()
239 device->fd = ioctl(device->group_fd, VFIO_GROUP_GET_DEVICE_FD, bdf); in vfio_pci_container_setup()
271 const char *vfio_pci_get_cdev_path(const char *bdf) in vfio_pci_get_cdev_path() argument
[all …]
H A Dlibvfio.c34 char *bdf; in get_bdf_env() local
36 bdf = getenv("VFIO_SELFTESTS_BDF"); in get_bdf_env()
37 if (!bdf) in get_bdf_env()
40 VFIO_ASSERT_TRUE(is_bdf(bdf), "Invalid BDF: %s\n", bdf); in get_bdf_env()
41 return bdf; in get_bdf_env()
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dpci_reset.sh22 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 Dvfio_pci_device.h19 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/Documentation/admin-guide/perf/
H A Dhisi-pcie-pmu.rst68 "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 Dhns3-pmu.rst35 The "bdf_min" and "bdf_max" files show the supported bdf range of each
120 $# perf stat -a -e hns3_pmu_sicl_0/config=0x1020F,bdf=0x3500,queue=0xFFFF/ -I 1000
128 $# perf stat -a -e hns3_pmu_sicl_0/config=0x1020F,bdf=0x3500,queue=0/ -I 1000
136 $# perf stat -a -e hns3_pmu_sicl_0/config=0x00301,bdf=0x3500,intr=0/ -I 1000
/linux/drivers/acpi/
H A Dviot.c78 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/tools/testing/selftests/vfio/
H A Dvfio_dma_mapping_test.c38 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()
H A Dvfio_pci_driver_test.c236 static bool device_has_selftests_driver(const char *bdf) in device_has_selftests_driver() argument
/linux/drivers/perf/hisilicon/
H A Dhisi_pcie_pmu.c85 #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()
771 HISI_PCIE_PMU_FORMAT_ATTR(bdf, "config2:16-31"),
/linux/arch/x86/hyperv/
H A Dirqdomain.c132 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/acpi/riscv/
H A Drimt.c75 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/misc/ocxl/
H A Docxl_internal.h88 __be16 bdf; member
H A Dlink.c539 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/include/misc/
H A Docxl.h450 u64 amr, u16 bdf, struct mm_struct *mm,
/linux/include/hyperv/
H A Dhvhdk_mini.h499 union hv_pci_bdf bdf; member
/linux/include/acpi/
H A Dactbl3.h573 u16 bdf; member
H A Dactbl1.h589 u16 bdf; member
/linux/Documentation/ABI/testing/
H A Ddebugfs-intel-iommu222 What: /sys/kernel/debug/iommu/intel/<bdf>/domain_translation_struct
H A Dsysfs-bus-pci530 <bdf>:enclosure:<indication>
533 - <bdf> is the domain, bus, device and function number
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_admin_defs.h941 u16 bdf; member
H A Dena_netdev.c2722 host_info->bdf = pci_dev_id(pdev); in ena_config_host_info()
/linux/drivers/pci/controller/dwc/
H A Dpcie-qcom.c1088 u32 bdf; in qcom_pcie_config_sid_1_9_0() member
1128 __be16 bdf_be = cpu_to_be16(map[i].bdf); in qcom_pcie_config_sid_1_9_0()
1151 val = map[i].bdf << 16 | (map[i].smmu_sid - smmu_sid_base) << 8 | 0; in qcom_pcie_config_sid_1_9_0()
/linux/arch/powerpc/include/asm/
H A Dopal.h31 int64_t opal_npu_map_lpar(uint64_t phb_id, uint64_t bdf, uint64_t lparid,