/system/core/debuggerd/x86_64/ |
D | machine.cpp | 29 struct user_regs_struct r; in dump_memory_and_code() local 30 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, &r) == -1) { in dump_memory_and_code() 35 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rax), "memory near rax:"); in dump_memory_and_code() 36 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rbx), "memory near rbx:"); in dump_memory_and_code() 37 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rcx), "memory near rcx:"); in dump_memory_and_code() 38 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rdx), "memory near rdx:"); in dump_memory_and_code() 39 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rsi), "memory near rsi:"); in dump_memory_and_code() 40 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rdi), "memory near rdi:"); in dump_memory_and_code() 42 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rip), "code around rip:"); in dump_memory_and_code() 46 struct user_regs_struct r; in dump_registers() local [all …]
|
/system/core/debuggerd/mips64/ |
D | machine.cpp | 33 pt_regs r; in dump_memory_and_code() local 34 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, &r)) { in dump_memory_and_code() 50 dump_memory(log, backtrace, R(r.regs[reg]), "memory near %.2s:", ®_names[reg * 2]); in dump_memory_and_code() 53 uintptr_t pc = R(r.cp0_epc); in dump_memory_and_code() 54 uintptr_t ra = R(r.regs[31]); in dump_memory_and_code() 62 pt_regs r; in dump_registers() local 63 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_registers() 70 R(r.regs[0]), R(r.regs[1]), R(r.regs[2]), R(r.regs[3])); in dump_registers() 73 R(r.regs[4]), R(r.regs[5]), R(r.regs[6]), R(r.regs[7])); in dump_registers() 76 R(r.regs[8]), R(r.regs[9]), R(r.regs[10]), R(r.regs[11])); in dump_registers() [all …]
|
/system/core/debuggerd/mips/ |
D | machine.cpp | 33 pt_regs r; in dump_memory_and_code() local 34 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, &r)) { in dump_memory_and_code() 50 dump_memory(log, backtrace, R(r.regs[reg]), "memory near %.2s:", ®_names[reg * 2]); in dump_memory_and_code() 53 uintptr_t pc = R(r.cp0_epc); in dump_memory_and_code() 54 uintptr_t ra = R(r.regs[31]); in dump_memory_and_code() 62 pt_regs r; in dump_registers() local 63 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_registers() 70 R(r.regs[0]), R(r.regs[1]), R(r.regs[2]), R(r.regs[3])); in dump_registers() 73 R(r.regs[4]), R(r.regs[5]), R(r.regs[6]), R(r.regs[7])); in dump_registers() 76 R(r.regs[8]), R(r.regs[9]), R(r.regs[10]), R(r.regs[11])); in dump_registers() [all …]
|
/system/core/debuggerd/x86/ |
D | machine.cpp | 28 struct pt_regs r; in dump_memory_and_code() local 29 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, &r) == -1) { in dump_memory_and_code() 34 dump_memory(log, backtrace, static_cast<uintptr_t>(r.eax), "memory near eax:"); in dump_memory_and_code() 35 dump_memory(log, backtrace, static_cast<uintptr_t>(r.ebx), "memory near ebx:"); in dump_memory_and_code() 36 dump_memory(log, backtrace, static_cast<uintptr_t>(r.ecx), "memory near ecx:"); in dump_memory_and_code() 37 dump_memory(log, backtrace, static_cast<uintptr_t>(r.edx), "memory near edx:"); in dump_memory_and_code() 38 dump_memory(log, backtrace, static_cast<uintptr_t>(r.esi), "memory near esi:"); in dump_memory_and_code() 39 dump_memory(log, backtrace, static_cast<uintptr_t>(r.edi), "memory near edi:"); in dump_memory_and_code() 41 dump_memory(log, backtrace, static_cast<uintptr_t>(r.eip), "code around eip:"); in dump_memory_and_code() 45 struct pt_regs r; in dump_registers() local [all …]
|
/system/core/fastboot/ |
D | protocol.c | 53 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 …]
|
D | util_windows.c | 41 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/ |
D | machine.cpp | 49 pt_regs r; in dump_registers() local 50 if (ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_registers() 56 static_cast<uint32_t>(r.ARM_r0), static_cast<uint32_t>(r.ARM_r1), in dump_registers() 57 static_cast<uint32_t>(r.ARM_r2), static_cast<uint32_t>(r.ARM_r3)); in dump_registers() 59 static_cast<uint32_t>(r.ARM_r4), static_cast<uint32_t>(r.ARM_r5), in dump_registers() 60 static_cast<uint32_t>(r.ARM_r6), static_cast<uint32_t>(r.ARM_r7)); in dump_registers() 62 static_cast<uint32_t>(r.ARM_r8), static_cast<uint32_t>(r.ARM_r9), in dump_registers() 63 static_cast<uint32_t>(r.ARM_r10), static_cast<uint32_t>(r.ARM_fp)); in dump_registers() 65 static_cast<uint32_t>(r.ARM_ip), static_cast<uint32_t>(r.ARM_sp), in dump_registers() 66 static_cast<uint32_t>(r.ARM_lr), static_cast<uint32_t>(r.ARM_pc), in dump_registers() [all …]
|
/system/core/include/cutils/ |
D | aref.h | 35 static inline void aref_init(struct aref *r) in aref_init() argument 37 r->count = 1; in aref_init() 40 static inline int32_t aref_count(struct aref *r) in aref_count() argument 42 return r->count; in aref_count() 45 static inline void aref_get(struct aref *r) in aref_get() argument 47 android_atomic_inc(&r->count); in aref_get() 50 static inline void aref_put(struct aref *r, void (*release)(struct aref *)) in aref_put() argument 52 if (android_atomic_dec(&r->count) == 1) in aref_put() 53 release(r); in aref_put()
|
/system/core/libpixelflinger/ |
D | fixed.cpp | 42 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/debuggerd/arm64/ |
D | machine.cpp | 54 struct user_pt_regs r; in dump_registers() local 56 io.iov_base = &r; in dump_registers() 57 io.iov_len = sizeof(r); in dump_registers() 67 i, r.regs[i], in dump_registers() 68 i+1, r.regs[i+1], in dump_registers() 69 i+2, r.regs[i+2], in dump_registers() 70 i+3, r.regs[i+3]); in dump_registers() 74 r.regs[28], r.regs[29], r.regs[30]); in dump_registers() 77 r.sp, r.pc, r.pstate); in dump_registers()
|
/system/core/adb/ |
D | adb_io.cpp | 53 int r = adb_read(fd, p, len); in ReadFdExactly() local 54 if (r > 0) { in ReadFdExactly() 55 len -= r; in ReadFdExactly() 56 p += r; in ReadFdExactly() 57 } else if (r == -1) { in ReadFdExactly() 77 int r; in WriteFdExactly() local 85 r = adb_write(fd, p, len); in WriteFdExactly() 86 if (r == -1) { in WriteFdExactly() 99 len -= r; in WriteFdExactly() 100 p += r; in WriteFdExactly()
|
D | get_my_path_windows.cpp | 25 char *r; in get_my_path() local 29 r = strrchr(exe, '\\'); in get_my_path() 30 if (r != NULL) in get_my_path() 31 *r = '\0'; in get_my_path()
|
D | sockets.cpp | 152 int r = adb_write(s->fd, p->ptr, p->len); in local_socket_enqueue() local 153 if(r > 0) { in local_socket_enqueue() 154 p->len -= r; in local_socket_enqueue() 155 p->ptr += r; in local_socket_enqueue() 158 if((r == 0) || (errno != EAGAIN)) { in local_socket_enqueue() 284 int r = adb_write(fd, p->ptr, p->len); in local_socket_event_func() local 285 if (r == -1) { in local_socket_event_func() 292 } else if (r > 0) { in local_socket_event_func() 293 p->ptr += r; in local_socket_event_func() 294 p->len -= r; in local_socket_event_func() [all …]
|
D | transport.cpp | 135 int r; in read_packet() local 143 r = adb_read(fd, p, len); in read_packet() 144 if(r > 0) { in read_packet() 145 len -= r; in read_packet() 146 p += r; in read_packet() 148 … D("%s: read_packet (fd=%d), error ret=%d errno=%d: %s\n", name, fd, r, errno, strerror(errno)); in read_packet() 149 if((r < 0) && (errno == EINTR)) continue; in read_packet() 164 int r, len = sizeof(ppacket); in write_packet() local 176 r = adb_write(fd, p, len); in write_packet() 177 if(r > 0) { in write_packet() [all …]
|
/system/extras/tests/timetest/ |
D | timetest.c | 28 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/ |
D | fixedfft.cpp | 113 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/libpixelflinger/codeflinger/ |
D | GGLAssembler.h | 209 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/toolbox/ |
D | ps.c | 51 int fd, r; in ps_line() local 73 r = 0; in ps_line() 75 r = read(fd, cmdline, 1023); in ps_line() 77 if(r < 0) r = 0; in ps_line() 79 cmdline[r] = 0; in ps_line() 84 r = read(fd, statline, 1023); in ps_line() 86 if(r < 0) return -1; in ps_line() 87 statline[r] = 0; in ps_line() 166 r = read(fd, macline, sizeof(macline)-1); in ps_line() 168 if (r > 0) in ps_line() [all …]
|
/system/bt/stack/smp/ |
D | p_256_ecc_pp.c | 91 static void ECC_Add(Point *r, Point *p, Point *q, uint32_t keyLength) in ECC_Add() argument 107 x3=r->x; y3=r->y; z3=r->z; in ECC_Add() 112 p_256_copy_point(r, p); in ECC_Add() 119 p_256_copy_point(r, q); in ECC_Add() 135 ECC_Double(r, q, keyLength) ; in ECC_Add() 207 Point r; in ECC_PointMult_Bin_NAF() local 219 p_256_init_point(&r); in ECC_PointMult_Bin_NAF() 239 p_256_copy_point(&r, q); in ECC_PointMult_Bin_NAF() 240 ECC_Double(q, &r, keyLength); in ECC_PointMult_Bin_NAF() 245 p_256_copy_point(&r, q); in ECC_PointMult_Bin_NAF() [all …]
|
/system/core/libmincrypt/ |
D | p256_ecdsa.c | 34 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/bt/embdrv/sbc/decoder/srce/ |
D | bitstream-decode.c | 44 bs->ptr.r = buffer + 3; in OI_BITSTREAM_ReadInit() 52 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr); in OI_BITSTREAM_ReadUINT() 69 bs->value = (bs->value << 8) | *bs->ptr.r++; in OI_BITSTREAM_ReadUINT4Aligned() 83 bs->value = (bs->value << 8) | *bs->ptr.r++; in OI_BITSTREAM_ReadUINT8Aligned()
|
/system/core/libnetutils/ |
D | dhcpclient.c | 396 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/ |
D | ecdsa_test.c | 228 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/extras/perfprofd/ |
D | perf_data_converter.cc | 14 bool operator<(const RangeTarget &r) const { in operator <() 15 if (start != r.start) { in operator <() 16 return start < r.start; in operator <() 17 } else if (end != r.end) { in operator <() 18 return end < r.end; in operator <() 20 return to < r.to; in operator <()
|
/system/core/toolbox/upstream-netbsd/lib/libc/gen/ |
D | humanize_number.c | 51 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()
|