Home
last modified time | relevance | path

Searched refs:vfio_dev_fd (Results 1 – 19 of 19) sorted by relevance

/dpdk/drivers/bus/pci/linux/
H A Dpci_vfio.c52 if (vfio_dev_fd < 0) in EAL_REGISTER_TAILQ()
65 if (vfio_dev_fd < 0) in pci_vfio_write_config()
610 vfio_dev_fd, in pci_vfio_mmap_bar()
728 int vfio_dev_fd; in pci_vfio_map_resource_primary() local
880 int vfio_dev_fd; in pci_vfio_map_resource_secondary() local
1007 int ret, vfio_dev_fd; in pci_vfio_unmap_resource_primary() local
1031 if (vfio_dev_fd < 0) in pci_vfio_unmap_resource_primary()
1070 int ret, vfio_dev_fd; in pci_vfio_unmap_resource_secondary() local
1077 if (vfio_dev_fd < 0) in pci_vfio_unmap_resource_secondary()
1132 if (vfio_dev_fd < 0) in pci_vfio_ioport_read()
[all …]
/dpdk/drivers/common/cnxk/
H A Droc_irq.c24 int rc, vfio_dev_fd; in irq_get_info() local
28 vfio_dev_fd = plt_intr_dev_fd_get(intr_handle); in irq_get_info()
29 rc = ioctl(vfio_dev_fd, VFIO_DEVICE_GET_IRQ_INFO, &irq); in irq_get_info()
55 int len, rc, vfio_dev_fd; in irq_config() local
79 vfio_dev_fd = plt_intr_dev_fd_get(intr_handle); in irq_config()
80 rc = ioctl(vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set); in irq_config()
92 int len, rc, vfio_dev_fd; in irq_init() local
111 vfio_dev_fd = plt_intr_dev_fd_get(intr_handle); in irq_init()
112 rc = ioctl(vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set); in irq_init()
/dpdk/drivers/crypto/bcmfs/
H A Dbcmfs_vfio.c62 int vfio_dev_fd; in bcmfs_attach_vfio() local
67 &size, &v_addr, &vfio_dev_fd); in bcmfs_attach_vfio()
73 dev->vfio_dev_fd = vfio_dev_fd; in bcmfs_attach_vfio()
90 dev->vfio_dev_fd); in bcmfs_release_vfio()
H A Dbcmfs_device.h57 int vfio_dev_fd; member
/dpdk/lib/eal/linux/
H A Deal_interrupts.c107 int len, ret, vfio_dev_fd; in vfio_enable_intx() local
122 vfio_dev_fd = rte_intr_dev_fd_get(intr_handle); in vfio_enable_intx()
155 int len, ret, vfio_dev_fd; in vfio_disable_intx() local
167 vfio_dev_fd = rte_intr_dev_fd_get(intr_handle); in vfio_disable_intx()
199 int vfio_dev_fd; in vfio_ack_intx() local
224 int *fd_ptr, vfio_dev_fd; in vfio_enable_msi() local
253 int len, ret, vfio_dev_fd; in vfio_disable_msi() local
279 int *fd_ptr, vfio_dev_fd, i; in vfio_enable_msix() local
319 int len, ret, vfio_dev_fd; in vfio_disable_msix() local
348 int *fd_ptr, vfio_dev_fd; in vfio_enable_req() local
[all …]
H A Deal_vfio.c741 int *vfio_dev_fd, struct vfio_device_info *device_info) in rte_vfio_setup_device() argument
955 *vfio_dev_fd = ioctl(vfio_group_fd, VFIO_GROUP_GET_DEVICE_FD, in rte_vfio_setup_device()
957 if (*vfio_dev_fd >= 0) in rte_vfio_setup_device()
962 *vfio_dev_fd = ioctl(vfio_group_fd, VFIO_GROUP_GET_DEVICE_FD, dev_addr); in rte_vfio_setup_device()
963 if (*vfio_dev_fd < 0) { in rte_vfio_setup_device()
977 ret = ioctl(*vfio_dev_fd, VFIO_DEVICE_GET_INFO, device_info); in rte_vfio_setup_device()
982 close(*vfio_dev_fd); in rte_vfio_setup_device()
994 int vfio_dev_fd) in rte_vfio_release_device() argument
1036 if (close(vfio_dev_fd) < 0) { in rte_vfio_release_device()
/dpdk/drivers/vdpa/sfc/
H A Dsfc_vdpa_ops.c102 int vfio_dev_fd; in sfc_vdpa_enable_vfio_intr() local
112 vfio_dev_fd = sfc_vdpa_adapter_by_dev_handle(dev)->vfio_dev_fd; in sfc_vdpa_enable_vfio_intr()
134 rc = ioctl(vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set); in sfc_vdpa_enable_vfio_intr()
149 int vfio_dev_fd; in sfc_vdpa_disable_vfio_intr() local
154 vfio_dev_fd = sfc_vdpa_adapter_by_dev_handle(dev)->vfio_dev_fd; in sfc_vdpa_disable_vfio_intr()
771 int vfio_dev_fd; in sfc_vdpa_get_vfio_device_fd() local
781 vfio_dev_fd = sfc_vdpa_adapter_by_dev_handle(dev)->vfio_dev_fd; in sfc_vdpa_get_vfio_device_fd()
784 vfio_dev_fd); in sfc_vdpa_get_vfio_device_fd()
786 return vfio_dev_fd; in sfc_vdpa_get_vfio_device_fd()
794 int vfio_dev_fd; in sfc_vdpa_get_notify_area() local
[all …]
H A Dsfc_vdpa.h74 int vfio_dev_fd; member
H A Dsfc_vdpa.c106 sva->vfio_dev_fd = rte_intr_dev_fd_get(dev->intr_handle); in sfc_vdpa_vfio_setup()
/dpdk/drivers/bus/fslmc/
H A Dfslmc_vfio.c446 int *vfio_dev_fd, struct vfio_device_info *device_info) in fslmc_vfio_setup_device() argument
539 if (*vfio_dev_fd < 0) { in fslmc_vfio_setup_device()
556 close(*vfio_dev_fd); in fslmc_vfio_setup_device()
602 int *fd_ptr, vfio_dev_fd; in rte_dpaa2_intr_enable() local
616 vfio_dev_fd = rte_intr_dev_fd_get(intr_handle); in rte_dpaa2_intr_enable()
617 ret = ioctl(vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set); in rte_dpaa2_intr_enable()
632 int len, ret, vfio_dev_fd; in rte_dpaa2_intr_disable() local
643 vfio_dev_fd = rte_intr_dev_fd_get(intr_handle); in rte_dpaa2_intr_disable()
644 ret = ioctl(vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set); in rte_dpaa2_intr_disable()
656 int vfio_dev_fd, in rte_dpaa2_vfio_setup_intr() argument
[all …]
H A Dfslmc_vfio.h53 int vfio_dev_fd,
/dpdk/drivers/raw/ifpga/base/
H A Difpga_feature_dev.c363 static int vfio_msix_enable_block(s32 vfio_dev_fd, unsigned int vec_start, in vfio_msix_enable_block() argument
387 ret = ioctl(vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set); in vfio_msix_enable_block()
405 ret = vfio_msix_enable_block(feature->vfio_dev_fd, in fpga_msix_set_block()
H A Difpga_hw.h41 int vfio_dev_fd; member
H A Difpga_enumerate.c118 feature->vfio_dev_fd = binfo->pci_data->vfio_dev_fd; in build_info_add_sub_feature()
H A Dopae_hw_api.h255 int vfio_dev_fd; /* VFIO device file descriptor */ member
/dpdk/drivers/vdpa/ifc/
H A Difcvf_vdpa.c54 int vfio_dev_fd; member
141 internal->vfio_dev_fd = -1; in ifcvf_vfio_setup()
165 internal->vfio_dev_fd = rte_intr_dev_fd_get(dev->intr_handle); in ifcvf_vfio_setup()
387 ret = ioctl(internal->vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set); in vdpa_enable_vfio_intr()
419 ret = ioctl(internal->vfio_dev_fd, VFIO_DEVICE_SET_IRQS, irq_set); in vdpa_disable_vfio_intr()
1010 return list->internal->vfio_dev_fd; in ifcvf_get_vfio_device_fd()
1032 ret = ioctl(internal->vfio_dev_fd, VFIO_DEVICE_GET_REGION_INFO, &reg); in ifcvf_get_notify_area()
/dpdk/lib/eal/include/
H A Drte_vfio.h112 int *vfio_dev_fd, struct vfio_device_info *device_info);
/dpdk/lib/eal/freebsd/
H A Deal.c925 __rte_unused int *vfio_dev_fd, in rte_vfio_setup_device() argument
/dpdk/drivers/raw/ifpga/
H A Difpga_rawdev.c1565 data->vfio_dev_fd = rte_intr_dev_fd_get(pci_dev->intr_handle); in ifpga_rawdev_create()