Home
last modified time | relevance | path

Searched refs:mDeviceHandle (Results 1 – 9 of 9) sorted by relevance

/hardware/google/gfxstream/guest/platform/linux/
DLinuxVirtGpuDevice.cpp61 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()
[all …]
DLinuxVirtGpuBlob.cpp31 : mDeviceHandle(deviceHandle), in LinuxVirtGpuResource()
41 int ret = drmIoctl(mDeviceHandle, DRM_IOCTL_GEM_CLOSE, &gem_close); in ~LinuxVirtGpuResource()
58 ret = drmIoctl(mDeviceHandle, DRM_IOCTL_VIRTGPU_MAP, &map); in createMapping()
65 mmap64(nullptr, mSize, PROT_WRITE | PROT_READ, MAP_SHARED, mDeviceHandle, map.offset)); in createMapping()
79 ret = drmPrimeHandleToFD(mDeviceHandle, mBlobHandle, flags, &fd); in exportBlob()
100 ret = drmIoctl(mDeviceHandle, DRM_IOCTL_VIRTGPU_WAIT, &wait_3d); in wait()
123 ret = drmIoctl(mDeviceHandle, DRM_IOCTL_VIRTGPU_TRANSFER_TO_HOST, &xfer); in transferToHost()
143 ret = drmIoctl(mDeviceHandle, DRM_IOCTL_VIRTGPU_TRANSFER_FROM_HOST, &xfer); in transferFromHost()
DLinuxVirtGpu.h41 int64_t mDeviceHandle;
79 int64_t mDeviceHandle;
/hardware/libhardware/modules/input/evdev/
DInputMapper.h63 virtual void setDeviceHandle(InputDeviceHandle* handle) { mDeviceHandle = handle; } in setDeviceHandle()
76 virtual InputDeviceHandle* getDeviceHandle() final { return mDeviceHandle; } in getDeviceHandle()
82 InputDeviceHandle* mDeviceHandle = nullptr; variable
DInputDevice.cpp113 mDeviceHandle = mHost->registerDevice(mInputId, mDeviceDefinition); in EvdevDevice()
115 mapper->setDeviceHandle(mDeviceHandle); in EvdevDevice()
DInputDevice.h72 InputDeviceHandle* mDeviceHandle = nullptr; variable
/hardware/google/gfxstream/guest/platform/stub/
DStubVirtGpu.h41 int64_t mDeviceHandle;
81 int64_t mDeviceHandle;
DStubVirtGpuBlob.cpp21 : mDeviceHandle(deviceHandle), in StubVirtGpuResource()
DStubVirtGpuDevice.cpp26 return mDeviceHandle; in getDeviceHandle()