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

1234567891011>>

/hardware/qcom/display/msm8909w_3100/libgralloc1/
H A Dgr_ion_alloc.h47 int fd = -1; member in struct:gralloc1::AllocData
67 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
68 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
69 int ImportBuffer(int fd);
/hardware/qcom/display/msm8909w_3100/sdm/include/utils/
H A Dutils.h37 void CloseFd(int *fd);
/hardware/qcom/display/msm8909w_3100/sdm/libs/utils/
H A Dutils.cpp59 void CloseFd(int *fd) { argument
60 if (*fd >= 0) {
61 Sys::close_(*fd);
62 *fd = -1;
/hardware/qcom/display/msm8960/libgenlock/
H A Dgenlock.cpp89 lock.fd = hnd->genlockHandle;
94 "err=%s fd=%d)", __FUNCTION__,
95 lockType, strerror(errno), hnd->fd);
104 ALOGE("%s: GENLOCK_IOC_LOCK failed (lockType0x%x, err=%s fd=%d)"
105 ,__FUNCTION__, lockType, strerror(errno), hnd->fd);
116 /* Internal function to close the fd and release the handle */
117 void close_genlock_fd_and_handle(int& fd, int& handle) argument
119 if (fd >=0 ) {
120 close(fd);
121 fd
154 int fd = open(GENLOCK_DEVICE, O_RDWR); local
239 int fd = open(GENLOCK_DEVICE, O_RDWR); local
[all...]
/hardware/qcom/display/msm8960/libgralloc/
H A Dmemalloc.h45 int fd; member in struct:gralloc::alloc_data
60 // and fd are returned in the alloc_data struct
65 int offset, int fd) = 0;
69 int offset, int fd) = 0;
77 int offset, int fd, int op) = 0;
/hardware/qcom/display/msm8996/libgralloc1/
H A Dgr_ion_alloc.h47 int fd = -1; member in struct:gralloc1::AllocData
67 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
68 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
69 int ImportBuffer(int fd);
/hardware/qcom/display/msm8998/libgralloc1/
H A Dgr_ion_alloc.h47 int fd = -1; member in struct:gralloc1::AllocData
67 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
68 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
69 int ImportBuffer(int fd);
/hardware/qcom/display/msm8998/sdm/include/utils/
H A Dutils.h37 void CloseFd(int *fd);
/hardware/qcom/display/msm8998/sdm/libs/utils/
H A Dutils.cpp59 void CloseFd(int *fd) { argument
60 if (*fd >= 0) {
61 Sys::close_(*fd);
62 *fd = -1;
/hardware/ril/include/telephony/
H A Drecord_stream.h18 * A simple utility for reading fixed records out of a stream fd
31 extern RecordStream *record_stream_new(int fd, size_t maxRecordLen);
/hardware/intel/common/libva/va/drm/
H A Dva_drm.c70 ret = drmGetMagic(drm_state->fd, &magic);
74 if (!va_drm_is_authenticated(drm_state->fd)) {
75 if (!va_drm_authenticate(drm_state->fd, magic))
77 if (!va_drm_is_authenticated(drm_state->fd))
87 vaGetDisplayDRM(int fd) argument
93 if (fd < 0)
101 drm_state->fd = fd;
/hardware/qcom/display/msm8084/libqdutils/
H A Didle_invalidator.cpp66 int fd = open(IDLE_TIME_PATH, O_WRONLY); local
67 if (fd < 0) {
77 ssize_t len = pwrite(fd, strSleepTime, strlen(strSleepTime), 0);
83 close(fd);
86 close(fd);
96 pFd.fd = mTimeoutEventFd;
97 if (pFd.fd >= 0)
105 ssize_t len = pread(pFd.fd, data, 64, 0);
/hardware/qcom/display/msm8226/libqdutils/
H A Didle_invalidator.cpp66 int fd = open(IDLE_TIME_PATH, O_WRONLY); local
67 if (fd < 0) {
77 ssize_t len = pwrite(fd, strSleepTime, strlen(strSleepTime), 0);
83 close(fd);
86 close(fd);
96 pFd.fd = mTimeoutEventFd;
97 if (pFd.fd >= 0)
105 ssize_t len = pread(pFd.fd, data, 64, 0);
/hardware/qcom/display/msm8909/sdm/libs/hwc/
H A Dhwc_buffer_sync_handler.h45 virtual DisplayError SyncWait(int fd);
47 virtual bool IsSyncSignaled(int fd);
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/
H A Dhwc_buffer_sync_handler.h45 virtual DisplayError SyncWait(int fd);
47 virtual bool IsSyncSignaled(int fd);
/hardware/qcom/display/msm8996/sdm/libs/hwc/
H A Dhwc_buffer_sync_handler.h45 virtual DisplayError SyncWait(int fd);
47 virtual bool IsSyncSignaled(int fd);
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
H A Dhwc_buffer_sync_handler.h45 virtual DisplayError SyncWait(int fd);
47 virtual bool IsSyncSignaled(int fd);
/hardware/libhardware_legacy/
H A Dpower.c57 int fd = open(paths[i], O_RDWR | O_CLOEXEC); local
58 if (fd < 0) {
64 g_fds[i] = fd;
93 int fd; local
100 fd = g_fds[ACQUIRE_PARTIAL_WAKE_LOCK];
102 ret = write(fd, id, strlen(id));
/hardware/qcom/audio/hal/audio_extn/
H A Dsndmonitor.c66 int fd; member in struct:__anon1764
73 int fd; member in struct:__anon1765
95 static char * read_state(int fd) argument
98 if (fstat(fd, &buf) < 0)
101 off_t pos = lseek(fd, 0, SEEK_CUR);
112 ssize_t bytes=read(fd, state, avail);
121 lseek(fd, 0, SEEK_SET);
125 static int add_new_sndcard(int card, int fd) argument
133 s->fd = fd; // du
160 int fd, ret; local
264 add_new_dev_event(char * d_name, int fd) argument
282 int fd; local
[all...]
/hardware/broadcom/libbt/src/
H A Dupio.c153 int fd, sz, id; local
161 fd = open(path, O_RDONLY);
162 if (fd < 0)
169 sz = read(fd, &buf, sizeof(buf));
170 close(fd);
292 int fd = -1; local
329 fd = open(rfkill_state_path, O_WRONLY);
331 if (fd < 0)
338 sz = write(fd, &buffer, 1);
347 if (fd >
367 int fd = -1; local
[all...]
/hardware/qcom/msm8998/gpt-utils/
H A Dgpt-utils.cpp135 * \param [in] fd block dev file descriptor (returned from open)
145 static int blk_rw(int fd, int rw, int64_t offset, uint8_t *buf, unsigned len) argument
149 if (lseek64(fd, offset, SEEK_SET) < 0) {
156 r = write(fd, buf, len);
158 r = read(fd, buf, len);
275 * \param [in] fd block dev file descriptor
282 static int gpt2_set_boot_chain(int fd, enum boot_chain boot) argument
296 if (ioctl(fd, BLKSSZGET, &blk_size) != 0) {
308 gpt2_header_offset = lseek64(fd, 0, SEEK_END) - blk_size;
317 r = blk_rw(fd,
400 gpt_get_state(int fd, enum gpt_instance gpt, enum gpt_state *state) argument
466 gpt_set_state(int fd, enum gpt_instance gpt, enum gpt_state state) argument
601 int fd = -1; local
745 int fd = -1; local
973 int r, fd; local
1128 gpt_get_block_size(int fd) argument
1149 gpt_set_header(uint8_t *gpt_header, int fd, enum gpt_instance instance) argument
1191 int fd = -1; local
1254 gpt_get_pentry_arr(uint8_t *hdr, int fd) argument
1302 gpt_set_pentry_arr(uint8_t *hdr, int fd, uint8_t* arr) argument
1380 int fd = -1; local
1509 int fd = -1; local
[all...]
/hardware/qcom/bt/msm8909/libbt-vendor/src/
H A Dbt_vendor_qcom.c63 extern int rome_soc_init(int fd, char *bdaddr);
64 extern int check_embedded_mode(int fd);
65 extern int rome_get_addon_feature_list(int fd);
67 extern int enable_controller_log(int fd, unsigned char req);
82 int userial_clock_operation(int fd, int cmd);
83 int ath3k_init(int fd, int speed, int init_speed, char *bdaddr, struct termios *ti);
84 int rome_soc_init(int fd, char *bdaddr);
126 int fd; local
128 fd = open(WIFI_BT_STATUS_LOCK, O_RDONLY);
130 if (fd <
136 bt_semaphore_get(int fd) argument
152 bt_semaphore_release(int fd) argument
168 bt_semaphore_destroy(int fd) argument
335 int fd, size, i, ret, fd_ldo; local
731 int idx, fd; local
[all...]
/hardware/libhardware/modules/vibrator/
H A Dvibrator.c36 int fd; local
38 fd = TEMP_FAILURE_RETRY(open(file, O_RDWR));
39 if(fd < 0) {
43 close(fd);
53 int to_write, written, ret, fd; local
55 fd = TEMP_FAILURE_RETRY(open(file, O_WRONLY));
56 if (fd < 0) {
61 written = TEMP_FAILURE_RETRY(write(fd, value, to_write));
75 close(fd);
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
H A DPipeComm.cpp43 int fd = qemu_pipe_open(CAR_SERVICE_NAME); local
45 if (fd < 0) {
46 ALOGE("%s: Could not open connection to service: %s %d", __FUNCTION__, strerror(errno), fd);
50 ALOGI("%s: OPENED PIPE, fd=%d", __FUNCTION__, fd);
51 mPipeFd = fd;
90 ALOGE("%s: send_cmd: (fd=%d): ERROR: %s", __FUNCTION__, mPipeFd, strerror(errno));
/hardware/interfaces/bluetooth/1.0/default/test/
H A Dasync_fd_watcher_unittest.cc53 int fd = socket(AF_INET, SOCK_STREAM, 0); local
54 EXPECT_FALSE(fd < 0);
61 EXPECT_FALSE(setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &reuse_flag,
63 EXPECT_FALSE(bind(fd, (sockaddr*)&serv_addr, sizeof(serv_addr)) < 0);
66 listen(fd, 1);
67 return fd;
70 int AcceptConnection(int fd) {
76 int connection_fd = accept(fd, (struct sockaddr*)&cli_addr, &clilen);
82 void ReadIncomingMessage(int fd) {
84 int n = TEMP_FAILURE_RETRY(read(fd, server_buffer
[all...]

Completed in 815 milliseconds

1234567891011>>