Home
last modified time | relevance | path

Searched refs:kp (Results 1 – 25 of 214) sorted by relevance

123456789

/linux-6.3-rc2/drivers/input/keyboard/
A Dbcm-keypad.c143 writel(kp->kpior, kp->base + KPIOR_OFFSET); in bcm_kp_start()
148 writel(kp->kpemr, kp->base + KPEMR0_OFFSET); in bcm_kp_start()
149 writel(kp->kpemr, kp->base + KPEMR1_OFFSET); in bcm_kp_start()
150 writel(kp->kpemr, kp->base + KPEMR2_OFFSET); in bcm_kp_start()
151 writel(kp->kpemr, kp->base + KPEMR3_OFFSET); in bcm_kp_start()
232 kp->imr0_val |= kp->imr0_val << MAX_COLS; in bcm_kp_matrix_key_parse_dt()
285 kp->kpior = ((1 << kp->n_rows) - 1) << in bcm_kp_matrix_key_parse_dt()
288 kp->kpior = ((1 << kp->n_cols) - 1) << in bcm_kp_matrix_key_parse_dt()
299 kp->n_rows, kp->n_cols, in bcm_kp_matrix_key_parse_dt()
300 kp->kpcr, kp->kpior, kp->kpemr); in bcm_kp_matrix_key_parse_dt()
[all …]
A Dpmic8xxx-keypad.c289 __pmic8xxx_kp_scan_matrix(kp, new_state, kp->keystate); in pmic8xxx_kp_scan_matrix()
297 __pmic8xxx_kp_scan_matrix(kp, old_state, kp->keystate); in pmic8xxx_kp_scan_matrix()
306 __pmic8xxx_kp_scan_matrix(kp, old_state, kp->keystate); in pmic8xxx_kp_scan_matrix()
456 rc = regmap_write(kp->regmap, KEYP_CTRL, kp->ctrl_reg); in pmic8xxx_kp_enable()
469 rc = regmap_write(kp->regmap, KEYP_CTRL, kp->ctrl_reg); in pmic8xxx_kp_disable()
527 if (!kp) in pmic8xxx_kp_probe()
567 kp->keycodes, kp->input); in pmic8xxx_kp_probe()
577 input_set_drvdata(kp->input, kp); in pmic8xxx_kp_probe()
580 memset(kp->keystate, 0xff, sizeof(kp->keystate)); in pmic8xxx_kp_probe()
581 memset(kp->stuckstate, 0xff, sizeof(kp->stuckstate)); in pmic8xxx_kp_probe()
[all …]
A Dtwl4030_keypad.c131 dev_warn(kp->dbg_dev, in twl4030_kpread()
143 dev_warn(kp->dbg_dev, in twl4030_kpwrite_u8()
313 if (twl4030_read_kp_matrix_state(kp, kp->kp_state) < 0) in twl4030_kp_program()
332 kp = devm_kzalloc(&pdev->dev, sizeof(*kp), GFP_KERNEL); in twl4030_kp_probe()
333 if (!kp) in twl4030_kp_probe()
342 kp->input = input; in twl4030_kp_probe()
372 if (kp->n_rows > TWL4030_MAX_ROWS || kp->n_cols > TWL4030_MAX_COLS) { in twl4030_kp_probe()
379 if (kp->irq < 0) in twl4030_kp_probe()
380 return kp->irq; in twl4030_kp_probe()
393 if (kp->autorepeat) in twl4030_kp_probe()
[all …]
/linux-6.3-rc2/drivers/pwm/
A Dpwm-bcm-kona.c120 rate = clk_get_rate(kp->clk); in kona_pwmc_config()
277 struct kona_pwmc *kp; in kona_pwmc_probe() local
282 kp = devm_kzalloc(&pdev->dev, sizeof(*kp), GFP_KERNEL); in kona_pwmc_probe()
283 if (kp == NULL) in kona_pwmc_probe()
286 kp->chip.dev = &pdev->dev; in kona_pwmc_probe()
288 kp->chip.npwm = 6; in kona_pwmc_probe()
291 if (IS_ERR(kp->base)) in kona_pwmc_probe()
292 return PTR_ERR(kp->base); in kona_pwmc_probe()
295 if (IS_ERR(kp->clk)) { in kona_pwmc_probe()
297 PTR_ERR(kp->clk)); in kona_pwmc_probe()
[all …]
/linux-6.3-rc2/arch/s390/lib/
A Dtest_kprobes.c9 static struct kprobe kp; variable
14 kp->offset = offset; in setup_kprobe()
15 kp->addr = NULL; in setup_kprobe()
16 kp->symbol_name = symbol; in setup_kprobe()
24 setup_kprobe(test, kp, target, 0); in test_kprobe_offset()
25 ret = register_kprobe(kp); in test_kprobe_offset()
27 unregister_kprobe(kp); in test_kprobe_offset()
29 setup_kprobe(test, kp, target, offset); in test_kprobe_offset()
30 ret = register_kprobe(kp); in test_kprobe_offset()
33 unregister_kprobe(kp); in test_kprobe_offset()
[all …]
/linux-6.3-rc2/crypto/
A Daes_generic.c1198 f_nround(b1, b0, kp); in crypto_aes_encrypt()
1199 f_nround(b0, b1, kp); in crypto_aes_encrypt()
1200 f_nround(b1, b0, kp); in crypto_aes_encrypt()
1201 f_nround(b0, b1, kp); in crypto_aes_encrypt()
1202 f_nround(b1, b0, kp); in crypto_aes_encrypt()
1203 f_nround(b0, b1, kp); in crypto_aes_encrypt()
1204 f_nround(b1, b0, kp); in crypto_aes_encrypt()
1205 f_nround(b0, b1, kp); in crypto_aes_encrypt()
1206 f_nround(b1, b0, kp); in crypto_aes_encrypt()
1207 f_lround(b0, b1, kp); in crypto_aes_encrypt()
[all …]
A Dvmac.c149 #define nh_16(mp, kp, nw, rh, rl) \ argument
155 pe64_to_cpup((mp)+i+1)+(kp)[i+1]); \
166 pe64_to_cpup((mp)+i+1)+(kp)[i+1]); \
169 pe64_to_cpup((mp)+i+1)+(kp)[i+3]); \
181 pe64_to_cpup((mp)+i+1)+(kp)[i+1]); \
184 pe64_to_cpup((mp)+i+3)+(kp)[i+3]); \
187 pe64_to_cpup((mp)+i+5)+(kp)[i+5]); \
254 #define nh_16(mp, kp, nw, rh, rl) \ argument
260 t1 = pe64_to_cpup(mp+i) + kp[i]; \
343 nh_16(mp, kp, nw, rh, rl); \
[all …]
/linux-6.3-rc2/kernel/
A Dparams.c109 kp->name); in param_check_unsafe()
401 *(int *)kp->arg = v; in param_set_bint()
428 kp.name = name; in param_array()
429 kp.arg = elem; in param_array()
430 kp.level = level; in param_array()
447 ret = set(val, &kp); in param_array()
451 kp.arg += elemsize; in param_array()
468 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set()
635 BUG_ON(!kp->perm); in add_sysfs_param()
837 for (kp = __start___param; kp < __stop___param; kp++) { in param_sysfs_builtin()
[all …]
A Dfail_function.c28 struct kprobe kp; member
63 if (!attr->kp.symbol_name) { in fei_attr_new()
67 attr->kp.pre_handler = fei_kprobe_handler; in fei_attr_new()
68 attr->kp.post_handler = fei_post_handler; in fei_attr_new()
78 kfree(attr->kp.symbol_name); in fei_attr_free()
88 if (!strcmp(attr->kp.symbol_name, sym)) in fei_attr_lookup()
124 if (attr->kp.addr) { in fei_retval_set()
171 struct fei_attr *attr = container_of(kp, struct fei_attr, kp); in fei_kprobe_handler()
203 seq_printf(m, "%ps\n", attr->kp.addr); in fei_seq_show()
222 unregister_kprobe(&attr->kp); in fei_attr_remove()
[all …]
A Dkprobes.c427 if (kp->pre_handler && likely(!kprobe_disabled(kp))) { in opt_pre_handler()
429 kp->pre_handler(kp, regs); in opt_pre_handler()
566 if (kprobe_disabled(&op->kp) && !kprobe_gone(&op->kp)) in do_unoptimize_kprobes()
1197 if (kp->pre_handler && likely(!kprobe_disabled(kp))) { in aggr_pre_handler()
1199 if (kp->pre_handler(kp, regs)) in aggr_pre_handler()
1214 if (kp->post_handler && likely(!kprobe_disabled(kp))) { in aggr_post_handler()
1216 kp->post_handler(kp, regs, flags); in aggr_post_handler()
2187 ret = kprobe_on_func_entry(rp->kp.addr, rp->kp.symbol_name, rp->kp.offset); in register_kretprobe()
2192 if (rp->kp.addr && warn_kprobe_rereg(&rp->kp)) in register_kretprobe()
2425 if (p != kp) in enable_kprobe()
[all …]
/linux-6.3-rc2/arch/x86/kernel/kprobes/
A Dopt.c40 struct kprobe *kp; in __recover_optprobed_insn() local
45 kp = get_kprobe((void *)addr - i); in __recover_optprobed_insn()
47 if (kp && kprobe_optimized(kp)) { in __recover_optprobed_insn()
48 op = container_of(kp, struct optimized_kprobe, kp); in __recover_optprobed_insn()
66 if (addr == (unsigned long)kp->addr) { in __recover_optprobed_insn()
67 buf[0] = kp->opcode; in __recover_optprobed_insn()
180 if (kprobe_disabled(&op->kp)) in optimized_callback()
200 opt_pre_handler(&op->kp, regs); in optimized_callback()
355 p = get_kprobe(op->kp.addr + i); in arch_check_optimized_kprobe()
367 return (op->kp.addr <= addr && in arch_within_optimized_kprobe()
[all …]
/linux-6.3-rc2/arch/arm/probes/kprobes/
A Dopt-arm.c125 static int can_optimize(struct kprobe *kp) in can_optimize() argument
127 if (kp->ainsn.stack_space < 0) in can_optimize()
154 struct kprobe *p = &op->kp; in optimized_callback()
158 regs->ARM_pc = (unsigned long)op->kp.addr; in optimized_callback()
165 kprobes_inc_nmissed_count(&op->kp); in optimized_callback()
167 __this_cpu_write(current_kprobe, &op->kp); in optimized_callback()
169 opt_pre_handler(&op->kp, regs); in optimized_callback()
266 (unsigned long)(op->kp.addr) + 4); in NOKPROBE_SYMBOL()
297 WARN_ON(kprobe_disabled(&op->kp)); in arch_optimize_kprobes()
331 arch_arm_kprobe(&op->kp); in arch_unoptimize_kprobe()
[all …]
/linux-6.3-rc2/include/linux/
A Dmoduleparam.h51 int (*set)(const char *val, const struct kernel_param *kp);
53 int (*get)(char *buffer, const struct kernel_param *kp);
413 extern int param_get_byte(char *buffer, const struct kernel_param *kp);
418 extern int param_get_short(char *buffer, const struct kernel_param *kp);
428 extern int param_get_int(char *buffer, const struct kernel_param *kp);
433 extern int param_get_uint(char *buffer, const struct kernel_param *kp);
440 extern int param_get_long(char *buffer, const struct kernel_param *kp);
445 extern int param_get_ulong(char *buffer, const struct kernel_param *kp);
460 extern int param_get_charp(char *buffer, const struct kernel_param *kp);
467 extern int param_get_bool(char *buffer, const struct kernel_param *kp);
[all …]
/linux-6.3-rc2/drivers/ufs/core/
A Dufs-fault-injection.c9 static int ufs_fault_get(char *buffer, const struct kernel_param *kp);
10 static int ufs_fault_set(const char *val, const struct kernel_param *kp);
35 static int ufs_fault_get(char *buffer, const struct kernel_param *kp) in ufs_fault_get() argument
37 const char *fault_str = kp->arg; in ufs_fault_get()
42 static int ufs_fault_set(const char *val, const struct kernel_param *kp) in ufs_fault_set() argument
46 if (kp->arg == g_trigger_eh_str) in ufs_fault_set()
48 else if (kp->arg == g_timeout_str) in ufs_fault_set()
57 strlcpy(kp->arg, val, FAULT_INJ_STR_SIZE); in ufs_fault_set()
/linux-6.3-rc2/drivers/accessibility/speakup/
A Dkeyhelp.c58 kp = state_tbl + nstates + 1; in build_key_data()
59 while (*kp++) { in build_key_data()
61 for (i = 0; i < nstates; i++, kp++) { in build_key_data()
62 if (!*kp) in build_key_data()
66 counters[*kp]++; in build_key_data()
81 kp = state_tbl + nstates + 1; in build_key_data()
82 while ((ch = *kp++)) { in build_key_data()
84 ch1 = *kp++; in build_key_data()
136 u_char func, *kp; in spk_handle_help() local
183 kp = spk_our_keys[key] + 1; in spk_handle_help()
[all …]
A Dgenmap.c22 static unsigned char key_data[MAXKEYVAL][16], *kp; variable
131 kp = key_data[lc]; in main()
132 if (!memcmp(key_data[0], kp, 16)) in main()
136 if (kp[i] != spk_val && kp[i] != lock_val) in main()
142 kp[shift_state] = kp[i]; in main()
152 kp = key_data[lc]; in main()
153 if (!memcmp(key_data[0], kp, 16)) in main()
157 printf(" %d,", (unsigned int)kp[i]); in main()
/linux-6.3-rc2/lib/
A Dtest_kprobes.c55 static struct kprobe kp = { variable
66 unregister_kprobe(&kp); in test_kprobe()
129 kp.addr = NULL; in test_kprobes()
130 kp.flags = 0; in test_kprobes()
196 .kp.symbol_name = "kprobe_target"
230 rp.kp.addr = NULL; in test_kretprobes()
231 rp.kp.flags = 0; in test_kretprobes()
293 rp3.kp.addr = NULL; in test_stacktrace_on_kretprobe()
294 rp3.kp.flags = 0; in test_stacktrace_on_kretprobe()
355 rp3.kp.addr = NULL; in test_stacktrace_on_nested_kretprobe()
[all …]
/linux-6.3-rc2/drivers/power/supply/
A Dtest_power.c352 static int param_get_ac_online(char *buffer, const struct kernel_param *kp) in param_get_ac_online() argument
372 const struct kernel_param *kp) in param_set_battery_status() argument
386 const struct kernel_param *kp) in param_set_battery_health() argument
400 const struct kernel_param *kp) in param_set_battery_present() argument
408 const struct kernel_param *kp) in param_get_battery_present() argument
415 const struct kernel_param *kp) in param_set_battery_technology() argument
424 const struct kernel_param *kp) in param_get_battery_technology() argument
432 const struct kernel_param *kp) in param_set_battery_capacity() argument
447 const struct kernel_param *kp) in param_set_battery_voltage() argument
462 const struct kernel_param *kp) in param_set_battery_charge_counter() argument
[all …]
/linux-6.3-rc2/arch/powerpc/kernel/
A Doptprobes.c100 if (kprobe_disabled(&op->kp)) in optimized_callback()
106 kprobes_inc_nmissed_count(&op->kp); in optimized_callback()
108 __this_cpu_write(current_kprobe, &op->kp); in optimized_callback()
109 regs_set_return_ip(regs, (unsigned long)op->kp.addr); in optimized_callback()
111 opt_pre_handler(&op->kp, regs); in optimized_callback()
277 memcpy(op->optinsn.copied_insn, op->kp.addr, RELATIVEJUMP_SIZE); in arch_optimize_kprobes()
278 create_branch(&instr, op->kp.addr, (unsigned long)op->optinsn.insn, 0); in arch_optimize_kprobes()
279 patch_instruction(op->kp.addr, instr); in arch_optimize_kprobes()
286 arch_arm_kprobe(&op->kp); in arch_unoptimize_kprobe()
302 return (op->kp.addr <= addr && in arch_within_optimized_kprobe()
[all …]
/linux-6.3-rc2/samples/kprobes/
A Dkprobe_example.c23 static struct kprobe kp = { variable
108 kp.pre_handler = handler_pre; in kprobe_init()
109 kp.post_handler = handler_post; in kprobe_init()
111 ret = register_kprobe(&kp); in kprobe_init()
116 pr_info("Planted kprobe at %p\n", kp.addr); in kprobe_init()
122 unregister_kprobe(&kp); in kprobe_exit()
123 pr_info("kprobe at %p unregistered\n", kp.addr); in kprobe_exit()
A Dkretprobe_example.c84 my_kretprobe.kp.symbol_name = func_name; in kretprobe_init()
91 my_kretprobe.kp.symbol_name, my_kretprobe.kp.addr); in kretprobe_init()
98 pr_info("kretprobe at %p unregistered\n", my_kretprobe.kp.addr); in kretprobe_exit()
102 my_kretprobe.nmissed, my_kretprobe.kp.symbol_name); in kretprobe_exit()
/linux-6.3-rc2/kernel/trace/
A Dtrace_kprobe.c97 return tk->rp.kp.offset; in trace_kprobe_offset()
150 else if (tk->rp.kp.offset) in trace_kprobe_match_command_head()
200 addr += tk->rp.kp.offset; in trace_kprobe_address()
224 tk->rp.kp.addr ? NULL : tk->rp.kp.symbol_name, in trace_kprobe_on_func_entry()
225 tk->rp.kp.addr ? 0 : tk->rp.kp.offset) == 0) : false; in trace_kprobe_on_func_entry()
280 tk->rp.kp.offset = offs; in alloc_trace_kprobe()
282 tk->rp.kp.addr = addr; in alloc_trace_kprobe()
527 tk->rp.kp.addr = NULL; in __unregister_trace_kprobe()
1113 tk->rp.kp.offset); in trace_kprobe_show()
1186 tk->rp.kp.nmissed + tk->rp.nmissed : tk->rp.kp.nmissed; in probes_profile_seq_show()
[all …]
/linux-6.3-rc2/security/apparmor/
A Dlsm.c1451 return param_set_bool(val, kp); in param_set_aalockpolicy()
1460 return param_get_bool(buffer, kp); in param_get_aalockpolicy()
1469 return param_set_bool(val, kp); in param_set_aabool()
1478 return param_get_bool(buffer, kp); in param_get_aabool()
1491 error = param_set_uint(val, kp); in param_set_aauint()
1504 return param_get_uint(buffer, kp); in param_get_aauint()
1518 value = !!*((int *)kp->arg); in param_set_aaintbool()
1540 value = !!*((int *)kp->arg); in param_get_aaintbool()
1548 const struct kernel_param *kp) in param_set_aacompressionlevel() argument
1557 error = param_set_int(val, kp); in param_set_aacompressionlevel()
[all …]
/linux-6.3-rc2/tools/thermal/tmon/
A Dpid.c61 p_param.kp = .36; in init_thermal_controller()
100 p_term = -p_param.kp * (xk - xk_1); in controller_handler()
101 i_term = p_param.kp * p_param.ki * p_param.ts * ek; in controller_handler()
102 d_term = -p_param.kp * p_param.kd * (xk - 2 * xk_1 + xk_2) / p_param.ts; in controller_handler()
/linux-6.3-rc2/mm/
A Dslab_common.c579 struct kmem_obj_info kp = { }; in kmem_dump_obj() local
589 if (kp.kp_slab_cache) in kmem_dump_obj()
595 if (kp.kp_objp) in kmem_dump_obj()
597 if (kp.kp_data_offset) in kmem_dump_obj()
599 if (kp.kp_objp) { in kmem_dump_obj()
600 ptroffset = ((char *)object - (char *)kp.kp_objp) - kp.kp_data_offset; in kmem_dump_obj()
603 if (kp.kp_slab_cache && kp.kp_slab_cache->object_size) in kmem_dump_obj()
605 if (kp.kp_ret) in kmem_dump_obj()
610 if (!kp.kp_stack[i]) in kmem_dump_obj()
615 if (kp.kp_free_stack[0]) in kmem_dump_obj()
[all …]

Completed in 57 milliseconds

123456789