Searched refs:devfd (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/tools/testing/selftests/drivers/dma-buf/ |
H A D | udmabuf.c | 29 int devfd, memfd, buf, ret; in main() local 33 devfd = open("/dev/udmabuf", O_RDWR); in main() 34 if (devfd < 0) { in main() 66 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main() 76 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main() 86 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main() 96 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main() 105 close(devfd); in main()
|
/openbmc/linux/tools/testing/selftests/tdx/ |
H A D | tdx_guest_test.c | 135 int devfd, i; in TEST() local 137 devfd = open(TDX_GUEST_DEVNAME, O_RDWR | O_SYNC); in TEST() 138 ASSERT_LT(0, devfd); in TEST() 145 ASSERT_EQ(0, ioctl(devfd, TDX_CMD_GET_REPORT0, &req)); in TEST() 160 ASSERT_EQ(0, close(devfd)); in TEST()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | d_path.c | 43 int sockfd = -1, procfd = -1, devfd = -1; in trigger_fstat_events() local 60 devfd = open("/dev/urandom", O_RDONLY); in trigger_fstat_events() 61 if (CHECK(devfd < 0, "trigger", "open /dev/urandom failed\n")) in trigger_fstat_events() 84 ret = set_pathname(devfd, pid); in trigger_fstat_events() 99 fstat(devfd, &fileStat); in trigger_fstat_events() 113 close(devfd); in trigger_fstat_events()
|
/openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/ |
H A D | 0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch | 68 -static uint64_t get_size(int devfd) 75 - if (!ioctl(devfd, BLKGETSIZE64, &bytes)) 78 - if (!ioctl(devfd, BLKGETSIZE, §s)) 80 - else if (!fstat(devfd, &st) && st.st_size) 101 - if (fstat(devfd, &st)) 147 - if (!ioctl(devfd, HDIO_GETGEO, geo)) { 184 - if (!ioctl(devfd, LOOP_GET_STATUS64, &li64)) 186 - else if (!ioctl(devfd, LOOP_GET_STATUS, &li)) 214 - totalbytes = get_size(devfd); 215 - get_geometry(devfd, totalbytes, &geo); [all …]
|
/openbmc/qemu/hw/vfio/ |
H A D | iommufd.c | 469 int ret, devfd; in iommufd_cdev_attach() local 476 devfd = iommufd_cdev_getfd(vbasedev->sysfsdev, errp); in iommufd_cdev_attach() 477 if (devfd < 0) { in iommufd_cdev_attach() 480 vbasedev->fd = devfd; in iommufd_cdev_attach() 482 devfd = vbasedev->fd; in iommufd_cdev_attach() 570 ret = ioctl(devfd, VFIO_DEVICE_GET_INFO, &dev_info); in iommufd_cdev_attach() 597 trace_iommufd_cdev_device_info(vbasedev->name, devfd, vbasedev->num_irqs, in iommufd_cdev_attach()
|
H A D | trace-events | 172 iommufd_cdev_connect_and_bind(int iommufd, const char *name, int devfd, int devid) " [iommufd=%d] S… 173 iommufd_cdev_getfd(const char *dev, int devfd) " %s (fd=%d)" 174 iommufd_cdev_attach_ioas_hwpt(int iommufd, const char *name, int devfd, int id) " [iommufd=%d] Succ… 178 iommufd_cdev_device_info(char *name, int devfd, int num_irqs, int num_regions, int flags) " %s (%d)…
|