Home
last modified time | relevance | path

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

12

/linux/kernel/trace/
H A Dtrace_kprobe.c87 static nokprobe_inline bool trace_kprobe_is_return(struct trace_kprobe *tk) in trace_kprobe_is_return() argument
89 return tk->rp.handler != NULL; in trace_kprobe_is_return()
92 static nokprobe_inline const char *trace_kprobe_symbol(struct trace_kprobe *tk) in trace_kprobe_symbol() argument
94 return tk->symbol ? tk->symbol : "unknown"; in trace_kprobe_symbol()
97 static nokprobe_inline unsigned long trace_kprobe_offset(struct trace_kprobe *tk) in trace_kprobe_offset() argument
99 return tk->rp.kp.offset; in trace_kprobe_offset()
102 static nokprobe_inline bool trace_kprobe_has_gone(struct trace_kprobe *tk) in trace_kprobe_has_gone() argument
104 return kprobe_gone(&tk->rp.kp); in trace_kprobe_has_gone()
107 static nokprobe_inline bool trace_kprobe_within_module(struct trace_kprobe *tk, in trace_kprobe_within_module() argument
111 const char *name = trace_kprobe_symbol(tk); in trace_kprobe_within_module()
[all …]
H A Drethook.c20 void rethook_flush_task(struct task_struct *tk) in rethook_flush_task() argument
25 node = __llist_del_all(&tk->rethooks); in rethook_flush_task()
/linux/kernel/time/
H A Dtimekeeping.c70 static inline bool tk_is_aux(const struct timekeeper *tk) in tk_is_aux() argument
72 return tk->id >= TIMEKEEPER_AUX_FIRST && tk->id <= TIMEKEEPER_AUX_LAST; in tk_is_aux()
80 static inline bool tk_is_aux(const struct timekeeper *tk) in tk_is_aux() argument
86 static inline void tk_update_aux_offs(struct timekeeper *tk, ktime_t offs) in tk_update_aux_offs() argument
88 tk->offs_aux = offs; in tk_update_aux_offs()
89 tk->monotonic_to_aux = ktime_to_timespec64(offs); in tk_update_aux_offs()
190 static inline void tk_normalize_xtime(struct timekeeper *tk) in tk_normalize_xtime() argument
192 while (tk->tkr_mono.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_mono.shift)) { in tk_normalize_xtime()
193 tk->tkr_mono.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_mono.shift; in tk_normalize_xtime()
194 tk->xtime_sec++; in tk_normalize_xtime()
[all …]
H A Dvsyscall.c29 static inline void update_vdso_time_data(struct vdso_time_data *vdata, struct timekeeper *tk) in update_vdso_time_data() argument
35 fill_clock_configuration(&vc[CS_HRES_COARSE], &tk->tkr_mono); in update_vdso_time_data()
36 fill_clock_configuration(&vc[CS_RAW], &tk->tkr_raw); in update_vdso_time_data()
40 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vdso_time_data()
42 nsec = tk->tkr_mono.xtime_nsec; in update_vdso_time_data()
43 nsec += ((u64)tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift); in update_vdso_time_data()
44 while (nsec >= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { in update_vdso_time_data()
45 nsec -= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift); in update_vdso_time_data()
53 sec += tk->monotonic_to_boot.tv_sec; in update_vdso_time_data()
54 nsec += (u64)tk->monotonic_to_boot.tv_nsec << tk->tkr_mono.shift; in update_vdso_time_data()
[all …]
/linux/drivers/input/keyboard/
H A Ddlink-dir685-touchkeys.c30 struct dir685_touchkeys *tk = data; in dir685_tk_irq_thread() local
31 const int num_bits = min_t(int, ARRAY_SIZE(tk->codes), 16); in dir685_tk_irq_thread()
39 err = i2c_master_recv(tk->client, buf, sizeof(buf)); in dir685_tk_irq_thread()
41 dev_err(tk->dev, "short read %d\n", err); in dir685_tk_irq_thread()
45 dev_dbg(tk->dev, "IN: %*ph\n", (int)sizeof(buf), buf); in dir685_tk_irq_thread()
49 changed = tk->cur_key ^ key; in dir685_tk_irq_thread()
51 dev_dbg(tk->dev, "key %d is %s\n", i, in dir685_tk_irq_thread()
53 input_report_key(tk->input, tk->codes[i], test_bit(i, &key)); in dir685_tk_irq_thread()
57 tk->cur_key = key; in dir685_tk_irq_thread()
58 input_sync(tk->input); in dir685_tk_irq_thread()
[all …]
/linux/arch/sparc/kernel/
H A Dvdso.c24 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
32 vdata->vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_vsyscall()
33 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
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()
39 vdata->wall_time_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
41 vdata->monotonic_time_sec = tk->xtime_sec + in update_vsyscall()
42 tk->wall_to_monotonic.tv_sec; in update_vsyscall()
[all …]
/linux/net/mac80211/
H A Dtkip.c82 static void tkip_mixing_phase1(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase1() argument
96 p1k[0] += tkipS(p1k[4] ^ get_unaligned_le16(tk + 0 + j)); in tkip_mixing_phase1()
97 p1k[1] += tkipS(p1k[0] ^ get_unaligned_le16(tk + 4 + j)); in tkip_mixing_phase1()
98 p1k[2] += tkipS(p1k[1] ^ get_unaligned_le16(tk + 8 + j)); in tkip_mixing_phase1()
99 p1k[3] += tkipS(p1k[2] ^ get_unaligned_le16(tk + 12 + j)); in tkip_mixing_phase1()
100 p1k[4] += tkipS(p1k[3] ^ get_unaligned_le16(tk + 0 + j)) + i; in tkip_mixing_phase1()
106 static void tkip_mixing_phase2(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase2() argument
120 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()
[all …]
/linux/mm/
H A Dmemory-failure.c286 static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags) in kill_proc() argument
288 struct task_struct *t = tk->tsk; in kill_proc()
289 short addr_lsb = tk->size_shift; in kill_proc()
297 (void __user *)tk->addr, addr_lsb); in kill_proc()
305 ret = send_sig_mceerr(BUS_MCEERR_AO, (void __user *)tk->addr, in kill_proc()
388 struct to_kill *tk; in __add_to_kill() local
390 tk = kmalloc_obj(struct to_kill, GFP_ATOMIC); in __add_to_kill()
391 if (!tk) { in __add_to_kill()
396 tk->addr = addr; in __add_to_kill()
398 tk->size_shift = dev_pagemap_mapping_shift(vma, tk->addr); in __add_to_kill()
[all …]
/linux/include/linux/
H A Dtimekeeper_internal.h187 extern void update_vsyscall(struct timekeeper *tk);
192 static inline void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
201 extern void vdso_time_update_aux(struct timekeeper *tk);
203 static inline void vdso_time_update_aux(struct timekeeper *tk) { } in vdso_time_update_aux() argument
H A Dkprobes.h416 #define kprobe_flush_task(tk) do {} while (0) argument
418 void kprobe_flush_task(struct task_struct *tk);
487 static inline void kprobe_flush_task(struct task_struct *tk) in kprobe_flush_task() argument
H A Drethook.h93 void rethook_flush_task(struct task_struct *tk);
/linux/arch/arm/xen/
H A Denlighten.c107 struct timekeeper *tk = priv; in xen_pvclock_gtod_notify() local
109 now.tv_sec = tk->xtime_sec; in xen_pvclock_gtod_notify()
110 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify()
111 system_time = timespec64_add(now, tk->wall_to_monotonic); in xen_pvclock_gtod_notify()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dftm-initiator.c36 u8 tk[TK_11AZ_LEN]; member
46 u8 *tk; member
634 target->tk = key->key; in iter()
641 u8 *bssid, u8 *cipher, u8 *hltk, u8 *tk, in iwl_mvm_ftm_set_secured_ranging() argument
675 target.tk = NULL; in iwl_mvm_ftm_set_secured_ranging()
678 if (!WARN_ON(!target.tk)) in iwl_mvm_ftm_set_secured_ranging()
679 memcpy(tk, target.tk, TK_11AZ_LEN); in iwl_mvm_ftm_set_secured_ranging()
681 memcpy(tk, entry->tk, sizeof(entry->tk)); in iwl_mvm_ftm_set_secured_ranging()
703 target->tk, target->rx_pn, in iwl_mvm_ftm_put_target_v7()
876 target->tk, target->rx_pn, in iwl_mvm_ftm_put_target_v10()
/linux/arch/x86/xen/
H A Dtime.c107 struct timekeeper *tk = priv; in xen_pvclock_gtod_notify() local
111 now.tv_sec = tk->xtime_sec; in xen_pvclock_gtod_notify()
112 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify()
/linux/net/bluetooth/
H A Dsmp.c106 u8 tk[16]; /* SMP Temporary Key */ member
860 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request()
925 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request()
928 put_unaligned_le32(passkey, smp->tk); in tk_request()
956 ret = smp_c1(smp->tk, smp->prnd, smp->preq, smp->prsp, in smp_confirm()
986 ret = smp_c1(smp->tk, smp->rrnd, smp->preq, smp->prsp, in smp_random()
1003 smp_s1(smp->tk, smp->rrnd, smp->prnd, stk); in smp_random()
1019 smp_s1(smp->tk, sm in smp_random()
[all...]
H A Dhci_core.c1325 u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand) in hci_add_ltk()
1342 memcpy(key->val, tk, sizeof(key->val)); in hci_add_ltk()
/linux/drivers/net/wireless/intel/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
/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_join.sh3740 ip netns exec $1 ./pm_nl_ctl ann $2 token $tk id $3
3754 ip netns exec $1 ./pm_nl_ctl rem token $tk id $2
3770 rip $da rport $dp token $tk
3792 rip $da rport $dp token $tk
3817 local tk
3820 tk=$(mptcp_lib_evts_get_info token "$evts")
3822 ip netns exec $1 ./pm_nl_ctl dump token $tk
3829 local tk
3832 tk=$(mptcp_lib_evts_get_info token "$evts")
3834 ip netns exec $1 ./pm_nl_ctl get $2 token $tk
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_security.c240 #define TK16(N) Mk16(tk[2 * (N) + 1], tk[2 * (N)])
336 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
381 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router.c137 struct prestera_kern_neigh_cache_key tk; in prestera_util_nhc_eq_n_cache_key() local
140 err = prestera_util_nhc2nc_key(sw, nhc, &tk); in prestera_util_nhc_eq_n_cache_key()
144 if (memcmp(&tk, nk, sizeof(tk))) in prestera_util_nhc_eq_n_cache_key()
/linux/lib/
H A Dbch.c866 struct gf_poly *tk = bch->poly_2t[2]; in factor_polynomial() local
876 compute_trace_bk_mod(bch, k, f, z, tk); in factor_polynomial()
878 if (tk->deg > 0) { in factor_polynomial()
881 gcd = gf_poly_gcd(bch, f2, tk); in factor_polynomial()
/linux/kernel/
H A Dauditsc.c1320 const struct timespec64 *tk = &context->time.tk_injoffset; in audit_log_time() local
1350 if (tk->tv_sec != 0 || tk->tv_nsec != 0) { in audit_log_time()
1358 (long long)tk->tv_sec, tk->tv_nsec); in audit_log_time()
H A Dkprobes.c1979 void kprobe_flush_task(struct task_struct *tk) in kprobe_flush_task() argument
1990 node = __llist_del_all(&tk->kretprobe_instances); in kprobe_flush_task()
/linux/net/sunrpc/
H A Dsched.c897 static bool xprt_needs_memalloc(struct rpc_xprt *xprt, struct rpc_task *tk) in xprt_needs_memalloc() argument
903 return test_bit(XPRT_LOCKED, &xprt->state) && xprt->snd_task == tk; in xprt_needs_memalloc()
/linux/arch/x86/kvm/
H A Dx86.c2366 static void update_pvclock_gtod(struct timekeeper *tk) in update_pvclock_gtod() argument
2373 vdata->clock.vclock_mode = tk->tkr_mono.clock->vdso_clock_mode; in update_pvclock_gtod()
2374 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; in update_pvclock_gtod()
2375 vdata->clock.mask = tk->tkr_mono.mask; in update_pvclock_gtod()
2376 vdata->clock.mult = tk->tkr_mono.mult; in update_pvclock_gtod()
2377 vdata->clock.shift = tk->tkr_mono.shift; in update_pvclock_gtod()
2378 vdata->clock.base_cycles = tk->tkr_mono.xtime_nsec; in update_pvclock_gtod()
2379 vdata->clock.offset = tk->tkr_mono.base; in update_pvclock_gtod()
2381 vdata->raw_clock.vclock_mode = tk->tkr_raw.clock->vdso_clock_mode; in update_pvclock_gtod()
2382 vdata->raw_clock.cycle_last = tk->tkr_raw.cycle_last; in update_pvclock_gtod()
[all …]

12