Home
last modified time | relevance | path

Searched refs:tk (Results 1 – 25 of 53) sorted by relevance

123

/freebsd/lib/libsys/
H A D__vdso_gettimeofday.c60 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 Dlinux_vdso_gtod.inc146 __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 Dkern_sharedpage.c146 struct vdso_timekeep *tk; in timehands_update() local
158 tk = (struct vdso_timekeep *)(shared_page_mapping + in timehands_update()
160 tk->tk_th[idx].th_gen = 0; in timehands_update()
163 tk->tk_th[idx] = th; in timehands_update()
164 atomic_store_rel_32(&tk->tk_th[idx].th_gen, svtk->sv_timekeep_gen); in timehands_update()
165 atomic_store_rel_32(&tk->tk_current, idx); in timehands_update()
171 tk->tk_enabled = enabled; in timehands_update()
179 struct vdso_timekeep32 *tk; in timehands_update32() local
191 tk = (struct vdso_timekeep32 *)(shared_page_mapping + in timehands_update32()
193 tk->tk_th[idx].th_gen = 0; in timehands_update32()
[all …]
/freebsd/contrib/wpa/src/crypto/
H A Dsha1.c30 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 Dmd5.c30 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 Dsha256.c30 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 Dcrypto_internal.c44 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 Dsha512.c30 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 Dsha384.c30 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.c50 __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.c61 __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.c58 __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.c69 __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.c73 __vdso_gettimekeep(struct vdso_timekeep **tk) in __vdso_gettimekeep() argument
76 return (_elf_aux_info(AT_TIMEKEEP, tk, sizeof(*tk))); in __vdso_gettimekeep()
/freebsd/contrib/wpa/src/common/
H A Dcommon_module_tests.c637 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 Dparse.c52 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/tcpdump/
H A Dsignature.c55 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 Dcrypto.c234 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 Dftm-initiator.c36 u8 tk[TK_11AZ_LEN]; member
46 u8 *tk; member
638 target->tk = key->key; in iter()
645 u8 *bssid, u8 *cipher, u8 *hltk, u8 *tk, in iwl_mvm_ftm_set_secured_ranging() argument
679 target.tk = NULL; in iwl_mvm_ftm_set_secured_ranging()
682 if (!WARN_ON(!target.tk)) in iwl_mvm_ftm_set_secured_ranging()
683 memcpy(tk, target.tk, TK_11AZ_LEN); in iwl_mvm_ftm_set_secured_ranging()
685 memcpy(tk, entry->tk, sizeof(entry->tk)); in iwl_mvm_ftm_set_secured_ranging()
707 target->tk, target->rx_pn, in iwl_mvm_ftm_put_target_v7()
880 target->tk, target->rx_pn, in iwl_mvm_ftm_put_target_v10()
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_peap.c329 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.c449 __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 Dlocation.h743 u8 tk[TK_11AZ_LEN]; member
804 u8 tk[TK_11AZ_LEN]; member
857 u8 tk[TK_11AZ_LEN]; member
927 u8 tk[TK_11AZ_LEN]; member
1008 u8 tk[TK_11AZ_LEN]; member
1084 u8 tk[TK_11AZ_LEN]; member
/freebsd/contrib/unbound/validator/
H A Dval_anchor.c864 struct ta_key* tk; in assemble_it()
915 for(tk = ta->keylist; tk; tk = tk->next) { in assemble_it()
916 if(tk->type != type) in assemble_it()
918 pd->rr_len[i] = tk->len; in assemble_it()
920 pd->rr_data[i] = tk->data; in assemble_it()
861 struct ta_key* tk; assemble_it() local
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_peap.c269 u8 *tk; in eap_peap_derive_cmk() local
277 tk = data->key_data; in eap_peap_derive_cmk()
278 if (tk == NULL) in eap_peap_derive_cmk()
280 wpa_hexdump_key(MSG_DEBUG, "EAP-PEAP: TK", tk, 60); in eap_peap_derive_cmk()
289 os_memcpy(data->ipmk, tk, 40); in eap_peap_derive_cmk()
292 os_memcpy(data->cmk, tk + 40, 20); in eap_peap_derive_cmk()
309 wpa_hexdump_key(MSG_DEBUG, "EAP-PEAP: TempKey", tk, 40); in eap_peap_derive_cmk()
310 res = peap_prfplus(data->peap_version, tk, 40, in eap_peap_derive_cmk()
/freebsd/sys/sys/
H A Dvdso.h81 int __vdso_gettimekeep(struct vdso_timekeep **tk);

123