Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 72) sorted by relevance

123

/system/core/debuggerd/mips/
Dmachine.cpp47 pt_regs_mips_t r; in dump_memory_and_code() local
48 if (ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_memory_and_code()
63 uintptr_t addr = R(r.regs[reg]); in dump_memory_and_code()
75 unsigned int pc = R(r.cp0_epc); in dump_memory_and_code()
76 unsigned int ra = R(r.regs[31]); in dump_memory_and_code()
88 pt_regs_mips_t r; in dump_registers() local
89 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_registers()
95 R(r.regs[0]), R(r.regs[1]), R(r.regs[2]), R(r.regs[3])); in dump_registers()
97 R(r.regs[4]), R(r.regs[5]), R(r.regs[6]), R(r.regs[7])); in dump_registers()
99 R(r.regs[8]), R(r.regs[9]), R(r.regs[10]), R(r.regs[11])); in dump_registers()
[all …]
/system/core/debuggerd/x86_64/
Dmachine.cpp34 struct user_regs_struct r; in dump_registers() local
35 if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) { in dump_registers()
40 r.rax, r.rbx, r.rcx, r.rdx); in dump_registers()
42 r.rsi, r.rdi); in dump_registers()
44 r.r8, r.r9, r.r10, r.r11); in dump_registers()
46 r.r12, r.r13, r.r14, r.r15); in dump_registers()
48 r.cs, r.ss); in dump_registers()
50 r.rip, r.rbp, r.rsp, r.eflags); in dump_registers()
/system/core/debuggerd/x86/
Dmachine.cpp32 struct pt_regs r; in dump_registers() local
33 if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) { in dump_registers()
38 r.eax, r.ebx, r.ecx, r.edx); in dump_registers()
40 r.esi, r.edi); in dump_registers()
42 r.xcs, r.xds, r.xes, r.xfs, r.xss); in dump_registers()
44 r.eip, r.ebp, r.esp, r.eflags); in dump_registers()
/system/core/fastboot/
Dprotocol.c53 int r; in check_response() local
56 r = usb_read(usb, status, 64); in check_response()
57 if(r < 0) { in check_response()
62 status[r] = 0; in check_response()
64 if(r < 4) { in check_response()
65 sprintf(ERROR, "status malformed (%d bytes)", r); in check_response()
83 if(r > 4) { in check_response()
134 int r; in _command_data() local
136 r = usb_write(usb, data, size); in _command_data()
137 if(r < 0) { in _command_data()
[all …]
Dutil_windows.c41 char* r; in get_my_path() local
45 r = strrchr( exe, '\\' ); in get_my_path()
46 if (r) in get_my_path()
47 *r = 0; in get_my_path()
/system/core/debuggerd/arm/
Dmachine.cpp63 pt_regs r; in dump_registers() local
64 if (ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_registers()
70 static_cast<uint32_t>(r.ARM_r0), static_cast<uint32_t>(r.ARM_r1), in dump_registers()
71 static_cast<uint32_t>(r.ARM_r2), static_cast<uint32_t>(r.ARM_r3)); in dump_registers()
73 static_cast<uint32_t>(r.ARM_r4), static_cast<uint32_t>(r.ARM_r5), in dump_registers()
74 static_cast<uint32_t>(r.ARM_r6), static_cast<uint32_t>(r.ARM_r7)); in dump_registers()
76 static_cast<uint32_t>(r.ARM_r8), static_cast<uint32_t>(r.ARM_r9), in dump_registers()
77 static_cast<uint32_t>(r.ARM_r10), static_cast<uint32_t>(r.ARM_fp)); in dump_registers()
79 static_cast<uint32_t>(r.ARM_ip), static_cast<uint32_t>(r.ARM_sp), in dump_registers()
80 static_cast<uint32_t>(r.ARM_lr), static_cast<uint32_t>(r.ARM_pc), in dump_registers()
[all …]
/system/core/include/cutils/
Daref.h39 static inline void aref_init(struct aref *r) in aref_init() argument
41 r->count = 1; in aref_init()
44 static inline int32_t aref_count(struct aref *r) in aref_count() argument
46 return r->count; in aref_count()
49 static inline void aref_get(struct aref *r) in aref_get() argument
51 android_atomic_inc(&r->count); in aref_get()
54 static inline void aref_put(struct aref *r, void (*release)(struct aref *)) in aref_put() argument
56 if (android_atomic_dec(&r->count) == 1) in aref_put()
57 release(r); in aref_put()
/system/core/libpixelflinger/
Dfixed.cpp42 uint32_t r = a; in gglRecipQNormalized() local
47 r = (0x2E800 << (30-16)) - (r>>(2-1)); // 2.30, r = 2.90625 - 2*a in gglRecipQNormalized()
50 r = (((2LU<<30) - uint32_t((uint64_t(a)*r) >> 32)) * uint64_t(r)) >> 30; in gglRecipQNormalized()
51 r = (((2LU<<30) - uint32_t((uint64_t(a)*r) >> 32)) * uint64_t(r)) >> 30; in gglRecipQNormalized()
56 r >>= 1; in gglRecipQNormalized()
57 return s ? -r : r; in gglRecipQNormalized()
111 GGLfixed r = 0; in gglSqrtx() local
115 GGLfixed temp = bit + (r<<1); in gglSqrtx()
119 r += bit; in gglSqrtx()
124 return r; in gglSqrtx()
[all …]
/system/core/libcutils/
Ddir_hash.c269 struct list *r; in get_recursive_hash_manifest() local
281 for (r = out; r != NULL; r = r->next) { in get_recursive_hash_manifest()
283 len += strlen(r->name); in get_recursive_hash_manifest()
289 for (r = out; r != NULL; r = next) { in get_recursive_hash_manifest()
290 next = r->next; in get_recursive_hash_manifest()
291 free(r->name); in get_recursive_hash_manifest()
292 free(r); in get_recursive_hash_manifest()
298 for (r = out; r != NULL; r = r->next) { in get_recursive_hash_manifest()
299 list[count++] = r; in get_recursive_hash_manifest()
307 for (r = out; r != NULL; r = next) { in get_recursive_hash_manifest()
[all …]
/system/core/debuggerd/arm64/
Dmachine.cpp67 struct user_pt_regs r; in dump_registers() local
69 io.iov_base = &r; in dump_registers()
70 io.iov_len = sizeof(r); in dump_registers()
80 i, r.regs[i], in dump_registers()
81 i+1, r.regs[i+1], in dump_registers()
82 i+2, r.regs[i+2], in dump_registers()
83 i+3, r.regs[i+3]); in dump_registers()
87 r.regs[28], r.regs[29], r.regs[30]); in dump_registers()
90 r.sp, r.pc, r.pstate); in dump_registers()
/system/core/adb/
Dusb_libusb.c74 report_bulk_libusb_error(int r) in report_bulk_libusb_error() argument
76 switch (r) { in report_bulk_libusb_error()
94 D("Error %d during transfer\n", r); in report_bulk_libusb_error()
102 int r = 0; in usb_bulk_write() local
105 r = libusb_bulk_transfer(uh->devh, uh->end_point_address[1], (void *)data, len, in usb_bulk_write()
108 if (r != 0) { in usb_bulk_write()
110 report_bulk_libusb_error(r); in usb_bulk_write()
111 return r; in usb_bulk_write()
120 int r = 0; in usb_bulk_read() local
123 r = libusb_bulk_transfer(uh->devh, uh->end_point_address[0], data, len, in usb_bulk_read()
[all …]
Dget_my_path_windows.c23 char *r; in get_my_path() local
27 r = strrchr(exe, '\\'); in get_my_path()
28 if (r != NULL) in get_my_path()
29 *r = '\0'; in get_my_path()
Dtransport.c145 int r; in read_packet() local
153 r = adb_read(fd, p, len); in read_packet()
154 if(r > 0) { in read_packet()
155 len -= r; in read_packet()
156 p += r; in read_packet()
158 … D("%s: read_packet (fd=%d), error ret=%d errno=%d: %s\n", name, fd, r, errno, strerror(errno)); in read_packet()
159 if((r < 0) && (errno == EINTR)) continue; in read_packet()
176 int r, len = sizeof(ppacket); in write_packet() local
190 r = adb_write(fd, p, len); in write_packet()
191 if(r > 0) { in write_packet()
[all …]
Dsockets.c162 int r = adb_write(s->fd, p->ptr, p->len); in local_socket_enqueue() local
163 if(r > 0) { in local_socket_enqueue()
164 p->len -= r; in local_socket_enqueue()
165 p->ptr += r; in local_socket_enqueue()
168 if((r == 0) || (errno != EAGAIN)) { in local_socket_enqueue()
297 int r = adb_write(fd, p->ptr, p->len); in local_socket_event_func() local
298 if(r > 0) { in local_socket_event_func()
299 p->ptr += r; in local_socket_event_func()
300 p->len -= r; in local_socket_event_func()
303 if(r < 0) { in local_socket_event_func()
[all …]
/system/extras/tests/timetest/
Dtimetest.c28 struct timespec r; in ts_sub() local
29 r.tv_sec = a.tv_sec - b.tv_sec; in ts_sub()
30 r.tv_nsec = a.tv_nsec - b.tv_nsec; in ts_sub()
31 if(r.tv_nsec < 0) { in ts_sub()
32 r.tv_sec--; in ts_sub()
33 r.tv_nsec += 1000 * 1000 * 1000; in ts_sub()
35 if(r.tv_sec < 0 && r.tv_nsec > 0) { in ts_sub()
36 r.tv_sec++; in ts_sub()
37 r.tv_nsec -= 1000 * 1000 * 1000; in ts_sub()
39 return r; in ts_sub()
/system/media/audio_utils/
Dfixedfft.cpp113 int scale = LOG_FFT_SIZE, i, p, r; in fixed_fft() local
115 for (r = 0, i = 1; i < n; ++i) { in fixed_fft()
116 for (p = n; !(p & r); p >>= 1, r ^= p); in fixed_fft()
117 if (i < r) { in fixed_fft()
119 v[i] = v[r]; in fixed_fft()
120 v[r] = t; in fixed_fft()
134 for (r = 1; r < p; ++r) { in fixed_fft()
135 int32_t w = MAX_FFT_SIZE / 4 - (r << scale); in fixed_fft()
138 for (i = r; i < n; i += p << 1) { in fixed_fft()
/system/core/toolbox/
Dps.c45 int fd, r; in ps_line() local
66 r = 0; in ps_line()
68 r = read(fd, cmdline, 1023); in ps_line()
70 if(r < 0) r = 0; in ps_line()
72 cmdline[r] = 0; in ps_line()
77 r = read(fd, statline, 1023); in ps_line()
79 if(r < 0) return -1; in ps_line()
80 statline[r] = 0; in ps_line()
155 r = read(fd, macline, sizeof(macline)-1); in ps_line()
157 if (r > 0) in ps_line()
[all …]
Dsmd.c9 int fd, len, r, port = 0; in smd_main() local
29 r = write(fd, argv[0], len); in smd_main()
30 if(r != len) { in smd_main()
32 r, strerror(errno)); in smd_main()
Dsyren.c65 syren_reg *r; in syren_main() local
124 r = find_reg(argv[2]); in syren_main()
125 if (r == NULL) { in syren_main()
138 strlcpy(name, r->name, sizeof(name)); in syren_main()
139 sio.page = r->page; in syren_main()
140 sio.addr = r->addr; in syren_main()
/system/core/libpixelflinger/codeflinger/
DGGLAssembler.h209 reg_t(int r, int f=0)
210 : reg(r), flags(f) { in reg()
212 void setTo(int r, int f=0) {
213 reg=r; flags=f;
222 integer_t(int r, int sz=32, int f=0)
223 : reg_t(r, f), s(sz) { in reg_t()
225 void setTo(int r, int sz=32, int f=0) {
226 reg_t::setTo(r, f); s=sz;
236 pixel_t(int r, const GGLFormat* fmt, int f=0)
237 : reg_t(r, f), format(*fmt) { in reg_t()
[all …]
/system/core/libmincrypt/
Dp256_ecdsa.c34 const p256_int* r, const p256_int* s) { in p256_ecdsa_verify() argument
41 p256_mod(&SECP256r1_n, r, &u); in p256_ecdsa_verify()
47 p256_modmul(&SECP256r1_n, r, 0, &v, &v); // r / s % n in p256_ecdsa_verify()
54 return p256_cmp(r, &u) == 0; in p256_ecdsa_verify()
/system/core/libnetutils/
Ddhcpclient.c396 int s, r, size; in dhcp_init_ifc() local
425 r = poll(&pfd, 1, timeout); in dhcp_init_ifc()
427 if (r == 0) { in dhcp_init_ifc()
456 r = 0; in dhcp_init_ifc()
459 r = send_message(s, if_index, msg, size); in dhcp_init_ifc()
460 if (r < 0) { in dhcp_init_ifc()
467 if (r < 0) { in dhcp_init_ifc()
475 r = receive_packet(s, &reply); in dhcp_init_ifc()
476 if (r < 0) { in dhcp_init_ifc()
478 ALOGD("receive_packet failed (%d): %s", r, strerror(errno)); in dhcp_init_ifc()
[all …]
/system/core/libmincrypt/test/
Decdsa_test.c228 p256_int r; in main() local
235 int result = dsa_sig_unpack(message, mlen, &r, &s); \ in main()
242 int result = !memcmp(P256_DIGITS(&good_dsa_signature_##n##_r), P256_DIGITS(&r), \ in main()
270 int result = dsa_sig_unpack(signature, slen, &r, &s); \ in main()
271 if (result) { result = p256_ecdsa_verify(&key_x, &key_y, &hash, &r, &s); } \ in main()
/system/core/toolbox/upstream-netbsd/lib/libc/gen/
Dhumanize_number.c51 int b, r, s1, s2, sign; in humanize_number() local
152 r = snprintf(buf, len, "%d%s%d%s%s%s", in humanize_number()
156 r = snprintf(buf, len, "%" PRId64 "%s%s%s", in humanize_number()
160 return (r); in humanize_number()
/system/core/toolbox/upstream-netbsd/bin/cp/
Dcp.c110 int ch, fts_options, r, have_trailing_slash; in main() local
238 r = lstat(to.p_path, &to_stat); in main()
240 r = stat(to.p_path, &to_stat); in main()
241 if (r == -1 && errno != ENOENT) { in main()
245 if (r == -1 || !S_ISDIR(to_stat.st_mode)) { in main()
258 if (r == -1) { in main()
260 r = stat(*argv, &tmp_stat); in main()
262 r = lstat(*argv, &tmp_stat); in main()
263 if (r == -1) { in main()
276 if (r == -1) in main()

123