Home
last modified time | relevance | path

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

12

/Linux-v4.19/kernel/time/
Dtimekeeping.c97 static inline void tk_normalize_xtime(struct timekeeper *tk) in tk_normalize_xtime() argument
99 while (tk->tkr_mono.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_mono.shift)) { in tk_normalize_xtime()
100 tk->tkr_mono.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_mono.shift; in tk_normalize_xtime()
101 tk->xtime_sec++; in tk_normalize_xtime()
103 while (tk->tkr_raw.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_raw.shift)) { in tk_normalize_xtime()
104 tk->tkr_raw.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_raw.shift; in tk_normalize_xtime()
105 tk->raw_sec++; in tk_normalize_xtime()
109 static inline struct timespec64 tk_xtime(const struct timekeeper *tk) in tk_xtime() argument
113 ts.tv_sec = tk->xtime_sec; in tk_xtime()
114 ts.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in tk_xtime()
[all …]
/Linux-v4.19/kernel/trace/
Dtrace_kprobe.c36 static nokprobe_inline bool trace_kprobe_is_return(struct trace_kprobe *tk) in trace_kprobe_is_return() argument
38 return tk->rp.handler != NULL; in trace_kprobe_is_return()
41 static nokprobe_inline const char *trace_kprobe_symbol(struct trace_kprobe *tk) in trace_kprobe_symbol() argument
43 return tk->symbol ? tk->symbol : "unknown"; in trace_kprobe_symbol()
46 static nokprobe_inline unsigned long trace_kprobe_offset(struct trace_kprobe *tk) in trace_kprobe_offset() argument
48 return tk->rp.kp.offset; in trace_kprobe_offset()
51 static nokprobe_inline bool trace_kprobe_has_gone(struct trace_kprobe *tk) in trace_kprobe_has_gone() argument
53 return !!(kprobe_gone(&tk->rp.kp)); in trace_kprobe_has_gone()
56 static nokprobe_inline bool trace_kprobe_within_module(struct trace_kprobe *tk, in trace_kprobe_within_module() argument
60 const char *name = trace_kprobe_symbol(tk); in trace_kprobe_within_module()
[all …]
/Linux-v4.19/drivers/input/keyboard/
Ddlink-dir685-touchkeys.c28 struct dir685_touchkeys *tk = data; in dir685_tk_irq_thread() local
29 const int num_bits = min_t(int, ARRAY_SIZE(tk->codes), 16); in dir685_tk_irq_thread()
37 err = i2c_master_recv(tk->client, buf, sizeof(buf)); in dir685_tk_irq_thread()
39 dev_err(tk->dev, "short read %d\n", err); in dir685_tk_irq_thread()
43 dev_dbg(tk->dev, "IN: %*ph\n", (int)sizeof(buf), buf); in dir685_tk_irq_thread()
47 changed = tk->cur_key ^ key; in dir685_tk_irq_thread()
49 dev_dbg(tk->dev, "key %d is %s\n", i, in dir685_tk_irq_thread()
51 input_report_key(tk->input, tk->codes[i], test_bit(i, &key)); in dir685_tk_irq_thread()
55 tk->cur_key = key; in dir685_tk_irq_thread()
56 input_sync(tk->input); in dir685_tk_irq_thread()
[all …]
/Linux-v4.19/arch/sparc/kernel/
Dvdso.c25 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
33 vdata->vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_vsyscall()
34 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
35 vdata->clock.mask = tk->tkr_mono.mask; in update_vsyscall()
36 vdata->clock.mult = tk->tkr_mono.mult; in update_vsyscall()
37 vdata->clock.shift = tk->tkr_mono.shift; in update_vsyscall()
39 vdata->wall_time_sec = tk->xtime_sec; in update_vsyscall()
40 vdata->wall_time_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
42 vdata->monotonic_time_sec = tk->xtime_sec + in update_vsyscall()
43 tk->wall_to_monotonic.tv_sec; in update_vsyscall()
[all …]
/Linux-v4.19/arch/x86/entry/vsyscall/
Dvsyscall_gtod.c30 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
32 int vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_vsyscall()
43 vdata->cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
44 vdata->mask = tk->tkr_mono.mask; in update_vsyscall()
45 vdata->mult = tk->tkr_mono.mult; in update_vsyscall()
46 vdata->shift = tk->tkr_mono.shift; in update_vsyscall()
48 vdata->wall_time_sec = tk->xtime_sec; in update_vsyscall()
49 vdata->wall_time_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
51 vdata->monotonic_time_sec = tk->xtime_sec in update_vsyscall()
52 + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
[all …]
/Linux-v4.19/net/mac80211/
Dtkip.c85 static void tkip_mixing_phase1(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase1() argument
99 p1k[0] += tkipS(p1k[4] ^ get_unaligned_le16(tk + 0 + j)); in tkip_mixing_phase1()
100 p1k[1] += tkipS(p1k[0] ^ get_unaligned_le16(tk + 4 + j)); in tkip_mixing_phase1()
101 p1k[2] += tkipS(p1k[1] ^ get_unaligned_le16(tk + 8 + j)); in tkip_mixing_phase1()
102 p1k[3] += tkipS(p1k[2] ^ get_unaligned_le16(tk + 12 + j)); in tkip_mixing_phase1()
103 p1k[4] += tkipS(p1k[3] ^ get_unaligned_le16(tk + 0 + j)) + i; in tkip_mixing_phase1()
109 static void tkip_mixing_phase2(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase2() argument
123 ppk[0] += tkipS(ppk[5] ^ get_unaligned_le16(tk + 0)); in tkip_mixing_phase2()
124 ppk[1] += tkipS(ppk[0] ^ get_unaligned_le16(tk + 2)); in tkip_mixing_phase2()
125 ppk[2] += tkipS(ppk[1] ^ get_unaligned_le16(tk + 4)); in tkip_mixing_phase2()
[all …]
/Linux-v4.19/arch/arm64/kernel/
Dvdso.c221 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
223 u32 use_syscall = !tk->tkr_mono.clock->archdata.vdso_direct; in update_vsyscall()
229 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall()
230 vdso_data->xtime_coarse_nsec = tk->tkr_mono.xtime_nsec >> in update_vsyscall()
231 tk->tkr_mono.shift; in update_vsyscall()
232 vdso_data->wtm_clock_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall()
233 vdso_data->wtm_clock_nsec = tk->wall_to_monotonic.tv_nsec; in update_vsyscall()
237 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
238 vdso_data->raw_time_sec = tk->raw_sec; in update_vsyscall()
239 vdso_data->raw_time_nsec = tk->tkr_raw.xtime_nsec; in update_vsyscall()
[all …]
/Linux-v4.19/arch/arm/kernel/
Dvdso.c289 static bool tk_is_cntvct(const struct timekeeper *tk) in tk_is_cntvct() argument
294 if (!tk->tkr_mono.clock->archdata.vdso_direct) in tk_is_cntvct()
318 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
320 struct timespec64 *wtm = &tk->wall_to_monotonic; in update_vsyscall()
331 vdso_data->tk_is_cntvct = tk_is_cntvct(tk); in update_vsyscall()
332 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall()
333 vdso_data->xtime_coarse_nsec = (u32)(tk->tkr_mono.xtime_nsec >> in update_vsyscall()
334 tk->tkr_mono.shift); in update_vsyscall()
339 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
340 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()
[all …]
/Linux-v4.19/arch/nds32/kernel/
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()
217 vdso_data->wtm_clock_nsec = tk->wall_to_monotonic.tv_nsec; 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()
[all …]
/Linux-v4.19/arch/mips/kernel/
Dvdso.c73 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
77 vdso_data.xtime_sec = tk->xtime_sec; in update_vsyscall()
78 vdso_data.xtime_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
79 vdso_data.wall_to_mono_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall()
80 vdso_data.wall_to_mono_nsec = tk->wall_to_monotonic.tv_nsec; in update_vsyscall()
81 vdso_data.cs_shift = tk->tkr_mono.shift; in update_vsyscall()
83 vdso_data.clock_mode = tk->tkr_mono.clock->archdata.vdso_clock_mode; in update_vsyscall()
85 vdso_data.cs_mult = tk->tkr_mono.mult; in update_vsyscall()
86 vdso_data.cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
87 vdso_data.cs_mask = tk->tkr_mono.mask; in update_vsyscall()
/Linux-v4.19/arch/ia64/kernel/
Dtime.c433 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
438 fsyscall_gtod_data.clk_mask = tk->tkr_mono.mask; in update_vsyscall()
439 fsyscall_gtod_data.clk_mult = tk->tkr_mono.mult; in update_vsyscall()
440 fsyscall_gtod_data.clk_shift = tk->tkr_mono.shift; in update_vsyscall()
441 fsyscall_gtod_data.clk_fsys_mmio = tk->tkr_mono.clock->archdata.fsys_mmio; in update_vsyscall()
442 fsyscall_gtod_data.clk_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
444 fsyscall_gtod_data.wall_time.sec = tk->xtime_sec; in update_vsyscall()
445 fsyscall_gtod_data.wall_time.snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
447 fsyscall_gtod_data.monotonic_time.sec = tk->xtime_sec in update_vsyscall()
448 + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
[all …]
/Linux-v4.19/mm/
Dmemory-failure.c213 static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags) in kill_proc() argument
215 struct task_struct *t = tk->tsk; in kill_proc()
216 short addr_lsb = tk->size_shift; in kill_proc()
223 ret = force_sig_mceerr(BUS_MCEERR_AR, (void __user *)tk->addr, in kill_proc()
232 ret = send_sig_mceerr(BUS_MCEERR_AO, (void __user *)tk->addr, in kill_proc()
317 struct to_kill *tk; in add_to_kill() local
320 tk = *tkc; in add_to_kill()
323 tk = kmalloc(sizeof(struct to_kill), GFP_ATOMIC); in add_to_kill()
324 if (!tk) { in add_to_kill()
329 tk->addr = page_address_in_vma(p, vma); in add_to_kill()
[all …]
/Linux-v4.19/arch/s390/kernel/
Dtime.c276 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
280 if (tk->tkr_mono.clock != &clocksource_tod) in update_vsyscall()
286 vdso_data->xtime_tod_stamp = tk->tkr_mono.cycle_last; in update_vsyscall()
287 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()
288 vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
290 tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
291 vdso_data->wtom_clock_nsec = tk->tkr_mono.xtime_nsec + in update_vsyscall()
292 + ((u64) tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift); in update_vsyscall()
293 nsecps = (u64) NSEC_PER_SEC << tk->tkr_mono.shift; in update_vsyscall()
299 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Dtime.c856 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
859 struct clocksource *clock = tk->tkr_mono.clock; in update_vsyscall()
860 u32 mult = tk->tkr_mono.mult; in update_vsyscall()
861 u32 shift = tk->tkr_mono.shift; in update_vsyscall()
862 u64 cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
869 xt.tv_sec = tk->xtime_sec; in update_vsyscall()
870 xt.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in update_vsyscall()
906 frac_sec = tk->tkr_mono.xtime_nsec << (32 - shift); in update_vsyscall()
914 new_stamp_xsec += tk->xtime_sec * XSEC_PER_SEC; in update_vsyscall()
928 vdso_data->wtom_clock_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall()
[all …]
/Linux-v4.19/include/linux/
Dtimekeeper_internal.h138 extern void update_vsyscall(struct timekeeper *tk);
143 static inline void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
Dkprobes.h374 void kprobe_flush_task(struct task_struct *tk);
428 static inline void kprobe_flush_task(struct task_struct *tk) in kprobe_flush_task() argument
Disdn_ppp.h166 struct task_struct *tk; member
/Linux-v4.19/arch/arm/xen/
Denlighten.c135 struct timekeeper *tk = priv; in xen_pvclock_gtod_notify() local
137 now.tv_sec = tk->xtime_sec; in xen_pvclock_gtod_notify()
138 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify()
139 system_time = timespec64_add(now, tk->wall_to_monotonic); in xen_pvclock_gtod_notify()
/Linux-v4.19/arch/x86/xen/
Dtime.c96 struct timekeeper *tk = priv; in xen_pvclock_gtod_notify() local
100 now.tv_sec = tk->xtime_sec; in xen_pvclock_gtod_notify()
101 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify()
/Linux-v4.19/net/bluetooth/
Dsmp.c109 u8 tk[16]; /* SMP Temporary Key */ member
876 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request()
933 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request()
936 put_unaligned_le32(passkey, smp->tk); in tk_request()
964 ret = smp_c1(smp->tfm_aes, smp->tk, smp->prnd, smp->preq, smp->prsp, in smp_confirm()
995 ret = smp_c1(smp->tfm_aes, smp->tk, smp->rrnd, smp->preq, smp->prsp, in smp_random()
1012 smp_s1(smp->tfm_aes, smp->tk, smp->rrnd, smp->prnd, stk); in smp_random()
1028 smp_s1(smp->tfm_aes, smp->tk, smp->prnd, smp->rrnd, stk); in smp_random()
1153 key_type, auth, smp->tk, smp->enc_key_size, in sc_add_ltk()
1170 if (smp_h7(smp->tfm_cmac, smp->tk, salt, smp->link_key)) { in sc_generate_link_key()
[all …]
/Linux-v4.19/lib/
Dbch.c853 struct gf_poly *tk = bch->poly_2t[2]; in factor_polynomial() local
863 compute_trace_bk_mod(bch, k, f, z, tk); in factor_polynomial()
865 if (tk->deg > 0) { in factor_polynomial()
868 gcd = gf_poly_gcd(bch, f2, tk); in factor_polynomial()
/Linux-v4.19/drivers/staging/rtl8188eu/core/
Drtw_security.c386 #define TK16(N) Mk16(tk[2*(N)+1], tk[2*(N)])
488 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
533 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
/Linux-v4.19/drivers/staging/rtl8712/
Drtl871x_security.c384 #define TK16(N) Mk16(tk[2 * (N) + 1], tk[2 * (N)])
486 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
531 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
/Linux-v4.19/drivers/staging/rtl8723bs/core/
Drtw_security.c451 #define TK16(N) Mk16(tk[2*(N)+1], tk[2*(N)])
555 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
603 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
/Linux-v4.19/kernel/
Dkprobes.c1200 void kprobe_flush_task(struct task_struct *tk) in kprobe_flush_task() argument
1212 hash = hash_ptr(tk, KPROBE_HASH_BITS); in kprobe_flush_task()
1216 if (ri->task == tk) in kprobe_flush_task()

12