Home
last modified time | relevance | path

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

123

/hardware/qcom/display/msm8084/libvirtual/
Dvirtual.cpp65 if(ioctl(mFd, FBIOGET_VSCREENINFO, &mVInfo) < 0) { in configure()
89 VirtualDisplay::VirtualDisplay(hwc_context_t* ctx):mFd(-1), in VirtualDisplay()
195 if (mFd == -1) { in openFrameBuffer()
202 mFd = open(strDevPath, O_RDWR); in openFrameBuffer()
203 if(mFd < 0) { in openFrameBuffer()
208 mHwcContext->dpyAttr[HWC_DISPLAY_VIRTUAL].fd = mFd; in openFrameBuffer()
215 if(mFd >= 0) { in closeFrameBuffer()
216 if(close(mFd) < 0 ) { in closeFrameBuffer()
217 ALOGE("%s: Unable to close FD(%d)", __FUNCTION__, mFd); in closeFrameBuffer()
220 mFd = -1; in closeFrameBuffer()
[all …]
/hardware/qcom/display/msm8909/liboverlay/
DoverlayWriteback.cpp80 if(!utils::openDev(mFd, fbNum, Res::fbPath, O_RDWR)) { in Writeback()
89 if (!mFd.close()) { in ~Writeback()
95 if(!mdp_wrapper::wbInitStart(mFd.getFD())) { in startSession()
103 if(mFd.valid()) { in stopSession()
104 if(!Overlay::displayCommit(mFd.getFD())) { in stopSession()
108 if(!mdp_wrapper::wbStopTerminate(mFd.getFD())) { in stopSession()
123 if(!mdp_wrapper::getVScreenInfo(mFd.getFD(), vinfo)) { in configureDpyInfo()
133 if(!mdp_wrapper::setVScreenInfo(mFd.getFD(), vinfo)) { in configureDpyInfo()
158 if(!mdp_wrapper::wbQueueBuffer(mFd.getFD(), mFbData)) { in queueBuffer()
168 if(!mdp_wrapper::wbDequeueBuffer(mFd.getFD(), mFbData)) { in dequeueBuffer()
[all …]
DoverlayMem.h83 int mFd;
110 mFd = -1; in OvMem()
156 mFd = data.fd; in open()
172 ret = memalloc->free_buffer(mBaseAddr, mBufSzAligned * mNumBuffers, 0, mFd); in close()
178 mFd = -1; in close()
189 return (mFd != -1) && (mBaseAddr != MAP_FAILED); in valid()
194 return mFd; in getFD()
216 mFd, mBaseAddr, mAllocType, mBufSz, mBufSzAligned); in dump()
/hardware/qcom/display/msm8994/liboverlay/
DoverlayWriteback.cpp80 if(!utils::openDev(mFd, fbNum, Res::fbPath, O_RDWR)) { in Writeback()
89 if (!mFd.close()) { in ~Writeback()
95 if(!mdp_wrapper::wbInitStart(mFd.getFD())) { in startSession()
103 if(mFd.valid()) { in stopSession()
104 if(!Overlay::displayCommit(mFd.getFD())) { in stopSession()
108 if(!mdp_wrapper::wbStopTerminate(mFd.getFD())) { in stopSession()
123 if(!mdp_wrapper::getVScreenInfo(mFd.getFD(), vinfo)) { in configureDpyInfo()
133 if(!mdp_wrapper::setVScreenInfo(mFd.getFD(), vinfo)) { in configureDpyInfo()
158 if(!mdp_wrapper::wbQueueBuffer(mFd.getFD(), mFbData)) { in queueBuffer()
168 if(!mdp_wrapper::wbDequeueBuffer(mFd.getFD(), mFbData)) { in dequeueBuffer()
[all …]
DoverlayMem.h83 int mFd;
110 mFd = -1; in OvMem()
156 mFd = data.fd; in open()
172 ret = memalloc->free_buffer(mBaseAddr, mBufSzAligned * mNumBuffers, 0, mFd); in close()
178 mFd = -1; in close()
189 return (mFd != -1) && (mBaseAddr != MAP_FAILED); in valid()
194 return mFd; in getFD()
216 mFd, mBaseAddr, mAllocType, mBufSz, mBufSzAligned); in dump()
DoverlayMdpRot.cpp104 if(!mFd.open(Res::rotPath, O_RDWR)){ in init()
152 if(!overlay::mdp_wrapper::startRotator(mFd.getFD(), mRotImgInfo)) { in commit()
192 if(mFd.valid() && (getSessId() != 0)) { in close()
193 if(!mdp_wrapper::endRotator(mFd.getFD(), getSessId())) { in close()
195 mFd.getFD(), getSessId()); in close()
199 if (!mFd.close()) { in close()
263 if(!overlay::mdp_wrapper::rotate(mFd.getFD(), mRotDataInfo)) { in queueBuffer()
279 mFd.dump(); in dump()
/hardware/qcom/display/msm8960/liboverlay/
DoverlayMem.h82 int mFd;
106 mFd = -1; in OvMem()
146 mFd = data.fd; in open()
162 ret = memalloc->free_buffer(mBaseAddr, mBufSz * mNumBuffers, 0, mFd); in close()
168 mFd = -1; in close()
178 return (mFd != -1) && (mBaseAddr != MAP_FAILED); in valid()
183 return mFd; in getFD()
204 ALOGE("fd=%d addr=%p type=%d bufsz=%u", mFd, mBaseAddr, mAllocType, mBufSz); in dump()
DoverlayMdp.h131 OvFD mFd; variable
163 OvFD mFd; variable
199 OvFD mFd; variable
223 return mFd.getFD(); in getFd()
353 if(!mdp_wrapper::set3D(mFd.getFD(), m3DOVInfo)) { in close()
366 mFd.copy(fd); in setFd()
367 OVASSERT(mFd.valid(), "MdpCtrl3D setFd, FD should be valid"); in setFd()
379 if(!mdp_wrapper::set3D(mFd.getFD(), m3DOVInfo)) { in useVirtualFB()
395 if(!utils::openDev(mFd, fbnum, Res::fbPath, O_RDWR)){ in init()
409 return mFd.close(); in close()
[all …]
DoverlayMdssRot.cpp66 if(!utils::openDev(mFd, 0, Res::fbPath, O_RDWR)) { in init()
121 if(!overlay::mdp_wrapper::setOverlay(mFd.getFD(), mRotInfo)) { in commit()
143 if(!overlay::mdp_wrapper::play(mFd.getFD(), mRotData)) { in queueBuffer()
210 if(mFd.valid() && (getSessId() != (uint32_t) MSMFB_NEW_REQUEST)) { in close()
211 if(!mdp_wrapper::unsetOverlay(mFd.getFD(), getSessId())) { in close()
213 mFd.getFD(), getSessId()); in close()
218 if (!mFd.close()) { in close()
244 mFd.dump(); in dump()
DoverlayMdpRot.cpp85 if(!mFd.open(Res::rotPath, O_RDWR)){ in init()
136 if(!overlay::mdp_wrapper::startRotator(mFd.getFD(), mRotImgInfo)) { in commit()
180 if(mFd.valid() && (getSessId() != 0)) { in close()
181 if(!mdp_wrapper::endRotator(mFd.getFD(), getSessId())) { in close()
183 mFd.getFD(), getSessId()); in close()
187 if (!mFd.close()) { in close()
246 if(!overlay::mdp_wrapper::rotate(mFd.getFD(), mRotDataInfo)) { in queueBuffer()
268 mFd.dump(); in dump()
/hardware/qcom/display/msm8226/libvirtual/
Dvirtual.cpp65 if(ioctl(mFd, FBIOGET_VSCREENINFO, &mVInfo) < 0) { in configure()
89 VirtualDisplay::VirtualDisplay(hwc_context_t* ctx):mFd(-1), in VirtualDisplay()
213 if (mFd == -1) { in openFrameBuffer()
220 mFd = open(strDevPath, O_RDWR); in openFrameBuffer()
221 if(mFd < 0) { in openFrameBuffer()
226 mHwcContext->dpyAttr[HWC_DISPLAY_VIRTUAL].fd = mFd; in openFrameBuffer()
233 if(mFd >= 0) { in closeFrameBuffer()
234 if(close(mFd) < 0 ) { in closeFrameBuffer()
235 ALOGE("%s: Unable to close FD(%d)", __FUNCTION__, mFd); in closeFrameBuffer()
238 mFd = -1; in closeFrameBuffer()
[all …]
/hardware/qcom/display/msm8226/liboverlay/
DoverlayWriteback.cpp80 if(!utils::openDev(mFd, fbNum, Res::fbPath, O_RDWR)) { in Writeback()
89 if (!mFd.close()) { in ~Writeback()
95 if(!mdp_wrapper::wbInitStart(mFd.getFD())) { in startSession()
103 if(mFd.valid()) { in stopSession()
104 if(!mdp_wrapper::wbStopTerminate(mFd.getFD())) { in stopSession()
119 if(!mdp_wrapper::getVScreenInfo(mFd.getFD(), vinfo)) { in configureDpyInfo()
129 if(!mdp_wrapper::setVScreenInfo(mFd.getFD(), vinfo)) { in configureDpyInfo()
154 if(!mdp_wrapper::wbQueueBuffer(mFd.getFD(), mFbData)) { in queueBuffer()
164 if(!mdp_wrapper::wbDequeueBuffer(mFd.getFD(), mFbData)) { in dequeueBuffer()
175 if(!Overlay::displayCommit(mFd.getFD())) { in writeSync()
[all …]
DoverlayMem.h83 int mFd;
110 mFd = -1; in OvMem()
156 mFd = data.fd; in open()
172 ret = memalloc->free_buffer(mBaseAddr, mBufSzAligned * mNumBuffers, 0, mFd); in close()
178 mFd = -1; in close()
189 return (mFd != -1) && (mBaseAddr != MAP_FAILED); in valid()
194 return mFd; in getFD()
216 mFd, mBaseAddr, mAllocType, mBufSz, mBufSzAligned); in dump()
DoverlayMdpRot.cpp95 if(!mFd.open(Res::rotPath, O_RDWR)){ in init()
143 if(!overlay::mdp_wrapper::startRotator(mFd.getFD(), mRotImgInfo)) { in commit()
184 if(mFd.valid() && (getSessId() != 0)) { in close()
185 if(!mdp_wrapper::endRotator(mFd.getFD(), getSessId())) { in close()
187 mFd.getFD(), getSessId()); in close()
191 if (!mFd.close()) { in close()
254 if(!overlay::mdp_wrapper::rotate(mFd.getFD(), mRotDataInfo)) { in queueBuffer()
265 mFd.dump(); in dump()
/hardware/qcom/display/msm8084/liboverlay/
DoverlayWriteback.cpp80 if(!utils::openDev(mFd, fbNum, Res::fbPath, O_RDWR)) { in Writeback()
89 if (!mFd.close()) { in ~Writeback()
95 if(!mdp_wrapper::wbInitStart(mFd.getFD())) { in startSession()
103 if(mFd.valid()) { in stopSession()
104 if(!mdp_wrapper::wbStopTerminate(mFd.getFD())) { in stopSession()
119 if(!mdp_wrapper::getVScreenInfo(mFd.getFD(), vinfo)) { in configureDpyInfo()
129 if(!mdp_wrapper::setVScreenInfo(mFd.getFD(), vinfo)) { in configureDpyInfo()
154 if(!mdp_wrapper::wbQueueBuffer(mFd.getFD(), mFbData)) { in queueBuffer()
164 if(!mdp_wrapper::wbDequeueBuffer(mFd.getFD(), mFbData)) { in dequeueBuffer()
175 if(!Overlay::displayCommit(mFd.getFD())) { in writeSync()
[all …]
DoverlayMem.h89 int mFd;
119 mFd = -1; in OvMem()
166 mFd = data.fd; in open()
190 ret = memalloc->free_buffer(mBaseAddr, mBufSzAligned * mNumBuffers, 0, mFd); in close()
196 mFd = -1; in close()
213 config.fd = mFd; in setSecure()
228 return (mFd != -1) && (mBaseAddr != MAP_FAILED); in valid()
233 return mFd; in getFD()
255 mFd, mBaseAddr, mAllocType, mBufSz, mBufSzAligned); in dump()
DoverlayMdp.h125 OvFD mFd; variable
157 OvFD mFd; variable
193 OvFD mFd; variable
218 return mFd.getFD(); in getFd()
319 if(!mdp_wrapper::set3D(mFd.getFD(), m3DOVInfo)) { in close()
332 mFd.copy(fd); in setFd()
333 OVASSERT(mFd.valid(), "MdpCtrl3D setFd, FD should be valid"); in setFd()
345 if(!mdp_wrapper::set3D(mFd.getFD(), m3DOVInfo)) { in useVirtualFB()
369 return mFd.close(); in close()
378 inline int MdpData::getFd() const { return mFd.getFD(); } in getFd()
[all …]
DoverlayMdpRot.cpp76 if(!mFd.open(Res::rotPath, O_RDWR)){ in init()
124 if(!overlay::mdp_wrapper::startRotator(mFd.getFD(), mRotImgInfo)) { in commit()
165 if(mFd.valid() && (getSessId() != 0)) { in close()
166 if(!mdp_wrapper::endRotator(mFd.getFD(), getSessId())) { in close()
168 mFd.getFD(), getSessId()); in close()
172 if (!mFd.close()) { in close()
235 if(!overlay::mdp_wrapper::rotate(mFd.getFD(), mRotDataInfo)) { in queueBuffer()
246 mFd.dump(); in dump()
DoverlayMdssRot.cpp69 if(!utils::openDev(mFd, 0, Res::fbPath, O_RDWR)) { in init()
125 if(!overlay::mdp_wrapper::setOverlay(mFd.getFD(), mRotInfo)) { in commit()
149 if(!overlay::mdp_wrapper::play(mFd.getFD(), mRotData)) { in queueBuffer()
209 if(mFd.valid() && (getSessId() != (uint32_t) MSMFB_NEW_REQUEST)) { in close()
210 if(!mdp_wrapper::unsetOverlay(mFd.getFD(), getSessId())) { in close()
212 mFd.getFD(), getSessId()); in close()
217 if (!mFd.close()) { in close()
241 mFd.dump(); in dump()
/hardware/libhardware_legacy/audio/
DAudioHardwareGeneric.cpp46 : mOutput(0), mInput(0), mFd(-1), mMicMute(false) in AudioHardwareGeneric()
48 mFd = ::open(kAudioDeviceName, O_RDWR); in AudioHardwareGeneric()
53 if (mFd >= 0) ::close(mFd); in ~AudioHardwareGeneric()
60 if (mFd >= 0) { in initCheck()
82 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate); in openOutputStream()
122 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics); in openInputStream()
172 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false"); in dumpInternals()
224 mFd = fd; in set()
236 return ssize_t(::write(mFd, buffer, bytes)); in write()
264 snprintf(buffer, SIZE, "\tmFd: %d\n", mFd); in dump()
[all …]
DAudioHardwareGeneric.h39 AudioStreamOutGeneric() : mAudioHardware(0), mFd(-1) {} in AudioStreamOutGeneric()
44 int mFd,
66 int mFd; variable
72 AudioStreamInGeneric() : mAudioHardware(0), mFd(-1) {} in AudioStreamInGeneric()
77 int mFd,
101 int mFd; variable
148 int mFd; variable
/hardware/libhardware/modules/input/evdev/
DInputHub.cpp88 ALOGV("closing %s (fd=%d)", mPath.c_str(), mFd); in ~EvdevDeviceNode()
89 if (mFd >= 0) { in ~EvdevDeviceNode()
90 ::close(mFd); in ~EvdevDeviceNode()
94 virtual int getFd() const { return mFd; } in getFd()
125 mFd(fd), mPath(path) {} in EvdevDeviceNode()
130 int mFd; member in android::EvdevDeviceNode
188 if (TEMP_FAILURE_RETRY(ioctl(mFd, EVIOCGNAME(sizeof(buffer) - 1), buffer)) < 1) { in queryProperties()
196 if (TEMP_FAILURE_RETRY(ioctl(mFd, EVIOCGVERSION, &driverVersion))) { in queryProperties()
202 if (TEMP_FAILURE_RETRY(ioctl(mFd, EVIOCGID, &inputId))) { in queryProperties()
211 if (TEMP_FAILURE_RETRY(ioctl(mFd, EVIOCGPHYS(sizeof(buffer) - 1), buffer)) < 1) { in queryProperties()
[all …]
/hardware/libhardware/tests/input/evdev/
DTestHelpers.cpp53 mFd = TEMP_FAILURE_RETRY(open(mName, O_RDWR | O_NONBLOCK)); in TempFile()
54 LOG_FATAL_IF(mFd < 0, "could not open fifo %s. errno=%d", mName, errno); in TempFile()
61 if (close(mFd) < 0) { in ~TempFile()
62 ALOGE("could not close %d. errno=%d", mFd, errno); in ~TempFile()
/hardware/qcom/display/msm8960/libexternal/
Dexternal.cpp86 if(mFd == -1) in configureHDMIDisplay()
113 if(mFd == -1) in configureWFDDisplay()
115 ret = ioctl(mFd, FBIOGET_VSCREENINFO, &mVInfo); in configureWFDDisplay()
169 ExternalDisplay::ExternalDisplay(hwc_context_t* ctx):mFd(-1), in ExternalDisplay()
444 if (mFd == -1) { in openFrameBuffer()
445 mFd = open(msmFbDevicePath[fbNum-1], O_RDWR); in openFrameBuffer()
446 if (mFd < 0) in openFrameBuffer()
450 mHwcContext->dpyAttr[mExtDpyNum].fd = mFd; in openFrameBuffer()
453 return (mFd > 0); in openFrameBuffer()
459 if(mFd >= 0) { in closeFrameBuffer()
[all …]
/hardware/qcom/display/msm8084/libexternal/
Dexternal.cpp85 ExternalDisplay::ExternalDisplay(hwc_context_t* ctx):mFd(-1), in ExternalDisplay()
343 if (mFd == -1) { in openFrameBuffer()
346 mFd = open(strDevPath, O_RDWR); in openFrameBuffer()
347 if (mFd < 0) in openFrameBuffer()
349 mHwcContext->dpyAttr[HWC_DISPLAY_EXTERNAL].fd = mFd; in openFrameBuffer()
351 return (mFd > 0); in openFrameBuffer()
357 if(mFd >= 0) { in closeFrameBuffer()
358 ret = close(mFd); in closeFrameBuffer()
359 mFd = -1; in closeFrameBuffer()
361 mHwcContext->dpyAttr[HWC_DISPLAY_EXTERNAL].fd = mFd; in closeFrameBuffer()
[all …]

123