Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 96) sorted by relevance

1234

/system/core/libsparse/
Doutput_file.c78 int (*write_data_chunk)(struct output_file *out, unsigned int len,
80 int (*write_fill_chunk)(struct output_file *out, unsigned int len,
82 int (*write_skip_chunk)(struct output_file *out, int64_t len);
83 int (*write_end_chunk)(struct output_file *out);
101 struct output_file out; member
106 container_of((_o), struct output_file_gz, out)
109 struct output_file out; member
114 container_of((_o), struct output_file_normal, out)
117 struct output_file out; member
123 container_of((_o), struct output_file_callback, out)
[all …]
Dsparse.c103 static void sparse_file_write_block(struct output_file *out, in sparse_file_write_block() argument
108 write_data_chunk(out, backed_block_len(bb), backed_block_data(bb)); in sparse_file_write_block()
111 write_file_chunk(out, backed_block_len(bb), in sparse_file_write_block()
115 write_fd_chunk(out, backed_block_len(bb), in sparse_file_write_block()
119 write_fill_chunk(out, backed_block_len(bb), in sparse_file_write_block()
125 static int write_all_blocks(struct sparse_file *s, struct output_file *out) in write_all_blocks() argument
135 write_skip_chunk(out, (int64_t)blocks * s->block_size); in write_all_blocks()
137 sparse_file_write_block(out, bb); in write_all_blocks()
145 write_skip_chunk(out, pad); in write_all_blocks()
156 struct output_file *out; in sparse_file_write() local
[all …]
Doutput_file.h29 int write_data_chunk(struct output_file *out, unsigned int len, void *data);
30 int write_fill_chunk(struct output_file *out, unsigned int len,
32 int write_file_chunk(struct output_file *out, unsigned int len,
34 int write_fd_chunk(struct output_file *out, unsigned int len,
36 int write_skip_chunk(struct output_file *out, int64_t len);
37 void output_file_close(struct output_file *out);
Dsimg2img.c41 int out; in main() local
51 out = open(argv[argc - 1], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
52 if (out < 0) { in main()
74 lseek(out, SEEK_SET, 0); in main()
76 ret = sparse_file_write(s, out, false, false, false); in main()
85 close(out); in main()
Dimg2simg.c49 int out; in main() local
81 out = STDOUT_FILENO; in main()
83 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
84 if (out < 0) { in main()
106 ret = sparse_file_write(s, out, false, true, false); in main()
113 close(out); in main()
Dsimg2simg.c45 int out; in main() local
98 out = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
99 if (out < 0) { in main()
104 ret = sparse_file_write(out_s[i], out, false, true, false); in main()
109 close(out); in main()
/system/media/audio_utils/include/audio_utils/
Dprimitives.h38 void ditherAndClamp(int32_t* out, const int32_t *sums, size_t c);
121 int32_t out; in mulAdd() local
123 : [out]"=r"(out) in mulAdd()
126 return out; in mulAdd()
139 int32_t out; in mul() local
141 : [out]"=r"(out) in mul()
144 return out; in mul()
157 int32_t out; in mulAddRL() local
160 : [out]"=r"(out) in mulAddRL()
165 : [out]"=r"(out) in mulAddRL()
[all …]
/system/core/toolbox/
Ddd.c85 extern IO in, out;
107 IO in, out; /* input/output state */ variable
182 if (out.name == NULL) { in setup()
184 out.fd = STDOUT_FILENO; in setup()
185 out.name = "stdout"; in setup()
189 out.fd = open(out.name, O_RDWR | OFLAGS, DEFFILEMODE); in setup()
195 if (out.fd < 0) { in setup()
196 out.fd = open(out.name, O_WRONLY | OFLAGS, DEFFILEMODE); in setup()
197 out.flags |= NOREAD; in setup()
199 if (out.fd < 0) { in setup()
[all …]
Dls.c50 static void mode2str(unsigned mode, char *out) in mode2str() argument
52 *out++ = mode2kind(mode); in mode2str()
54 *out++ = (mode & 0400) ? 'r' : '-'; in mode2str()
55 *out++ = (mode & 0200) ? 'w' : '-'; in mode2str()
57 *out++ = (mode & 0100) ? 's' : 'S'; in mode2str()
59 *out++ = (mode & 0100) ? 'x' : '-'; in mode2str()
61 *out++ = (mode & 040) ? 'r' : '-'; in mode2str()
62 *out++ = (mode & 020) ? 'w' : '-'; in mode2str()
64 *out++ = (mode & 010) ? 's' : 'S'; in mode2str()
66 *out++ = (mode & 010) ? 'x' : '-'; in mode2str()
[all …]
/system/core/fs_mgr/
Dfs_mgr_verity.c100 goto out; in verify_table()
110 goto out; in verify_table()
115 out: in verify_table()
162 goto out; in read_verity_metadata()
168 goto out; in read_verity_metadata()
172 goto out; in read_verity_metadata()
178 goto out; in read_verity_metadata()
182 goto out; in read_verity_metadata()
188 goto out; in read_verity_metadata()
192 goto out; in read_verity_metadata()
[all …]
/system/core/cpio/
Dmkbootfs.c86 static void _eject(struct stat *s, char *out, int olen, char *data, unsigned datasize) in _eject() argument
98 fix_stat(out, s); in _eject()
117 out, in _eject()
123 if(strlen(out) != (unsigned int)olen) die("ACK!"); in _eject()
148 static void _archive(char *in, char *out, int ilen, int olen);
154 static void _archive_dir(char *in, char *out, int ilen, int olen) in _archive_dir() argument
162 in, out, ilen, olen); in _archive_dir()
209 out[olen] = '/'; in _archive_dir()
210 memcpy(out + olen + 1, names[i], t + 1); in _archive_dir()
211 _archive(in, out, ilen + t + 1, olen + t + 1); in _archive_dir()
[all …]
/system/core/libctest/
Dctest.c38 FILE* out; member
52 suite->out = tmpfile(); in getTestSuite()
53 assert(suite->out != NULL); in getTestSuite()
77 rewind(suite->out); in printFailures()
80 while ((read = fread(buffer, sizeof(char), 512, suite->out)) > 0) { in printFailures()
132 fprintf(suite->out, "Process failed: [%s] status: %d\n", in runTests()
134 fflush(suite->out); in runTests()
154 fprintf(suite->out, "Assertion failed: [%s:%d] %s: %s\n", file, line, in assertTrueWithSource()
156 fflush(suite->out); in assertTrueWithSource()
/system/core/sh/
Dparser.c751 goto out; in readtoken()
761 out: in readtoken()
911 char *out; in readtoken1() local
928 (void) &out; in readtoken1()
950 STARTSTACKSTR(out); in readtoken1()
964 CHECKSTRSPACE(4, out); /* permit 4 calls to USTPUTC */ in readtoken1()
969 USTPUTC(c, out); in readtoken1()
978 USTPUTC(c, out); in readtoken1()
982 USTPUTC(CTLESC, out); in readtoken1()
983 USTPUTC(c, out); in readtoken1()
[all …]
/system/core/libsuspend/
Dautosuspend.c38 goto out; in autosuspend_init()
43 goto out; in autosuspend_init()
48 goto out; in autosuspend_init()
56 out: in autosuspend_init()
/system/core/libcutils/
Ddir_hash.c130 struct list **out) { in recurse() argument
189 for (f = *out; f != NULL; f = f->next) { in recurse()
194 *out = NULL; in recurse()
217 for (f = *out; f != NULL; f = f->next) { in recurse()
222 *out = NULL; in recurse()
232 res->next = *out; in recurse()
233 *out = res; in recurse()
236 if (recurse(algorithm, name, out) < 0) { in recurse()
267 struct list *out = NULL; in get_recursive_hash_manifest() local
276 if (recurse(algorithm, directory_path, &out) < 0) { in get_recursive_hash_manifest()
[all …]
Duevent.c72 goto out; in uevent_kernel_multicast_uid_recv()
79 goto out; in uevent_kernel_multicast_uid_recv()
84 goto out; in uevent_kernel_multicast_uid_recv()
89 out: in uevent_kernel_multicast_uid_recv()
/system/vold/
DNetlinkManager.cpp68 goto out; in start()
73 goto out; in start()
78 goto out; in start()
84 goto out; in start()
89 out: in start()
/system/media/camera/docs/
Dmetadata-generate48 local out=$thisdir/$2
50 gen_file_abs "$in" "$out"
56 local out="$2"
59 python $thisdir/metadata_parser_xml.py $thisdir/metadata_properties.xml $in $out
65 echo "OK: Generated $(relpath "$out")"
67 out_files+=$'\n'" $out"
70 echo "FAIL: Errors while generating $(relpath "$out")" >& 2
/system/extras/tests/bionic/libc/other/
Dtest_zlib.c51 unsigned char out[CHUNK]; in def() local
75 strm.next_out = out; in def()
78 if (fwrite(out, 1, have, dest) != have || ferror(dest)) { in def()
99 static unsigned char out[CHUNK]; in inf() local
125 strm.next_out = out; in inf()
221 FILE* out = NULL; in main() local
235 out = fopen( tempfile, "wb" ); in main()
236 if (out == NULL) { in main()
244 ret = def( f, out, compression_level ); in main()
249 fclose( out ); in main()
/system/extras/libublock/
Dublock.c70 void *out, size_t *out_len) in ublock_handle_init() argument
77 assert(out); in ublock_handle_init()
87 out_h = (struct ublock_init_out *)out; in ublock_handle_init()
106 void *out, size_t *out_len) in ublock_handle_ready() argument
112 assert(out); in ublock_handle_ready()
126 void *out, size_t *out_len) in ublock_handle_read() argument
134 assert(out); in ublock_handle_read()
141 out_h = (struct ublock_read_out *)out; in ublock_handle_read()
156 void *out, size_t *out_len) in ublock_handle_write() argument
164 assert(out); in ublock_handle_write()
[all …]
/system/core/fastboot/
Dgenkey.sh11 openssl genrsa -3 -out $1.pem -passout pass:"$2" 2048
15 -out $1-cert.pem \
21 -out $1.p12 -name $1 -passout pass:"$2"
/system/core/libsysutils/src/
DFrameworkListener.cpp115 goto out; in dispatchCommand()
141 goto out; in dispatchCommand()
169 goto out; in dispatchCommand()
175 goto out; in dispatchCommand()
185 goto out; in dispatchCommand()
189 out: in dispatchCommand()
198 goto out; in dispatchCommand()
/system/extras/fatblock/
Dimport.c95 static int import_file(struct fs *fs, char *path, struct imported *out) in import_file() argument
132 f->size, EXTENT_TYPE_FILE, &out->first_cluster); in import_file()
138 out->size = f->size; in import_file()
139 out->dot_dot_dirent = NULL; in import_file()
194 struct imported *out) in import_dir() argument
295 ret = fs_alloc_extent(fs, &d->extent, d->size, EXTENT_TYPE_DIR, &out->first_cluster); in import_dir()
303 out->first_cluster = 0; in import_dir()
305 my_first_cluster = is_root ? 0 : out->first_cluster; in import_dir()
331 out->dot_dot_dirent = &d->entries[0]; /* will set first_cluster */ in import_dir()
337 out->dot_dot_dirent = NULL; in import_dir()
[all …]
/system/extras/libpagemap/
Dpm_map.c57 if (error) goto out; in pm_map_usage_flags()
65 if (error) goto out; in pm_map_usage_flags()
79 out: in pm_map_usage_flags()
107 if (error) goto out; in pm_map_workingset()
114 if (error) goto out; in pm_map_workingset()
127 out: in pm_map_workingset()
/system/core/sdcard/
Dsdcard.c771 struct fuse_entry_out out; in fuse_reply_entry() local
784 memset(&out, 0, sizeof(out)); in fuse_reply_entry()
785 attr_from_stat(&out.attr, &s, node); in fuse_reply_entry()
786 out.attr_valid = 10; in fuse_reply_entry()
787 out.entry_valid = 10; in fuse_reply_entry()
788 out.nodeid = node->nid; in fuse_reply_entry()
789 out.generation = node->gen; in fuse_reply_entry()
791 fuse_reply(fuse, unique, &out, sizeof(out)); in fuse_reply_entry()
798 struct fuse_attr_out out; in fuse_reply_attr() local
804 memset(&out, 0, sizeof(out)); in fuse_reply_attr()
[all …]

1234