Home
last modified time | relevance | path

Searched refs:mFd (Results 1 – 8 of 8) sorted by relevance

/device/generic/goldfish-opengl/system/hwc3/
DDrmClient.cpp28 if (mFd > 0) { in ~DrmClient()
29 drmDropMaster(mFd.get()); in ~DrmClient()
66 mFd = OpenVirtioGpuDrmFd(); in init()
67 if (mFd < 0) { in init()
72 int ret = drmSetClientCap(mFd.get(), DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1); in init()
78 ret = drmSetClientCap(mFd.get(), DRM_CLIENT_CAP_ATOMIC, 1); in init()
84 drmSetMaster(mFd.get()); in init()
86 if (!drmIsMaster(mFd.get())) { in init()
102 mDrmEventListener = DrmEventListener::create(mFd, [this]() { handleHotplug(); }); in init()
155 drmModePlaneResPtr drmPlaneResources = drmModeGetPlaneResources(mFd.get()); in loadDrmDisplays()
[all …]
DDrmClient.h101 ::android::base::unique_fd mFd;
/device/google/contexthub/util/common/
Dfile.cpp27 mFd(-1) { in File()
32 mFd(-1) { in File()
61 mFd = open(path, modeval, filemode); in setTo()
63 mInitCheck = (mFd >= 0) ? OK : -errno; in setTo()
69 if (mFd >= 0) { in close()
70 ::close(mFd); in close()
71 mFd = -1; in close()
78 return ::read(mFd, data, size); in read()
82 return ::write(mFd, data, size); in write()
86 off64_t new_pos = lseek64(mFd, pos, whence); in seekTo()
Dfile.h45 int mFd; member
/device/google/contexthub/contexthubhal/
Dnanohubhal.cpp184 return rwrite(mFd, &msg, len + sizeof(msg.hdr)); in doSendToDevice()
225 [IDX_NANOHUB] = { .fd = mFd, .events = POLLIN, }, in runDeviceRx()
256 ret = rread(mFd, &msg, sizeof(msg)); in runDeviceRx()
308 close(mFd); in runDeviceRx()
316 mFd = open(get_devnode_path(), O_RDWR); in openHub()
317 if (mFd < 0) { in openHub()
334 close(mFd); in openHub()
369 ::close(mFd); in closeHub()
Dnanohubhal.h125 int mFd; // [0] is read end variable
134 mFd = -1; in reset()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp138 mFd = open(NANOHUB_FILE_PATH, O_RDWR); in HubConnection()
139 mPollFds[0].fd = mFd; in HubConnection()
254 if (mFd >= 0) { in HubConnection()
278 close(mFd); in ~HubConnection()
298 return mFd < 0 ? UNKNOWN_ERROR : OK; in initCheck()
485 ret = TEMP_FAILURE_RETRY(::write(mFd, buf, count)); in sendCmd()
1486 if (mFd < 0) { in threadLoop()
1532 ssize_t len = ::read(mFd, recv, sizeof(recv)); in threadLoop()
Dhubconnection.h259 int mFd; member