/freebsd/lib/libsys/ |
H A D | __vdso_gettimeofday.c | 60 binuptime(struct bintime *bt, struct vdso_timekeep *tk, bool abs) in binuptime() argument 69 if (!tk->tk_enabled) in binuptime() 72 curr = atomic_load_acq_32(&tk->tk_current); in binuptime() 73 th = &tk->tk_th[curr]; in binuptime() 102 } while (curr != tk->tk_current || gen == 0 || gen != th->th_gen); in binuptime() 107 getnanouptime(struct bintime *bt, struct vdso_timekeep *tk) in getnanouptime() argument 113 if (!tk->tk_enabled) in getnanouptime() 116 curr = atomic_load_acq_32(&tk->tk_current); in getnanouptime() 117 th = &tk->tk_th[curr]; in getnanouptime() 126 } while (curr != tk->tk_current || gen == 0 || gen != th->th_gen); in getnanouptime() [all …]
|
/freebsd/sys/compat/linux/ |
H A D | linux_vdso_gtod.inc | 146 __vdso_gettimekeep(struct vdso_timekeep **tk) 149 *tk = (struct vdso_timekeep *)kern_timekeep_base; 174 freebsd_binuptime(struct bintime *bt, struct vdso_timekeep *tk, bool abs) 183 if (!tk->tk_enabled) 186 curr = atomic_load_acq_32(&tk->tk_current); 187 th = &tk->tk_th[curr]; 216 } while (curr != tk->tk_current || gen == 0 || gen != th->th_gen); 221 freebsd_getnanouptime(struct bintime *bt, struct vdso_timekeep *tk) 227 if (!tk->tk_enabled) 230 curr = atomic_load_acq_32(&tk->tk_current); [all …]
|
/freebsd/sys/kern/ |
H A D | kern_sharedpage.c | 147 struct vdso_timekeep *tk; in timehands_update() local 159 tk = (struct vdso_timekeep *)(shared_page_mapping + in timehands_update() 161 tk->tk_th[idx].th_gen = 0; in timehands_update() 164 tk->tk_th[idx] = th; in timehands_update() 165 atomic_store_rel_32(&tk->tk_th[idx].th_gen, svtk->sv_timekeep_gen); in timehands_update() 166 atomic_store_rel_32(&tk->tk_current, idx); in timehands_update() 172 tk->tk_enabled = enabled; in timehands_update() 180 struct vdso_timekeep32 *tk; in timehands_update32() local 192 tk = (struct vdso_timekeep32 *)(shared_page_mapping + in timehands_update32() 194 tk->tk_th[idx].th_gen = 0; in timehands_update32() [all …]
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | sha1.c | 30 unsigned char tk[20]; in hmac_sha1_vector() local 45 if (sha1_vector(1, &key, &key_len, tk)) in hmac_sha1_vector() 47 key = tk; in hmac_sha1_vector() 90 forced_memzero(tk, sizeof(tk)); in hmac_sha1_vector()
|
H A D | md5.c | 30 u8 tk[16]; in hmac_md5_vector() local 45 if (md5_vector(1, &key, &key_len, tk)) in hmac_md5_vector() 47 key = tk; in hmac_md5_vector() 91 os_memset(tk, 0, sizeof(tk)); in hmac_md5_vector()
|
H A D | sha256.c | 30 unsigned char tk[32]; in hmac_sha256_vector() local 45 if (sha256_vector(1, &key, &key_len, tk) < 0) in hmac_sha256_vector() 47 key = tk; in hmac_sha256_vector() 94 forced_memzero(tk, sizeof(tk)); in hmac_sha256_vector()
|
H A D | crypto_internal.c | 44 u8 tk[32]; in crypto_hash_init() local 79 MD5Final(tk, &ctx->u.md5); in crypto_hash_init() 80 key = tk; in crypto_hash_init() 98 SHA1Final(tk, &ctx->u.sha1); in crypto_hash_init() 99 key = tk; in crypto_hash_init() 118 sha256_done(&ctx->u.sha256, tk); in crypto_hash_init() 119 key = tk; in crypto_hash_init()
|
H A D | sha512.c | 30 unsigned char tk[64]; in hmac_sha512_vector() local 44 if (sha512_vector(1, &key, &key_len, tk) < 0) in hmac_sha512_vector() 46 key = tk; in hmac_sha512_vector()
|
H A D | sha384.c | 30 unsigned char tk[48]; in hmac_sha384_vector() local 44 if (sha384_vector(1, &key, &key_len, tk) < 0) in hmac_sha384_vector() 46 key = tk; in hmac_sha384_vector()
|
/freebsd/lib/libsys/riscv/ |
H A D | __vdso_gettc.c | 50 __vdso_gettimekeep(struct vdso_timekeep **tk) in __vdso_gettimekeep() argument 52 return (_elf_aux_info(AT_TIMEKEEP, tk, sizeof(*tk))); in __vdso_gettimekeep()
|
/freebsd/lib/libsys/powerpc/ |
H A D | __vdso_gettc.c | 61 __vdso_gettimekeep(struct vdso_timekeep **tk) in __vdso_gettimekeep() argument 64 return (_elf_aux_info(AT_TIMEKEEP, tk, sizeof(*tk))); in __vdso_gettimekeep()
|
/freebsd/lib/libsys/powerpc64/ |
H A D | __vdso_gettc.c | 58 __vdso_gettimekeep(struct vdso_timekeep **tk) in __vdso_gettimekeep() argument 61 return (_elf_aux_info(AT_TIMEKEEP, tk, sizeof(*tk))); in __vdso_gettimekeep()
|
/freebsd/lib/libsys/aarch64/ |
H A D | __vdso_gettc.c | 69 __vdso_gettimekeep(struct vdso_timekeep **tk) in __vdso_gettimekeep() argument 72 return (_elf_aux_info(AT_TIMEKEEP, tk, sizeof(*tk))); in __vdso_gettimekeep()
|
/freebsd/lib/libsys/arm/ |
H A D | __vdso_gettc.c | 77 __vdso_gettimekeep(struct vdso_timekeep **tk) in __vdso_gettimekeep() argument 80 return (_elf_aux_info(AT_TIMEKEEP, tk, sizeof(*tk))); in __vdso_gettimekeep()
|
/freebsd/contrib/wpa/src/common/ |
H A D | common_module_tests.c | 637 const u8 tk[] = { in pasn_test_pasn_auth() local 665 if (ptk.tk_len != sizeof(tk) || in pasn_test_pasn_auth() 666 os_memcmp(tk, ptk.tk, sizeof(tk)) != 0) { in pasn_test_pasn_auth() 716 const u8 tk[] = { in pasn_test_no_pasn_auth() local 750 if (ptk.tk_len != sizeof(tk) || in pasn_test_no_pasn_auth() 751 os_memcmp(tk, ptk.tk, sizeof(tk)) != 0) { in pasn_test_no_pasn_auth()
|
/freebsd/usr.bin/indent/ |
H A D | parse.c | 52 parse(int tk) /* tk: the code for the construct scanned */ in parse() argument 57 printf("%2d - %s\n", tk, token); in parse() 60 while (ps.p_stack[ps.tos] == ifhead && tk != elselit) { in parse() 68 switch (tk) { /* go on and figure out what to do with the in parse() 105 ps.p_stack[++ps.tos] = tk; in parse()
|
/freebsd/contrib/sqlite3/tea/win/ |
H A D | rules.vc | 626 !if "$(PROJECT)" == "tk" 627 _TK_H = ..\generic\tk.h 633 !if exist("$(_INSTALLDIR)\..\include\tk.h") 636 _TK_H = $(_TKDIR)\include\tk.h 638 !elseif exist("$(_TCLDIR)\include\tk.h") 641 _TK_H = $(_TKDIR)\include\tk.h 646 !if exist("$(_TKDIR)\include\tk.h") 648 _TK_H = $(_TKDIR)\include\tk.h 649 !elseif exist("$(_TKDIR)\generic\tk.h") 651 _TK_H = $(_TKDIR)\generic\tk.h [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | signature.c | 55 unsigned char tk[16]; in signature_compute_hmac_md5() local 65 MD5_Final(tk, &tctx); in signature_compute_hmac_md5() 67 key = tk; in signature_compute_hmac_md5()
|
/freebsd/contrib/dma/ |
H A D | crypto.c | 234 unsigned char tk[16]; in hmac_md5() local 243 MD5_Final(tk, &tctx); in hmac_md5() 245 key = tk; in hmac_md5()
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | ftm-initiator.c | 36 u8 tk[TK_11AZ_LEN]; member 46 u8 *tk; in iwl_mvm_ftm_add_pasn_sta() 50 u8 *addr, u32 cipher, u8 *tk, u32 tk_len, in iwl_mvm_ftm_add_pasn_sta() 123 if (tk && tk_len) in iwl_mvm_ftm_add_pasn_sta() 124 memcpy(pasn->tk, tk, sizeof(pasn->tk)); 739 target->tk = key->key; in iwl_mvm_ftm_set_secured_ranging() 746 u8 *bssid, u8 *cipher, u8 *hltk, u8 *tk, in iwl_mvm_ftm_set_secured_ranging() 781 memcpy(tk, entr in iwl_mvm_ftm_start_v11() 44 iwl_mvm_ftm_add_pasn_sta(struct iwl_mvm * mvm,struct ieee80211_vif * vif,u8 * addr,u32 cipher,u8 * tk,u32 tk_len,u8 * hltk,u32 hltk_len) iwl_mvm_ftm_add_pasn_sta() argument [all...] |
H A D | ftm-responder.c | 330 u8 *addr, u32 cipher, u8 *tk, u32 tk_len, in iwl_mvm_ftm_respoder_add_pasn_sta() 352 if ((!hltk || !hltk_len) && (!tk || !tk_len)) { in iwl_mvm_ftm_respoder_add_pasn_sta() 373 if (tk && tk_len) { in iwl_mvm_ftm_resp_remove_pasn_sta() 379 cipher, tk, tk_len, &sta->keyconf); in iwl_mvm_ftm_resp_remove_pasn_sta() 313 iwl_mvm_ftm_respoder_add_pasn_sta(struct iwl_mvm * mvm,struct ieee80211_vif * vif,u8 * addr,u32 cipher,u8 * tk,u32 tk_len,u8 * hltk,u32 hltk_len) iwl_mvm_ftm_respoder_add_pasn_sta() argument
|
/freebsd/contrib/wpa/src/eap_server/ |
H A D | eap_server_peap.c | 329 u8 *tk; in eap_peap_derive_cmk() local 350 tk = eap_server_tls_derive_key(sm, &data->ssl, label, in eap_peap_derive_cmk() 353 if (tk == NULL) in eap_peap_derive_cmk() 355 wpa_hexdump_key(MSG_DEBUG, "EAP-PEAP: TK", tk, 60); in eap_peap_derive_cmk() 359 os_memcpy(data->ipmk, tk, 40); in eap_peap_derive_cmk() 362 os_memcpy(data->cmk, tk + 40, 20); in eap_peap_derive_cmk() 365 os_free(tk); in eap_peap_derive_cmk() 379 wpa_hexdump_key(MSG_DEBUG, "EAP-PEAP: TempKey", tk, 40); in eap_peap_derive_cmk() 380 res = peap_prfplus(data->peap_version, tk, 40, in eap_peap_derive_cmk() 385 os_free(tk); in eap_peap_derive_cmk() [all …]
|
/freebsd/lib/libsys/x86/ |
H A D | __vdso_gettc.c | 449 __vdso_gettimekeep(struct vdso_timekeep **tk) in __vdso_gettimekeep() argument 452 return (_elf_aux_info(AT_TIMEKEEP, tk, sizeof(*tk))); in __vdso_gettimekeep()
|
/freebsd/sys/contrib/dev/iwlwifi/fw/api/ |
H A D | location.h | 720 * @tk: TK to be used for secured 11az measurement 734 u8 tk[TK_11AZ_LEN]; 774 * @tk: TK to be used for secured 11az measurement 795 u8 tk[TK_11AZ_LEN]; 821 * @tk: TK to be used for secured 11az measurement 848 u8 tk[TK_11AZ_LEN]; 879 * @tk: TK to be used for secured 11az measurement 918 u8 tk[TK_11AZ_LEN]; 953 * @tk: TK to be used for secured 11az measurement 999 u8 tk[TK_11AZ_LE 677 u8 tk[TK_11AZ_LEN]; global() member 738 u8 tk[TK_11AZ_LEN]; global() member 791 u8 tk[TK_11AZ_LEN]; global() member 860 u8 tk[TK_11AZ_LEN]; global() member 941 u8 tk[TK_11AZ_LEN]; global() member [all...] |
/freebsd/contrib/unbound/validator/ |
H A D | val_anchor.c | 861 struct ta_key* tk; in assemble_it() local 912 for(tk = ta->keylist; tk; tk = tk->next) { in assemble_it() 913 if(tk->type != type) in assemble_it() 915 pd->rr_len[i] = tk->len; in assemble_it() 917 pd->rr_data[i] = tk->data; in assemble_it()
|