Home
last modified time | relevance | path

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

/linux-4.1.27/kernel/time/
Dtimekeeping.c67 static inline void tk_normalize_xtime(struct timekeeper *tk) in tk_normalize_xtime() argument
69 while (tk->tkr_mono.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_mono.shift)) { in tk_normalize_xtime()
70 tk->tkr_mono.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_mono.shift; in tk_normalize_xtime()
71 tk->xtime_sec++; in tk_normalize_xtime()
75 static inline struct timespec64 tk_xtime(struct timekeeper *tk) in tk_xtime() argument
79 ts.tv_sec = tk->xtime_sec; in tk_xtime()
80 ts.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in tk_xtime()
84 static void tk_set_xtime(struct timekeeper *tk, const struct timespec64 *ts) in tk_set_xtime() argument
86 tk->xtime_sec = ts->tv_sec; in tk_set_xtime()
87 tk->tkr_mono.xtime_nsec = (u64)ts->tv_nsec << tk->tkr_mono.shift; in tk_set_xtime()
[all …]
/linux-4.1.27/kernel/trace/
Dtrace_kprobe.c43 static nokprobe_inline bool trace_kprobe_is_return(struct trace_kprobe *tk) in trace_kprobe_is_return() argument
45 return tk->rp.handler != NULL; in trace_kprobe_is_return()
48 static nokprobe_inline const char *trace_kprobe_symbol(struct trace_kprobe *tk) in trace_kprobe_symbol() argument
50 return tk->symbol ? tk->symbol : "unknown"; in trace_kprobe_symbol()
53 static nokprobe_inline unsigned long trace_kprobe_offset(struct trace_kprobe *tk) in trace_kprobe_offset() argument
55 return tk->rp.kp.offset; in trace_kprobe_offset()
58 static nokprobe_inline bool trace_kprobe_has_gone(struct trace_kprobe *tk) in trace_kprobe_has_gone() argument
60 return !!(kprobe_gone(&tk->rp.kp)); in trace_kprobe_has_gone()
63 static nokprobe_inline bool trace_kprobe_within_module(struct trace_kprobe *tk, in trace_kprobe_within_module() argument
67 const char *name = trace_kprobe_symbol(tk); in trace_kprobe_within_module()
[all …]
/linux-4.1.27/arch/x86/kernel/
Dvsyscall_gtod.c27 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
34 vdata->vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_vsyscall()
35 vdata->cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
36 vdata->mask = tk->tkr_mono.mask; in update_vsyscall()
37 vdata->mult = tk->tkr_mono.mult; in update_vsyscall()
38 vdata->shift = tk->tkr_mono.shift; in update_vsyscall()
40 vdata->wall_time_sec = tk->xtime_sec; in update_vsyscall()
41 vdata->wall_time_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
43 vdata->monotonic_time_sec = tk->xtime_sec in update_vsyscall()
44 + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
[all …]
/linux-4.1.27/arch/tile/kernel/
Dtime.c258 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
260 if (tk->tkr_mono.clock != &cycle_counter_cs) in update_vsyscall()
265 vdso_data->cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
266 vdso_data->mask = tk->tkr_mono.mask; in update_vsyscall()
267 vdso_data->mult = tk->tkr_mono.mult; in update_vsyscall()
268 vdso_data->shift = tk->tkr_mono.shift; in update_vsyscall()
270 vdso_data->wall_time_sec = tk->xtime_sec; in update_vsyscall()
271 vdso_data->wall_time_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
273 vdso_data->monotonic_time_sec = tk->xtime_sec in update_vsyscall()
274 + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
[all …]
/linux-4.1.27/net/mac80211/
Dtkip.c84 static void tkip_mixing_phase1(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase1() argument
98 p1k[0] += tkipS(p1k[4] ^ get_unaligned_le16(tk + 0 + j)); in tkip_mixing_phase1()
99 p1k[1] += tkipS(p1k[0] ^ get_unaligned_le16(tk + 4 + j)); in tkip_mixing_phase1()
100 p1k[2] += tkipS(p1k[1] ^ get_unaligned_le16(tk + 8 + j)); in tkip_mixing_phase1()
101 p1k[3] += tkipS(p1k[2] ^ get_unaligned_le16(tk + 12 + j)); in tkip_mixing_phase1()
102 p1k[4] += tkipS(p1k[3] ^ get_unaligned_le16(tk + 0 + j)) + i; in tkip_mixing_phase1()
108 static void tkip_mixing_phase2(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase2() argument
122 ppk[0] += tkipS(ppk[5] ^ get_unaligned_le16(tk + 0)); in tkip_mixing_phase2()
123 ppk[1] += tkipS(ppk[0] ^ get_unaligned_le16(tk + 2)); in tkip_mixing_phase2()
124 ppk[2] += tkipS(ppk[1] ^ get_unaligned_le16(tk + 4)); in tkip_mixing_phase2()
[all …]
/linux-4.1.27/arch/arm/kernel/
Dvdso.c268 static bool tk_is_cntvct(const struct timekeeper *tk) in tk_is_cntvct() argument
273 if (strcmp(tk->tkr_mono.clock->name, "arch_sys_counter") != 0) in tk_is_cntvct()
297 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
300 struct timespec64 *wtm = &tk->wall_to_monotonic; in update_vsyscall()
312 vdso_data->tk_is_cntvct = tk_is_cntvct(tk); in update_vsyscall()
319 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
320 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()
321 vdso_data->xtime_clock_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
322 vdso_data->cs_mult = tk->tkr_mono.mult; in update_vsyscall()
323 vdso_data->cs_shift = tk->tkr_mono.shift; in update_vsyscall()
[all …]
/linux-4.1.27/arch/arm64/kernel/
Dvdso.c200 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
203 u32 use_syscall = strcmp(tk->tkr_mono.clock->name, "arch_sys_counter"); in update_vsyscall()
212 vdso_data->wtm_clock_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall()
213 vdso_data->wtm_clock_nsec = tk->wall_to_monotonic.tv_nsec; in update_vsyscall()
216 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
217 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()
218 vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
219 vdso_data->cs_mult = tk->tkr_mono.mult; in update_vsyscall()
220 vdso_data->cs_shift = tk->tkr_mono.shift; in update_vsyscall()
/linux-4.1.27/mm/
Dmemory-failure.c294 struct to_kill *tk; in add_to_kill() local
297 tk = *tkc; in add_to_kill()
300 tk = kmalloc(sizeof(struct to_kill), GFP_ATOMIC); in add_to_kill()
301 if (!tk) { in add_to_kill()
307 tk->addr = page_address_in_vma(p, vma); in add_to_kill()
308 tk->addr_valid = 1; in add_to_kill()
316 if (tk->addr == -EFAULT) { in add_to_kill()
319 tk->addr_valid = 0; in add_to_kill()
322 tk->tsk = tsk; in add_to_kill()
323 list_add_tail(&tk->nd, to_kill); in add_to_kill()
[all …]
/linux-4.1.27/arch/s390/kernel/
Dtime.c214 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
218 if (tk->tkr_mono.clock != &clocksource_tod) in update_vsyscall()
224 vdso_data->xtime_tod_stamp = tk->tkr_mono.cycle_last; in update_vsyscall()
225 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()
226 vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
228 tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
229 vdso_data->wtom_clock_nsec = tk->tkr_mono.xtime_nsec + in update_vsyscall()
230 + ((u64) tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift); in update_vsyscall()
231 nsecps = (u64) NSEC_PER_SEC << tk->tkr_mono.shift; in update_vsyscall()
237 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall()
[all …]
/linux-4.1.27/include/linux/
Dtimekeeper_internal.h111 extern void update_vsyscall(struct timekeeper *tk);
123 static inline void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
Dkprobes.h382 void kprobe_flush_task(struct task_struct *tk);
453 static inline void kprobe_flush_task(struct task_struct *tk) in kprobe_flush_task() argument
Disdn_ppp.h166 struct task_struct *tk; member
/linux-4.1.27/net/bluetooth/
Dsmp.c98 u8 tk[16]; /* SMP Temporary Key */ member
851 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request()
908 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request()
911 put_unaligned_le32(passkey, smp->tk); in tk_request()
939 ret = smp_c1(smp->tfm_aes, smp->tk, smp->prnd, smp->preq, smp->prsp, in smp_confirm()
970 ret = smp_c1(smp->tfm_aes, smp->tk, smp->rrnd, smp->preq, smp->prsp, in smp_random()
986 smp_s1(smp->tfm_aes, smp->tk, smp->rrnd, smp->prnd, stk); in smp_random()
1005 smp_s1(smp->tfm_aes, smp->tk, smp->prnd, smp->rrnd, stk); in smp_random()
1147 memset(smp->tk + smp->enc_key_size, 0, in sc_add_ltk()
1151 key_type, auth, smp->tk, smp->enc_key_size, in sc_add_ltk()
[all …]
Dhci_core.c2373 u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand) in hci_add_ltk()
2390 memcpy(key->val, tk, sizeof(key->val)); in hci_add_ltk()
/linux-4.1.27/lib/
Dbch.c843 struct gf_poly *tk = bch->poly_2t[2]; in factor_polynomial() local
853 compute_trace_bk_mod(bch, k, f, z, tk); in factor_polynomial()
855 if (tk->deg > 0) { in factor_polynomial()
858 gcd = gf_poly_gcd(bch, f2, tk); in factor_polynomial()
/linux-4.1.27/drivers/staging/rtl8712/
Drtl871x_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-4.1.27/drivers/staging/rtl8723au/core/
Drtw_security.c402 #define TK16(N) Mk16(tk[2 * (N) + 1], tk[2 * (N)])
504 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
552 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_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
/linux-4.1.27/kernel/
Dkprobes.c1144 void kprobe_flush_task(struct task_struct *tk) in kprobe_flush_task() argument
1156 hash = hash_ptr(tk, KPROBE_HASH_BITS); in kprobe_flush_task()
1160 if (ri->task == tk) in kprobe_flush_task()
/linux-4.1.27/arch/x86/kvm/
Dx86.c1076 static void update_pvclock_gtod(struct timekeeper *tk) in update_pvclock_gtod() argument
1081 boot_ns = ktime_to_ns(ktime_add(tk->tkr_mono.base, tk->offs_boot)); in update_pvclock_gtod()
1086 vdata->clock.vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_pvclock_gtod()
1087 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; in update_pvclock_gtod()
1088 vdata->clock.mask = tk->tkr_mono.mask; in update_pvclock_gtod()
1089 vdata->clock.mult = tk->tkr_mono.mult; in update_pvclock_gtod()
1090 vdata->clock.shift = tk->tkr_mono.shift; in update_pvclock_gtod()
1093 vdata->nsec_base = tk->tkr_mono.xtime_nsec; in update_pvclock_gtod()
5770 struct timekeeper *tk = priv; in pvclock_gtod_notify() local
5772 update_pvclock_gtod(tk); in pvclock_gtod_notify()
/linux-4.1.27/Documentation/laptops/
Dlaptop-mode.txt4 Document Author: Bart Samwel (bart@samwel.tk)
36 http://www.samwel.tk/laptop_mode/laptop_mode/
/linux-4.1.27/include/net/bluetooth/
Dhci_core.h984 u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand);
/linux-4.1.27/Documentation/
Dkernel-docs.txt199 URL: http://users.evitech.fi/~tk/rtos/writing_linux_device_d.html
/linux-4.1.27/drivers/isdn/i4l/
Disdn_ppp.c315 is->tk = current; in isdn_ppp_open()