Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 77) sorted by relevance

1234

/system/core/adb/
Dtransport.c28 static void transport_unref(atransport *t);
66 kick_transport(atransport* t) in kick_transport() argument
68 if (t && !t->kicked) in kick_transport()
73 kicked = t->kicked; in kick_transport()
75 t->kicked = 1; in kick_transport()
79 t->kick(t); in kick_transport()
84 run_transport_disconnects(atransport* t) in run_transport_disconnects() argument
86 adisconnect* dis = t->disconnects.next; in run_transport_disconnects()
88 D("%s: run_transport_disconnects\n", t->serial); in run_transport_disconnects()
89 while (dis != &t->disconnects) { in run_transport_disconnects()
[all …]
Dtransport_usb.c53 static int remote_read(apacket *p, atransport *t) in remote_read() argument
55 if(usb_read(t->usb, &p->msg, sizeof(amessage))){ in remote_read()
68 if(usb_read(t->usb, p->data, p->msg.data_length)){ in remote_read()
82 static int remote_write(apacket *p, atransport *t) in remote_write() argument
88 if(usb_write(t->usb, &p->msg, sizeof(amessage))) { in remote_write()
93 if(usb_write(t->usb, &p->data, size)) { in remote_write()
101 static void remote_close(atransport *t) in remote_close() argument
103 usb_close(t->usb); in remote_close()
104 t->usb = 0; in remote_close()
107 static void remote_kick(atransport *t) in remote_kick() argument
[all …]
Dtransport_local.c55 static int remote_read(apacket *p, atransport *t) in remote_read() argument
57 if(readx(t->sfd, &p->msg, sizeof(amessage))){ in remote_read()
73 if(readx(t->sfd, p->data, p->msg.data_length)){ in remote_read()
86 static int remote_write(apacket *p, atransport *t) in remote_write() argument
96 if(writex(t->sfd, &p->msg, sizeof(amessage) + length)) { in remote_write()
332 static void remote_kick(atransport *t) in remote_kick() argument
334 int fd = t->sfd; in remote_kick()
335 t->sfd = -1; in remote_kick()
344 if (local_transports[nn] == t) { in remote_kick()
354 static void remote_close(atransport *t) in remote_close() argument
[all …]
Dadb.c212 void handle_online(atransport *t) in handle_online() argument
215 t->online = 1; in handle_online()
218 void handle_offline(atransport *t) in handle_offline() argument
222 t->online = 0; in handle_offline()
223 run_transport_disconnects(t); in handle_offline()
267 static void send_ready(unsigned local, unsigned remote, atransport *t) in send_ready() argument
274 send_packet(p, t); in send_ready()
277 static void send_close(unsigned local, unsigned remote, atransport *t) in send_close() argument
284 send_packet(p, t); in send_close()
317 static void send_connect(atransport *t) in send_connect() argument
[all …]
Dadb.h146 void (*func)(void* opaque, atransport* t);
176 int (*read_from_remote)(apacket *p, atransport *t);
177 int (*write_to_remote)(apacket *p, atransport *t);
178 void (*close)(atransport *t);
179 void (*kick)(atransport *t);
242 void close_all_sockets(atransport *t);
249 asocket *create_remote_socket(unsigned id, atransport *t);
256 void handle_packet(apacket *p, atransport *t);
257 void send_packet(apacket *p, atransport *t);
279 void add_transport_disconnect( atransport* t, adisconnect* dis );
[all …]
Djdwp_service.c640 JdwpTracker* t = _jdwp_trackers_list.next; in jdwp_process_list_updated() local
644 for ( ; t != &_jdwp_trackers_list; t = t->next ) { in jdwp_process_list_updated()
646 asocket* peer = t->socket.peer; in jdwp_process_list_updated()
675 JdwpTracker* t = (JdwpTracker*) s; in jdwp_tracker_ready() local
677 if (t->need_update) { in jdwp_tracker_ready()
679 t->need_update = 0; in jdwp_tracker_ready()
698 JdwpTracker* t = calloc(sizeof(*t),1); in create_jdwp_tracker_service_socket() local
700 if (t == NULL) in create_jdwp_tracker_service_socket()
703 t->next = &_jdwp_trackers_list; in create_jdwp_tracker_service_socket()
704 t->prev = t->next->prev; in create_jdwp_tracker_service_socket()
[all …]
Dadb_auth.h21 void adb_auth_verified(atransport *t);
23 void send_auth_request(atransport *t);
40 static inline void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t) { } in adb_auth_confirm_key() argument
50 void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t);
Dadb_auth_client.c46 static void usb_disconnected(void* unused, atransport* t);
162 static void usb_disconnected(void* unused, atransport* t) in usb_disconnected() argument
190 void adb_auth_confirm_key(unsigned char *key, size_t len, atransport *t) in adb_auth_confirm_key() argument
196 usb_transport = t; in adb_auth_confirm_key()
197 add_transport_disconnect(t, &usb_disconnect); in adb_auth_confirm_key()
224 fdevent_install(&t->auth_fde, framework_fd, adb_auth_event, t); in adb_auth_confirm_key()
225 fdevent_add(&t->auth_fde, FDE_READ); in adb_auth_confirm_key()
/system/extras/tests/memtest/
Dfptest.cpp40 struct timespec t; in system_time() local
41 t.tv_sec = t.tv_nsec = 0; in system_time()
42 clock_gettime(CLOCK_MONOTONIC, &t); in system_time()
43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time()
53 nsecs_t t = system_time() - gTime; in endTime() local
54 double ds = ((double)t) / 1e9; in endTime()
106 float32x4_t t; in test_fma() local
107 t = vmulq_f32(vld1q_f32((float32_t *)&data_f[i]), c0_02); in test_fma()
108 t = vmlaq_f32(t, vld1q_f32((float32_t *)&data_f[i+4]), c0_04); in test_fma()
109 t = vmlaq_f32(t, vld1q_f32((float32_t *)&data_f[i+8]), c0_05); in test_fma()
[all …]
Dmemtest.cpp46 struct timespec t; in system_time() local
47 t.tv_sec = t.tv_nsec = 0; in system_time()
48 clock_gettime(CLOCK_MONOTONIC, &t); in system_time()
49 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time()
193 nsecs_t t = -system_time(); in memcpy_test() local
198 t += system_time() - overhead; in memcpy_test()
199 const float throughput = (size*1000000000.0f*REPEAT) / (1024*1024*t); in memcpy_test()
308 nsecs_t t = -system_time(); in memset_test() local
313 t += system_time() - overhead; in memset_test()
315 const float throughput = (size*1000000000.0f*REPEAT) / (1024*1024*t); in memset_test()
[all …]
/system/core/libmincrypt/
Dsha.c54 int t; in SHA1_Transform() local
62 #define SHA_F1(A,B,C,D,E,t) \ in SHA1_Transform() argument
64 (W[t] = bswap_32(ctx->buf.w[t])) + \ in SHA1_Transform()
68 for (t = 0; t < 15; t += 5) { in SHA1_Transform()
69 SHA_F1(A,B,C,D,E,t + 0); in SHA1_Transform()
70 SHA_F1(E,A,B,C,D,t + 1); in SHA1_Transform()
71 SHA_F1(D,E,A,B,C,t + 2); in SHA1_Transform()
72 SHA_F1(C,D,E,A,B,t + 3); in SHA1_Transform()
73 SHA_F1(B,C,D,E,A,t + 4); in SHA1_Transform()
75 SHA_F1(A,B,C,D,E,t + 0); // 16th one, t == 15 in SHA1_Transform()
[all …]
/system/extras/tests/bionic/libc/bionic/
Dtest_pthread_cond.c69 pthread_t t[4]; in main() local
73 pthread_create( &t[0], NULL, thread1_func, (void *)1 ); in main()
74 pthread_create( &t[1], NULL, thread2_func, (void *)2 ); in main()
75 pthread_create( &t[2], NULL, thread3_func, (void *)3 ); in main()
76 pthread_create( &t[3], NULL, thread4_func, (void *)4 ); in main()
78 pthread_join(t[0], NULL); in main()
79 pthread_join(t[1], NULL); in main()
80 pthread_join(t[2], NULL); in main()
81 pthread_join(t[3], NULL); in main()
Dtest_cond.c76 pthread_t t[2]; in main() local
78 int count = (int)(sizeof t/sizeof t[0]); in main()
82 if (pthread_create( &t[nn], NULL, thread_routines[nn], NULL) < 0) { in main()
90 if (pthread_join(t[nn], NULL)) { in main()
/system/extras/tests/icachetest/
Dicache_main.c12 long long t; in main() local
22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
23 printf("%6ld\t%lld\n", step*32, t); in main()
29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
30 MBs = (8388608LL*32*1000000) / (t * (1024*1024)); in main()
31 printf("\n%6lld us\t%ld MB/s\n", t, MBs); in main()
/system/bluetooth/tools/
Dpipetest.c173 pthread_t t; in do_socketpair_poll1_shutdown2() local
177 pthread_create(&t, NULL, (void *)thread_poll, (void *)fd[1]); in do_socketpair_poll1_shutdown2()
187 pthread_join(t, NULL); in do_socketpair_poll1_shutdown2()
194 pthread_t t; in do_socketpair_poll1_shutdown1() local
198 pthread_create(&t, NULL, (void *)thread_poll, (void *)fd[0]); in do_socketpair_poll1_shutdown1()
208 pthread_join(t, NULL); in do_socketpair_poll1_shutdown1()
215 pthread_t t; in do_socketpair_poll1_close1() local
219 pthread_create(&t, NULL, (void *)thread_poll, (void *)fd[0]); in do_socketpair_poll1_close1()
225 pthread_join(t, NULL); in do_socketpair_poll1_close1()
232 pthread_t t; in do_socketpair_read1_shutdown1() local
[all …]
/system/vold/
Dfstrim.c42 struct timespec t; in get_boot_time_ms() local
45 t.tv_sec = 0; in get_boot_time_ms()
46 t.tv_nsec = 0; in get_boot_time_ms()
47 clock_gettime(CLOCK_BOOTTIME, &t); in get_boot_time_ms()
48 time_ms = (t.tv_sec * 1000LL) + (t.tv_nsec / 1000000); in get_boot_time_ms()
123 pthread_t t; in fstrim_filesystems() local
142 ret = pthread_create(&t, NULL, do_fstrim_filesystems, NULL); in fstrim_filesystems()
148 ret = pthread_detach(t); in fstrim_filesystems()
/system/extras/tests/timetest/
Dtimetest.c15 struct timespec t; in nanotime() local
17 if(clock_gettime(CLOCK_MONOTONIC, &t)) { in nanotime()
22 return (((long long) t.tv_sec) * 1000000000LL) + in nanotime()
23 ((long long) t.tv_nsec); in nanotime()
80 struct timespec t, dt; in main() local
81 clock_gettime(clock_id, &t); in main()
82 dt = ts_sub(t, t1); in main()
83 t1 = t; in main()
91 t.tv_sec, t.tv_nsec, dt.tv_sec, dt.tv_nsec, in main()
/system/extras/tests/pftest/
Dpftest.c39 struct timespec t; in stop_watch() local
40 t.tv_sec = t.tv_nsec = 0; in stop_watch()
41 clock_gettime(CLOCK_MONOTONIC, &t); in stop_watch()
42 return t.tv_sec*1000000000ULL + t.tv_nsec; in stop_watch()
/system/core/libpixelflinger/
Dpicker.cpp137 uint32_t t = 0; in ggl_pick() local
138 t |= GGL_BUILD_NEEDS(tx.surface.format, T_FORMAT); in ggl_pick()
139 t |= GGL_BUILD_NEEDS(ggl_env_to_needs(tx.env), T_ENV); in ggl_pick()
140 t |= GGL_BUILD_NEEDS(0, T_POT); // XXX: not used yet in ggl_pick()
143 t |= GGL_BUILD_NEEDS(GGL_NEEDS_WRAP_11, T_S_WRAP); in ggl_pick()
144 t |= GGL_BUILD_NEEDS(GGL_NEEDS_WRAP_11, T_T_WRAP); in ggl_pick()
146 t |= GGL_BUILD_NEEDS(ggl_wrap_to_needs(tx.s_wrap), T_S_WRAP); in ggl_pick()
147 t |= GGL_BUILD_NEEDS(ggl_wrap_to_needs(tx.t_wrap), T_T_WRAP); in ggl_pick()
150 t |= GGL_BUILD_NEEDS(1, T_LINEAR); in ggl_pick()
153 t |= GGL_BUILD_NEEDS(1, T_LINEAR); in ggl_pick()
[all …]
/system/extras/tests/framebuffer/
Drefresh.c21 struct timespec t; in systemTime() local
22 t.tv_sec = t.tv_nsec = 0; in systemTime()
23 clock_gettime(CLOCK_MONOTONIC, &t); in systemTime()
24 return (int64_t)(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
135 int l,t,w,h; in main() local
137 t=0; in main()
141 info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16); in main()
142 info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16); in main()
/system/extras/tests/bionic/libc/common/
Dtest_sem_post.c59 pthread_t t[MAX_THREADS]; in main() local
70 if ( pthread_create( &t[nn], NULL, thread_func, &semaphore ) < 0 ) { in main()
83 pthread_join(t[nn], &result); in main()
84 if (result != (void*)t[nn]) { in main()
85 printf("Thread %p joined but returned %p\n", (void*)t[nn], result); in main()
/system/core/toolbox/
Ddate.c15 time_t t; in settime() local
35 t = mktime(&tm); in settime()
38 ts.tv_sec = t; in settime()
48 time_t t; in date_main() local
83 time(&t); in date_main()
85 gmtime_r(&t, &tm); in date_main()
90 localtime_r(&t, &tm); in date_main()
Ddf.c12 long long t; in printsize() local
26 t = (n + 512) / 1024; in printsize()
27 printf("%4lld.%1lld%c", t/10, t%10, unit); in printsize()
/system/core/include/private/pixelflinger/
Dggl_fixed.h112 GGLfixed result, t; in gglMulx() local
117 : [lo]"=r"(result), [hi]"=r"(t), [x]"=r"(x) in gglMulx()
125 : [lo]"=&r"(result), [hi]"=&r"(t), [x]"=&r"(x) in gglMulx()
135 GGLfixed result, t; in gglMulAddx() local
140 : [lo]"=&r"(result), [hi]"=&r"(t), [x]"=&r"(x) in gglMulAddx()
147 : [lo]"=&r"(result), [hi]"=&r"(t), [x]"=&r"(x) in gglMulAddx()
156 GGLfixed result, t; in gglMulSubx() local
161 : [lo]"=&r"(result), [hi]"=&r"(t), [x]"=&r"(x) in gglMulSubx()
168 : [lo]"=&r"(result), [hi]"=&r"(t), [x]"=&r"(x) in gglMulSubx()
294 GGLfixed result,t,tmp1,tmp2; in gglMulAddx() local
[all …]
/system/media/audio_utils/
Dfixedfft.cpp90 int32_t t = b; in mult() local
91 __asm__("smuad %0, %0, %1" : "+r" (t) : "r" (a)); in mult()
93 __asm__("pkhtb %0, %0, %1, ASR #16" : "+r" (t) : "r" (b)); in mult()
94 return t; in mult()
118 int32_t t = v[i]; in fixed_fft() local
120 v[r] = t; in fixed_fft()

1234