Searched defs:fd (Results 1 - 25 of 173) sorted by relevance

1234567

/hardware/libhardware/include/hardware/
H A Dqemu_pipe.h59 int fd, ret; local
68 fd = open("/dev/qemu_pipe", O_RDWR);
69 if (fd < 0) {
77 ret = TEMP_FAILURE_RETRY(write(fd, buff, buffLen+1));
88 return fd;
H A Dqemud.h44 qemud_fd_write(int fd, const void* buff, int len) argument
48 len2 = write(fd, buff, len);
54 qemud_fd_read(int fd, void* buff, int len) argument
58 len2 = read(fd, buff, len);
66 int fd; local
73 fd = qemu_pipe_open(pipe_name);
74 if (fd < 0) {
77 fd = socket_local_client( "qemud",
80 if (fd < 0) {
86 if (qemud_fd_write(fd, nam
105 qemud_channel_send(int fd, const void* msg, int msglen) argument
129 qemud_channel_recv(int fd, void* msg, int msgsize) argument
[all...]
/hardware/libhardware_legacy/vibrator/
H A Dvibrator.c28 int fd; local
36 fd = open(THE_DEVICE, O_RDWR);
37 if(fd < 0)
39 close(fd);
45 int nwr, ret, fd; local
54 fd = open(THE_DEVICE, O_RDWR);
55 if(fd < 0)
59 ret = write(fd, value, nwr);
61 close(fd);
/hardware/invensense/libsensors_iio/
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));
H A DMPLSupport.cpp29 int count, fd; local
31 fd = open(fname, O_RDONLY);
32 if(fd < 0) {
37 count = read_attribute_sensor(fd, buf, sizeof(buf));
39 close(fd);
46 close(fd);
52 int read_attribute_sensor(int fd, char* data, unsigned int size) argument
57 if (fd > 0) {
58 count = pread(fd, data, size, 0);
70 * @param fd
76 enable_sysfs_sensor(int fd, int en) argument
98 write_attribute_sensor(int fd, long data) argument
[all...]
H A DSensorBase.cpp99 int fd = -1; local
117 fd = open(devname, O_RDONLY);
120 if (fd >= 0) {
122 if (ioctl(fd, EVIOCGNAME(sizeof(name) - 1), &name) < 1) {
130 close(fd);
131 fd = -1;
136 LOGE_IF(fd < 0, "couldn't find '%s' input device", inputName);
137 return fd;
/hardware/invensense/libsensors_iio/software/core/mllite/linux/
H A Dml_load_dmp.c245 inv_error_t inv_write_dmp_data(FILE *fd, const unsigned char *dmp, size_t len) argument
256 if (fd == NULL) {
259 bytesWritten = fwrite(dmp, 1, len, fd);
270 inv_error_t inv_load_dmp(FILE *fd) argument
273 result = inv_write_dmp_data(fd, DMP_VERSION, DMP_CODE_SIZE);
/hardware/libhardware_legacy/
H A Dqemu.h40 int fd; member in struct:__anon281
/hardware/libhardware_legacy/qemu_tracing/
H A Dqemu_tracing.c42 int fd = open(SYS_QEMU_TRACE_STATE, O_WRONLY); local
43 if (fd < 0)
44 return fd;
45 write(fd, "1\n", 2);
46 close(fd);
52 int fd = open(SYS_QEMU_TRACE_STATE, O_WRONLY); local
53 if (fd < 0)
54 return fd;
55 write(fd, "0\n", 2);
56 close(fd);
66 int fd = open(SYS_QEMU_TRACE_SYMBOL, O_WRONLY); local
79 int fd = open(SYS_QEMU_TRACE_SYMBOL, O_WRONLY); local
[all...]
/hardware/msm7k/libgralloc-qsd8k/
H A Dpmemalloc.h40 virtual int free_pmem_buffer(size_t size, void* base, int offset, int fd) = 0;
68 virtual size_t getPmemTotalSize(int fd, size_t* size) = 0;
69 virtual int connectPmem(int fd, int master_fd) = 0;
70 virtual int mapPmem(int fd, int offset, size_t size) = 0;
71 virtual int unmapPmem(int fd, int offset, size_t size) = 0;
77 virtual void* mmap(void* start, size_t length, int prot, int flags, int fd,
80 virtual int close(int fd) = 0;
93 virtual int free_pmem_buffer(size_t size, void* base, int offset, int fd);
97 void set_master_values(int fd, void* base) { argument
98 master_fd = fd;
[all...]
/hardware/qcom/bt/libbt-vendor/src/
H A Duserial_vendor.c71 int fd; local
73 fd = bt_hci_init_transport_id(i);
74 if(fd < 0 ){
77 pFd[i] = fd;
85 int fd = -1; local
91 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY));
93 while ((-1 == fd) && (retry < 7)) {
97 fd = open(bt_hci_transport_device.name, (O_RDWR | O_NOCTTY));
101 if (-1 == fd)
116 if (tcflush(fd, TCIOFLUS
[all...]
/hardware/qcom/display/libgralloc/
H A Dmemalloc.h39 int fd; member in struct:gralloc::alloc_data
54 // and fd are returned in the alloc_data struct
59 int offset, int fd) = 0;
63 int offset, int fd) = 0;
71 int offset, int fd) = 0;
H A Dionalloc.cpp123 MAP_SHARED, fd_data.fd, 0);
134 clean_buffer(base, data.size, data.offset, fd_data.fd);
143 data.fd = fd_data.fd;
145 ALOGD_IF(DEBUG, "ion: Allocated buffer base:%p size:%d fd:%d",
146 data.base, ionAllocData.len, data.fd);
151 int IonAlloc::free_buffer(void* base, size_t size, int offset, int fd) argument
154 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%d fd:%d",
155 base, size, fd);
163 close(fd);
167 map_buffer(void **pBase, size_t size, int offset, int fd) argument
203 clean_buffer(void *base, size_t size, int offset, int fd) argument
[all...]
/hardware/qcom/gps/loc_api/libloc_api_50001/
H A Dloc_eng_dmn_conn_glue_pipe.c63 int fd; local
74 fd = open(pipe_name, mode);
75 if (fd <= 0)
79 LOC_LOGD("fd = %d, %s\n", fd, pipe_name);
80 return fd;
90 fd - fd for the pipe
102 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) argument
104 close(fd);
130 loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) argument
162 loc_eng_dmn_conn_glue_piperead(int fd, void * buf, size_t sz) argument
192 loc_eng_dmn_conn_glue_pipeunblock(int fd) argument
[all...]
/hardware/ril/libril/
H A Dril_event.h18 // Max number of fd's we watch at any one time. Increase if necessary.
21 typedef void (*ril_event_cb)(int fd, short events, void *userdata);
27 int fd; member in struct:ril_event
39 void ril_event_set(struct ril_event * ev, int fd, bool persist, ril_event_cb func, void * param);
/hardware/libhardware_legacy/power/
H A Dpower.c67 int fd = open(paths[i], O_RDWR); local
68 if (fd < 0) {
73 g_fds[i] = fd;
102 int fd; local
105 fd = g_fds[ACQUIRE_PARTIAL_WAKE_LOCK];
111 return write(fd, id, strlen(id));
/hardware/invensense/libsensors/
H A DSensorBase.cpp92 int fd = -1; local
110 fd = open(devname, O_RDONLY);
111 if (fd>=0) {
113 if (ioctl(fd, EVIOCGNAME(sizeof(name) - 1), &name) < 1) {
120 close(fd);
121 fd = -1;
126 ALOGE_IF(fd<0, "couldn't find '%s' input device", inputName);
127 return fd;
/hardware/libhardware_legacy/uevent/
H A Duevent.c39 static int fd = -1; variable
64 fd = s;
65 return (fd > 0);
70 return fd;
79 fds.fd = fd;
85 int count = recv(fd, buffer, buffer_length, 0);
/hardware/msm7k/dspcrashd/
H A Ddspcrashd.c52 void dump_dmesg(int fd) argument
64 while((ret = write(fd, p, n))) {
77 void dump_info(int fd) argument
83 write(fd, dashes, strlen(dashes));
87 write(fd, buf, strlen(buf));
90 write(fd, dashes, strlen(dashes));
91 dump_dmesg(fd);
92 write(fd, dashes, strlen(dashes));
97 int fd, r; local
103 fd
131 int fd; local
[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...]
/hardware/qcom/camera/mm-camera-interface/
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/display/libgenlock/
H A Dgenlock.cpp83 lock.fd = hnd->genlockHandle;
88 "err=%s fd=%d)", __FUNCTION__,
89 lockType, strerror(errno), hnd->fd);
98 ALOGE("%s: GENLOCK_IOC_LOCK failed (lockType0x%x, err=%s fd=%d)"
99 ,__FUNCTION__, lockType, strerror(errno), hnd->fd);
110 /* Internal function to close the fd and release the handle */
111 void close_genlock_fd_and_handle(int& fd, int& handle) argument
113 if (fd >=0 ) {
114 close(fd);
115 fd
144 int fd = open(GENLOCK_DEVICE, O_RDWR); local
231 int fd = open(GENLOCK_DEVICE, O_RDWR); local
[all...]
/hardware/qcom/display/liboverlay/
H A DmdpRotator.cpp121 ALOGE("Mdp Rot error endRotator, fd=%d sessId=%d",
127 ALOGE("Mdp Rot error closing fd");
172 bool MdpRot::queueBuffer(int fd, uint32_t offset) { argument
174 mRotDataInfo.src.memory_id = fd;
H A DmdpWrapper.h49 bool getFScreenInfo(int fd, fb_fix_screeninfo& finfo);
52 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo);
55 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo);
58 bool startRotator(int fd, msm_rotator_img_info& rot);
61 bool rotate(int fd, msm_rotator_data_info& rot);
64 bool setOverlay(int fd, mdp_overlay& ov);
67 bool endRotator(int fd, int sessionId);
70 bool unsetOverlay(int fd, int ovId);
73 bool getOverlay(int fd, mdp_overlay& ov);
76 bool play(int fd, msmfb_overlay_dat
101 getFScreenInfo(int fd, fb_fix_screeninfo& finfo) argument
110 getVScreenInfo(int fd, fb_var_screeninfo& vinfo) argument
119 setVScreenInfo(int fd, fb_var_screeninfo& vinfo) argument
128 startRotator(int fd, msm_rotator_img_info& rot) argument
137 rotate(int fd, msm_rotator_data_info& rot) argument
146 setOverlay(int fd, mdp_overlay& ov) argument
155 endRotator(int fd, int sessionId) argument
164 unsetOverlay(int fd, int ovId) argument
173 getOverlay(int fd, mdp_overlay& ov) argument
182 play(int fd, msmfb_overlay_data& od) argument
191 set3D(int fd, msmfb_overlay_3d& ov) argument
[all...]
H A DmdssRotator.cpp92 bool MdssRot::queueBuffer(int fd, uint32_t offset) { argument
94 mRotData.data.memory_id = fd;
171 ALOGE("MdssRot::close unsetOverlay failed, fd=%d sessId=%d",
178 ALOGE("Mdss Rot error closing fd");

Completed in 1332 milliseconds

1234567