/external/ltp/testcases/kernel/io/aio/ |
D | aio01.c | 99 int i, j, sec, usec; in main() local 147 usec = etv.tv_usec - stv.tv_usec; in main() 148 if (usec < 0) { in main() 149 usec += 1000000; in main() 153 nr, sec, usec); in main() 178 usec = etv.tv_usec - stv.tv_usec; in main() 179 if (usec < 0) { in main() 180 usec += 1000000; in main() 184 nr, sec, usec); in main() 209 usec = etv.tv_usec - stv.tv_usec; in main() [all …]
|
/external/u-boot/arch/m68k/lib/ |
D | time.c | 33 void __udelay(unsigned long usec) in __udelay() argument 38 while (usec > 0) { in __udelay() 39 if (usec > 65000) in __udelay() 42 tmp = usec; in __udelay() 43 usec = usec - tmp; in __udelay() 118 void __udelay(unsigned long usec) in __udelay() argument 123 while (usec > 0) { in __udelay() 124 if (usec > 65000) in __udelay() 127 tmp = usec; in __udelay() 128 usec = usec - tmp; in __udelay() [all …]
|
/external/u-boot/arch/arm/cpu/armv7/ls102xa/ |
D | timer.c | 19 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument 23 if (usec < 1000) in usec2ticks() 24 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks() 26 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks() 43 static inline unsigned long long us_to_tick(unsigned long long usec) in us_to_tick() argument 49 usec = usec * freq + 999999; in us_to_tick() 50 do_div(usec, 1000000); in us_to_tick() 52 return usec; in us_to_tick() 104 void __udelay(unsigned long usec) in __udelay() argument 110 tmo = us_to_tick(usec); /* convert usecs to ticks */ in __udelay()
|
/external/u-boot/arch/arm/mach-imx/ |
D | syscounter.c | 22 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument 26 if (usec < 1000) in usec2ticks() 27 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks() 29 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks() 46 static inline unsigned long long us_to_tick(unsigned long long usec) in us_to_tick() argument 52 usec = usec * freq + 999999; in us_to_tick() 53 do_div(usec, 1000000); in us_to_tick() 55 return usec; in us_to_tick() 102 void __udelay(unsigned long usec) in __udelay() argument 107 tmo = us_to_tick(usec); in __udelay()
|
D | timer.c | 128 unsigned long long usec = _usec; in usec2ticks() local 130 usec *= get_tbclk(); in usec2ticks() 131 usec += 999999; in usec2ticks() 132 do_div(usec, 1000000); in usec2ticks() 134 return usec; in usec2ticks()
|
/external/wpa_supplicant_8/src/utils/ |
D | os.h | 19 void os_sleep(os_time_t sec, os_time_t usec); 23 os_time_t usec; member 28 os_time_t usec; member 51 (a->sec == b->sec && a->usec < b->usec); in os_time_before() 59 res->usec = a->usec - b->usec; in os_time_sub() 60 if (res->usec < 0) { in os_time_sub() 62 res->usec += 1000000; in os_time_sub() 73 (a->sec == b->sec && a->usec < b->usec); in os_reltime_before() 81 res->usec = a->usec - b->usec; in os_reltime_sub() 82 if (res->usec < 0) { in os_reltime_sub() [all …]
|
/external/u-boot/lib/ |
D | time.c | 142 static uint64_t usec_to_tick(unsigned long usec) in usec_to_tick() argument 144 uint64_t tick = usec; in usec_to_tick() 150 void __weak __udelay(unsigned long usec) in __udelay() argument 154 tmp = get_ticks() + usec_to_tick(usec); /* get current timestamp */ in __udelay() 162 void udelay(unsigned long usec) in udelay() argument 168 kv = usec > CONFIG_WD_PERIOD ? CONFIG_WD_PERIOD : usec; in udelay() 170 usec -= kv; in udelay() 171 } while(usec); in udelay()
|
/external/wpa_supplicant_8/src/ap/ |
D | bss_load.c | 20 unsigned int *sec, unsigned int *usec) in get_bss_load_update_timeout() argument 36 *usec = (update_timeout % 1000) * 1024; in get_bss_load_update_timeout() 45 unsigned int sec, usec; in update_channel_utilization() local 60 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in update_channel_utilization() 78 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in update_channel_utilization() 85 unsigned int sec, usec; in bss_load_update_init() local 87 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in bss_load_update_init() 90 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in bss_load_update_init()
|
/external/iperf3/src/ |
D | iperf_udp.c | 64 uint32_t sec, usec; in iperf_udp_recv() local 88 memcpy(&usec, sp->buffer+4, sizeof(usec)); in iperf_udp_recv() 91 usec = ntohl(usec); in iperf_udp_recv() 94 sent_time.usecs = usec; in iperf_udp_recv() 99 memcpy(&usec, sp->buffer+4, sizeof(usec)); in iperf_udp_recv() 102 usec = ntohl(usec); in iperf_udp_recv() 105 sent_time.usecs = usec; in iperf_udp_recv() 202 uint32_t sec, usec; in iperf_udp_send() local 206 usec = htonl(before.usecs); in iperf_udp_send() 210 memcpy(sp->buffer+4, &usec, sizeof(usec)); in iperf_udp_send() [all …]
|
/external/u-boot/arch/arm/cpu/armv7/vf610/ |
D | timer.c | 26 static inline unsigned long long us_to_tick(unsigned long long usec) in us_to_tick() argument 28 usec = usec * mxc_get_clock(MXC_IPG_CLK) + 999999; in us_to_tick() 29 do_div(usec, 1000000); in us_to_tick() 31 return usec; in us_to_tick() 71 void __udelay(unsigned long usec) in __udelay() argument 77 tmo = us_to_tick(usec); /* convert usecs to ticks */ in __udelay()
|
/external/u-boot/arch/powerpc/lib/ |
D | time.c | 17 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument 21 if (usec < 1000) { in usec2ticks() 22 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks() 24 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks() 37 void __udelay(unsigned long usec) in __udelay() argument 39 ulong ticks = usec2ticks (usec); in __udelay()
|
/external/libdrm/tests/ |
D | drmsl.c | 68 double usec; in do_time() local 98 usec = (double)(stop.tv_sec * 1000000 + stop.tv_usec in do_time() 101 printf("%0.2f microseconds for list length %d\n", usec, size); in do_time() 106 return usec; in do_time() 139 double usec, usec2, usec3, usec4; in main() local 170 usec = do_time(100, 10000); in main() 173 1000.0/100.0, usec2 / usec); in main() 177 10000.0/100.0, usec3 / usec); in main() 181 100000.0/100.0, usec4 / usec); in main()
|
/external/u-boot/arch/arm/cpu/sa1100/ |
D | timer.c | 20 void __udelay (unsigned long usec) in __udelay() argument 22 udelay_masked (usec); in __udelay() 30 void udelay_masked (unsigned long usec) in udelay_masked() argument 36 if (usec >= 1000) { in udelay_masked() 37 tmo = usec / 1000; in udelay_masked() 41 tmo = usec * CONFIG_SYS_HZ; in udelay_masked()
|
/external/tcpdump/ |
D | print-timed.c | 102 long sec, usec; in timed_print() local 127 usec = EXTRACT_32BITS(&tsp->tsp_time.tv_usec); in timed_print() 129 if (usec < 0) in timed_print() 133 if (sec < 0 && usec != 0) { in timed_print() 137 usec = 1000000 - usec; in timed_print() 139 ND_PRINT((ndo, "%ld.%06ld", sec, usec)); in timed_print()
|
/external/ltp/testcases/kernel/controllers/cgroup/ |
D | cgroup_regression_6_2.c | 23 int usec; in main() local 26 usec = atoi(argv[1]); in main() 28 usec = DEFAULT_USEC; in main() 31 usleep(usec); in main()
|
/external/ltp/lib/ |
D | tst_timer_test.c | 33 static int (*sample)(int clk_id, long long usec); 264 void do_timer_test(long long usec, unsigned int nsamples) in do_timer_test() argument 269 long long threshold = compute_threshold(usec, keep_samples); in do_timer_test() 275 scall, usec, nsamples, 1.00 * threshold / (keep_samples)); in do_timer_test() 279 if (sample(CLOCK_MONOTONIC, usec)) { in do_timer_test() 289 for (i = 0; samples[i] > 10 * usec && i < (int)nsamples; i++) { in do_timer_test() 299 for (i = nsamples - 1; samples[i] < usec && i > -1; i--); in do_timer_test() 320 if (trunc_mean > (nsamples - discard) * usec + threshold) { in do_timer_test() 395 long long usec; member 409 do_timer_test(tcases[n].usec, tcases[n].samples); in timer_test_fn()
|
/external/u-boot/arch/arm/cpu/armv7/stv0991/ |
D | timer.c | 60 void __udelay(unsigned long usec) in __udelay() argument 67 rndoff = (usec % 10) ? 1 : 0; in __udelay() 70 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay() 92 void udelay_masked(unsigned long usec) in udelay_masked() argument 94 return udelay(usec); in udelay_masked()
|
/external/u-boot/arch/arm/cpu/arm926ejs/spear/ |
D | timer.c | 69 void __udelay(unsigned long usec) in __udelay() argument 76 rndoff = (usec % 10) ? 1 : 0; in __udelay() 79 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay() 101 void udelay_masked(unsigned long usec) in udelay_masked() argument 103 return udelay(usec); in udelay_masked()
|
/external/u-boot/arch/arm/mach-rockchip/ |
D | rk_timer.c | 23 static uint64_t usec_to_tick(unsigned int usec) in usec_to_tick() argument 25 uint64_t tick = usec; in usec_to_tick() 30 void rockchip_udelay(unsigned int usec) in rockchip_udelay() argument 35 tmp = rockchip_get_ticks() + usec_to_tick(usec); in rockchip_udelay()
|
/external/u-boot/arch/arm/cpu/armv8/ |
D | generic_timer.c | 97 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument 100 if (usec < 1000) in usec2ticks() 101 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks() 103 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks()
|
/external/u-boot/arch/arm/cpu/arm920t/imx/ |
D | timer.c | 49 void udelay_masked (unsigned long usec) in udelay_masked() argument 51 ulong endtime = get_timer_masked() + usec; in udelay_masked() 60 void __udelay (unsigned long usec) in __udelay() argument 62 udelay_masked(usec); in __udelay()
|
/external/syzkaller/vendor/golang.org/x/sys/unix/ |
D | timestruct.go | 53 usec := nsec % 1e9 / 1e3 55 if usec < 0 { 56 usec += 1e6 59 return setTimeval(sec, usec)
|
D | syscall_darwin_386.go | 18 func setTimeval(sec, usec int64) Timeval { 19 return Timeval{Sec: int32(sec), Usec: int32(usec)} 27 sec, usec, err := gettimeofday(tv) 29 tv.Usec = int32(usec)
|
D | syscall_darwin_arm64.go | 18 func setTimeval(sec, usec int64) Timeval { 19 return Timeval{Sec: sec, Usec: int32(usec)} 27 sec, usec, err := gettimeofday(tv) 29 tv.Usec = usec
|
/external/u-boot/board/armltd/integrator/ |
D | timer.c | 102 void __udelay (unsigned long usec) in __udelay() argument 107 tmo = usec * CONFIG_SYS_HZ; in __udelay() 142 void udelay_masked (unsigned long usec) in udelay_masked() argument 144 udelay(usec); in udelay_masked()
|