Searched refs:m_fd (Results 1 – 5 of 5) sorted by relevance
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
D | VirtioGpuStream.cpp | 73 m_fd(-1), in VirtioGpuStream() 97 drmIoctl(m_fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in ~VirtioGpuStream() 100 if (m_fd >= 0) { in ~VirtioGpuStream() 101 close(m_fd); in ~VirtioGpuStream() 109 if (m_fd < 0) { in connect() 110 m_fd = drmOpenRender(RENDERNODE_MINOR); in connect() 111 if (m_fd < 0) { in connect() 112 ERR("%s: failed with fd %d (%s)", __func__, m_fd, strerror(errno)); in connect() 129 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE, &create); in connect() 155 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_MAP, &map); in connect() [all …]
|
D | VirtioGpuPipeStream.cpp | 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() [all …]
|
D | VirtioGpuPipeStream.h | 46 bool valid() { return m_fd >= 0; } in valid() 47 int getRendernodeFd() { return m_fd; } in getRendernodeFd() 61 int m_fd; // rendernode fd variable
|
D | VirtioGpuStream.h | 69 return m_fd >= 0 && m_cmdResp_bo > 0 && m_cmdResp; in valid() 72 int getRendernodeFd() { return m_fd; } in getRendernodeFd() 76 int m_fd;
|
D | HostConnection.cpp | 229 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE, &res_create); in createColorBuffer() 263 void setFd(int fd) { m_fd = fd; } in setFd() 270 if (m_fd < 0) { in getResInfo() 282 int ret = drmPrimeFDToHandle(m_fd, cros_handle->fds[0], &prime_handle); in getResInfo() 292 ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_RESOURCE_INFO, info); in getResInfo() 296 drmIoctl(m_fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in getResInfo() 300 drmIoctl(m_fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in getResInfo() 304 int m_fd = -1; member in MinigbmGralloc 333 void setFd(int fd) { m_fd = fd; } in setFd() 337 int m_fd = -1; member in MinigbmGralloc
|