Home
last modified time | relevance | path

Searched refs:devfd (Results 1 – 3 of 3) sorted by relevance

/openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/
H A D0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch68 -static uint64_t get_size(int devfd)
75 - if (!ioctl(devfd, BLKGETSIZE64, &bytes))
78 - if (!ioctl(devfd, BLKGETSIZE, &sects))
80 - else if (!fstat(devfd, &st) && st.st_size)
94 -static int sysfs_get_offset(int devfd, unsigned long *start)
101 - if (fstat(devfd, &st))
137 -int get_geometry(int devfd, uint64_t totalbytes, struct hd_geometry *geo)
147 - if (!ioctl(devfd, HDIO_GETGEO, geo)) {
149 - } else if (!ioctl(devfd, FDGETPRM, &fd_str)) {
184 - if (!ioctl(devfd, LOOP_GET_STATUS64, &li64))
[all …]
/openbmc/qemu/hw/vfio/
H A Diommufd.c535 int ret, devfd; in iommufd_cdev_attach() local
545 devfd = iommufd_cdev_getfd(vbasedev->sysfsdev, errp); in iommufd_cdev_attach()
546 if (devfd < 0) { in iommufd_cdev_attach()
549 vbasedev->fd = devfd; in iommufd_cdev_attach()
551 devfd = vbasedev->fd; in iommufd_cdev_attach()
644 ret = ioctl(devfd, VFIO_DEVICE_GET_INFO, &dev_info); in iommufd_cdev_attach()
670 trace_iommufd_cdev_device_info(vbasedev->name, devfd, vbasedev->num_irqs, in iommufd_cdev_attach()
H A Dtrace-events192 iommufd_cdev_connect_and_bind(int iommufd, const char *name, int devfd, int devid) " [iommufd=%d] S…
193 iommufd_cdev_getfd(const char *dev, int devfd) " %s (fd=%d)"
194 iommufd_cdev_attach_ioas_hwpt(int iommufd, const char *name, int devfd, int id) " [iommufd=%d] Succ…
198 iommufd_cdev_device_info(char *name, int devfd, int num_irqs, int num_regions, int flags) " %s (%d)…