Home
last modified time | relevance | path

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

12

/system/core/fastboot/
Dprotocol.c47 int r; in check_response() local
50 r = usb_read(usb, status, 64); in check_response()
51 if(r < 0) { in check_response()
56 status[r] = 0; in check_response()
58 if(r < 4) { in check_response()
59 sprintf(ERROR, "status malformed (%d bytes)", r); in check_response()
77 if(r > 4) { in check_response()
108 int r; in _command_send() local
129 r = check_response(usb, size, 1, 0); in _command_send()
130 if(r < 0) { in _command_send()
[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/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()
110 GGLfixed r = 0; in gglSqrtx() local
114 GGLfixed temp = bit + (r<<1); in gglSqrtx()
118 r += bit; in gglSqrtx()
123 return r; in gglSqrtx()
[all …]
Dscanline.cpp307 static void blend_factor(context_t* c, pixel_t* r, uint32_t factor,
385 void blend_factor(context_t* c, pixel_t* r, in blend_factor() argument
390 r->c[1] = in blend_factor()
391 r->c[2] = in blend_factor()
392 r->c[3] = in blend_factor()
393 r->c[0] = 0; in blend_factor()
396 r->c[1] = in blend_factor()
397 r->c[2] = in blend_factor()
398 r->c[3] = in blend_factor()
399 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 …]
Dproperties.c37 int r; in send_prop_msg() local
44 while((r = send(s, msg, sizeof(prop_msg), 0)) < 0) { in send_prop_msg()
49 if(r == sizeof(prop_msg)) { in send_prop_msg()
50 r = 0; in send_prop_msg()
52 r = -1; in send_prop_msg()
56 return r; in send_prop_msg()
337 int r; in property_set() local
352 r = 0; in property_set()
355 r = setenv(ename, value, 1); in property_set()
359 return r; in property_set()
/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/core/adb/
Dtransport.c94 int r; in read_packet() local
97 r = adb_read(fd, p, len); in read_packet()
98 if(r > 0) { in read_packet()
99 len -= r; in read_packet()
100 p += r; in read_packet()
102 D("read_packet: %d error %d %d\n", fd, r, errno); in read_packet()
103 if((r < 0) && (errno == EINTR)) continue; in read_packet()
137 int r, len = sizeof(ppacket); in write_packet() local
163 r = adb_write(fd, p, len); in write_packet()
164 if(r > 0) { in write_packet()
[all …]
Dget_my_path_windows.c23 char* r; in get_my_path() local
27 r = strrchr( exe, '\\' ); in get_my_path()
28 if (r) in get_my_path()
29 *r = 0; in get_my_path()
Dsockets.c145 int r = adb_write(s->fd, p->ptr, p->len); in local_socket_enqueue() local
146 if(r > 0) { in local_socket_enqueue()
147 p->len -= r; in local_socket_enqueue()
148 p->ptr += r; in local_socket_enqueue()
151 if((r == 0) || (errno != EAGAIN)) { in local_socket_enqueue()
258 int r = adb_write(fd, p->ptr, p->len); in local_socket_event_func() local
259 if(r > 0) { in local_socket_event_func()
260 p->ptr += r; in local_socket_event_func()
261 p->len -= r; in local_socket_event_func()
264 if(r < 0) { in local_socket_event_func()
[all …]
Dcommandline.c244 int r, n; in stdin_read_thread() local
257 r = unix_read(fdi, buf, 1024); in stdin_read_thread()
258 if(r == 0) break; in stdin_read_thread()
259 if(r < 0) { in stdin_read_thread()
264 if( (r == 3) && /* Arrow processing */ in stdin_read_thread()
286 r = n + cmdlen; in stdin_read_thread()
289 if( r == 0 ) in stdin_read_thread()
294 for(n = 0; n < r; n++){ in stdin_read_thread()
346 r = adb_write(fd, buf, r); in stdin_read_thread()
347 if(r <= 0) { in stdin_read_thread()
[all …]
Dservices.c198 int r;
203 r = read(fd, buf, 4096);
204 if(r == 0) goto done;
205 if(r < 0) {
210 c = r;
213 r = write(fd, p, c);
214 if(r > 0) {
215 c -= r;
216 p += r;
219 if((r < 0) && (errno == EINTR)) continue;
Dfile_sync_service.c320 int fd, r; local
330 r = adb_read(fd, buffer, SYNC_DATA_MAX);
331 if(r <= 0) {
332 if(r == 0) break;
334 r = fail_errno(s);
336 return r;
338 msg.data.size = htoll(r);
340 writex(s, buffer, r)) {
/system/core/debuggerd/
Ddebuggerd.c126 struct pt_regs r; in dump_stack_and_code() local
131 if(ptrace(PTRACE_GETREGS, pid, 0, &r)) return; in dump_stack_and_code()
132 sp = r.ARM_sp; in dump_stack_and_code()
133 pc = r.ARM_pc; in dump_stack_and_code()
139 pc = r.ARM_lr; in dump_stack_and_code()
169 end = p = r.ARM_lr & ~3; in dump_stack_and_code()
253 struct pt_regs r; in dump_pc_and_lr() local
255 if(ptrace(PTRACE_GETREGS, pid, 0, &r)) { in dump_pc_and_lr()
261 _LOG(tfd, !at_fault, " #%02d pc %08x %s\n", 0, r.ARM_pc, in dump_pc_and_lr()
262 map_to_name(map, r.ARM_pc, "<unknown>")); in dump_pc_and_lr()
[all …]
Dunwind-arm.c65 _uw r[16]; member
201 ptr = (_uw *) vrs->core.r[R_SP]; in unwind_VRS_Pop_with_ptrace()
206 vrs->core.r[i] = get_remote_word(pid, ptr); in unwind_VRS_Pop_with_ptrace()
212 vrs->core.r[R_SP] = (_uw) ptr; in unwind_VRS_Pop_with_ptrace()
398 sp_list[stack_level] = vrs->core.r[R_SP]; in log_function()
400 pc = vrs->core.r[R_PC]; in log_function()
408 pc = vrs->core.r[R_PC]; in log_function()
471 struct pt_regs r; in unwind_backtrace_with_ptrace() local
478 if(ptrace(PTRACE_GETREGS, pid, 0, &r)) return 0; in unwind_backtrace_with_ptrace()
481 saved_vrs.core.r[i] = r.uregs[i]; in unwind_backtrace_with_ptrace()
[all …]
/system/core/nexus/
DScanResult.cpp90 ScanResult *r = new ScanResult(); in clone() local
92 r->mBssid = strdup(mBssid); in clone()
93 r->mFreq = mFreq; in clone()
94 r->mLevel = mLevel; in clone()
95 r->mFlags = strdup(mFlags); in clone()
96 r->mSsid = strdup(mSsid); in clone()
98 return r; in clone()
/system/core/libpixelflinger/codeflinger/
DGGLAssembler.h199 reg_t(int r, int f=0)
200 : reg(r), flags(f) { in reg()
202 void setTo(int r, int f=0) {
203 reg=r; flags=f;
212 integer_t(int r, int sz=32, int f=0)
213 : reg_t(r, f), s(sz) { in reg_t()
215 void setTo(int r, int sz=32, int f=0) {
216 reg_t::setTo(r, f); s=sz;
226 pixel_t(int r, const GGLFormat* fmt, int f=0)
227 : reg_t(r, f), format(*fmt) { in reg_t()
[all …]
/system/core/libacc/tests/data/
Dbellard.otccex.c36 int i, r; in fact() local
37 r = 1; in fact()
40 r = r * i; in fact()
41 return r; in fact()
Dotcc-noinclude.c17 #define r m= macro
114 r x e++;
187 r z;
254 r s(60545,0);
263 k r j;
284 r 0;
290 r S(e,m);
307 r S(e,m);
327 r U f;
347 r U f;
[all …]
Dotcc.c17 #define r m= macro
114 r x e++;
187 r z;
254 r s(60545,0);
263 k r j;
284 r 0;
290 r S(e,m);
307 r S(e,m);
327 r U f;
347 r U f;
[all …]
/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()
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()
Dps.c39 int fd, r; in ps_line() local
58 r = 0; in ps_line()
60 r = read(fd, cmdline, 1023); in ps_line()
62 if(r < 0) r = 0; in ps_line()
64 cmdline[r] = 0; in ps_line()
69 r = read(fd, statline, 1023); in ps_line()
71 if(r < 0) return -1; in ps_line()
72 statline[r] = 0; in ps_line()
/system/core/libnetutils/
Ddhcpclient.c413 int s, r, size; in dhcp_init_ifc() local
442 r = poll(&pfd, 1, timeout); in dhcp_init_ifc()
444 if (r == 0) { in dhcp_init_ifc()
473 r = 0; in dhcp_init_ifc()
476 r = send_message(s, if_index, msg, size); in dhcp_init_ifc()
477 if (r < 0) { in dhcp_init_ifc()
484 if (r < 0) { in dhcp_init_ifc()
492 r = receive_packet(s, &reply); in dhcp_init_ifc()
493 if (r < 0) { in dhcp_init_ifc()
495 LOGD("receive_packet failed (%d): %s", r, strerror(errno)); in dhcp_init_ifc()
[all …]

12