Searched refs:fd (Results 101 - 125 of 218) sorted by path

123456789

/system/core/liblog/
H A Dfake_log_device.c62 /* the fake fd that's seen by the user */
89 * to both protect the fd list and to prevent LogStates from being
117 * Allocate an fd and associate a new LogState with it.
118 * The fd is available via the fakeFd field of the return value.
135 * Translate an fd to a LogState.
137 static LogState *fdToLogState(int fd) argument
139 if (fd >= FAKE_FD_BASE && fd < FAKE_FD_BASE + MAX_OPEN_LOGS) {
140 return openLogTable[fd - FAKE_FD_BASE];
146 * Unregister the fake fd an
148 deleteFakeFd(int fd) argument
322 fake_writev(int fd, const struct iovec *iov, int iovcnt) argument
542 logWritev(int fd, const struct iovec* vector, int count) argument
605 logClose(int fd) argument
617 int fd = -1; local
675 fakeLogClose(int fd) argument
681 fakeLogWritev(int fd, const struct iovec* vector, int count) argument
[all...]
H A Dlogprint.c895 int fd,
910 ret = write(fd, outBuffer, totalLen);
893 android_log_printLogLine( AndroidLogFormat *p_format, int fd, const AndroidLogEntry *entry) argument
/system/core/libnetutils/
H A Ddhcpclient.c420 pfd.fd = s;
/system/core/libpixelflinger/codeflinger/
H A DCodeCache.cpp84 int fd = ashmem_create_region("CodeFlinger code cache", local
86 LOG_ALWAYS_FATAL_IF(fd < 0,
91 MAP_PRIVATE, fd, 0);
95 close(fd);
H A DGGLAssembler.cpp161 int fd = i==GGLFormat::ALPHA ? mBlendDstA : mBlendDst; local
177 info.blend = (fs != int(GGL_ONE)) || (fd > int(GGL_ZERO));
493 int fd = component==GGLFormat::ALPHA ? mBlendDstA : mBlendDst; local
499 const int blending = blending_codes(fs, fd);
502 const int need_blending = (fs != int(GGL_ONE)) || (fd > int(GGL_ZERO));
H A DGGLAssembler.h521 static int blending_codes(int fs, int fd);
H A Dblending.cpp73 int fd = component==GGLFormat::ALPHA ? mBlendDstA : mBlendDst; local
76 const int blending = blending_codes(fs, fd);
101 (fs==GGL_DST_COLOR && fd==GGL_ONE_MINUS_DST_COLOR) ||
102 (fs==GGL_SRC_COLOR && fd==GGL_ONE_MINUS_SRC_COLOR) ||
103 (fs==GGL_DST_ALPHA && fd==GGL_ONE_MINUS_DST_ALPHA) ||
104 (fs==GGL_SRC_ALPHA && fd==GGL_ONE_MINUS_SRC_ALPHA);
107 (fs==GGL_ONE_MINUS_DST_COLOR && fd==GGL_DST_COLOR) ||
108 (fs==GGL_ONE_MINUS_SRC_COLOR && fd==GGL_SRC_COLOR) ||
109 (fs==GGL_ONE_MINUS_DST_ALPHA && fd==GGL_DST_ALPHA) ||
110 (fs==GGL_ONE_MINUS_SRC_ALPHA && fd
[all...]
H A Dmips_disassem.c454 i.FRType.fd, i.FRType.fs, i.FRType.ft);
H A Dmips_opcode.h74 unsigned fd: 5; member in struct:__anon425::__anon429
110 unsigned fd: 5; member in struct:__anon425::__anon433
/system/core/libsparse/
H A Dbacked_block.c39 int fd; member in struct:backed_block::__anon460::__anon463
41 } fd; member in union:backed_block::__anon460
90 return bb->fd.fd;
99 return bb->fd.offset;
230 if (a->fd.fd != b->fd.fd ||
231 a->fd
343 backed_block_add_fd(struct backed_block_list *bbl, int fd, int64_t offset, unsigned int len, unsigned int block) argument
[all...]
H A Dbacked_block.h38 int backed_block_add_fd(struct backed_block_list *bbl, int fd,
H A Doutput_file.c52 int fd, off64_t offset)
54 return __mmap2(addr, length, prot, flags, fd, offset >> 12);
70 int (*open)(struct output_file *, int fd);
110 int fd; member in struct:output_file_normal
125 static int file_open(struct output_file *out, int fd) argument
129 outn->fd = fd;
138 ret = lseek64(outn->fd, cnt, SEEK_CUR);
151 ret = ftruncate64(outn->fd, len);
164 ret = write(outn->fd, dat
51 mmap64(void *addr, size_t length, int prot, int flags, int fd, off64_t offset) argument
191 gz_file_open(struct output_file *out, int fd) argument
275 callback_file_open(struct output_file *out, int fd) argument
326 read_all(int fd, void *buf, size_t len) argument
667 output_file_open_fd(int fd, unsigned int block_size, int64_t len, int gz, int sparse, int chunks, int crc) argument
703 write_fd_chunk(struct output_file *out, unsigned int len, int fd, int64_t offset) argument
[all...]
H A Doutput_file.h24 struct output_file *output_file_open_fd(int fd, unsigned int block_size, int64_t len,
35 int fd, int64_t offset);
39 int read_all(int fd, void *buf, size_t len);
H A Dsparse.c75 int fd, int64_t file_offset, unsigned int len, unsigned int block)
77 return backed_block_add_fd(s->backed_block_list, fd, file_offset,
151 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse, argument
159 out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc);
74 sparse_file_add_fd(struct sparse_file *s, int fd, int64_t file_offset, unsigned int len, unsigned int block) argument
H A Dsparse_read.c99 int fd, int64_t offset, unsigned int blocks, unsigned int block,
114 ret = sparse_file_add_fd(s, fd, offset, len, block);
122 ret = read_all(fd, copybuf, chunk);
130 lseek64(fd, len, SEEK_CUR);
137 int fd, unsigned int blocks, unsigned int block, uint32_t *crc32)
150 ret = read_all(fd, &fill_val, sizeof(fill_val));
178 int fd, unsigned int blocks, unsigned int block, uint32_t *crc32)
204 static int process_crc32_chunk(int fd, unsigned int chunk_size, uint32_t crc32) argument
213 ret = read_all(fd, &file_crc32, sizeof(file_crc32));
225 static int process_chunk(struct sparse_file *s, int fd, off64_ argument
98 process_raw_chunk(struct sparse_file *s, unsigned int chunk_size, int fd, int64_t offset, unsigned int blocks, unsigned int block, uint32_t *crc32) argument
136 process_fill_chunk(struct sparse_file *s, unsigned int chunk_size, int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) argument
177 process_skip_chunk(struct sparse_file *s, unsigned int chunk_size, int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) argument
277 sparse_file_read_sparse(struct sparse_file *s, int fd, bool crc) argument
359 sparse_file_read_normal(struct sparse_file *s, int fd) argument
410 sparse_file_read(struct sparse_file *s, int fd, bool sparse, bool crc) argument
423 sparse_file_import(int fd, bool verbose, bool crc) argument
479 sparse_file_import_auto(int fd, bool crc) argument
[all...]
/system/core/libsparse/include/sparse/
H A Dsparse.h122 * Associates a chunk of an existing fd with a sparse file cookie.
131 * The fd must remain open until the sparse file is closed or the fd block is
137 int fd, int64_t file_offset, unsigned int len, unsigned int block);
143 * @fd - file descriptor to write to
157 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse,
199 * @fd - file descriptor to read from
211 int sparse_file_read(struct sparse_file *s, int fd, bool sparse, bool crc);
226 struct sparse_file *sparse_file_import(int fd, bool verbose, bool crc);
231 * @fd
[all...]
/system/core/libsuspend/
H A Dautosuspend_earlysuspend.c52 int fd = open(EARLYSUSPEND_WAIT_FOR_FB_WAKE, O_RDONLY, 0); local
55 err = read(fd, &buf, 1);
59 close(fd);
67 int fd = open(EARLYSUSPEND_WAIT_FOR_FB_SLEEP, O_RDONLY, 0); local
70 err = read(fd, &buf, 1);
74 close(fd);
/system/core/libsync/
H A Dsync.c30 int sync_wait(int fd, int timeout) argument
34 return ioctl(fd, SYNC_IOC_WAIT, &to);
52 struct sync_fence_info_data *sync_fence_info(int fd) argument
62 err = ioctl(fd, SYNC_IOC_FENCE_INFO, info);
96 int sw_sync_timeline_inc(int fd, unsigned count) argument
100 return ioctl(fd, SW_SYNC_IOC_INC, &arg);
103 int sw_sync_fence_create(int fd, const char *name, unsigned value) argument
111 err = ioctl(fd, SW_SYNC_IOC_CREATE_FENCE, &data);
H A Dsync_test.c31 int fd[2]; member in struct:sync_thread_data
42 err = sync_wait(sync_data->fd[i], 10000);
51 info = sync_fence_info(sync_data->fd[i]);
95 int fd = sw_sync_fence_create(sync_timeline_fd, str, val); local
96 if (fd < 0) {
100 sync_data[i].fd[j] = fd;
101 printf("sync_data[%d].fd[%d] = %d;\n", i, j, fd);
109 sync_data[3].fd[
[all...]
/system/core/libsysutils/src/
H A DSocketListener.cpp169 int fd = (*it)->getSocket(); local
170 FD_SET(fd, &read_fds);
171 if (fd > max)
172 max = fd;
211 int fd = (*it)->getSocket(); local
212 if (FD_ISSET(fd, &read_fds)) {
/system/core/libusbhost/
H A Dusbhost.c62 int fd; member in struct:usb_host_context
69 int fd; member in struct:usb_device
134 wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE);
141 ret = inotify_add_watch(context->fd, path, IN_CREATE | IN_DELETE);
154 context->fd = inotify_init();
155 if (context->fd < 0) {
165 close(context->fd);
189 wdd = inotify_add_watch(context->fd, DEV_DIR, IN_CREATE | IN_DELETE);
205 ret = read(context->fd, event_buf, sizeof(event_buf));
216 inotify_rm_watch(context->fd, wd
259 int fd, did_retry = 0, writeable = 1; local
294 usb_device_new(const char *dev_name, int fd) argument
326 int fd = open(device->dev_name, O_RDWR); local
[all...]
/system/core/logcat/
H A Dlogcat.cpp58 int fd; member in struct:log_device_t
262 if (dev->fd > max) {
263 max = dev->fd;
272 FD_SET(dev->fd, &readset);
279 if (FD_ISSET(dev->fd, &readset)) {
282 ret = read(dev->fd, entry->buf, LOGGER_ENTRY_MAX_LEN);
595 int fd; local
601 fd = open("/proc/cmdline", O_RDONLY);
602 if (fd >= 0) {
603 int n = read(fd, cmdlin
[all...]
/system/core/mkbootimg/
H A Dmkbootimg.c32 int fd; local
35 fd = open(fn, O_RDONLY);
36 if(fd < 0) return 0;
38 sz = lseek(fd, 0, SEEK_END);
41 if(lseek(fd, 0, SEEK_SET) != 0) goto oops;
46 if(read(fd, data, sz) != sz) goto oops;
47 close(fd);
53 close(fd);
77 int write_padding(int fd, unsigned pagesize, unsigned itemsize) argument
88 if(write(fd, paddin
109 int fd; local
[all...]
/system/core/run-as/
H A Dpackage.c75 int fd, ret, old_errno; local
83 fd = TEMP_FAILURE_RETRY(open(filename, O_RDONLY));
84 if (fd < 0)
88 ret = TEMP_FAILURE_RETRY(fstat(fd, &st));
110 address = TEMP_FAILURE_RETRY(mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0));
122 close(fd);
/system/core/sdcard/
H A Dsdcard.c91 int fd; member in struct:handle
122 int fd; member in struct:fuse
423 static void fuse_init(struct fuse *fuse, int fd, const char *source_path) argument
427 fuse->fd = fd;
443 write(fuse->fd, &hdr, sizeof(hdr));
461 res = writev(fuse->fd, vec, 2);
823 h->fd = open(path, req->flags);
824 if (h->fd < 0) {
849 h, h->fd, siz
1250 int fd; local
[all...]

Completed in 1973 milliseconds

123456789