/external/llvm/test/CodeGen/CellSPU/useful-harnesses/ |
D | vecoperations.c | 14 } tv; in print_v16i8() local 15 tv.vec = v; in print_v16i8() 19 str, tv.elts[0], tv.elts[1], tv.elts[2], tv.elts[3], tv.elts[4], tv.elts[5], in print_v16i8() 20 tv.elts[6], tv.elts[7], tv.elts[8], tv.elts[9], tv.elts[10], tv.elts[11], in print_v16i8() 21 tv.elts[12], tv.elts[13], tv.elts[14], tv.elts[15]); in print_v16i8() 28 } tv; in print_v16i8_hex() local 29 tv.vec = v; in print_v16i8_hex() 33 str, tv.elts[0], tv.elts[1], tv.elts[2], tv.elts[3], tv.elts[4], tv.elts[5], in print_v16i8_hex() 34 tv.elts[6], tv.elts[7], tv.elts[8], tv.elts[9], tv.elts[10], tv.elts[11], in print_v16i8_hex() 35 tv.elts[12], tv.elts[13], tv.elts[14], tv.elts[15]); in print_v16i8_hex() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/tests/ |
D | test_aes.c | 144 struct cbc_test_vector *tv = &vectors[i]; in test_cbc() local 145 buf = malloc(tv->len); in test_cbc() 150 memcpy(buf, tv->plain, tv->len); in test_cbc() 151 aes_128_cbc_encrypt(tv->key, tv->iv, buf, tv->len); in test_cbc() 152 if (memcmp(buf, tv->cipher, tv->len) != 0) { in test_cbc() 156 memcpy(buf, tv->cipher, tv->len); in test_cbc() 157 aes_128_cbc_decrypt(tv->key, tv->iv, buf, tv->len); in test_cbc() 158 if (memcmp(buf, tv->plain, tv->len) != 0) { in test_cbc() 249 struct omac1_test_vector *tv; in main() local 274 tv = &test_vectors[i]; in main() [all …]
|
/external/kernel-headers/original/linux/ |
D | ktime.h | 55 } tv; member 106 static inline ktime_t timeval_to_ktime(struct timeval tv) in timeval_to_ktime() argument 108 return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); in timeval_to_ktime() 140 return (ktime_t) { .tv = { .sec = secs, .nsec = nsecs } }; in ktime_set() 155 if (res.tv.nsec < 0) in ktime_sub() 156 res.tv.nsec += NSEC_PER_SEC; in ktime_sub() 181 if (res.tv.nsec >= NSEC_PER_SEC) in ktime_add() 204 return (ktime_t) { .tv = { .sec = (s32)ts.tv_sec, in timespec_to_ktime() 214 static inline ktime_t timeval_to_ktime(const struct timeval tv) in timeval_to_ktime() argument 216 return (ktime_t) { .tv = { .sec = (s32)tv.tv_sec, in timeval_to_ktime() [all …]
|
/external/bison/lib/ |
D | timevar.c | 287 struct timevar_def *tv = &timevars[timevar]; local 295 tv->used = 1; 298 if (tv->standalone) 325 context->timevar = tv; 376 struct timevar_def *tv = &timevars[timevar]; local 382 tv->used = 1; 386 if (tv->standalone) 388 tv->standalone = 1; 390 get_time (&tv->start_time); 400 struct timevar_def *tv = &timevars[timevar]; local [all …]
|
/external/tremolo/Tremolo/ |
D | misc.c | 91 struct timeval tv; in _insert() local 95 gettimeofday(&tv,&tz); in _insert() 115 if(start_time==-1)start_time=(tv.tv_sec*1000)+(tv.tv_usec/1000); in _insert() 121 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 124 -start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 129 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 131 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 148 struct timeval tv; in _ripremove() local 155 gettimeofday(&tv,&tz); in _ripremove() 156 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _ripremove() [all …]
|
/external/chromium/third_party/libevent/test/ |
D | test-time.c | 48 struct timeval tv; in time_cb() local 56 tv.tv_sec = 0; in time_cb() 57 tv.tv_usec = rand_int(50000); in time_cb() 58 if (tv.tv_usec % 2) in time_cb() 59 evtimer_add(ev[j], &tv); in time_cb() 69 struct timeval tv; in main() local 80 tv.tv_sec = 0; in main() 81 tv.tv_usec = rand_int(50000); in main() 82 evtimer_add(ev[i], &tv); in main()
|
D | regress.c | 187 struct timeval tv; in timeout_cb() local 192 evutil_timersub(&tcalled, &tset, &tv); in timeout_cb() 194 evutil_timersub(&tset, &tcalled, &tv); in timeout_cb() 196 diff = tv.tv_sec*1000 + tv.tv_usec/1000 - SECONDS * 1000; in timeout_cb() 496 struct timeval tv; in test_simpletimeout() local 501 tv.tv_usec = 0; in test_simpletimeout() 502 tv.tv_sec = SECONDS; in test_simpletimeout() 504 evtimer_add(&ev, &tv); in test_simpletimeout() 518 struct timeval tv; in child_signal_cb() local 523 tv.tv_usec = 500000; in child_signal_cb() [all …]
|
/external/chromium/third_party/libevent/sample/ |
D | time-test.c | 35 struct timeval tv; in timeout_cb() local 43 evutil_timerclear(&tv); in timeout_cb() 44 tv.tv_sec = 2; in timeout_cb() 45 event_add(timeout, &tv); in timeout_cb() 52 struct timeval tv; in main() local 60 evutil_timerclear(&tv); in main() 61 tv.tv_sec = 2; in main() 62 event_add(&timeout, &tv); in main()
|
/external/qemu/distrib/sdl-1.2.12/src/timer/unix/ |
D | SDL_systimer.c | 91 pth_time_t tv; in SDL_Delay() local 92 tv.tv_sec = ms/1000; in SDL_Delay() 93 tv.tv_usec = (ms%1000)*1000; in SDL_Delay() 94 pth_nap(tv); in SDL_Delay() 99 struct timespec elapsed, tv; in SDL_Delay() 101 struct timeval tv; in SDL_Delay() 116 tv.tv_sec = elapsed.tv_sec; in SDL_Delay() 117 tv.tv_nsec = elapsed.tv_nsec; in SDL_Delay() 118 was_error = nanosleep(&tv, &elapsed); in SDL_Delay() 128 tv.tv_sec = ms/1000; in SDL_Delay() [all …]
|
/external/e2fsprogs/lib/uuid/ |
D | uuid_time.c | 58 struct timeval tv; in uuid_time() local 69 tv.tv_sec = clock_reg / 10000000; in uuid_time() 70 tv.tv_usec = (clock_reg % 10000000) / 10; in uuid_time() 73 *ret_tv = tv; in uuid_time() 75 return tv.tv_sec; in uuid_time() 124 struct timeval tv; in main() local 137 time_reg = uuid_time(buf, &tv); in main() 166 printf("UUID time is: (%ld, %ld): %s\n", tv.tv_sec, tv.tv_usec, in main()
|
D | gen_uuid.c | 113 static void gettimeofday (struct timeval *tv, void *dummy) in gettimeofday() argument 126 tv->tv_sec = n / 1000000; in gettimeofday() 127 tv->tv_usec = n % 1000000; in gettimeofday() 138 struct timeval tv; in get_random_fd() local 143 gettimeofday(&tv, 0); in get_random_fd() 154 srand((getpid() << 16) ^ getuid() ^ tv.tv_sec ^ tv.tv_usec); in get_random_fd() 156 jrand_seed[0] = getpid() ^ (tv.tv_sec & 0xFFFF); in get_random_fd() 157 jrand_seed[1] = getppid() ^ (tv.tv_usec & 0xFFFF); in get_random_fd() 158 jrand_seed[2] = (tv.tv_sec ^ tv.tv_usec) >> 16; in get_random_fd() 162 gettimeofday(&tv, 0); in get_random_fd() [all …]
|
/external/chromium/third_party/libevent/ |
D | event.c | 424 event_loopexit(const struct timeval *tv) in event_loopexit() argument 427 current_base, tv)); in event_loopexit() 431 event_base_loopexit(struct event_base *event_base, const struct timeval *tv) in event_base_loopexit() argument 434 event_base, tv)); in event_base_loopexit() 469 struct timeval tv; in event_base_loop() local 491 timeout_correct(base, &tv); in event_base_loop() 493 tv_p = &tv; in event_base_loop() 501 evutil_timerclear(&tv); in event_base_loop() 562 void (*callback)(int, short, void *), void *arg, const struct timeval *tv) in event_once() argument 564 return event_base_once(current_base, fd, events, callback, arg, tv); in event_once() [all …]
|
D | event.h | 462 #define evtimer_add(ev, tv) event_add(ev, tv) argument 481 #define evtimer_pending(ev, tv) event_pending(ev, EV_TIMEOUT, tv) argument 490 #define timeout_add(ev, tv) event_add(ev, tv) argument 510 #define timeout_pending(ev, tv) event_pending(ev, EV_TIMEOUT, tv) argument 513 #define signal_add(ev, tv) event_add(ev, tv) argument 517 #define signal_pending(ev, tv) event_pending(ev, EV_SIGNAL, tv) argument 641 int event_pending(struct event *ev, short event, struct timeval *tv); 1155 struct timeval *tv);
|
/external/strace/ |
D | time.c | 58 tprint_timeval32(struct tcb *tcp, const struct timeval32 *tv) in tprint_timeval32() argument 60 tprintf("{%u, %u}", tv->tv_sec, tv->tv_usec); in tprint_timeval32() 64 tprint_timeval(struct tcb *tcp, const struct timeval *tv) in tprint_timeval() argument 67 (unsigned long) tv->tv_sec, (unsigned long) tv->tv_usec); in tprint_timeval() 86 struct timeval32 tv; in printtv_bitness() local 88 if ((rc = umove(tcp, addr, &tv)) >= 0) { in printtv_bitness() 89 if (special && tv.tv_sec == 0 && in printtv_bitness() 90 tv.tv_usec == UTIME_NOW) in printtv_bitness() 92 else if (special && tv.tv_sec == 0 && in printtv_bitness() 93 tv.tv_usec == UTIME_OMIT) in printtv_bitness() [all …]
|
D | count.c | 51 count_syscall(struct tcb *tcp, struct timeval *tv) in count_syscall() argument 71 tv_sub(tv, tv, &tcp->etime); in count_syscall() 73 if (tv_cmp(tv, &tcp->dtime) > 0) in count_syscall() 90 *tv = tcp->dtime; in count_syscall() 91 else if (tv_cmp(tv, &one_tick) > 0) in count_syscall() 94 *tv = shortest; in count_syscall() 96 *tv = one_tick; in count_syscall() 100 if (tv_cmp(tv, &shortest) < 0) in count_syscall() 101 shortest = *tv; in count_syscall() 102 tv_add(&counts[tcp->scno].time, &counts[tcp->scno].time, tv); in count_syscall()
|
/external/llvm/tools/gold/ |
D | gold-plugin.cpp | 131 extern "C" ld_plugin_status onload(ld_plugin_tv *tv); 132 ld_plugin_status onload(ld_plugin_tv *tv) { in onload() argument 141 for (; tv->tv_tag != LDPT_NULL; ++tv) { in onload() 142 switch (tv->tv_tag) { in onload() 144 api_version = tv->tv_u.tv_val; in onload() 147 gold_version = tv->tv_u.tv_val; in onload() 150 output_name = tv->tv_u.tv_string; in onload() 153 switch (tv->tv_u.tv_val) { in onload() 163 tv->tv_u.tv_val); in onload() 170 options::process_plugin_option(tv->tv_u.tv_string); in onload() [all …]
|
/external/qemu/slirp/ |
D | tcp_timer.h | 117 #define TCPT_RANGESET(tv, value, tvmin, tvmax) { \ argument 118 (tv) = (value); \ 119 if ((tv) < (tvmin)) \ 120 (tv) = (tvmin); \ 121 else if ((tv) > (tvmax)) \ 122 (tv) = (tvmax); \
|
/external/qemu/slirp-android/ |
D | tcp_timer.h | 117 #define TCPT_RANGESET(tv, value, tvmin, tvmax) { \ argument 118 (tv) = (value); \ 119 if ((tv) < (tvmin)) \ 120 (tv) = (tvmin); \ 121 else if ((tv) > (tvmax)) \ 122 (tv) = (tvmax); \
|
/external/oprofile/libopagent/ |
D | opagent.c | 134 struct timeval tv; in op_open_agent() local 170 if (gettimeofday(&tv, NULL)) { in op_open_agent() 175 header.timestamp = tv.tv_sec; in op_open_agent() 199 struct timeval tv; in op_close_agent() local 207 if (gettimeofday(&tv, NULL)) { in op_close_agent() 211 rec.timestamp = tv.tv_sec; in op_close_agent() 225 struct timeval tv; in op_write_native_code() local 247 if (gettimeofday(&tv, NULL)) { in op_write_native_code() 252 rec.timestamp = tv.tv_sec; in op_write_native_code() 284 struct timeval tv; in op_write_debug_line_info() local [all …]
|
/external/stlport/test/unit/ |
D | equal_test.cpp | 105 vector<Test> tv; in equal_range2() local 110 tv.push_back(i); in equal_range2() 113 it = upper_bound(tv.begin(), tv.end(), 5); in equal_range2() 114 CPPUNIT_ASSERT( it != tv.end() ); in equal_range2() 117 it = lower_bound(tv.begin(), tv.end(), 5); in equal_range2() 118 CPPUNIT_ASSERT( it != tv.end() ); in equal_range2() 121 p = equal_range(tv.begin(), tv.end(), 5); in equal_range2() 123 CPPUNIT_ASSERT( p.first != tv.end() ); in equal_range2() 124 CPPUNIT_ASSERT( p.second != tv.end() ); in equal_range2()
|
/external/dhcpcd/ |
D | arp.c | 205 struct timeval tv; in send_arp_announce() local 234 tv.tv_sec = state->interval - DHCP_RAND_MIN; in send_arp_announce() 235 tv.tv_usec = arc4random() % (DHCP_RAND_MAX_U - DHCP_RAND_MIN_U); in send_arp_announce() 236 timernorm(&tv); in send_arp_announce() 237 add_timeout_tv(&tv, start_discover, iface); in send_arp_announce() 251 struct timeval tv; in send_arp_probe() local 278 tv.tv_sec = PROBE_MIN; in send_arp_probe() 279 tv.tv_usec = arc4random() % (PROBE_MAX_U - PROBE_MIN_U); in send_arp_probe() 280 timernorm(&tv); in send_arp_probe() 281 add_timeout_tv(&tv, send_arp_probe, iface); in send_arp_probe() [all …]
|
D | eloop.c | 176 struct timeval tv; in add_q_timeout_sec() local 178 tv.tv_sec = when; in add_q_timeout_sec() 179 tv.tv_usec = 0; in add_q_timeout_sec() 180 add_q_timeout_tv(queue, &tv, callback, arg); in add_q_timeout_sec() 288 struct timeval tv; in start_eloop() local 307 timersub(&timeouts->when, &now, &tv); in start_eloop() 308 if (tv.tv_sec > INT_MAX / 1000 || in start_eloop() 309 (tv.tv_sec == INT_MAX / 1000 && in start_eloop() 310 (tv.tv_usec + 999) / 1000 > INT_MAX % 1000)) in start_eloop() 313 msecs = tv.tv_sec * 1000 + in start_eloop() [all …]
|
/external/qemu/ |
D | oslib-posix.c | 116 struct timeval tv[2], tv_now; in qemu_utimensat() local 147 tv[i].tv_sec = tv_now.tv_sec; in qemu_utimensat() 148 tv[i].tv_usec = tv_now.tv_usec; in qemu_utimensat() 150 tv[i].tv_sec = (i == 0) ? st.st_atime : st.st_mtime; in qemu_utimensat() 151 tv[i].tv_usec = 0; in qemu_utimensat() 153 tv[i].tv_sec = times[i].tv_sec; in qemu_utimensat() 154 tv[i].tv_usec = times[i].tv_nsec / 1000; in qemu_utimensat() 158 return utimes(path, &tv[0]); in qemu_utimensat()
|
/external/libusb/libusb/ |
D | io.c | 1644 API_EXPORTED int libusb_wait_for_event(libusb_context *ctx, struct timeval *tv) in libusb_wait_for_event() argument 1650 if (tv == NULL) { in libusb_wait_for_event() 1661 timeout.tv_sec += tv->tv_sec; in libusb_wait_for_event() 1662 timeout.tv_nsec += tv->tv_usec * 1000; in libusb_wait_for_event() 1776 static int handle_events(struct libusb_context *ctx, struct timeval *tv) in handle_events() argument 1804 timeout_ms = (tv->tv_sec * 1000) + (tv->tv_usec / 1000); in handle_events() 1807 if (tv->tv_usec % 1000) in handle_events() 1882 static int get_next_timeout(libusb_context *ctx, struct timeval *tv, in get_next_timeout() argument 1893 if (timercmp(&timeout, tv, <)) in get_next_timeout() 1896 *out = *tv; in get_next_timeout() [all …]
|
/external/ppp/pppd/plugins/radius/ |
D | util.c | 56 struct timeval tv; in rc_mdelay() local 58 tv.tv_sec = (int) msecs / 1000; in rc_mdelay() 59 tv.tv_usec = (msecs % 1000) * 1000; in rc_mdelay() 61 select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL, &tv); in rc_mdelay()
|