Home
last modified time | relevance | path

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

12

/linux/kernel/time/
A Dtimekeeping.c163 tk->offs_tai = ktime_add(tk->offs_real, ktime_set(tk->tai_offset, 0)); in tk_set_wall_to_mono()
168 tk->offs_boot = ktime_add(tk->offs_boot, delta); in tk_update_sleep_time()
321 tk->tkr_raw.cycle_last = tk->tkr_mono.cycle_last; in tk_setup_internals()
701 tk->next_leap_ktime = ktime_sub(tk->next_leap_ktime, tk->offs_real); in tk_update_leap_state()
751 tk->tkr_mono.base_real = tk->tkr_mono.base + tk->offs_real; in timekeeping_update()
1990 mult = tk->tkr_mono.mult - tk->ntp_err_mult; in timekeeping_adjust()
1994 tk->xtime_remainder, tk->cycle_interval); in timekeeping_adjust()
2003 tk->ntp_err_mult = tk->ntp_error > 0 ? 1 : 0; in timekeeping_adjust()
2118 tk->ntp_error += tk->ntp_tick << shift; in logarithmic_accumulation()
2119 tk->ntp_error -= (tk->xtime_interval + tk->xtime_remainder) << in logarithmic_accumulation()
[all …]
A Dvsyscall.c19 struct timekeeper *tk) in update_vdso_data() argument
35 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vdso_data()
37 nsec = tk->tkr_mono.xtime_nsec; in update_vdso_data()
38 nsec += ((u64)tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift); in update_vdso_data()
49 nsec += (u64)tk->monotonic_to_boot.tv_nsec << tk->tkr_mono.shift; in update_vdso_data()
63 vdso_ts->sec = tk->raw_sec; in update_vdso_data()
68 vdso_ts->sec = tk->xtime_sec + (s64)tk->tai_offset; in update_vdso_data()
88 vdso_ts->sec = tk->xtime_sec; in update_vsyscall()
94 vdso_ts->nsec = tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift; in update_vsyscall()
98 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
[all …]
/linux/kernel/trace/
A Dtrace_kprobe.c90 return tk->symbol ? tk->symbol : "unknown"; in trace_kprobe_symbol()
150 trace_kprobe_symbol(tk), tk->rp.kp.offset); in trace_kprobe_match_command_head()
220 return tk ? (kprobe_on_func_entry(tk->rp.kp.addr, in trace_kprobe_on_func_entry()
221 tk->rp.kp.addr ? NULL : tk->rp.kp.symbol_name, in trace_kprobe_on_func_entry()
222 tk->rp.kp.addr ? 0 : tk->rp.kp.offset) == 0) : false; in trace_kprobe_on_func_entry()
242 if (tk) { in free_trace_kprobe()
246 kfree(tk); in free_trace_kprobe()
265 if (!tk) in alloc_trace_kprobe()
276 tk->rp.kp.symbol_name = tk->symbol; in alloc_trace_kprobe()
295 return tk; in alloc_trace_kprobe()
[all …]
/linux/drivers/input/keyboard/
A Ddlink-dir685-touchkeys.c52 input_report_key(tk->input, tk->codes[i], test_bit(i, &key)); in dir685_tk_irq_thread()
56 tk->cur_key = key; in dir685_tk_irq_thread()
57 input_sync(tk->input); in dir685_tk_irq_thread()
71 tk = devm_kzalloc(&client->dev, sizeof(*tk), GFP_KERNEL); in dir685_tk_probe()
72 if (!tk) in dir685_tk_probe()
76 if (!tk->input) in dir685_tk_probe()
79 tk->client = client; in dir685_tk_probe()
80 tk->dev = dev; in dir685_tk_probe()
83 tk->input->keycodemax = ARRAY_SIZE(tk->codes); in dir685_tk_probe()
84 tk->input->keycode = tk->codes; in dir685_tk_probe()
[all …]
/linux/arch/sparc/kernel/
A Dvdso.c24 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
34 vdata->clock.mask = tk->tkr_mono.mask; in update_vsyscall()
35 vdata->clock.mult = tk->tkr_mono.mult; in update_vsyscall()
36 vdata->clock.shift = tk->tkr_mono.shift; in update_vsyscall()
38 vdata->wall_time_sec = tk->xtime_sec; in update_vsyscall()
41 vdata->monotonic_time_sec = tk->xtime_sec + in update_vsyscall()
42 tk->wall_to_monotonic.tv_sec; in update_vsyscall()
44 (tk->wall_to_monotonic.tv_nsec << in update_vsyscall()
45 tk->tkr_mono.shift); in update_vsyscall()
54 vdata->wall_time_coarse_sec = tk->xtime_sec; in update_vsyscall()
[all …]
/linux/net/mac80211/
A Dtkip.c120 ppk[0] += tkipS(ppk[5] ^ get_unaligned_le16(tk + 0)); in tkip_mixing_phase2()
121 ppk[1] += tkipS(ppk[0] ^ get_unaligned_le16(tk + 2)); in tkip_mixing_phase2()
122 ppk[2] += tkipS(ppk[1] ^ get_unaligned_le16(tk + 4)); in tkip_mixing_phase2()
123 ppk[3] += tkipS(ppk[2] ^ get_unaligned_le16(tk + 6)); in tkip_mixing_phase2()
124 ppk[4] += tkipS(ppk[3] ^ get_unaligned_le16(tk + 8)); in tkip_mixing_phase2()
125 ppk[5] += tkipS(ppk[4] ^ get_unaligned_le16(tk + 10)); in tkip_mixing_phase2()
168 tkip_mixing_phase1(tk, ctx, sdata->vif.addr, iv32); in ieee80211_compute_tkip_p1k()
191 tkip_mixing_phase1(tk, &ctx, ta, iv32); in ieee80211_get_tkip_rx_p1k()
210 tkip_mixing_phase2(tk, ctx, iv16, p2k); in ieee80211_get_tkip_p2k()
292 tkip_mixing_phase1(tk, &rx_ctx->ctx, ta, iv32); in ieee80211_tkip_decrypt_data()
[all …]
/linux/crypto/asymmetric_keys/
A Dasym_tpm.c289 if (!tk) in asym_tpm_describe()
299 if (!tk) in asym_tpm_destroy()
305 kfree(tk); in asym_tpm_destroy()
412 der_pub_key_len = derive_pub_key(tk->pub_key, tk->pub_key_len, in tpm_key_query()
529 tk->blob, tk->blob_len, &keyhandle); in tpm_key_decrypt()
677 tk->blob, tk->blob_len, &keyhandle); in tpm_key_sign()
746 BUG_ON(!tk); in tpm_key_verify_signature()
915 if (!tk) in tpm_key_create()
919 if (!tk->blob) in tpm_key_create()
928 return tk; in tpm_key_create()
[all …]
A Dtpm_parser.c58 struct tpm_key *tk; in tpm_key_preparse() local
67 tk = tpm_parse(prep->data, prep->datalen); in tpm_key_preparse()
69 if (IS_ERR(tk)) in tpm_key_preparse()
70 return PTR_ERR(tk); in tpm_key_preparse()
76 prep->payload.data[asym_crypto] = tk; in tpm_key_preparse()
/linux/arch/nds32/kernel/
A Dvdso.c209 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
212 vdso_data->cs_mask = tk->tkr_mono.mask; in update_vsyscall()
213 vdso_data->cs_mult = tk->tkr_mono.mult; in update_vsyscall()
214 vdso_data->cs_shift = tk->tkr_mono.shift; in update_vsyscall()
215 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
216 vdso_data->wtm_clock_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall()
218 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()
219 vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
220 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall()
221 vdso_data->xtime_coarse_nsec = tk->tkr_mono.xtime_nsec >> in update_vsyscall()
[all …]
/linux/arch/ia64/kernel/
A Dtime.c432 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
437 fsyscall_gtod_data.clk_mask = tk->tkr_mono.mask; in update_vsyscall()
438 fsyscall_gtod_data.clk_mult = tk->tkr_mono.mult; in update_vsyscall()
439 fsyscall_gtod_data.clk_shift = tk->tkr_mono.shift; in update_vsyscall()
443 fsyscall_gtod_data.wall_time.sec = tk->xtime_sec; in update_vsyscall()
446 fsyscall_gtod_data.monotonic_time.sec = tk->xtime_sec in update_vsyscall()
447 + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
449 + ((u64)tk->wall_to_monotonic.tv_nsec in update_vsyscall()
450 << tk->tkr_mono.shift); in update_vsyscall()
454 (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { in update_vsyscall()
[all …]
/linux/mm/
A Dmemory-failure.c353 struct to_kill *tk; in add_to_kill() local
356 if (!tk) { in add_to_kill()
381 kfree(tk); in add_to_kill()
386 tk->tsk = tsk; in add_to_kill()
412 pfn, tk->tsk->comm, tk->tsk->pid); in kill_procs()
425 pfn, tk->tsk->comm, tk->tsk->pid); in kill_procs()
428 kfree(tk); in kill_procs()
571 struct to_kill tk; member
578 tk->addr = addr; in set_to_kill()
702 priv.tk.tsk = p; in kill_accessing_process()
[all …]
/linux/arch/arm/xen/
A Denlighten.c102 struct timekeeper *tk = priv; in xen_pvclock_gtod_notify() local
104 now.tv_sec = tk->xtime_sec; in xen_pvclock_gtod_notify()
105 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify()
106 system_time = timespec64_add(now, tk->wall_to_monotonic); in xen_pvclock_gtod_notify()
/linux/include/linux/
A Dtimekeeper_internal.h143 extern void update_vsyscall(struct timekeeper *tk);
148 static inline void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
A Dkprobes.h403 void kprobe_flush_task(struct task_struct *tk);
464 static inline void kprobe_flush_task(struct task_struct *tk) in kprobe_flush_task() argument
/linux/arch/x86/xen/
A Dtime.c97 struct timekeeper *tk = priv; in xen_pvclock_gtod_notify() local
101 now.tv_sec = tk->xtime_sec; in xen_pvclock_gtod_notify()
102 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
A Dftm-initiator.c32 u8 tk[TK_11AZ_LEN]; member
39 u8 *addr, u32 cipher, u8 *tk, u32 tk_len, in iwl_mvm_ftm_add_pasn_sta() argument
91 if (tk && tk_len) in iwl_mvm_ftm_add_pasn_sta()
92 memcpy(pasn->tk, tk, sizeof(pasn->tk)); in iwl_mvm_ftm_add_pasn_sta()
668 if (WARN_ON(key->keylen > sizeof(target->tk))) in iter()
671 memcpy(target->tk, key->key, key->keylen); in iter()
701 memcpy(target->tk, entry->tk, sizeof(target->tk)); in iwl_mvm_ftm_set_secured_ranging()
A Dftm-responder.c314 u8 *addr, u32 cipher, u8 *tk, u32 tk_len, in iwl_mvm_ftm_respoder_add_pasn_sta() argument
339 if (tk && tk_len) { in iwl_mvm_ftm_respoder_add_pasn_sta()
345 cipher, tk, tk_len); in iwl_mvm_ftm_respoder_add_pasn_sta()
/linux/net/bluetooth/
A Dsmp.c105 u8 tk[16]; /* SMP Temporary Key */ member
859 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request()
924 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request()
927 put_unaligned_le32(passkey, smp->tk); in tk_request()
1001 smp_s1(smp->tk, smp->rrnd, smp->prnd, stk); in smp_random()
1017 smp_s1(smp->tk, smp->prnd, smp->rrnd, stk); in smp_random()
1227 if (smp_h6(smp->tfm_cmac, smp->tk, brle, smp->tk)) in sc_generate_ltk()
1657 memset(smp->tk, 0, sizeof(smp->tk)); in smp_user_confirm_reply()
1659 put_unaligned_le32(value, smp->tk); in smp_user_confirm_reply()
2512 memcpy(smp->tk, rp->ltk, sizeof(smp->tk)); in smp_cmd_encrypt_info()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/
A Dlocation.h671 u8 tk[TK_11AZ_LEN]; member
732 u8 tk[TK_11AZ_LEN]; member
785 u8 tk[TK_11AZ_LEN]; member
854 u8 tk[TK_11AZ_LEN]; member
935 u8 tk[TK_11AZ_LEN]; member
/linux/include/asm-generic/vdso/
A Dvsyscall.h16 struct timekeeper *tk) in __arch_update_vsyscall() argument
/linux/arch/arm64/include/asm/vdso/
A Dvsyscall.h25 void __arm64_update_vsyscall(struct vdso_data *vdata, struct timekeeper *tk) in __arm64_update_vsyscall() argument
/linux/drivers/staging/r8188eu/core/
A Drtw_security.c245 #define TK16(N) Mk16(tk[2 * (N) + 1], tk[2 * (N)])
347 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
394 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
/linux/lib/
A Dbch.c910 struct gf_poly *tk = bch->poly_2t[2]; in factor_polynomial() local
920 compute_trace_bk_mod(bch, k, f, z, tk); in factor_polynomial()
922 if (tk->deg > 0) { in factor_polynomial()
925 gcd = gf_poly_gcd(bch, f2, tk); in factor_polynomial()
/linux/drivers/staging/rtl8723bs/core/
A Drtw_security.c264 #define TK16(N) Mk16(tk[2*(N)+1], tk[2*(N)])
363 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
411 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
/linux/drivers/staging/rtl8712/
A Drtl871x_security.c372 #define TK16(N) Mk16(tk[2 * (N) + 1], tk[2 * (N)])
474 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
519 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument

Completed in 158 milliseconds

12