/kernel/linux/linux-5.10/kernel/time/ |
D | timekeeping.c | 117 static inline void tk_normalize_xtime(struct timekeeper *tk) in tk_normalize_xtime() argument 119 while (tk->tkr_mono.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_mono.shift)) { in tk_normalize_xtime() 120 tk->tkr_mono.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_mono.shift; in tk_normalize_xtime() 121 tk->xtime_sec++; in tk_normalize_xtime() 123 while (tk->tkr_raw.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_raw.shift)) { in tk_normalize_xtime() 124 tk->tkr_raw.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_raw.shift; in tk_normalize_xtime() 125 tk->raw_sec++; in tk_normalize_xtime() 129 static inline struct timespec64 tk_xtime(const struct timekeeper *tk) in tk_xtime() argument 133 ts.tv_sec = tk->xtime_sec; in tk_xtime() 134 ts.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in tk_xtime() [all …]
|
D | vsyscall.c | 19 struct timekeeper *tk) in update_vdso_data() argument 24 vdata[CS_HRES_COARSE].cycle_last = tk->tkr_mono.cycle_last; in update_vdso_data() 25 vdata[CS_HRES_COARSE].mask = tk->tkr_mono.mask; in update_vdso_data() 26 vdata[CS_HRES_COARSE].mult = tk->tkr_mono.mult; in update_vdso_data() 27 vdata[CS_HRES_COARSE].shift = tk->tkr_mono.shift; in update_vdso_data() 28 vdata[CS_RAW].cycle_last = tk->tkr_raw.cycle_last; in update_vdso_data() 29 vdata[CS_RAW].mask = tk->tkr_raw.mask; in update_vdso_data() 30 vdata[CS_RAW].mult = tk->tkr_raw.mult; in update_vdso_data() 31 vdata[CS_RAW].shift = tk->tkr_raw.shift; in update_vdso_data() 35 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vdso_data() [all …]
|
/kernel/linux/linux-5.10/kernel/trace/ |
D | trace_kprobe.c | 87 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 …]
|
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
D | dlink-dir685-touchkeys.c | 29 struct dir685_touchkeys *tk = data; in dir685_tk_irq_thread() local 30 const int num_bits = min_t(int, ARRAY_SIZE(tk->codes), 16); in dir685_tk_irq_thread() 38 err = i2c_master_recv(tk->client, buf, sizeof(buf)); in dir685_tk_irq_thread() 40 dev_err(tk->dev, "short read %d\n", err); in dir685_tk_irq_thread() 44 dev_dbg(tk->dev, "IN: %*ph\n", (int)sizeof(buf), buf); in dir685_tk_irq_thread() 48 changed = tk->cur_key ^ key; in dir685_tk_irq_thread() 50 dev_dbg(tk->dev, "key %d is %s\n", i, in dir685_tk_irq_thread() 52 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() [all …]
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
D | vdso.c | 24 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 …]
|
/kernel/linux/linux-5.10/net/mac80211/ |
D | tkip.c | 82 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 …]
|
/kernel/linux/linux-5.10/crypto/asymmetric_keys/ |
D | asym_tpm.c | 287 struct tpm_key *tk = asymmetric_key->payload.data[asym_crypto]; in asym_tpm_describe() local 289 if (!tk) in asym_tpm_describe() 297 struct tpm_key *tk = payload0; in asym_tpm_destroy() local 299 if (!tk) in asym_tpm_destroy() 302 kfree(tk->blob); in asym_tpm_destroy() 303 tk->blob_len = 0; in asym_tpm_destroy() 305 kfree(tk); in asym_tpm_destroy() 395 struct tpm_key *tk = params->key->payload.data[asym_crypto]; in tpm_key_query() local 412 der_pub_key_len = derive_pub_key(tk->pub_key, tk->pub_key_len, in tpm_key_query() 421 info->key_size = tk->key_len; in tpm_key_query() [all …]
|
D | tpm_parser.c | 58 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()
|
/kernel/linux/linux-5.10/arch/nds32/kernel/ |
D | vdso.c | 209 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 …]
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
D | time.c | 426 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument 431 fsyscall_gtod_data.clk_mask = tk->tkr_mono.mask; in update_vsyscall() 432 fsyscall_gtod_data.clk_mult = tk->tkr_mono.mult; in update_vsyscall() 433 fsyscall_gtod_data.clk_shift = tk->tkr_mono.shift; in update_vsyscall() 434 fsyscall_gtod_data.clk_fsys_mmio = tk->tkr_mono.clock->archdata.fsys_mmio; in update_vsyscall() 435 fsyscall_gtod_data.clk_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall() 437 fsyscall_gtod_data.wall_time.sec = tk->xtime_sec; in update_vsyscall() 438 fsyscall_gtod_data.wall_time.snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall() 440 fsyscall_gtod_data.monotonic_time.sec = tk->xtime_sec in update_vsyscall() 441 + tk->wall_to_monotonic.tv_sec; in update_vsyscall() [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | memory-failure.c | 236 static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags) in kill_proc() argument 238 struct task_struct *t = tk->tsk; in kill_proc() 239 short addr_lsb = tk->size_shift; in kill_proc() 248 (void __user *)tk->addr, addr_lsb); in kill_proc() 256 ret = send_sig_mceerr(BUS_MCEERR_AO, (void __user *)tk->addr, in kill_proc() 339 struct to_kill *tk; in add_to_kill() local 341 tk = kmalloc(sizeof(struct to_kill), GFP_ATOMIC); in add_to_kill() 342 if (!tk) { in add_to_kill() 347 tk->addr = page_address_in_vma(p, vma); in add_to_kill() 349 tk->size_shift = dev_pagemap_mapping_shift(p, vma); in add_to_kill() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | time.c | 833 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument 836 struct clocksource *clock = tk->tkr_mono.clock; in update_vsyscall() 837 u32 mult = tk->tkr_mono.mult; in update_vsyscall() 838 u32 shift = tk->tkr_mono.shift; in update_vsyscall() 839 u64 cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall() 846 xt.tv_sec = tk->xtime_sec; in update_vsyscall() 847 xt.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in update_vsyscall() 883 frac_sec = tk->tkr_mono.xtime_nsec << (32 - shift); in update_vsyscall() 891 new_stamp_xsec += tk->xtime_sec * XSEC_PER_SEC; in update_vsyscall() 905 vdso_data->wtom_clock_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall() [all …]
|
/kernel/linux/linux-5.10/arch/arm/xen/ |
D | enlighten.c | 101 struct timekeeper *tk = priv; in xen_pvclock_gtod_notify() local 103 now.tv_sec = tk->xtime_sec; in xen_pvclock_gtod_notify() 104 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify() 105 system_time = timespec64_add(now, tk->wall_to_monotonic); in xen_pvclock_gtod_notify()
|
/kernel/linux/linux-5.10/include/linux/ |
D | timekeeper_internal.h | 143 extern void update_vsyscall(struct timekeeper *tk); 148 static inline void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
|
D | kprobes.h | 389 void kprobe_flush_task(struct task_struct *tk); 452 static inline void kprobe_flush_task(struct task_struct *tk) in kprobe_flush_task() argument
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | ftm-initiator.c | 90 u8 tk[TK_11AZ_LEN]; member 97 u8 *addr, u32 cipher, u8 *tk, u32 tk_len, in iwl_mvm_ftm_add_pasn_sta() argument 149 if (tk && tk_len) in iwl_mvm_ftm_add_pasn_sta() 150 memcpy(pasn->tk, tk, sizeof(pasn->tk)); in iwl_mvm_ftm_add_pasn_sta() 701 if (WARN_ON(key->keylen > sizeof(target->tk))) in iter() 704 memcpy(target->tk, key->key, key->keylen); in iter() 734 memcpy(target->tk, entry->tk, sizeof(target->tk)); in iwl_mvm_ftm_set_secured_ranging()
|
D | ftm-responder.c | 321 u8 *addr, u32 cipher, u8 *tk, u32 tk_len, in iwl_mvm_ftm_respoder_add_pasn_sta() argument 346 if (tk && tk_len) { in iwl_mvm_ftm_respoder_add_pasn_sta() 352 cipher, tk, tk_len); in iwl_mvm_ftm_respoder_add_pasn_sta()
|
/kernel/linux/linux-5.10/arch/x86/xen/ |
D | time.c | 97 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()
|
/kernel/linux/linux-5.10/include/asm-generic/vdso/ |
D | vsyscall.h | 16 struct timekeeper *tk) in __arch_update_vsyscall() argument
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/vdso/ |
D | vsyscall.h | 25 void __arm64_update_vsyscall(struct vdso_data *vdata, struct timekeeper *tk) in __arm64_update_vsyscall() argument
|
/kernel/linux/linux-5.10/net/bluetooth/ |
D | smp.c | 106 u8 tk[16]; /* SMP Temporary Key */ member 860 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() 955 ret = smp_c1(smp->tk, smp->prnd, smp->preq, smp->prsp, in smp_confirm() 983 ret = smp_c1(smp->tk, smp->rrnd, smp->preq, smp->prsp, in smp_random() 1000 smp_s1(smp->tk, smp->rrnd, smp->prnd, stk); in smp_random() 1016 smp_s1(smp->tk, smp->prnd, smp->rrnd, stk); in smp_random() 1141 key_type, auth, smp->tk, smp->enc_key_size, in sc_add_ltk() 1158 if (smp_h7(smp->tfm_cmac, smp->tk, salt, smp->link_key)) { in sc_generate_link_key() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | location.h | 588 u8 tk[TK_11AZ_LEN]; member 649 u8 tk[TK_11AZ_LEN]; member 702 u8 tk[TK_11AZ_LEN]; member
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/ |
D | rtw_security.c | 383 #define TK16(N) Mk16(tk[2 * (N) + 1], tk[2 * (N)]) 485 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument 530 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
|
/kernel/linux/linux-5.10/lib/ |
D | bch.c | 910 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()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8712/ |
D | rtl871x_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
|