Home
last modified time | relevance | path

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

12345678

/linux/drivers/input/keyboard/
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 Dbcm-keypad.c153 writel(kp->kpior, kp->base + KPIOR_OFFSET); in bcm_kp_start()
158 writel(kp->kpemr, kp->base + KPEMR0_OFFSET); in bcm_kp_start()
159 writel(kp->kpemr, kp->base + KPEMR1_OFFSET); in bcm_kp_start()
160 writel(kp->kpemr, kp->base + KPEMR2_OFFSET); in bcm_kp_start()
161 writel(kp->kpemr, kp->base + KPEMR3_OFFSET); in bcm_kp_start()
243 kp->imr0_val |= kp->imr0_val << MAX_COLS; in bcm_kp_matrix_key_parse_dt()
296 kp->kpior = ((1 << kp->n_rows) - 1) << in bcm_kp_matrix_key_parse_dt()
299 kp->kpior = ((1 << kp->n_cols) - 1) << in bcm_kp_matrix_key_parse_dt()
310 kp->n_rows, kp->n_cols, in bcm_kp_matrix_key_parse_dt()
311 kp->kpcr, kp->kpior, kp->kpemr); in bcm_kp_matrix_key_parse_dt()
[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/drivers/pwm/
A Dpwm-bcm-kona.c130 rate = clk_get_rate(kp->clk); in kona_pwmc_config()
261 struct kona_pwmc *kp; in kona_pwmc_probe() local
266 kp = devm_kzalloc(&pdev->dev, sizeof(*kp), GFP_KERNEL); in kona_pwmc_probe()
267 if (kp == NULL) in kona_pwmc_probe()
270 kp->chip.dev = &pdev->dev; in kona_pwmc_probe()
272 kp->chip.npwm = 6; in kona_pwmc_probe()
275 if (IS_ERR(kp->base)) in kona_pwmc_probe()
276 return PTR_ERR(kp->base); in kona_pwmc_probe()
279 if (IS_ERR(kp->clk)) { in kona_pwmc_probe()
281 PTR_ERR(kp->clk)); in kona_pwmc_probe()
[all …]
/linux/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/kernel/
A Dparams.c108 kp->name); in param_check_unsafe()
400 *(int *)kp->arg = v; in param_set_bint()
427 kp.name = name; in param_array()
428 kp.arg = elem; in param_array()
429 kp.level = level; in param_array()
446 ret = set(val, &kp); in param_array()
450 kp.arg += elemsize; in param_array()
467 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set()
634 BUG_ON(!kp->perm); in add_sysfs_param()
836 for (kp = __start___param; kp < __stop___param; kp++) { in param_sysfs_builtin()
[all …]
A Dkprobes.c424 if (kp->pre_handler && likely(!kprobe_disabled(kp))) { in opt_pre_handler()
426 kp->pre_handler(kp, regs); in opt_pre_handler()
840 return &op->kp; in alloc_aggr_kprobe()
1179 if (kp->pre_handler && likely(!kprobe_disabled(kp))) { in aggr_pre_handler()
1181 if (kp->pre_handler(kp, regs)) in aggr_pre_handler()
1196 if (kp->post_handler && likely(!kprobe_disabled(kp))) { in aggr_post_handler()
1198 kp->post_handler(kp, regs, flags); in aggr_post_handler()
2070 ret = kprobe_on_func_entry(rp->kp.addr, rp->kp.symbol_name, rp->kp.offset); in register_kretprobe()
2075 if (rp->kp.addr && warn_kprobe_rereg(&rp->kp)) in register_kretprobe()
2282 if (p != kp) in enable_kprobe()
[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()
174 struct fei_attr *attr = container_of(kp, struct fei_attr, kp); in fei_kprobe_handler()
206 seq_printf(m, "%ps\n", attr->kp.addr); in fei_seq_show()
225 unregister_kprobe(&attr->kp); in fei_attr_remove()
[all …]
/linux/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/arch/x86/kernel/kprobes/
A Dopt.c39 struct kprobe *kp; in __recover_optprobed_insn() local
44 kp = get_kprobe((void *)addr - i); in __recover_optprobed_insn()
46 if (kp && kprobe_optimized(kp)) { in __recover_optprobed_insn()
47 op = container_of(kp, struct optimized_kprobe, kp); in __recover_optprobed_insn()
65 if (addr == (unsigned long)kp->addr) { in __recover_optprobed_insn()
66 buf[0] = kp->opcode; in __recover_optprobed_insn()
174 if (kprobe_disabled(&op->kp)) in optimized_callback()
192 opt_pre_handler(&op->kp, regs); in optimized_callback()
360 p = get_kprobe(op->kp.addr + i); in arch_check_optimized_kprobe()
372 return (op->kp.addr <= addr && in arch_within_optimized_kprobe()
[all …]
/linux/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 …]
A Dkprobes.h146 struct kprobe kp; member
329 struct kprobe kp; member
407 int disable_kprobe(struct kprobe *kp);
408 int enable_kprobe(struct kprobe *kp);
410 void dump_kprobe(struct kprobe *kp);
470 static inline int disable_kprobe(struct kprobe *kp) in disable_kprobe() argument
474 static inline int enable_kprobe(struct kprobe *kp) in enable_kprobe() argument
492 return disable_kprobe(&rp->kp); in disable_kretprobe()
496 return enable_kprobe(&rp->kp); in enable_kretprobe()
/linux/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/drivers/scsi/ufs/
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/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 …]
/linux/lib/
A Dtest_kprobes.c45 static struct kprobe kp = { variable
56 unregister_kprobe(&kp); in test_kprobe()
119 kp.addr = NULL; in test_kprobes()
120 kp.flags = 0; in test_kprobes()
163 .kp.symbol_name = "kprobe_target"
197 rp.kp.addr = NULL; in test_kretprobes()
198 rp.kp.flags = 0; in test_kretprobes()
260 rp3.kp.addr = NULL; in test_stacktrace_on_kretprobe()
261 rp3.kp.flags = 0; in test_stacktrace_on_kretprobe()
322 rp3.kp.addr = NULL; in test_stacktrace_on_nested_kretprobe()
[all …]
/linux/drivers/power/supply/
A Dtest_power.c353 static int param_get_ac_online(char *buffer, const struct kernel_param *kp) in param_get_ac_online() argument
373 const struct kernel_param *kp) in param_set_battery_status() argument
387 const struct kernel_param *kp) in param_set_battery_health() argument
401 const struct kernel_param *kp) in param_set_battery_present() argument
409 const struct kernel_param *kp) in param_get_battery_present() argument
416 const struct kernel_param *kp) in param_set_battery_technology() argument
425 const struct kernel_param *kp) in param_get_battery_technology() argument
433 const struct kernel_param *kp) in param_set_battery_capacity() argument
448 const struct kernel_param *kp) in param_set_battery_voltage() argument
463 const struct kernel_param *kp) in param_set_battery_charge_counter() argument
[all …]
/linux/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()
281 memcpy(op->optinsn.copied_insn, op->kp.addr, RELATIVEJUMP_SIZE); in arch_optimize_kprobes()
282 create_branch(&instr, op->kp.addr, (unsigned long)op->optinsn.insn, 0); in arch_optimize_kprobes()
283 patch_instruction(op->kp.addr, instr); in arch_optimize_kprobes()
290 arch_arm_kprobe(&op->kp); in arch_unoptimize_kprobe()
306 return (op->kp.addr <= addr && in arch_within_optimized_kprobe()
[all …]
/linux/samples/kprobes/
A Dkprobe_example.c24 static struct kprobe kp = { variable
101 kp.pre_handler = handler_pre; in kprobe_init()
102 kp.post_handler = handler_post; in kprobe_init()
104 ret = register_kprobe(&kp); in kprobe_init()
109 pr_info("Planted kprobe at %p\n", kp.addr); in kprobe_init()
115 unregister_kprobe(&kp); in kprobe_exit()
116 pr_info("kprobe at %p unregistered\n", kp.addr); in kprobe_exit()
A Dkretprobe_example.c85 my_kretprobe.kp.symbol_name = func_name; in kretprobe_init()
92 my_kretprobe.kp.symbol_name, my_kretprobe.kp.addr); in kretprobe_init()
99 pr_info("kretprobe at %p unregistered\n", my_kretprobe.kp.addr); in kretprobe_exit()
103 my_kretprobe.nmissed, my_kretprobe.kp.symbol_name); in kretprobe_exit()
/linux/security/apparmor/
A Dlsm.c1407 return param_set_bool(val, kp); in param_set_aalockpolicy()
1416 return param_get_bool(buffer, kp); in param_get_aalockpolicy()
1425 return param_set_bool(val, kp); in param_set_aabool()
1434 return param_get_bool(buffer, kp); in param_get_aabool()
1447 error = param_set_uint(val, kp); in param_set_aauint()
1460 return param_get_uint(buffer, kp); in param_get_aauint()
1474 value = !!*((int *)kp->arg); in param_set_aaintbool()
1496 value = !!*((int *)kp->arg); in param_get_aaintbool()
1504 const struct kernel_param *kp) in param_set_aacompressionlevel() argument
1513 error = param_set_int(val, kp); in param_set_aacompressionlevel()
[all …]
/linux/kernel/trace/
A Dtrace_kprobe.c95 return tk->rp.kp.offset; in trace_kprobe_offset()
148 else if (tk->rp.kp.offset) in trace_kprobe_match_command_head()
197 addr += tk->rp.kp.offset; in trace_kprobe_address()
221 tk->rp.kp.addr ? NULL : tk->rp.kp.symbol_name, in trace_kprobe_on_func_entry()
222 tk->rp.kp.addr ? 0 : tk->rp.kp.offset) == 0) : false; in trace_kprobe_on_func_entry()
277 tk->rp.kp.offset = offs; in alloc_trace_kprobe()
279 tk->rp.kp.addr = addr; in alloc_trace_kprobe()
527 tk->rp.kp.addr = NULL; in __unregister_trace_kprobe()
1112 tk->rp.kp.offset); in trace_kprobe_show()
1186 tk->rp.kp.nmissed); in probes_profile_seq_show()
[all …]
/linux/mm/
A Dslab_common.c584 struct kmem_obj_info kp = { }; in kmem_dump_obj() local
594 if (kp.kp_slab_cache) in kmem_dump_obj()
598 if (kp.kp_objp) in kmem_dump_obj()
600 if (kp.kp_data_offset) in kmem_dump_obj()
602 if (kp.kp_objp) { in kmem_dump_obj()
603 ptroffset = ((char *)object - (char *)kp.kp_objp) - kp.kp_data_offset; in kmem_dump_obj()
606 if (kp.kp_slab_cache && kp.kp_slab_cache->usersize) in kmem_dump_obj()
608 if (kp.kp_ret) in kmem_dump_obj()
613 if (!kp.kp_stack[i]) in kmem_dump_obj()
618 if (kp.kp_free_stack[0]) in kmem_dump_obj()
[all …]
/linux/tools/thermal/tmon/
A Dpid.c62 p_param.kp = .36; in init_thermal_controller()
101 p_term = -p_param.kp * (xk - xk_1); in controller_handler()
102 i_term = p_param.kp * p_param.ki * p_param.ts * ek; in controller_handler()
103 d_term = -p_param.kp * p_param.kd * (xk - 2 * xk_1 + xk_2) / p_param.ts; in controller_handler()

Completed in 58 milliseconds

12345678