Home
last modified time | relevance | path

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

123456

/system/core/libsparse/
Doutput_file.c71 int (*write_data_chunk)(struct output_file *out, unsigned int len,
73 int (*write_fill_chunk)(struct output_file *out, unsigned int len,
75 int (*write_skip_chunk)(struct output_file *out, int64_t len);
76 int (*write_end_chunk)(struct output_file *out);
94 struct output_file out; member
99 container_of((_o), struct output_file_gz, out)
102 struct output_file out; member
107 container_of((_o), struct output_file_normal, out)
110 struct output_file out; member
116 container_of((_o), struct output_file_callback, out)
[all …]
Dsparse.c104 static int sparse_file_write_block(struct output_file *out, in sparse_file_write_block() argument
111 ret = write_data_chunk(out, backed_block_len(bb), backed_block_data(bb)); in sparse_file_write_block()
114 ret = write_file_chunk(out, backed_block_len(bb), in sparse_file_write_block()
119 ret = write_fd_chunk(out, backed_block_len(bb), in sparse_file_write_block()
124 ret = write_fill_chunk(out, backed_block_len(bb), in sparse_file_write_block()
132 static int write_all_blocks(struct sparse_file *s, struct output_file *out) in write_all_blocks() argument
143 write_skip_chunk(out, (int64_t)blocks * s->block_size); in write_all_blocks()
145 ret = sparse_file_write_block(out, bb); in write_all_blocks()
155 write_skip_chunk(out, pad); in write_all_blocks()
166 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
80 out = STDOUT_FILENO; in main()
82 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
83 if (out < 0) { in main()
105 ret = sparse_file_write(s, out, false, true, false); in main()
112 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/core/toolbox/upstream-netbsd/bin/dd/
Ddd.c78 IO in, out; /* input/output state */ variable
179 if (out.name == NULL) { in setup()
181 out.fd = STDOUT_FILENO; in setup()
182 out.name = "stdout"; in setup()
183 out.ops = &ddfops_stdfd; in setup()
185 out.ops = prog_ops; in setup()
188 out.fd = ddop_open(out, out.name, O_RDWR | OFLAGS, DEFFILEMODE); in setup()
194 if (out.fd < 0) { in setup()
195 out.fd = ddop_open(out, out.name, O_WRONLY | OFLAGS, in setup()
197 out.flags |= NOREAD; in setup()
[all …]
Dposition.c139 if (!(out.flags & ISTAPE)) { in pos_out()
140 if (ddop_lseek(out, out.fd, in pos_out()
141 (off_t)out.offset * (off_t)out.dbsz, SEEK_SET) == -1) in pos_out()
142 err(EXIT_FAILURE, "%s", out.name); in pos_out()
148 if (out.flags & NOREAD) { in pos_out()
150 t_op.mt_count = out.offset; in pos_out()
152 if (ddop_ioctl(out, out.fd, MTIOCTOP, &t_op) < 0) in pos_out()
153 err(EXIT_FAILURE, "%s", out.name); in pos_out()
159 for (cnt = 0; cnt < out.offset; ++cnt) { in pos_out()
160 if ((n = ddop_read(out, out.fd, out.db, out.dbsz)) > 0) in pos_out()
[all …]
Dconv.c73 out.dbp = in.dbp; in def()
74 out.dbcnt = in.dbcnt; in def()
76 if (in.dbcnt >= out.dbsz) { in def()
85 in.dbp = out.dbp; in def()
86 in.dbcnt = out.dbcnt; in def()
96 out.dbcnt = in.dbcnt; in def_close()
149 for (inp = in.dbp - in.dbcnt, outp = out.dbp; in.dbcnt;) { in block()
193 out.dbp += cbsz; in block()
194 if ((out.dbcnt += cbsz) >= out.dbsz) in block()
196 outp = out.dbp; in block()
[all …]
/system/bt/audio_a2dp_hw/
Daudio_a2dp_hw.c552 struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream; in out_write() local
555 DEBUG("write %zu bytes (fd %d)", bytes, out->common.audio_fd); in out_write()
557 pthread_mutex_lock(&out->common.lock); in out_write()
559 if (out->common.state == AUDIO_A2DP_STATE_SUSPENDED) in out_write()
562 pthread_mutex_unlock(&out->common.lock); in out_write()
567 if ((out->common.state == AUDIO_A2DP_STATE_STOPPED) || in out_write()
568 (out->common.state == AUDIO_A2DP_STATE_STANDBY)) in out_write()
570 if (start_audio_datapath(&out->common) < 0) in out_write()
575 int us_delay = calc_audiotime(out->common.cfg, bytes); in out_write()
580 pthread_mutex_unlock(&out->common.lock); in out_write()
[all …]
/system/extras/verity/
Dgenerate_verity_key.c46 goto out; in convert_to_mincrypt_format()
83 out: in convert_to_mincrypt_format()
95 goto out; in write_public_keyfile()
98 goto out; in write_public_keyfile()
102 goto out; in write_public_keyfile()
108 out: in write_public_keyfile()
123 goto out; in convert_x509()
129 goto out; in convert_x509()
135 goto out; in convert_x509()
141 goto out; in convert_x509()
[all …]
/system/core/fs_mgr/
Dfs_mgr_verity.c124 goto out; in verify_table()
134 goto out; in verify_table()
139 out: in verify_table()
225 goto out; in read_verity_metadata()
230 goto out; in read_verity_metadata()
237 goto out; in read_verity_metadata()
244 goto out; in read_verity_metadata()
250 goto out; in read_verity_metadata()
257 goto out; in read_verity_metadata()
261 goto out; in read_verity_metadata()
[all …]
/system/bt/embdrv/sbc/decoder/srce/
Dsynthesis-dct8.c82 PRIVATE void float_dct2_8(float * RESTRICT out, OI_INT32 const *RESTRICT in) in float_dct2_8() argument
123 out[0] = (float)FLOAT_SCALE(L00, DCTII_8_SHIFT_0); OI_ASSERT(VALID_INT16(out[0])); in float_dct2_8()
124 out[4] = (float)FLOAT_SCALE(L01, DCTII_8_SHIFT_4); OI_ASSERT(VALID_INT16(out[4])); in float_dct2_8()
127 out[6] = (float)FLOAT_SCALE(L02, DCTII_8_SHIFT_6); OI_ASSERT(VALID_INT16(out[6])); in float_dct2_8()
128 out[2] = (float)FLOAT_SCALE(L03, DCTII_8_SHIFT_2); OI_ASSERT(VALID_INT16(out[2])); in float_dct2_8()
153 out[3] = (float)(FLOAT_SCALE(L04, DCTII_8_SHIFT_3-1)); OI_ASSERT(VALID_INT16(out[3])); in float_dct2_8()
154 out[5] = (float)(FLOAT_SCALE(L05, DCTII_8_SHIFT_5-1)); OI_ASSERT(VALID_INT16(out[5])); in float_dct2_8()
157 out[7] = (float)(FLOAT_SCALE(L06, DCTII_8_SHIFT_7-1)); OI_ASSERT(VALID_INT16(out[7])); in float_dct2_8()
158 out[1] = (float)(FLOAT_SCALE(L07, DCTII_8_SHIFT_1-1)); OI_ASSERT(VALID_INT16(out[1])); in float_dct2_8()
209 PRIVATE void dct2_8(SBC_BUFFER_T * RESTRICT out, OI_INT32 const *RESTRICT in) in dct2_8() argument
[all …]
/system/core/libmincrypt/
Dp256_ec.c218 static void felem_sum(felem out, const felem in, const felem in2) { in felem_sum() argument
223 out[i] = in[i] + in2[i]; in felem_sum()
224 out[i] += carry; in felem_sum()
225 carry = out[i] >> 29; in felem_sum()
226 out[i] &= kBottom29Bits; in felem_sum()
232 out[i] = in[i] + in2[i]; in felem_sum()
233 out[i] += carry; in felem_sum()
234 carry = out[i] >> 28; in felem_sum()
235 out[i] &= kBottom28Bits; in felem_sum()
238 felem_reduce_carry(out, carry); in felem_sum()
[all …]
/system/core/cpio/
Dmkbootfs.c89 static void _eject(struct stat *s, char *out, int olen, char *data, unsigned datasize) in _eject() argument
101 fix_stat(out, s); in _eject()
120 out, in _eject()
126 if(strlen(out) != (unsigned int)olen) die("ACK!"); in _eject()
151 static void _archive(char *in, char *out, int ilen, int olen);
157 static void _archive_dir(char *in, char *out, int ilen, int olen) in _archive_dir() argument
165 in, out, ilen, olen); in _archive_dir()
212 out[olen] = '/'; in _archive_dir()
213 memcpy(out + olen + 1, names[i], t + 1); in _archive_dir()
214 _archive(in, out, ilen + t + 1, olen + t + 1); in _archive_dir()
[all …]
/system/bt/stack/smp/
Daes.h91 unsigned char out[N_BLOCK],
95 unsigned char *out,
104 unsigned char out[N_BLOCK],
108 unsigned char *out,
136 unsigned char out[N_BLOCK],
143 unsigned char out[N_BLOCK],
150 unsigned char out[N_BLOCK],
157 unsigned char out[N_BLOCK],
/system/media/audio_utils/include/audio_utils/
Dprimitives.h48 void ditherAndClamp(int32_t* out, const int32_t *sums, size_t c);
870 int32_t out; in mulAdd() local
872 : [out]"=r"(out) in mulAdd()
875 return out; in mulAdd()
888 int32_t out; in mul() local
890 : [out]"=r"(out) in mul()
893 return out; in mul()
906 int32_t out; in mulAddRL() local
909 : [out]"=r"(out) in mulAddRL()
914 : [out]"=r"(out) in mulAddRL()
[all …]
/system/core/toolbox/
Dls.c146 void strmode(mode_t mode, char *out) in strmode() argument
148 *out++ = mode2kind(mode); in strmode()
150 *out++ = (mode & 0400) ? 'r' : '-'; in strmode()
151 *out++ = (mode & 0200) ? 'w' : '-'; in strmode()
153 *out++ = (mode & 0100) ? 's' : 'S'; in strmode()
155 *out++ = (mode & 0100) ? 'x' : '-'; in strmode()
157 *out++ = (mode & 040) ? 'r' : '-'; in strmode()
158 *out++ = (mode & 020) ? 'w' : '-'; in strmode()
160 *out++ = (mode & 010) ? 's' : 'S'; in strmode()
162 *out++ = (mode & 010) ? 'x' : '-'; in strmode()
[all …]
/system/core/gatekeeperd/
DIGateKeeperService.cpp51 uint8_t *out = NULL; in onTransact() local
55 desiredPasswordSize, &out, &outSize); in onTransact()
59 if (ret == 0 && outSize > 0 && out != NULL) { in onTransact()
65 memcpy(buf, out, outSize); in onTransact()
66 delete[] out; in onTransact()
122 uint8_t *out = NULL; in onTransact() local
127 &out, &outSize, &request_reenroll); in onTransact()
130 if (ret == 0 && outSize > 0 && out != NULL) { in onTransact()
136 memcpy(buf, out, outSize); in onTransact()
137 delete[] out; in onTransact()
/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/tests/workloads/
Datrace-uncompress.py15 out = infile.read()
16 parts = out.split('\nTRACE:', 1)
31 out = zlib.decompress(data)
32 print(out)
/system/vold/
DNetlinkManager.cpp69 goto out; in start()
74 goto out; in start()
79 goto out; in start()
85 goto out; in start()
90 out: in start()
/system/core/libsuspend/
Dautosuspend.c38 goto out; in autosuspend_init()
45 goto out; in autosuspend_init()
51 goto out; in autosuspend_init()
59 out: in autosuspend_init()
/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/core/init/
Dbootchart.cpp88 FILE* out = fopen(LOG_HEADER, "we"); in log_header() local
89 if (out == NULL) { in log_header()
92 fprintf(out, "version = Android init 0.8 " __TIME__ "\n"); in log_header()
93 fprintf(out, "title = Boot chart for Android (%s)\n", date); in log_header()
94 … fprintf(out, "system.uname = %s %s %s %s\n", uts.sysname, uts.release, uts.version, uts.machine); in log_header()
95 fprintf(out, "system.release = %s\n", fingerprint); in log_header()
97 fprintf(out, "system.cpu = %s\n", uts.machine); in log_header()
98 fprintf(out, "system.kernel.options = %s\n", kernel_cmdline.c_str()); in log_header()
99 fclose(out); in log_header()

123456