Lines Matching refs:mfd
51 static int mfd; variable
66 int mfd = memfd_create("buffer", mfd_flags); in memfd_mmap() local
69 if (mfd <= 0) in memfd_mmap()
71 if (ftruncate(mfd, length)) in memfd_mmap()
73 *mfd_p = mfd; in memfd_mmap()
74 buf = mmap(0, length, prot, flags, mfd, 0); in memfd_mmap()
77 close(mfd); in memfd_mmap()
680 static int _test_ioctl_ioas_map_file(int fd, unsigned int ioas_id, int mfd, in _test_ioctl_ioas_map_file() argument
688 .fd = mfd, in _test_ioctl_ioas_map_file()
702 #define test_ioctl_ioas_map_file(mfd, start, length, iova_p) \ argument
705 self->fd, self->ioas_id, mfd, start, length, iova_p, \
708 #define test_err_ioctl_ioas_map_file(_errno, mfd, start, length, iova_p) \ argument
712 self->fd, self->ioas_id, mfd, start, length, iova_p, \
715 #define test_ioctl_ioas_map_id_file(ioas_id, mfd, start, length, iova_p) \ argument
718 self->fd, ioas_id, mfd, start, length, iova_p, \