/linux-4.4.14/kernel/time/ |
D | timekeeping.c | 67 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.4.14/kernel/trace/ |
D | trace_kprobe.c | 43 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.4.14/arch/x86/entry/vsyscall/ |
D | vsyscall_gtod.c | 27 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.4.14/arch/tile/kernel/ |
D | time.c | 260 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument 262 if (tk->tkr_mono.clock != &cycle_counter_cs) in update_vsyscall() 267 vdso_data->cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall() 268 vdso_data->mask = tk->tkr_mono.mask; in update_vsyscall() 269 vdso_data->mult = tk->tkr_mono.mult; in update_vsyscall() 270 vdso_data->shift = tk->tkr_mono.shift; in update_vsyscall() 272 vdso_data->wall_time_sec = tk->xtime_sec; in update_vsyscall() 273 vdso_data->wall_time_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall() 275 vdso_data->monotonic_time_sec = tk->xtime_sec in update_vsyscall() 276 + tk->wall_to_monotonic.tv_sec; in update_vsyscall() [all …]
|
/linux-4.4.14/net/mac80211/ |
D | tkip.c | 84 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.4.14/arch/arm64/kernel/ |
D | vdso.c | 200 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument 202 u32 use_syscall = strcmp(tk->tkr_mono.clock->name, "arch_sys_counter"); in update_vsyscall() 208 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall() 209 vdso_data->xtime_coarse_nsec = tk->tkr_mono.xtime_nsec >> in update_vsyscall() 210 tk->tkr_mono.shift; in update_vsyscall() 211 vdso_data->wtm_clock_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall() 212 vdso_data->wtm_clock_nsec = tk->wall_to_monotonic.tv_nsec; in update_vsyscall() 215 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall() 216 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall() 217 vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall() [all …]
|
/linux-4.4.14/arch/arm/kernel/ |
D | vdso.c | 268 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 299 struct timespec64 *wtm = &tk->wall_to_monotonic; in update_vsyscall() 310 vdso_data->tk_is_cntvct = tk_is_cntvct(tk); in update_vsyscall() 311 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall() 312 vdso_data->xtime_coarse_nsec = (u32)(tk->tkr_mono.xtime_nsec >> in update_vsyscall() 313 tk->tkr_mono.shift); in update_vsyscall() 318 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall() 319 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall() [all …]
|
/linux-4.4.14/arch/mips/kernel/ |
D | vdso.c | 70 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument 74 vdso_data.xtime_sec = tk->xtime_sec; in update_vsyscall() 75 vdso_data.xtime_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall() 76 vdso_data.wall_to_mono_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall() 77 vdso_data.wall_to_mono_nsec = tk->wall_to_monotonic.tv_nsec; in update_vsyscall() 78 vdso_data.cs_shift = tk->tkr_mono.shift; in update_vsyscall() 80 vdso_data.clock_mode = tk->tkr_mono.clock->archdata.vdso_clock_mode; in update_vsyscall() 82 vdso_data.cs_mult = tk->tkr_mono.mult; in update_vsyscall() 83 vdso_data.cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall() 84 vdso_data.cs_mask = tk->tkr_mono.mask; in update_vsyscall()
|
/linux-4.4.14/mm/ |
D | memory-failure.c | 285 struct to_kill *tk; in add_to_kill() local 288 tk = *tkc; in add_to_kill() 291 tk = kmalloc(sizeof(struct to_kill), GFP_ATOMIC); in add_to_kill() 292 if (!tk) { in add_to_kill() 298 tk->addr = page_address_in_vma(p, vma); in add_to_kill() 299 tk->addr_valid = 1; in add_to_kill() 307 if (tk->addr == -EFAULT) { in add_to_kill() 310 tk->addr_valid = 0; in add_to_kill() 313 tk->tsk = tsk; in add_to_kill() 314 list_add_tail(&tk->nd, to_kill); in add_to_kill() [all …]
|
/linux-4.4.14/arch/s390/kernel/ |
D | time.c | 211 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument 215 if (tk->tkr_mono.clock != &clocksource_tod) in update_vsyscall() 221 vdso_data->xtime_tod_stamp = tk->tkr_mono.cycle_last; in update_vsyscall() 222 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall() 223 vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall() 225 tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vsyscall() 226 vdso_data->wtom_clock_nsec = tk->tkr_mono.xtime_nsec + in update_vsyscall() 227 + ((u64) tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift); in update_vsyscall() 228 nsecps = (u64) NSEC_PER_SEC << tk->tkr_mono.shift; in update_vsyscall() 234 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall() [all …]
|
/linux-4.4.14/include/linux/ |
D | timekeeper_internal.h | 130 extern void update_vsyscall(struct timekeeper *tk); 142 static inline void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
|
D | kprobes.h | 384 void kprobe_flush_task(struct task_struct *tk); 455 static inline void kprobe_flush_task(struct task_struct *tk) in kprobe_flush_task() argument
|
D | isdn_ppp.h | 166 struct task_struct *tk; member
|
/linux-4.4.14/net/bluetooth/ |
D | smp.c | 104 u8 tk[16]; /* SMP Temporary Key */ member 869 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request() 926 memset(smp->tk, 0, sizeof(smp->tk)); in tk_request() 929 put_unaligned_le32(passkey, smp->tk); in tk_request() 957 ret = smp_c1(smp->tfm_aes, smp->tk, smp->prnd, smp->preq, smp->prsp, in smp_confirm() 988 ret = smp_c1(smp->tfm_aes, smp->tk, smp->rrnd, smp->preq, smp->prsp, in smp_random() 1004 smp_s1(smp->tfm_aes, smp->tk, smp->rrnd, smp->prnd, stk); in smp_random() 1020 smp_s1(smp->tfm_aes, smp->tk, smp->prnd, smp->rrnd, stk); in smp_random() 1145 key_type, auth, smp->tk, smp->enc_key_size, in sc_add_ltk() 1161 if (smp_h6(smp->tfm_cmac, smp->tk, tmp1, smp->link_key)) { in sc_generate_link_key() [all …]
|
D | hci_core.c | 2476 u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand) in hci_add_ltk() 2493 memcpy(key->val, tk, sizeof(key->val)); in hci_add_ltk()
|
/linux-4.4.14/lib/ |
D | bch.c | 843 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.4.14/drivers/staging/rtl8712/ |
D | rtl871x_security.c | 384 #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-4.4.14/drivers/staging/rtl8723au/core/ |
D | rtw_security.c | 404 #define TK16(N) Mk16(tk[2 * (N) + 1], tk[2 * (N)]) 506 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument 554 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
|
/linux-4.4.14/drivers/staging/rtl8188eu/core/ |
D | rtw_security.c | 372 #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.4.14/kernel/ |
D | kprobes.c | 1144 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.4.14/arch/x86/kvm/ |
D | x86.c | 1117 static void update_pvclock_gtod(struct timekeeper *tk) in update_pvclock_gtod() argument 1122 boot_ns = ktime_to_ns(ktime_add(tk->tkr_mono.base, tk->offs_boot)); in update_pvclock_gtod() 1127 vdata->clock.vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_pvclock_gtod() 1128 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; in update_pvclock_gtod() 1129 vdata->clock.mask = tk->tkr_mono.mask; in update_pvclock_gtod() 1130 vdata->clock.mult = tk->tkr_mono.mult; in update_pvclock_gtod() 1131 vdata->clock.shift = tk->tkr_mono.shift; in update_pvclock_gtod() 1134 vdata->nsec_base = tk->tkr_mono.xtime_nsec; in update_pvclock_gtod() 5748 struct timekeeper *tk = priv; in pvclock_gtod_notify() local 5750 update_pvclock_gtod(tk); in pvclock_gtod_notify()
|
/linux-4.4.14/Documentation/laptops/ |
D | laptop-mode.txt | 4 Document Author: Bart Samwel (bart@samwel.tk) 36 http://www.samwel.tk/laptop_mode/laptop_mode/
|
/linux-4.4.14/include/net/bluetooth/ |
D | hci_core.h | 1055 u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand);
|
/linux-4.4.14/Documentation/ |
D | kernel-docs.txt | 199 URL: http://users.evitech.fi/~tk/rtos/writing_linux_device_d.html
|
/linux-4.4.14/drivers/isdn/i4l/ |
D | isdn_ppp.c | 315 is->tk = current; in isdn_ppp_open()
|