| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/hkdf/ |
| H A D | hkdf_test.c | 187 run_test(int i, hkdf_tv_t *tv) in run_test() argument 194 ret = hkdf_sha512((uint8_t *)tv->ikm, tv->ikm_len, (uint8_t *)tv->salt, in run_test() 195 tv->salt_len, (uint8_t *)tv->info, tv->info_len, okey, tv->okm_len); in run_test() 201 if (bcmp(okey, tv->okm, tv->okm_len) != 0) { in run_test() 203 hexdump("Expected:", (uint8_t *)tv->okm, tv->okm_len); in run_test() 204 hexdump("Actual: ", okey, tv->okm_len); in run_test()
|
| /f-stack/freebsd/sys/ |
| H A D | timespec.h | 43 #define TIMEVAL_TO_TIMESPEC(tv, ts) \ argument 45 (ts)->tv_sec = (tv)->tv_sec; \ 46 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 48 #define TIMESPEC_TO_TIMEVAL(tv, ts) \ argument 50 (tv)->tv_sec = (ts)->tv_sec; \ 51 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
| /f-stack/freebsd/contrib/libsodium/test/default/ |
| H A D | xchacha20.c | 46 tv = &tvs[i]; in tv_hchacha20() 48 tv->key, strlen(tv->key), NULL, NULL, NULL); in tv_hchacha20() 50 tv->in, strlen(tv->in), NULL, NULL, NULL); in tv_hchacha20() 52 tv->out, strlen(tv->out), NULL, NULL, NULL); in tv_hchacha20() 117 tv = &tvs[i]; in tv_stream_xchacha20() 120 tv->key, strlen(tv->key), NULL, NULL, NULL); in tv_stream_xchacha20() 122 tv->nonce, strlen(tv->nonce), NULL, NULL, NULL); in tv_stream_xchacha20() 124 tv->out, strlen(tv->out), NULL, &out_len, NULL); in tv_stream_xchacha20() 233 tv->key, strlen(tv->key), NULL, NULL, NULL); in tv_secretbox_xchacha20poly1305() 235 tv->nonce, strlen(tv->nonce), NULL, NULL, NULL); in tv_secretbox_xchacha20poly1305() [all …]
|
| H A D | keygen.c | 38 const KeygenTV *tv; in tv_keygen() local 44 tv = &tvs[i]; in tv_keygen() 45 key = (unsigned char *) sodium_malloc(tv->key_len); in tv_keygen() 46 key[tv->key_len - 1U] = 0; in tv_keygen() 48 tv->fn(key); in tv_keygen() 49 if (key[tv->key_len - 1U] != 0) { in tv_keygen()
|
| H A D | pwhash_scrypt_ll.c | 24 tv(const char *passwd, const char *salt, uint64_t N, uint32_t r, uint32_t p) in tv() function 54 tv(passwd1, salt1, N1, r1, p1); in main() 55 tv(passwd2, salt2, N2, r2, p2); in main() 56 tv(passwd3, salt3, N3, r3, p3); in main()
|
| H A D | pwhash_argon2i.exp | 4 [tv] pwhash failure (maybe intentional): [3] 7 [tv] pwhash failure (maybe intentional): [6]
|
| /f-stack/freebsd/contrib/openzfs/lib/libspl/include/sys/ |
| H A D | time.h | 85 struct timeval tv; in gethrestime() local 86 (void) gettimeofday(&tv, NULL); in gethrestime() 87 ts->tv_sec = tv.tv_sec; in gethrestime() 88 ts->tv_nsec = tv.tv_usec * NSEC_PER_USEC; in gethrestime() 94 struct timeval tv; in gethrestime_sec() local 95 (void) gettimeofday(&tv, NULL); in gethrestime_sec() 96 return (tv.tv_sec); in gethrestime_sec()
|
| /f-stack/tools/compat/include/netinet/ |
| H A D | tcp_timer.h | 139 #define TCPT_RANGESET(tv, value, tvmin, tvmax) do { \ argument 140 (tv) = (value) + tcp_rexmit_slop; \ 141 if ((u_long)(tv) < (u_long)(tvmin)) \ 142 (tv) = (tvmin); \ 143 if ((u_long)(tv) > (u_long)(tvmax)) \ 144 (tv) = (tvmax); \
|
| H A D | tcp_seq.h | 91 struct timeval tv; in tcp_ts_getticks() local 97 getmicrouptime(&tv); in tcp_ts_getticks() 98 return (tv.tv_sec * 1000 + tv.tv_usec / 1000); in tcp_ts_getticks()
|
| /f-stack/freebsd/netinet/ |
| H A D | tcp_timer.h | 139 #define TCPT_RANGESET(tv, value, tvmin, tvmax) do { \ argument 140 (tv) = (value) + tcp_rexmit_slop; \ 141 if ((u_long)(tv) < (u_long)(tvmin)) \ 142 (tv) = (tvmin); \ 143 if ((u_long)(tv) > (u_long)(tvmax)) \ 144 (tv) = (tvmax); \
|
| H A D | tcp_hpts.h | 229 struct timeval tv; in tcp_gethptstick() local 232 sv = &tv; in tcp_gethptstick() 256 tcp_get_usecs(struct timeval *tv) in tcp_get_usecs() argument 260 if (tv == NULL) in tcp_get_usecs() 261 tv = &tvd; in tcp_get_usecs() 262 microuptime(tv); in tcp_get_usecs() 263 return (tcp_tv_to_usectick(tv)); in tcp_get_usecs()
|
| H A D | tcp_seq.h | 91 struct timeval tv; in tcp_ts_getticks() local 97 getmicrouptime(&tv); in tcp_ts_getticks() 98 return (tv.tv_sec * 1000 + tv.tv_usec / 1000); in tcp_ts_getticks()
|
| H A D | tcp_hpts.c | 1018 tv.tv_sec = 0; in tcp_hpts_insert_locked() 1019 tv.tv_usec = 0; in tcp_hpts_insert_locked() 1021 tv.tv_sec++; in tcp_hpts_insert_locked() 1053 struct timeval tv; in tcp_hpts_insert_diag() local 1062 microuptime(&tv); in tcp_hpts_insert_diag() 1368 struct timeval tv; in tcp_hptsi() local 1816 struct timeval tv; in tcp_hpts_thread() local 1839 tv.tv_sec = 0; in tcp_hpts_thread() 1851 sb = tvtosbt(tv); in tcp_hpts_thread() 1873 struct timeval tv; in tcp_init_hptsi() local [all …]
|
| /f-stack/app/nginx-1.16.1/auto/os/ |
| H A D | darwin | 73 struct timeval tv, tv0; 80 gettimeofday(&tv, 0); 83 timersub(&tv0, &tv, &tv); 85 if (tv.tv_sec * 1000000 + tv.tv_usec < 900000) return 1;"
|
| /f-stack/tools/libxo/tests/gettext/ |
| H A D | gt_01.c | 89 struct timeval tv; in main() local 90 tv.tv_sec = 1435085229; in main() 91 tv.tv_usec = 123456; in main() 94 (void) gmtime_r(&tv.tv_sec, &tm); in main()
|
| /f-stack/freebsd/kern/ |
| H A D | kern_time.c | 126 delta = *tv; in settime() 147 tv2 = *tv; in settime() 160 laststep = *tv; in settime() 667 struct timeval *tv; member 679 if (uap->tv) { in sys_settimeofday() 705 if (tv) { in kern_settimeofday() 706 if (tv->tv_usec < 0 || tv->tv_usec >= 1000000 || in kern_settimeofday() 934 if (tv->tv_sec < 0 || tv->tv_usec < 0 || tv->tv_usec >= 1000000) in itimerfix() 936 if (tv->tv_sec == 0 && tv->tv_usec != 0 && in itimerfix() 1032 delta = tv; in ratecheck() [all …]
|
| H A D | kern_acct.c | 477 encode_timeval(struct timeval tv) in encode_timeval() argument 489 if (tv.tv_sec == 0) { in encode_timeval() 490 if (tv.tv_usec == 0) in encode_timeval() 493 val = tv.tv_usec; in encode_timeval() 499 log2_s = fls(tv.tv_sec) - 1; in encode_timeval() 502 val = 1000000 * tv.tv_sec + tv.tv_usec; in encode_timeval() 505 val = (unsigned int)(((uint64_t)1000000 * tv.tv_sec + in encode_timeval() 506 tv.tv_usec) >> exp); in encode_timeval()
|
| /f-stack/freebsd/contrib/device-tree/Bindings/display/ |
| H A D | allwinner,sun4i-a10-tv-encoder.yaml | 4 $id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-tv-encoder.yaml# 15 const: allwinner,sun4i-a10-tv-encoder 45 tve0: tv-encoder@1c0a000 { 46 compatible = "allwinner,sun4i-a10-tv-encoder";
|
| /f-stack/tools/ngctl/ |
| H A D | msg.c | 102 struct timeval tv; in MsgCmd() local 107 memset(&tv, 0, sizeof(tv)); in MsgCmd() 108 switch (select(csock + 1, &rfds, NULL, NULL, &tv)) { in MsgCmd()
|
| /f-stack/freebsd/arm/nvidia/ |
| H A D | tegra_rtc.c | 130 struct timeval tv; in tegra_rtc_gettime() local 139 tv.tv_sec = sec; in tegra_rtc_gettime() 140 tv.tv_usec = msec * 1000; in tegra_rtc_gettime() 141 TIMEVAL_TO_TIMESPEC(&tv, ts); in tegra_rtc_gettime() 149 struct timeval tv; in tegra_rtc_settime() local 154 TIMESPEC_TO_TIMEVAL(&tv, ts); in tegra_rtc_settime() 156 WR4(sc, RTC_SECONDS, tv.tv_sec); in tegra_rtc_settime()
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | ae.c | 191 struct timeval tv; in aeGetTime() local 194 ff_gettimeofday(&tv, NULL); in aeGetTime() 196 gettimeofday(&tv, NULL); in aeGetTime() 198 *seconds = tv.tv_sec; in aeGetTime() 199 *milliseconds = tv.tv_usec/1000; in aeGetTime() 381 struct timeval tv, *tvp; in aeProcessEvents() local 389 tvp = &tv; in aeProcessEvents() 409 tv.tv_sec = tv.tv_usec = 0; in aeProcessEvents() 410 tvp = &tv; in aeProcessEvents()
|
| /f-stack/dpdk/drivers/net/hns3/ |
| H A D | hns3_intr.c | 2020 ret, tv.tv_sec, tv.tv_usec); in hns3_reset_pre() 2024 tv.tv_sec, tv.tv_usec); in hns3_reset_pre() 2033 ret, tv.tv_sec, tv.tv_usec); in hns3_reset_pre() 2037 tv.tv_sec, tv.tv_usec); in hns3_reset_pre() 2074 tv.tv_sec, tv.tv_usec); in hns3_reset_post() 2093 tv.tv_sec, tv.tv_usec); in hns3_reset_post() 2124 tv.tv_sec, tv.tv_usec); in hns3_reset_post() 2192 tv.tv_sec, tv.tv_usec); in hns3_reset_process() 2202 tv.tv_sec, tv.tv_usec); in hns3_reset_process() 2234 tv.tv_sec, tv.tv_usec); in hns3_reset_process() [all …]
|
| /f-stack/lib/ |
| H A D | ff_glue.c | 396 itimerfix(struct timeval *tv) in itimerfix() argument 399 if (tv->tv_sec < 0 || tv->tv_usec < 0 || tv->tv_usec >= 1000000) in itimerfix() 401 if (tv->tv_sec == 0 && tv->tv_usec != 0 && tv->tv_usec < tick) in itimerfix() 402 tv->tv_usec = tick; in itimerfix() 488 struct timeval tv, delta; in ratecheck() local 492 delta = tv; in ratecheck() 501 *lasttime = tv; in ratecheck() 547 tvtohz(tv) in tvtohz() argument 548 struct timeval *tv; in tvtohz() 573 sec = tv->tv_sec; [all …]
|
| /f-stack/freebsd/contrib/vchiq/interface/compat/ |
| H A D | vchi_bsd.h | 350 struct timeval tv; in _jiffies() local 352 microuptime(&tv); in _jiffies() 353 return tvtohz(&tv); in _jiffies() 359 struct timeval tv; in msecs_to_jiffies() local 361 tv.tv_sec = msecs / 1000000UL; in msecs_to_jiffies() 362 tv.tv_usec = msecs % 1000000UL; in msecs_to_jiffies() 363 return tvtohz(&tv); in msecs_to_jiffies()
|
| /f-stack/app/nginx-1.16.1/src/core/ |
| H A D | ngx_times.c | 88 struct timeval tv; in ngx_time_update() local 94 ngx_gettimeofday(&tv); in ngx_time_update() 96 sec = tv.tv_sec; in ngx_time_update() 97 msec = tv.tv_usec / 1000; in ngx_time_update() 229 struct timeval tv; in ngx_time_sigsafe_update() local 235 ngx_gettimeofday(&tv); in ngx_time_sigsafe_update() 237 sec = tv.tv_sec; in ngx_time_sigsafe_update()
|