Home
last modified time | relevance | path

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

123

/system/core/debuggerd/mips/
Dmachine.c105 pt_regs_mips_t r; in dump_memory_and_code() local
106 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_memory_and_code()
122 uintptr_t addr = R(r.regs[reg]); in dump_memory_and_code()
137 unsigned int pc = R(r.cp0_epc); in dump_memory_and_code()
138 unsigned int ra = R(r.regs[31]); in dump_memory_and_code()
152 pt_regs_mips_t r; in dump_registers() local
155 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_registers()
161 R(r.regs[0]), R(r.regs[1]), R(r.regs[2]), R(r.regs[3])); in dump_registers()
163 R(r.regs[4]), R(r.regs[5]), R(r.regs[6]), R(r.regs[7])); in dump_registers()
165 R(r.regs[8]), R(r.regs[9]), R(r.regs[10]), R(r.regs[11])); in dump_registers()
[all …]
/system/core/debuggerd/x86/
Dmachine.c40 struct pt_regs_x86 r; in dump_registers() local
43 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_registers()
48 if(!r.ebp) in dump_registers()
51 r.eax, r.ebx, r.ecx, r.edx); in dump_registers()
53 r.esi, r.edi); in dump_registers()
55 r.xcs, r.xds, r.xes, r.xfs, r.xss); in dump_registers()
57 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()
113 int r; in _command_start() local
135 int r; in _command_data() local
137 r = usb_write(usb, data, size); in _command_data()
[all …]
Dutil_windows.c64 char* r; in get_my_path() local
68 r = strrchr( exe, '\\' ); in get_my_path()
69 if (r) in get_my_path()
70 *r = 0; in get_my_path()
/system/core/debuggerd/arm/
Dmachine.c152 struct pt_regs r; in dump_registers() local
155 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_registers()
161 (uint32_t)r.ARM_r0, (uint32_t)r.ARM_r1, (uint32_t)r.ARM_r2, (uint32_t)r.ARM_r3); in dump_registers()
163 (uint32_t)r.ARM_r4, (uint32_t)r.ARM_r5, (uint32_t)r.ARM_r6, (uint32_t)r.ARM_r7); in dump_registers()
165 (uint32_t)r.ARM_r8, (uint32_t)r.ARM_r9, (uint32_t)r.ARM_r10, (uint32_t)r.ARM_fp); in dump_registers()
167 (uint32_t)r.ARM_ip, (uint32_t)r.ARM_sp, (uint32_t)r.ARM_lr, in dump_registers()
168 (uint32_t)r.ARM_pc, (uint32_t)r.ARM_cpsr); in dump_registers()
/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 …]
Dscanline.cpp447 static void blend_factor(context_t* c, pixel_t* r, uint32_t factor,
525 void blend_factor(context_t* c, pixel_t* r, in blend_factor() argument
530 r->c[1] = in blend_factor()
531 r->c[2] = in blend_factor()
532 r->c[3] = in blend_factor()
533 r->c[0] = 0; in blend_factor()
536 r->c[1] = in blend_factor()
537 r->c[2] = in blend_factor()
538 r->c[3] = in blend_factor()
539 r->c[0] = FIXED_ONE; in blend_factor()
[all …]
Dtrap.cpp37 static void pointx_validate(void *con, const GGLcoord* c, GGLcoord r);
38 static void pointx(void *con, const GGLcoord* c, GGLcoord r);
39 static void aa_pointx(void *con, const GGLcoord* c, GGLcoord r);
40 static void aa_nice_pointx(void *con, const GGLcoord* c, GGLcoord r);
46 static void recti_validate(void* c, GGLint l, GGLint t, GGLint r, GGLint b);
47 static void recti(void* c, GGLint l, GGLint t, GGLint r, GGLint b);
169 GGLint r = (xc + halfSize) >> TRI_FRACTION_BITS; in pointx() local
171 recti(c, l, t, r, b); in pointx()
210 GGLint r = (v[0] + rad + (TRI_ONE-1)) >> TRI_FRACTION_BITS; in aa_nice_pointx() local
224 if (r > GGLint(c->state.scissor.right)) { in aa_nice_pointx()
[all …]
/system/core/libcutils/
Ddir_hash.c268 struct list *r; in get_recursive_hash_manifest() local
280 for (r = out; r != NULL; r = r->next) { in get_recursive_hash_manifest()
282 len += strlen(r->name); in get_recursive_hash_manifest()
288 for (r = out; r != NULL; r = next) { in get_recursive_hash_manifest()
289 next = r->next; in get_recursive_hash_manifest()
290 free(r->name); in get_recursive_hash_manifest()
291 free(r); in get_recursive_hash_manifest()
297 for (r = out; r != NULL; r = r->next) { in get_recursive_hash_manifest()
298 list[count++] = r; in get_recursive_hash_manifest()
306 for (r = out; r != NULL; r = next) { in get_recursive_hash_manifest()
[all …]
/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.c140 int r; in read_packet() local
148 r = adb_read(fd, p, len); in read_packet()
149 if(r > 0) { in read_packet()
150 len -= r; in read_packet()
151 p += r; in read_packet()
153 … D("%s: read_packet (fd=%d), error ret=%d errno=%d: %s\n", name, fd, r, errno, strerror(errno)); in read_packet()
154 if((r < 0) && (errno == EINTR)) continue; in read_packet()
171 int r, len = sizeof(ppacket); in write_packet() local
185 r = adb_write(fd, p, len); in write_packet()
186 if(r > 0) { in write_packet()
[all …]
Dsockets.c148 int r = adb_write(s->fd, p->ptr, p->len); in local_socket_enqueue() local
149 if(r > 0) { in local_socket_enqueue()
150 p->len -= r; in local_socket_enqueue()
151 p->ptr += r; in local_socket_enqueue()
154 if((r == 0) || (errno != EAGAIN)) { in local_socket_enqueue()
277 int r = adb_write(fd, p->ptr, p->len); in local_socket_event_func() local
278 if(r > 0) { in local_socket_event_func()
279 p->ptr += r; in local_socket_event_func()
280 p->len -= r; in local_socket_event_func()
283 if(r < 0) { in local_socket_event_func()
[all …]
Dfile_sync_service.c322 int fd, r; local
332 r = adb_read(fd, buffer, SYNC_DATA_MAX);
333 if(r <= 0) {
334 if(r == 0) break;
336 r = fail_errno(s);
338 return r;
340 msg.data.size = htoll(r);
342 writex(s, buffer, r)) {
/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.cpp111 int scale = LOG_FFT_SIZE, i, p, r; in fixed_fft() local
113 for (r = 0, i = 1; i < n; ++i) { in fixed_fft()
114 for (p = n; !(p & r); p >>= 1, r ^= p); in fixed_fft()
115 if (i < r) { in fixed_fft()
117 v[i] = v[r]; in fixed_fft()
118 v[r] = t; in fixed_fft()
132 for (r = 1; r < p; ++r) { in fixed_fft()
133 int32_t w = MAX_FFT_SIZE / 4 - (r << scale); in fixed_fft()
136 for (i = r; i < n; i += p << 1) { in fixed_fft()
Dprimitives.c24 int32_t r = *sums++; in ditherAndClamp() local
26 int32_t nr = r >> 12; in ditherAndClamp()
28 r = clamp16(nr); in ditherAndClamp()
29 *out++ = (r<<16) | (l & 0xFFFF); in ditherAndClamp()
/system/core/toolbox/
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()
Dps.c41 int fd, r; in ps_line() local
62 r = 0; in ps_line()
64 r = read(fd, cmdline, 1023); in ps_line()
66 if(r < 0) r = 0; in ps_line()
68 cmdline[r] = 0; in ps_line()
73 r = read(fd, statline, 1023); in ps_line()
75 if(r < 0) return -1; in ps_line()
76 statline[r] = 0; in ps_line()
152 r = read(fd, macline, sizeof(macline)-1); in ps_line()
154 if (r > 0) in ps_line()
[all …]
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()
134 strcpy(name, r->name); in syren_main()
135 sio.page = r->page; in syren_main()
136 sio.addr = r->addr; in syren_main()
/system/core/libpixelflinger/codeflinger/
DGGLAssembler.h203 reg_t(int r, int f=0)
204 : reg(r), flags(f) { in reg()
206 void setTo(int r, int f=0) {
207 reg=r; flags=f;
216 integer_t(int r, int sz=32, int f=0)
217 : reg_t(r, f), s(sz) { in reg_t()
219 void setTo(int r, int sz=32, int f=0) {
220 reg_t::setTo(r, f); s=sz;
230 pixel_t(int r, const GGLFormat* fmt, int f=0)
231 : reg_t(r, f), format(*fmt) { in reg_t()
[all …]
/system/core/libnetutils/
Ddhcpclient.c394 int s, r, size; in dhcp_init_ifc() local
423 r = poll(&pfd, 1, timeout); in dhcp_init_ifc()
425 if (r == 0) { in dhcp_init_ifc()
454 r = 0; in dhcp_init_ifc()
457 r = send_message(s, if_index, msg, size); in dhcp_init_ifc()
458 if (r < 0) { in dhcp_init_ifc()
465 if (r < 0) { in dhcp_init_ifc()
473 r = receive_packet(s, &reply); in dhcp_init_ifc()
474 if (r < 0) { in dhcp_init_ifc()
476 ALOGD("receive_packet failed (%d): %s", r, strerror(errno)); in dhcp_init_ifc()
[all …]
/system/core/toolbox/cp/
Dcp.c110 int ch, fts_options, r, have_trailing_slash; in cp_main() local
242 r = lstat(to.p_path, &to_stat); in cp_main()
244 r = stat(to.p_path, &to_stat); in cp_main()
245 if (r == -1 && errno != ENOENT) { in cp_main()
249 if (r == -1 || !S_ISDIR(to_stat.st_mode)) { in cp_main()
262 if (r == -1) { in cp_main()
264 r = stat(*argv, &tmp_stat); in cp_main()
266 r = lstat(*argv, &tmp_stat); in cp_main()
267 if (r == -1) { in cp_main()
280 if (r == -1) in cp_main()
/system/security/keystore/
Dtest-keystore71 keystore system r
139 keystore app_0 r
222 keystore system r
234 keystore system r
258 keystore system r
/system/core/toolbox/grep/
Dutil.c292 int c = 0, m = 0, r = 0; in procline() local
306 r = grep_search(&fg_pattern[i], in procline()
309 r = (r == 0) ? 0 : REG_NOMATCH; in procline()
312 r = regexec(&r_pattern[i], l->dat, 1, in procline()
314 r = (r == 0) ? 0 : REG_NOMATCH; in procline()
317 if (r == REG_NOMATCH) in procline()

123