Home
last modified time | relevance | path

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

1234

/system/core/adb/
Dtransport.c28 static void transport_unref(atransport *t);
71 kick_transport(atransport* t) in kick_transport() argument
73 if (t && !t->kicked) in kick_transport()
78 kicked = t->kicked; in kick_transport()
80 t->kicked = 1; in kick_transport()
84 t->kick(t); in kick_transport()
89 run_transport_disconnects(atransport* t) in run_transport_disconnects() argument
91 adisconnect* dis = t->disconnects.next; in run_transport_disconnects()
93 D("%s: run_transport_disconnects\n", t->serial); in run_transport_disconnects()
94 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.c58 static int remote_read(apacket *p, atransport *t) in remote_read() argument
60 if(readx(t->sfd, &p->msg, sizeof(amessage))){ in remote_read()
76 if(readx(t->sfd, p->data, p->msg.data_length)){ in remote_read()
89 static int remote_write(apacket *p, atransport *t) in remote_write() argument
99 if(writex(t->sfd, &p->msg, sizeof(amessage) + length)) { in remote_write()
335 static void remote_kick(atransport *t) in remote_kick() argument
337 int fd = t->sfd; in remote_kick()
338 t->sfd = -1; in remote_kick()
347 if (local_transports[nn] == t) { in remote_kick()
357 static void remote_close(atransport *t) in remote_close() argument
[all …]
Dadb.c216 void handle_online(atransport *t) in handle_online() argument
219 t->online = 1; in handle_online()
222 void handle_offline(atransport *t) in handle_offline() argument
226 t->online = 0; in handle_offline()
227 run_transport_disconnects(t); in handle_offline()
271 static void send_ready(unsigned local, unsigned remote, atransport *t) in send_ready() argument
278 send_packet(p, t); in send_ready()
281 static void send_close(unsigned local, unsigned remote, atransport *t) in send_close() argument
288 send_packet(p, t); in send_close()
341 static void send_connect(atransport *t) in send_connect() argument
[all …]
Dadb.h150 void (*func)(void* opaque, atransport* t);
180 int (*read_from_remote)(apacket *p, atransport *t);
181 int (*write_to_remote)(apacket *p, atransport *t);
182 void (*close)(atransport *t);
183 void (*kick)(atransport *t);
246 void close_all_sockets(atransport *t);
253 asocket *create_remote_socket(unsigned id, atransport *t);
260 void handle_packet(apacket *p, atransport *t);
261 void send_packet(apacket *p, atransport *t);
283 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);
/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 …]
/system/core/libutils/
DTimers.cpp45 struct timespec t; in systemTime() local
46 t.tv_sec = t.tv_nsec = 0; in systemTime()
47 clock_gettime(clocks[clock], &t); in systemTime()
48 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
56 struct timeval t; in systemTime() local
57 t.tv_sec = t.tv_usec = 0; in systemTime()
58 gettimeofday(&t, NULL); in systemTime()
59 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
/system/core/libmincrypt/
Dsha.c42 int t; in SHA1_Transform() local
44 for(t = 0; t < 16; ++t) { in SHA1_Transform()
49 W[t] = tmp; in SHA1_Transform()
52 for(; t < 80; t++) { in SHA1_Transform()
53 W[t] = rol(1,W[t-3] ^ W[t-8] ^ W[t-14] ^ W[t-16]); in SHA1_Transform()
62 for(t = 0; t < 80; t++) { in SHA1_Transform()
63 uint32_t tmp = rol(5,A) + E + W[t]; in SHA1_Transform()
65 if (t < 20) in SHA1_Transform()
67 else if ( t < 40) in SHA1_Transform()
69 else if ( t < 60) in SHA1_Transform()
Dsha256.c61 int t; in SHA256_Transform() local
63 for(t = 0; t < 16; ++t) { in SHA256_Transform()
68 W[t] = tmp; in SHA256_Transform()
71 for(; t < 64; t++) { in SHA256_Transform()
72 uint32_t s0 = ror(W[t-15], 7) ^ ror(W[t-15], 18) ^ shr(W[t-15], 3); in SHA256_Transform()
73 uint32_t s1 = ror(W[t-2], 17) ^ ror(W[t-2], 19) ^ shr(W[t-2], 10); in SHA256_Transform()
74 W[t] = W[t-16] + s0 + W[t-7] + s1; in SHA256_Transform()
86 for(t = 0; t < 64; t++) { in SHA256_Transform()
92 uint32_t t1 = H + s1 + ch + K[t] + W[t]; in SHA256_Transform()
/system/core/toolbox/upstream-netbsd/lib/libc/stdlib/
Dstrsuftoll.c137 long long num, t; in __strsuftollx() local
162 t = num; in __strsuftollx()
164 if (t > num) in __strsuftollx()
169 t = num; in __strsuftollx()
171 if (t > num) in __strsuftollx()
176 t = num; in __strsuftollx()
178 if (t > num) in __strsuftollx()
183 t = num; in __strsuftollx()
185 if (t > num) in __strsuftollx()
190 t = num; in __strsuftollx()
[all …]
/system/core/toolbox/upstream-netbsd/bin/dd/
Dconv.c66 const u_char *t; in def() local
68 if ((t = ctab) != NULL) in def()
70 *inp = t[*inp]; in def()
123 const u_char *t; in block() local
151 if ((t = ctab) != NULL) in block()
154 *outp++ = t[ch]; in block()
234 const u_char *t; in unblock() local
237 if ((t = ctab) != NULL) in unblock()
239 *inp = t[*inp]; in unblock()
246 for (t = inp + cbsz - 1; t >= inp && *t == ' '; --t); in unblock()
[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/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/vold/
Dfstrim.c47 struct timespec t; in get_boot_time_ms() local
50 t.tv_sec = 0; in get_boot_time_ms()
51 t.tv_nsec = 0; in get_boot_time_ms()
52 clock_gettime(CLOCK_BOOTTIME, &t); in get_boot_time_ms()
53 time_ms = (t.tv_sec * 1000LL) + (t.tv_nsec / 1000000); in get_boot_time_ms()
132 pthread_t t; in fstrim_filesystems() local
151 ret = pthread_create(&t, NULL, do_fstrim_filesystems, (void *)(intptr_t)deep_trim); in fstrim_filesystems()
157 ret = pthread_detach(t); in fstrim_filesystems()
/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/libmemtrack/
Dmemtrack.c79 static int memtrack_proc_get_type(struct memtrack_proc_type *t, in memtrack_proc_get_type() argument
82 size_t num_records = t->num_records; in memtrack_proc_get_type()
86 ret = module->getMemory(module, pid, type, t->records, &num_records); in memtrack_proc_get_type()
88 t->num_records = 0; in memtrack_proc_get_type()
91 if (num_records > t->allocated_records) { in memtrack_proc_get_type()
93 free(t->records); in memtrack_proc_get_type()
94 t->records = calloc(sizeof(*t->records), num_records); in memtrack_proc_get_type()
95 if (!t->records) { in memtrack_proc_get_type()
98 t->allocated_records = num_records; in memtrack_proc_get_type()
101 t->num_records = num_records; in memtrack_proc_get_type()
/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/extras/tests/ext4/
Drand_emmc_perf.c53 struct timeval t; in print_stats() local
73 timersub(&stats_buf[i].end, &stats_buf[i].start, &t); in print_stats()
74 if (timercmp(&t, &max, >)) { in print_stats()
75 max = t; in print_stats()
78 fprintf(full_stats, "%lld\n", (t.tv_sec * 1000000LL) + t.tv_usec); in print_stats()
80 timeradd(&sum, &t, &sum); in print_stats()
100 timersub(&stats_buf[i].end, &stats_buf[i].start, &t); /* Xi */ in print_stats()
101 x = (t.tv_sec * 1000000LL) + t.tv_usec; /* Convert to long long */ in print_stats()
/system/core/toolbox/
Ddate.c28 time_t t; in settime_alarm_tm() local
31 t = mktime(tm); in settime_alarm_tm()
32 ts.tv_sec = t; in settime_alarm_tm()
80 time_t t = tv->tv_sec; in settime_rtc_timeval() local
82 err = gmtime_r(&t, &tm); in settime_rtc_timeval()
146 time_t t; in date_main() local
178 time(&t); in date_main()
180 gmtime_r(&t, &tm); in date_main()
185 localtime_r(&t, &tm); in date_main()

1234