Lines Matching refs:m_fd
44 m_fd(-1), in VirtioGpuPipeStream()
64 drmIoctl(m_fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in ~VirtioGpuPipeStream()
67 if (m_fd >= 0) { in ~VirtioGpuPipeStream()
68 close(m_fd); in ~VirtioGpuPipeStream()
76 if (m_fd < 0) { in connect()
77 m_fd = VirtioGpuPipeStream::openRendernode(); in connect()
78 if (m_fd < 0) { in connect()
79 ERR("%s: failed with fd %d (%s)", __func__, m_fd, strerror(errno)); in connect()
97 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE, &create); in connect()
127 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_MAP, &map); in connect()
136 MAP_SHARED, m_fd, map.offset)); in connect()
338 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_WAIT, &waitcmd); in wait()
372 ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_TRANSFER_TO_HOST, &xfer); in transferToHost()
412 ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_TRANSFER_FROM_HOST, &xfer); in transferFromHost()