Searched refs:fd (Results 51 - 75 of 289) sorted by relevance

1234567891011>>

/hardware/invensense/libsensors_iio/
H A DInputEventReader.h40 ssize_t fill(int fd);
H A DInputEventReader.cpp53 ssize_t InputEventCircularReader::fill(int fd) argument
57 "DEBUG:%s enter, fd=%d\n", __PRETTY_FUNCTION__, fd);
59 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event));
/hardware/qcom/media/mm-video/vidc/venc/inc/
H A Domx_video_common.h69 int fd; member in struct:pmem
/hardware/qcom/camera/mm-camera-interface/
H A Dmm_camera_stream.c172 if(stream->fd > 0) close(stream->fd);
174 //stream->fd = -1;
186 CDBG("%s:stream fd=%d, stream type=%d, cur_state=%d,new_state=%d\n",
187 __func__, stream->fd, stream->stream_type, stream->state, state);
206 rc = ioctl(stream->fd, VIDIOC_DQBUF, &vb);
234 rc = ioctl(stream->fd, VIDIOC_G_CROP, &crop);
244 int32_t mm_camera_util_s_ctrl( int32_t fd, uint32_t id, int32_t value) argument
252 rc = ioctl (fd, VIDIOC_S_CTRL, &control);
255 CDBG("%s: fd
262 mm_camera_util_private_s_ctrl(int32_t fd, uint32_t id, int32_t value) argument
280 mm_camera_util_g_ctrl( int32_t fd, uint32_t id, int32_t *value) argument
367 mm_camera_util_set_op_mode(int fd, int opmode) argument
[all...]
H A Dmm_camera_sock.c48 * retured fd related to the domain socket
71 CDBG_ERROR("%s: error create socket fd =%d", __func__, socket_fd);
92 * DESCRIPTION: close domain socket by its fd
94 void mm_camera_socket_close(int fd) argument
96 if (fd > 0) {
97 close(fd);
105 * int fd: socket fd
111 int fd,
156 return sendmsg(fd,
110 mm_camera_socket_sendmsg( int fd, void *msg, uint32_t buf_size, int sendfd) argument
170 mm_camera_socket_recvmsg( int fd, void *msg, uint32_t buf_size, int *rcvdfd) argument
[all...]
/hardware/qcom/audio/libalsa-intf/
H A Darec.c46 static int fd; variable
178 int record_file(unsigned rate, unsigned channels, int fd, unsigned count, unsigned flags, const char *device) argument
223 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_START)) {
253 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_START)) {
264 pfd[0].fd = pcm->fd;
320 if (write(fd, dst_addr, bufsize) != bufsize) {
338 lseek(fd, 0, SEEK_SET);
339 write(fd, &hdr, sizeof(hdr));
340 lseek(fd,
[all...]
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/qcom/display/libqservice/
H A DIQService.cpp110 int fd = -1; local
112 fd = open(buf, O_RDONLY);
113 if (fd < 0) {
116 int len = read(fd, buf, size - 1);
118 close(fd);
/hardware/ril/rild/
H A Drild.c148 int fd = open("/proc/cmdline",O_RDONLY); local
150 if (fd < 0) {
156 len = read(fd,buffer,sizeof(buffer)); }
161 close(fd);
164 close(fd);
175 int fd; local
179 fd = qemu_pipe_open("qemud:gsm");
180 if (fd < 0) {
181 fd = socket_local_client(
186 if (fd >
[all...]
/hardware/qcom/camera/QCamera/stack/mm-camera-interface/src/
H A Dmm_camera_sock.c48 * retured fd related to the domain socket
71 CDBG_ERROR("%s: error create socket fd =%d", __func__, socket_fd);
92 * DESCRIPTION: close domain socket by its fd
94 void mm_camera_socket_close(int fd) argument
96 if (fd > 0) {
97 close(fd);
105 * int fd: socket fd
111 int fd,
156 return sendmsg(fd,
110 mm_camera_socket_sendmsg( int fd, void *msg, uint32_t buf_size, int sendfd) argument
170 mm_camera_socket_recvmsg( int fd, void *msg, uint32_t buf_size, int *rcvdfd) argument
[all...]
H A Dmm_camera_thread.c123 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->pfds[0];
128 if (poll_cb->poll_entries[0].fd > 0) {
129 /* fd is valid, we update poll_fds */
130 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->poll_entries[0].fd;
136 if(poll_cb->poll_entries[i].fd > 0) {
137 /* fd is valid, we update poll_fds to this fd */
138 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->poll_entries[i].fd;
238 mm_camera_poll_thread_add_poll_fd(mm_camera_poll_thread_t * poll_cb, uint32_t handler, int32_t fd, mm_camera_poll_notify_t notify_cb, void* userdata) argument
[all...]
/hardware/msm7k/librpc/
H A Dsvc_clnt_common.c19 return r_control(xdr->fd, request, info);
90 if (r_write(xdr->fd, (void *)xdr->out_msg, xdr->out_next) !=
99 xdr->in_len = r_read(xdr->fd, (void *)xdr->in_msg, RPCROUTER_MSGSIZE_MAX);
285 xdr->fd = r_open(router);
286 if (xdr->fd < 0) {
293 D("OPENED [%s] fd %d\n", router, xdr->fd);
303 xdr->fd = dup(other->fd);
304 if (xdr->fd <
[all...]
/hardware/msm7k/libgralloc/
H A Dframebuffer.cpp60 msm_copy_buffer(buffer_handle_t handle, int fd, int width, int height,
103 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
129 msm_copy_buffer(m->framebuffer, m->framebuffer->fd,
155 int fd = -1; local
159 while ((fd==-1) && device_template[i]) {
161 fd = open(name, O_RDWR, 0);
164 if (fd < 0)
168 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1)
172 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
202 if (ioctl(fd, FBIOPUT_VSCREENINF
382 msm_copy_buffer(buffer_handle_t handle, int fd, int width, int height, int x, int y, int w, int h) argument
[all...]
/hardware/msm7k/libgralloc-qsd8k/
H A Dframebuffer.cpp63 msm_copy_buffer(buffer_handle_t handle, int fd,
117 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
141 m->framebuffer, m->framebuffer->fd,
175 int fd = -1; local
179 while ((fd==-1) && device_template[i]) {
181 fd = open(name, O_RDWR, 0);
184 if (fd < 0)
188 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1)
192 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
238 if (ioctl(fd, FBIOPUT_VSCREENINF
418 msm_copy_buffer(buffer_handle_t handle, int fd, int width, int height, int format, int x, int y, int w, int h) argument
[all...]
H A Dgralloc_priv.h108 int fd; member in struct:private_handle_t
128 private_handle_t(int fd, int size, int flags) : argument
129 fd(fd), magic(sMagic), flags(flags), size(size), offset(0), gpu_fd(-1),
/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/qcom/camera/QCamera/stack/mm-jpeg-interface/inc/
H A Dmm_jpeg_interface.h59 int fd; /*fd of buf*/ member in struct:__anon577
66 int fd; /*fd of buf*/ member in struct:__anon578
121 int fd; /*fd of buf*/ member in struct:__anon582
/hardware/qcom/display/liboverlay/pipes/
H A DoverlayVideoExtPipe.h52 bool queueBuffer(int fd, uint32_t offset);
72 inline bool VideoExtPipe::queueBuffer(int fd, uint32_t offset) { argument
73 return mVideoExt.queueBuffer(fd, offset);
/hardware/libhardware_legacy/
H A Dqemu.h40 int fd; member in struct:__anon281
/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
760 int fd, res; local
783 int fd, res; local
806 int fd, res; 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/samsung_slsi/exynos5/gralloc/
H A Dgralloc.cpp135 int bpp = 0, vstride, fd, err; local
179 &fd);
180 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride,
191 int err, fd; local
208 ion_flags, &fd);
212 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, h);
221 int err, planes, fd, fd1, fd2 = 0; local
278 err = ion_alloc_fd(ionfd, luma_size, 0, heap_mask, ion_flags, &fd);
282 *hnd = new private_handle_t(fd, luma_size, usage, w, h,
293 *hnd = new private_handle_t(fd, fd
[all...]

Completed in 371 milliseconds

1234567891011>>