Searched refs:fd (Results 76 - 100 of 392) sorted by relevance

1234567891011>>

/hardware/qcom/display/msm8974/libhwcomposer/
H A Dhwc_ad.cpp43 //Opens writeback framebuffer and returns fd.
65 static inline void closeWbFb(int& fd) { argument
66 if(fd >= 0) {
67 close(fd);
68 fd = -1;
70 ALOGE("%s: Invalid fd %d", __func__, fd);
128 int fd = openWbFb(); local
129 if(fd >= 0) {
137 closeWbFb(fd);
234 draw(hwc_context_t *ctx, int fd, uint32_t offset) argument
[all...]
H A Dhwc_copybit.h39 int dpy, int* fd);
45 void setReleaseFd(int fd);
/hardware/libhardware/modules/gralloc/
H A Dframebuffer.cpp100 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
147 int fd = -1; local
151 while ((fd==-1) && device_template[i]) {
153 fd = open(name, O_RDWR, 0);
156 if (fd < 0)
160 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1)
164 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
181 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) {
195 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
225 ALOGI( "using (fd
[all...]
/hardware/libhardware_legacy/audio/
H A DAudioHardwareInterface.cpp137 status_t AudioHardwareBase::dumpState(int fd, const Vector<String16>& args) argument
146 ::write(fd, result.string(), result.size());
147 dump(fd, args); // Dump the state of the concrete child.
H A DAudioHardwareGeneric.cpp166 status_t AudioHardwareGeneric::dumpInternals(int fd, const Vector<String16>& args) argument
174 ::write(fd, result.string(), result.size());
178 status_t AudioHardwareGeneric::dump(int fd, const Vector<String16>& args) argument
180 dumpInternals(fd, args);
182 mInput->dump(fd, args);
185 mOutput->dump(fd, args);
194 int fd,
224 mFd = fd;
245 status_t AudioStreamOutGeneric::dump(int fd, const Vector<String16>& args) argument
266 ::write(fd, resul
192 set( AudioHardwareGeneric *hw, int fd, uint32_t devices, int *pFormat, uint32_t *pChannels, uint32_t *pRate) argument
311 set( AudioHardwareGeneric *hw, int fd, uint32_t devices, int *pFormat, uint32_t *pChannels, uint32_t *pRate, AudioSystem::audio_in_acoustics acoustics) argument
353 dump(int fd, const Vector<String16>& args) argument
[all...]
H A DAudioHardwareStub.cpp99 status_t AudioHardwareStub::dumpInternals(int fd, const Vector<String16>& args) argument
107 ::write(fd, result.string(), result.size());
111 status_t AudioHardwareStub::dump(int fd, const Vector<String16>& args) argument
113 dumpInternals(fd, args);
140 status_t AudioStreamOutStub::dump(int fd, const Vector<String16>& args) argument
151 ::write(fd, result.string(), result.size());
182 status_t AudioStreamInStub::dump(int fd, const Vector<String16>& args) argument
197 ::write(fd, result.string(), result.size());
/hardware/broadcom/libbt/src/
H A Dbt_vendor_brcm.c167 int fd, idx; local
168 fd = userial_vendor_open((tUSERIAL_CFG *) &userial_init_cfg);
169 if (fd != -1)
172 (*fd_array)[idx] = fd;
176 /* retval contains numbers of open fd of HCI channels */
/hardware/libhardware_legacy/
H A Dqemu.h40 int fd; member in struct:__anon366
/hardware/ti/wpan/tools/kfmapp/
H A Dkfmapp.c322 int fd, res, af_freq; local
324 fd = open(FMTX_RDS_AF_SYSFS_ENTRY, O_RDWR);
325 if (fd < 0) {
330 res = write(fd, cmd, FMAPP_AF_MAX_FREQ_RANGE);
338 close(fd);
686 int fd, res; local
688 fd = open(FMRX_RDS_AF_SYSFS_ENTRY, O_RDWR);
689 if (fd < 0) {
694 res = write(fd, cmd, sizeof(char));
703 close(fd);
710 int fd, res; local
735 int fd, res; local
761 int fd, res; local
784 int fd, res; local
807 int fd, res; local
[all...]
/hardware/qcom/audio/legacy/libalsa-intf/
H A Daplay.c164 static int play_file(unsigned rate, unsigned channels, int fd, argument
209 if (ioctl(pcm->fd, SNDRV_COMPRESS_GET_CAPS, &compr_cap)) {
227 if (ioctl(pcm->fd, SNDRV_COMPRESS_SET_PARAMS, &compr_params)) {
250 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_START)) {
278 pfd[0].fd = pcm->timer_fd;
345 err = read(fd, dst_addr , bufsize);
380 if (ioctl(pcm->fd, SNDRV_COMPRESS_TSTAMP, &tstamp))
393 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_START)) {
448 while (read(fd, data, bufsize) > 0) {
474 int fd; local
501 int fd; local
[all...]
/hardware/samsung_slsi/exynos5/libcamera/
H A DExynosCamera.cpp829 m_gscPreviewDev.fd = exynos_v4l2_open(node, O_RDWR, 0);
830 if (m_gscPreviewDev.fd <= 0) {
837 m_gscVideoDev.fd = exynos_v4l2_open(node, O_RDWR, 0);
838 if (m_gscVideoDev.fd <= 0) {
845 m_gscPictureDev.fd = exynos_v4l2_open(node, O_RDWR, 0);
846 if (m_gscPictureDev.fd <= 0) {
1000 m_fliteDev.fd = exynos_v4l2_open(node, O_RDWR, 0);
1001 if (m_fliteDev.fd <= 0) {
1021 if (exynos_v4l2_enuminput(m_previewDev->fd, m_cameraId, m_cameraName) == false) {
1032 if (exynos_v4l2_s_input(m_previewDev->fd, m_cameraI
3385 m_setWidthHeight(int mode, int fd, struct pollfd *event, int w, int h, int colorFormat, struct ExynosBuffer *buf, bool *validBuf) argument
3502 m_setZoom(int fd, int zoom, int w, int h) argument
3524 m_setCrop(int fd, int w, int h, int zoom) argument
[all...]
/hardware/qcom/display/msm8960/liboverlay/
H A Doverlay.cpp140 bool Overlay::queueBuffer(int fd, uint32_t offset, argument
147 ret = mPipeBook[index].mPipe->queueBuffer(fd, offset);
235 int fd = -1; local
239 fd = ::open(name, O_RDWR, 0);
240 if(fd < 0) {
246 if (ioctl(fd, MSMFB_MIXER_INFO, &req) == -1) {
248 close(fd);
258 if(ioctl(fd, MSMFB_OVERLAY_UNSET, &index) == -1) {
260 close(fd);
265 close(fd);
[all...]
/hardware/qcom/display/msm8x26/liboverlay/
H A Doverlay.cpp140 bool Overlay::queueBuffer(int fd, uint32_t offset, argument
147 ret = mPipeBook[index].mPipe->queueBuffer(fd, offset);
235 int fd = -1; local
239 fd = ::open(name, O_RDWR, 0);
240 if(fd < 0) {
246 if (ioctl(fd, MSMFB_MIXER_INFO, &req) == -1) {
248 close(fd);
258 if(ioctl(fd, MSMFB_OVERLAY_UNSET, &index) == -1) {
260 close(fd);
265 close(fd);
[all...]
/hardware/akm/AK8975_FS/libsensors/
H A DInputEventReader.cpp49 ssize_t InputEventCircularReader::fill(int fd) argument
53 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event));
/hardware/qcom/camera/mm-image-codec/qomx_core/
H A DQOMX_JpegExtensions.h92 * data. @ fd - FD of the buffer allocated. If the buffer is
98 OMX_U32 fd; member in struct:__anon749
189 * @fd - FD of the buffer allocated
193 int fd; member in struct:__anon755
/hardware/qcom/display/msm8960/liblight/
H A Dlights.c84 int fd; local
87 fd = open(path, O_RDWR);
88 if (fd >= 0) {
91 int amt = write(fd, buffer, bytes);
92 close(fd);
106 int fd = open(path, O_RDWR); local
107 if (fd >= 0) {
108 close(fd);
/hardware/qcom/display/msm8974/liblight/
H A Dlights.c84 int fd; local
87 fd = open(path, O_RDWR);
88 if (fd >= 0) {
91 int amt = write(fd, buffer, bytes);
92 close(fd);
106 int fd = open(path, O_RDWR); local
107 if (fd >= 0) {
108 close(fd);
/hardware/qcom/display/msm8x26/liblight/
H A Dlights.c84 int fd; local
87 fd = open(path, O_RDWR);
88 if (fd >= 0) {
91 int amt = write(fd, buffer, bytes);
92 close(fd);
106 int fd = open(path, O_RDWR); local
107 if (fd >= 0) {
108 close(fd);
/hardware/qcom/display/msm8960/libgralloc/
H A Dframebuffer.cpp94 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
121 int fd = -1; local
126 while ((fd==-1) && device_template[i]) {
128 fd = open(name, O_RDWR, 0);
131 if (fd < 0)
137 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1)
141 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
235 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
251 if (ioctl(fd, MSMFB_METADATA_GET, &metadata) == -1) {
261 ALOGI("using (fd
[all...]
/hardware/qcom/display/msm8974/libgralloc/
H A Dframebuffer.cpp94 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
121 int fd = -1; local
126 while ((fd==-1) && device_template[i]) {
128 fd = open(name, O_RDWR, 0);
131 if (fd < 0)
137 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1)
141 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
235 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
251 if (ioctl(fd, MSMFB_METADATA_GET, &metadata) == -1) {
261 ALOGI("using (fd
[all...]
/hardware/qcom/display/msm8x26/libgralloc/
H A Dframebuffer.cpp94 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
121 int fd = -1; local
126 while ((fd==-1) && device_template[i]) {
128 fd = open(name, O_RDWR, 0);
131 if (fd < 0)
137 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1)
141 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
235 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
251 if (ioctl(fd, MSMFB_METADATA_GET, &metadata) == -1) {
261 ALOGI("using (fd
[all...]
/hardware/samsung_slsi/exynos5/gralloc/
H A Dgralloc.cpp138 int bpp = 0, vstride, fd, err; local
195 &fd);
196 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride,
207 int err, fd; local
224 err = ion_alloc_fd(ionfd, size, 0, heap_mask, ion_flags, &fd);
228 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, h);
237 int err, planes, fd, fd1, fd2 = 0; local
294 err = ion_alloc_fd(ionfd, luma_size, 0, heap_mask, ion_flags, &fd);
298 *hnd = new private_handle_t(fd, luma_size, usage, w, h,
309 *hnd = new private_handle_t(fd, fd
[all...]
/hardware/qcom/display/msm8960/libqservice/
H A DIQService.cpp151 int fd = -1; local
153 fd = open(buf, O_RDONLY);
154 if (fd < 0) {
157 int len = read(fd, buf, size - 1);
159 close(fd);
/hardware/qcom/display/msm8974/libqservice/
H A DIQService.cpp151 int fd = -1; local
153 fd = open(buf, O_RDONLY);
154 if (fd < 0) {
157 int len = read(fd, buf, size - 1);
159 close(fd);
/hardware/qcom/display/msm8x26/libqservice/
H A DIQService.cpp151 int fd = -1; local
153 fd = open(buf, O_RDONLY);
154 if (fd < 0) {
157 int len = read(fd, buf, size - 1);
159 close(fd);

Completed in 711 milliseconds

1234567891011>>