Lines Matching refs:mDeviceHandle
61 mDeviceHandle = static_cast<int64_t>(drmOpenRender(128)); in LinuxVirtGpuDevice()
62 if (mDeviceHandle < 0) { in LinuxVirtGpuDevice()
67 mDeviceHandle = dup(fd); in LinuxVirtGpuDevice()
68 if (mDeviceHandle < 0) { in LinuxVirtGpuDevice()
79 ret = drmIoctl(mDeviceHandle, DRM_IOCTL_VIRTGPU_GETPARAM, &get_param); in LinuxVirtGpuDevice()
110 ret = drmIoctl(mDeviceHandle, DRM_IOCTL_VIRTGPU_GET_CAPS, &get_caps); in LinuxVirtGpuDevice()
139 ret = drmIoctl(mDeviceHandle, DRM_IOCTL_VIRTGPU_CONTEXT_INIT, &init); in LinuxVirtGpuDevice()
146 LinuxVirtGpuDevice::~LinuxVirtGpuDevice() { close(mDeviceHandle); } in ~LinuxVirtGpuDevice()
150 int64_t LinuxVirtGpuDevice::getDeviceHandle(void) { return mDeviceHandle; } in getDeviceHandle()
169 int ret = drmIoctl(mDeviceHandle, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE, &create); in createResource()
176 mDeviceHandle, create.bo_handle, create.res_handle, static_cast<uint64_t>(create.size)); in createResource()
188 ret = drmIoctl(mDeviceHandle, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE_BLOB, &create); in createBlob()
194 return std::make_shared<LinuxVirtGpuResource>(mDeviceHandle, create.bo_handle, in createBlob()
203 ret = drmPrimeFDToHandle(mDeviceHandle, handle.osHandle, &blobHandle); in importBlob()
211 ret = drmIoctl(mDeviceHandle, DRM_IOCTL_VIRTGPU_RESOURCE_INFO, &info); in importBlob()
217 return std::make_shared<LinuxVirtGpuResource>(mDeviceHandle, blobHandle, info.res_handle, in importBlob()
239 ret = drmIoctl(mDeviceHandle, DRM_IOCTL_VIRTGPU_EXECBUFFER, &exec); in execBuffer()