kp 39 arch/arc/include/asm/kprobes.h struct kprobe *kp; kp 81 arch/arc/kernel/kprobes.c kcb->prev_kprobe.kp = kprobe_running(); kp 87 arch/arc/kernel/kprobes.c __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); kp 31 arch/arm/include/asm/kprobes.h struct kprobe *kp; kp 192 arch/arm/probes/kprobes/core.c kcb->prev_kprobe.kp = kprobe_running(); kp 198 arch/arm/probes/kprobes/core.c __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); kp 465 arch/arm/probes/kprobes/core.c __this_cpu_write(current_kprobe, &ri->rp->kp); kp 125 arch/arm/probes/kprobes/opt-arm.c static int can_optimize(struct kprobe *kp) kp 127 arch/arm/probes/kprobes/opt-arm.c if (kp->ainsn.stack_space < 0) kp 133 arch/arm/probes/kprobes/opt-arm.c if (kp->ainsn.stack_space > 255 - sizeof(struct pt_regs)) kp 154 arch/arm/probes/kprobes/opt-arm.c struct kprobe *p = &op->kp; kp 158 arch/arm/probes/kprobes/opt-arm.c regs->ARM_pc = (unsigned long)op->kp.addr; kp 165 arch/arm/probes/kprobes/opt-arm.c kprobes_inc_nmissed_count(&op->kp); kp 167 arch/arm/probes/kprobes/opt-arm.c __this_cpu_write(current_kprobe, &op->kp); kp 169 arch/arm/probes/kprobes/opt-arm.c opt_pre_handler(&op->kp, regs); kp 178 arch/arm/probes/kprobes/opt-arm.c op->kp.ainsn.insn_singlestep(p->opcode, &p->ainsn, regs); kp 266 arch/arm/probes/kprobes/opt-arm.c (unsigned long)(op->kp.addr) + 4); kp 297 arch/arm/probes/kprobes/opt-arm.c WARN_ON(kprobe_disabled(&op->kp)); kp 303 arch/arm/probes/kprobes/opt-arm.c memcpy(op->optinsn.copied_insn, op->kp.addr, kp 306 arch/arm/probes/kprobes/opt-arm.c insn = arm_gen_branch((unsigned long)op->kp.addr, kp 323 arch/arm/probes/kprobes/opt-arm.c kprobes_remove_breakpoint(op->kp.addr, insn); kp 331 arch/arm/probes/kprobes/opt-arm.c arch_arm_kprobe(&op->kp); kp 352 arch/arm/probes/kprobes/opt-arm.c return ((unsigned long)op->kp.addr <= addr && kp 353 arch/arm/probes/kprobes/opt-arm.c (unsigned long)op->kp.addr + RELATIVEJUMP_SIZE > addr); kp 386 arch/arm/probes/kprobes/test-core.c the_kretprobe.kp.addr = (kprobe_opcode_t *)func; kp 396 arch/arm/probes/kprobes/test-core.c the_kretprobe.kp.flags = 0; /* Clear disable flag to allow reuse */ kp 27 arch/arm64/include/asm/kprobes.h struct kprobe *kp; kp 156 arch/arm64/kernel/probes/kprobes.c kcb->prev_kprobe.kp = kprobe_running(); kp 162 arch/arm64/kernel/probes/kprobes.c __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); kp 527 arch/arm64/kernel/probes/kprobes.c __this_cpu_write(current_kprobe, &ri->rp->kp); kp 63 arch/ia64/include/asm/kprobes.h struct kprobe *kp; kp 376 arch/ia64/kernel/kprobes.c kcb->prev_kprobe[i-1].kp = kprobe_running(); kp 384 arch/ia64/kernel/kprobes.c __this_cpu_write(current_kprobe, kcb->prev_kprobe[i-1].kp); kp 51 arch/microblaze/include/asm/mmu.h unsigned long kp:1; /* User 'key' (normally 1) */ kp 53 arch/mips/include/asm/kprobes.h struct kprobe *kp; kp 157 arch/mips/kernel/kprobes.c kcb->prev_kprobe.kp = kprobe_running(); kp 166 arch/mips/kernel/kprobes.c __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); kp 41 arch/parisc/include/asm/kprobes.h struct kprobe *kp; kp 56 arch/parisc/kernel/kprobes.c kcb->prev_kprobe.kp = kprobe_running(); kp 62 arch/parisc/kernel/kprobes.c __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); kp 243 arch/parisc/kernel/kprobes.c __this_cpu_write(current_kprobe, &ri->rp->kp); kp 69 arch/powerpc/include/asm/kprobes.h struct kprobe *kp; kp 175 arch/powerpc/kernel/kprobes.c kcb->prev_kprobe.kp = kprobe_running(); kp 182 arch/powerpc/kernel/kprobes.c __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); kp 115 arch/powerpc/kernel/optprobes.c if (kprobe_disabled(&op->kp)) kp 121 arch/powerpc/kernel/optprobes.c kprobes_inc_nmissed_count(&op->kp); kp 123 arch/powerpc/kernel/optprobes.c __this_cpu_write(current_kprobe, &op->kp); kp 124 arch/powerpc/kernel/optprobes.c regs->nip = (unsigned long)op->kp.addr; kp 126 arch/powerpc/kernel/optprobes.c opt_pre_handler(&op->kp, regs); kp 316 arch/powerpc/kernel/optprobes.c memcpy(op->optinsn.copied_insn, op->kp.addr, kp 318 arch/powerpc/kernel/optprobes.c patch_instruction(op->kp.addr, kp 319 arch/powerpc/kernel/optprobes.c create_branch((unsigned int *)op->kp.addr, kp 327 arch/powerpc/kernel/optprobes.c arch_arm_kprobe(&op->kp); kp 345 arch/powerpc/kernel/optprobes.c return ((unsigned long)op->kp.addr <= addr && kp 346 arch/powerpc/kernel/optprobes.c (unsigned long)op->kp.addr + RELATIVEJUMP_SIZE > addr); kp 736 arch/powerpc/platforms/pseries/cmm.c static int cmm_set_disable(const char *val, const struct kernel_param *kp) kp 61 arch/s390/include/asm/kprobes.h struct kprobe *kp; kp 243 arch/s390/kernel/kprobes.c kcb->prev_kprobe.kp = __this_cpu_read(current_kprobe); kp 256 arch/s390/kernel/kprobes.c __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); kp 2106 arch/s390/kernel/perf_cpum_sf.c static int param_get_sfb_size(char *buffer, const struct kernel_param *kp) kp 2113 arch/s390/kernel/perf_cpum_sf.c static int param_set_sfb_size(const char *val, const struct kernel_param *kp) kp 38 arch/sh/include/asm/kprobes.h struct kprobe *kp; kp 123 arch/sh/kernel/kprobes.c kcb->prev_kprobe.kp = kprobe_running(); kp 129 arch/sh/kernel/kprobes.c __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); kp 333 arch/sh/kernel/kprobes.c __this_cpu_write(current_kprobe, &ri->rp->kp); kp 36 arch/sparc/include/asm/kprobes.h struct kprobe *kp; kp 79 arch/sparc/kernel/kprobes.c kcb->prev_kprobe.kp = kprobe_running(); kp 87 arch/sparc/kernel/kprobes.c __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); kp 1037 arch/um/drivers/virtio_uml.c static int vu_cmdline_set(const char *device, const struct kernel_param *kp) kp 1101 arch/um/drivers/virtio_uml.c static int vu_cmdline_get(char *buffer, const struct kernel_param *kp) kp 90 arch/x86/include/asm/kprobes.h struct kprobe *kp; kp 207 arch/x86/kernel/kprobes/core.c struct kprobe *kp; kp 210 arch/x86/kernel/kprobes/core.c kp = get_kprobe((void *)addr); kp 223 arch/x86/kernel/kprobes/core.c if (!kp && !faddr) kp 252 arch/x86/kernel/kprobes/core.c buf[0] = kp->opcode; kp 519 arch/x86/kernel/kprobes/core.c kcb->prev_kprobe.kp = kprobe_running(); kp 528 arch/x86/kernel/kprobes/core.c __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); kp 827 arch/x86/kernel/kprobes/core.c ri->rp->kp.addr); kp 850 arch/x86/kernel/kprobes/core.c __this_cpu_write(current_kprobe, &ri->rp->kp); kp 37 arch/x86/kernel/kprobes/opt.c struct kprobe *kp; kp 42 arch/x86/kernel/kprobes/opt.c kp = get_kprobe((void *)addr - i); kp 44 arch/x86/kernel/kprobes/opt.c if (kp && kprobe_optimized(kp)) { kp 45 arch/x86/kernel/kprobes/opt.c op = container_of(kp, struct optimized_kprobe, kp); kp 63 arch/x86/kernel/kprobes/opt.c if (addr == (unsigned long)kp->addr) { kp 64 arch/x86/kernel/kprobes/opt.c buf[0] = kp->opcode; kp 67 arch/x86/kernel/kprobes/opt.c offs = addr - (unsigned long)kp->addr - 1; kp 151 arch/x86/kernel/kprobes/opt.c if (kprobe_disabled(&op->kp)) kp 156 arch/x86/kernel/kprobes/opt.c kprobes_inc_nmissed_count(&op->kp); kp 165 arch/x86/kernel/kprobes/opt.c regs->ip = (unsigned long)op->kp.addr + INT3_SIZE; kp 168 arch/x86/kernel/kprobes/opt.c __this_cpu_write(current_kprobe, &op->kp); kp 170 arch/x86/kernel/kprobes/opt.c opt_pre_handler(&op->kp, regs); kp 316 arch/x86/kernel/kprobes/opt.c p = get_kprobe(op->kp.addr + i); kp 328 arch/x86/kernel/kprobes/opt.c return ((unsigned long)op->kp.addr <= addr && kp 329 arch/x86/kernel/kprobes/opt.c (unsigned long)op->kp.addr + op->optinsn.size > addr); kp 360 arch/x86/kernel/kprobes/opt.c if (!can_optimize((unsigned long)op->kp.addr)) kp 377 arch/x86/kernel/kprobes/opt.c rel = (long)slot - (long)op->kp.addr + RELATIVEJUMP_SIZE; kp 387 arch/x86/kernel/kprobes/opt.c ret = copy_optimized_instructions(buf + TMPL_END_IDX, op->kp.addr, kp 403 arch/x86/kernel/kprobes/opt.c (u8 *)op->kp.addr + op->optinsn.size); kp 429 arch/x86/kernel/kprobes/opt.c ((long)op->kp.addr + RELATIVEJUMP_SIZE)); kp 431 arch/x86/kernel/kprobes/opt.c WARN_ON(kprobe_disabled(&op->kp)); kp 434 arch/x86/kernel/kprobes/opt.c memcpy(op->optinsn.copied_insn, op->kp.addr + INT3_SIZE, kp 440 arch/x86/kernel/kprobes/opt.c text_poke_bp(op->kp.addr, insn_buff, RELATIVEJUMP_SIZE, kp 455 arch/x86/kernel/kprobes/opt.c text_poke_bp(op->kp.addr, insn_buff, RELATIVEJUMP_SIZE, kp 480 arch/x86/kernel/kprobes/opt.c op = container_of(p, struct optimized_kprobe, kp); kp 61 arch/x86/kvm/mmu.c static int set_nx_huge_pages(const char *val, const struct kernel_param *kp); kp 62 arch/x86/kvm/mmu.c static int set_nx_huge_pages_recovery_ratio(const char *val, const struct kernel_param *kp); kp 6276 arch/x86/kvm/mmu.c static int set_nx_huge_pages(const char *val, const struct kernel_param *kp) kp 6398 arch/x86/kvm/mmu.c static int set_nx_huge_pages_recovery_ratio(const char *val, const struct kernel_param *kp) kp 6404 arch/x86/kvm/mmu.c err = param_set_uint(val, kp); kp 275 arch/x86/kvm/mmu_audit.c static int mmu_audit_set(const char *val, const struct kernel_param *kp) kp 302 arch/x86/kvm/vmx/vmx.c static int vmentry_l1d_flush_set(const char *s, const struct kernel_param *kp) kp 330 arch/x86/kvm/vmx/vmx.c static int vmentry_l1d_flush_get(char *s, const struct kernel_param *kp) kp 595 arch/x86/oprofile/nmi_int.c static int set_cpu_type(const char *str, const struct kernel_param *kp) kp 96 arch/x86/platform/uv/uv_nmi.c static int param_get_local64(char *buffer, const struct kernel_param *kp) kp 98 arch/x86/platform/uv/uv_nmi.c return sprintf(buffer, "%lu\n", local64_read((local64_t *)kp->arg)); kp 101 arch/x86/platform/uv/uv_nmi.c static int param_set_local64(const char *val, const struct kernel_param *kp) kp 104 arch/x86/platform/uv/uv_nmi.c local64_set((local64_t *)kp->arg, 0); kp 179 arch/x86/platform/uv/uv_nmi.c static int param_get_action(char *buffer, const struct kernel_param *kp) kp 184 arch/x86/platform/uv/uv_nmi.c static int param_set_action(const char *val, const struct kernel_param *kp) kp 54 arch/xtensa/platforms/iss/simdisk.c const struct kernel_param *kp) kp 1984 block/genhd.c const struct kernel_param *kp) kp 1989 block/genhd.c ret = param_set_ulong(val, kp); kp 1186 crypto/aes_generic.c const u32 *kp = ctx->key_enc + 4; kp 1195 crypto/aes_generic.c f_nround(b1, b0, kp); kp 1196 crypto/aes_generic.c f_nround(b0, b1, kp); kp 1200 crypto/aes_generic.c f_nround(b1, b0, kp); kp 1201 crypto/aes_generic.c f_nround(b0, b1, kp); kp 1204 crypto/aes_generic.c f_nround(b1, b0, kp); kp 1205 crypto/aes_generic.c f_nround(b0, b1, kp); kp 1206 crypto/aes_generic.c f_nround(b1, b0, kp); kp 1207 crypto/aes_generic.c f_nround(b0, b1, kp); kp 1208 crypto/aes_generic.c f_nround(b1, b0, kp); kp 1209 crypto/aes_generic.c f_nround(b0, b1, kp); kp 1210 crypto/aes_generic.c f_nround(b1, b0, kp); kp 1211 crypto/aes_generic.c f_nround(b0, b1, kp); kp 1212 crypto/aes_generic.c f_nround(b1, b0, kp); kp 1213 crypto/aes_generic.c f_lround(b0, b1, kp); kp 1257 crypto/aes_generic.c const u32 *kp = ctx->key_dec + 4; kp 1265 crypto/aes_generic.c i_nround(b1, b0, kp); kp 1266 crypto/aes_generic.c i_nround(b0, b1, kp); kp 1270 crypto/aes_generic.c i_nround(b1, b0, kp); kp 1271 crypto/aes_generic.c i_nround(b0, b1, kp); kp 1274 crypto/aes_generic.c i_nround(b1, b0, kp); kp 1275 crypto/aes_generic.c i_nround(b0, b1, kp); kp 1276 crypto/aes_generic.c i_nround(b1, b0, kp); kp 1277 crypto/aes_generic.c i_nround(b0, b1, kp); kp 1278 crypto/aes_generic.c i_nround(b1, b0, kp); kp 1279 crypto/aes_generic.c i_nround(b0, b1, kp); kp 1280 crypto/aes_generic.c i_nround(b1, b0, kp); kp 1281 crypto/aes_generic.c i_nround(b0, b1, kp); kp 1282 crypto/aes_generic.c i_nround(b1, b0, kp); kp 1283 crypto/aes_generic.c i_lround(b0, b1, kp); kp 148 crypto/vmac.c #define nh_16(mp, kp, nw, rh, rl) \ kp 153 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i], \ kp 154 crypto/vmac.c pe64_to_cpup((mp)+i+1)+(kp)[i+1]); \ kp 159 crypto/vmac.c #define nh_16_2(mp, kp, nw, rh, rl, rh1, rl1) \ kp 164 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i], \ kp 165 crypto/vmac.c pe64_to_cpup((mp)+i+1)+(kp)[i+1]); \ kp 167 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i+2], \ kp 168 crypto/vmac.c pe64_to_cpup((mp)+i+1)+(kp)[i+3]); \ kp 174 crypto/vmac.c #define nh_vmac_nhbytes(mp, kp, nw, rh, rl) \ kp 179 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i], \ kp 180 crypto/vmac.c pe64_to_cpup((mp)+i+1)+(kp)[i+1]); \ kp 182 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i+2)+(kp)[i+2], \ kp 183 crypto/vmac.c pe64_to_cpup((mp)+i+3)+(kp)[i+3]); \ kp 185 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i+4)+(kp)[i+4], \ kp 186 crypto/vmac.c pe64_to_cpup((mp)+i+5)+(kp)[i+5]); \ kp 188 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i+6)+(kp)[i+6], \ kp 189 crypto/vmac.c pe64_to_cpup((mp)+i+7)+(kp)[i+7]); \ kp 194 crypto/vmac.c #define nh_vmac_nhbytes_2(mp, kp, nw, rh, rl, rh1, rl1) \ kp 199 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i], \ kp 200 crypto/vmac.c pe64_to_cpup((mp)+i+1)+(kp)[i+1]); \ kp 202 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i+2], \ kp 203 crypto/vmac.c pe64_to_cpup((mp)+i+1)+(kp)[i+3]); \ kp 205 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i+2)+(kp)[i+2], \ kp 206 crypto/vmac.c pe64_to_cpup((mp)+i+3)+(kp)[i+3]); \ kp 208 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i+2)+(kp)[i+4], \ kp 209 crypto/vmac.c pe64_to_cpup((mp)+i+3)+(kp)[i+5]); \ kp 211 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i+4)+(kp)[i+4], \ kp 212 crypto/vmac.c pe64_to_cpup((mp)+i+5)+(kp)[i+5]); \ kp 214 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i+4)+(kp)[i+6], \ kp 215 crypto/vmac.c pe64_to_cpup((mp)+i+5)+(kp)[i+7]); \ kp 217 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i+6)+(kp)[i+6], \ kp 218 crypto/vmac.c pe64_to_cpup((mp)+i+7)+(kp)[i+7]); \ kp 220 crypto/vmac.c MUL64(th, tl, pe64_to_cpup((mp)+i+6)+(kp)[i+8], \ kp 221 crypto/vmac.c pe64_to_cpup((mp)+i+7)+(kp)[i+9]); \ kp 253 crypto/vmac.c #define nh_16(mp, kp, nw, rh, rl) \ kp 259 crypto/vmac.c t1 = pe64_to_cpup(mp+i) + kp[i]; \ kp 260 crypto/vmac.c t2 = pe64_to_cpup(mp+i+1) + kp[i+1]; \ kp 340 crypto/vmac.c #define nh_16_2(mp, kp, nw, rh, rl, rh2, rl2) \ kp 342 crypto/vmac.c nh_16(mp, kp, nw, rh, rl); \ kp 343 crypto/vmac.c nh_16(mp, ((kp)+2), nw, rh2, rl2); \ kp 347 crypto/vmac.c #define nh_vmac_nhbytes(mp, kp, nw, rh, rl) \ kp 348 crypto/vmac.c nh_16(mp, kp, nw, rh, rl) kp 351 crypto/vmac.c #define nh_vmac_nhbytes_2(mp, kp, nw, rh, rl, rh2, rl2) \ kp 353 crypto/vmac.c nh_vmac_nhbytes(mp, kp, nw, rh, rl); \ kp 354 crypto/vmac.c nh_vmac_nhbytes(mp, ((kp)+2), nw, rh2, rl2); \ kp 601 drivers/acpi/button.c const struct kernel_param *kp) kp 620 drivers/acpi/button.c const struct kernel_param *kp) kp 2004 drivers/acpi/ec.c const struct kernel_param *kp) kp 2023 drivers/acpi/ec.c const struct kernel_param *kp) kp 108 drivers/acpi/sysfs.c static int param_get_debug_layer(char *buffer, const struct kernel_param *kp) kp 136 drivers/acpi/sysfs.c static int param_get_debug_level(char *buffer, const struct kernel_param *kp) kp 173 drivers/acpi/sysfs.c const struct kernel_param *kp) kp 183 drivers/acpi/sysfs.c pr_err("%s: string parameter too long\n", kp->name); kp 215 drivers/acpi/sysfs.c static int param_get_trace_method_name(char *buffer, const struct kernel_param *kp) kp 235 drivers/acpi/sysfs.c const struct kernel_param *kp) kp 271 drivers/acpi/sysfs.c static int param_get_trace_state(char *buffer, const struct kernel_param *kp) kp 301 drivers/acpi/sysfs.c const struct kernel_param *kp) kp 130 drivers/android/binder.c const struct kernel_param *kp) kp 134 drivers/android/binder.c ret = param_set_int(val, kp); kp 123 drivers/block/null_blk_main.c static int null_set_queue_mode(const char *str, const struct kernel_param *kp) kp 158 drivers/block/null_blk_main.c static int null_set_irqmode(const char *str, const struct kernel_param *kp) kp 84 drivers/char/ipmi/ipmi_msghandler.c const struct kernel_param *kp) kp 106 drivers/char/ipmi/ipmi_msghandler.c static int panic_op_read_handler(char *buffer, const struct kernel_param *kp) kp 50 drivers/char/ipmi/ipmi_poweroff.c static int set_param_ifnum(const char *val, const struct kernel_param *kp) kp 52 drivers/char/ipmi/ipmi_poweroff.c int rv = param_set_int(val, kp); kp 17 drivers/char/ipmi/ipmi_si_hotmod.c static int hotmod_handler(const char *val, const struct kernel_param *kp); kp 186 drivers/char/ipmi/ipmi_si_hotmod.c static int hotmod_handler(const char *val, const struct kernel_param *kp) kp 176 drivers/char/ipmi/ipmi_watchdog.c static int set_param_timeout(const char *val, const struct kernel_param *kp) kp 188 drivers/char/ipmi/ipmi_watchdog.c *((int *)kp->arg) = l; kp 208 drivers/char/ipmi/ipmi_watchdog.c static int set_param_str(const char *val, const struct kernel_param *kp) kp 210 drivers/char/ipmi/ipmi_watchdog.c action_fn fn = (action_fn) kp->arg; kp 232 drivers/char/ipmi/ipmi_watchdog.c static int get_param_str(char *buffer, const struct kernel_param *kp) kp 234 drivers/char/ipmi/ipmi_watchdog.c action_fn fn = (action_fn) kp->arg; kp 244 drivers/char/ipmi/ipmi_watchdog.c static int set_param_wdog_ifnum(const char *val, const struct kernel_param *kp) kp 246 drivers/char/ipmi/ipmi_watchdog.c int rv = param_set_int(val, kp); kp 763 drivers/char/sonypi.c struct sonypi_keypress kp; kp 765 drivers/char/sonypi.c while (kfifo_out_locked(&sonypi_device.input_fifo, (unsigned char *)&kp, kp 766 drivers/char/sonypi.c sizeof(kp), &sonypi_device.input_fifo_lock) kp 767 drivers/char/sonypi.c == sizeof(kp)) { kp 769 drivers/char/sonypi.c input_report_key(kp.dev, kp.key, 0); kp 770 drivers/char/sonypi.c input_sync(kp.dev); kp 778 drivers/char/sonypi.c struct sonypi_keypress kp = { NULL }; kp 795 drivers/char/sonypi.c kp.key = BTN_MIDDLE; kp 796 drivers/char/sonypi.c kp.dev = jog_dev; kp 806 drivers/char/sonypi.c kp.dev = key_dev; kp 807 drivers/char/sonypi.c kp.key = sonypi_inputkeys[i].inputev; kp 813 drivers/char/sonypi.c if (kp.dev) { kp 814 drivers/char/sonypi.c input_report_key(kp.dev, kp.key, 1); kp 815 drivers/char/sonypi.c input_sync(kp.dev); kp 817 drivers/char/sonypi.c (unsigned char *)&kp, sizeof(kp), kp 257 drivers/clk/bcm/clk-iproc-pll.c static void __pll_bring_out_reset(struct iproc_pll *pll, unsigned int kp, kp 269 drivers/clk/bcm/clk-iproc-pll.c val |= ki << dig_filter->ki_shift | kp << dig_filter->kp_shift | kp 320 drivers/clk/bcm/clk-iproc-pll.c int ka = 0, ki, kp, ret; kp 352 drivers/clk/bcm/clk-iproc-pll.c kp = get_kp(ref_freq, kp_index); kp 353 drivers/clk/bcm/clk-iproc-pll.c if (kp < 0) { kp 355 drivers/clk/bcm/clk-iproc-pll.c return kp; kp 426 drivers/clk/bcm/clk-iproc-pll.c __pll_bring_out_reset(pll, kp, ka, ki); kp 13 drivers/crypto/hisilicon/sgl.c static int acc_sgl_sge_set(const char *val, const struct kernel_param *kp) kp 25 drivers/crypto/hisilicon/sgl.c return param_set_int(val, kp); kp 222 drivers/crypto/hisilicon/zip/zip_main.c static int pf_q_num_set(const char *val, const struct kernel_param *kp) kp 255 drivers/crypto/hisilicon/zip/zip_main.c return param_set_int(val, kp); kp 139 drivers/dma/dmatest.c static int dmatest_run_set(const char *val, const struct kernel_param *kp); kp 140 drivers/dma/dmatest.c static int dmatest_run_get(char *val, const struct kernel_param *kp); kp 149 drivers/dma/dmatest.c static int dmatest_chan_set(const char *val, const struct kernel_param *kp); kp 150 drivers/dma/dmatest.c static int dmatest_chan_get(char *val, const struct kernel_param *kp); kp 164 drivers/dma/dmatest.c static int dmatest_test_list_get(char *val, const struct kernel_param *kp); kp 267 drivers/dma/dmatest.c static int dmatest_wait_get(char *val, const struct kernel_param *kp) kp 275 drivers/dma/dmatest.c return param_get_bool(val, kp); kp 1141 drivers/dma/dmatest.c static int dmatest_run_get(char *val, const struct kernel_param *kp) kp 1155 drivers/dma/dmatest.c return param_get_bool(val, kp); kp 1158 drivers/dma/dmatest.c static int dmatest_run_set(const char *val, const struct kernel_param *kp) kp 1164 drivers/dma/dmatest.c ret = param_set_bool(val, kp); kp 1183 drivers/dma/dmatest.c static int dmatest_chan_set(const char *val, const struct kernel_param *kp) kp 1191 drivers/dma/dmatest.c ret = param_set_copystring(val, kp); kp 1248 drivers/dma/dmatest.c param_set_copystring(chan_reset_val, kp); kp 1254 drivers/dma/dmatest.c static int dmatest_chan_get(char *val, const struct kernel_param *kp) kp 1265 drivers/dma/dmatest.c return param_get_string(val, kp); kp 1268 drivers/dma/dmatest.c static int dmatest_test_list_get(char *val, const struct kernel_param *kp) kp 73 drivers/edac/edac_mc.c static int edac_report_set(const char *str, const struct kernel_param *kp) kp 88 drivers/edac/edac_mc.c static int edac_report_get(char *buffer, const struct kernel_param *kp) kp 53 drivers/edac/edac_mc_sysfs.c static int edac_set_poll_msec(const char *val, const struct kernel_param *kp) kp 68 drivers/edac/edac_mc_sysfs.c *((unsigned int *)kp->arg) = i; kp 23 drivers/edac/edac_module.c const struct kernel_param *kp) kp 35 drivers/edac/edac_module.c return param_set_int(buf, kp); kp 798 drivers/firmware/qemu_fw_cfg.c static int fw_cfg_cmdline_set(const char *arg, const struct kernel_param *kp) kp 837 drivers/firmware/qemu_fw_cfg.c res[0].flags = !strcmp(kp->name, "mmio") ? IORESOURCE_MEM : kp 864 drivers/firmware/qemu_fw_cfg.c static int fw_cfg_cmdline_get(char *buf, const struct kernel_param *kp) kp 871 drivers/firmware/qemu_fw_cfg.c (!strcmp(kp->name, "mmio") ^ kp 41 drivers/gpu/drm/drm_kms_helper_common.c static int edid_firmware_set(const char *val, const struct kernel_param *kp) kp 48 drivers/gpu/drm/drm_kms_helper_common.c static int edid_firmware_get(char *buffer, const struct kernel_param *kp) kp 305 drivers/hid/hid-cougar.c const struct kernel_param *kp) kp 309 drivers/hid/hid-cougar.c ret = param_set_bool(val, kp); kp 35 drivers/hid/hid-magicmouse.c const struct kernel_param *kp) { kp 1093 drivers/hid/hid-steam.c const struct kernel_param *kp) kp 1098 drivers/hid/hid-steam.c ret = param_set_bool(val, kp); kp 180 drivers/ide/ide.c static int ide_set_dev_param_mask(const char *s, const struct kernel_param *kp) kp 183 drivers/ide/ide.c unsigned int *dev_param_mask = (unsigned int *)kp->arg; kp 248 drivers/ide/ide.c static int ide_set_disk_chs(const char *str, const struct kernel_param *kp) kp 332 drivers/ide/ide.c static int ide_set_ignore_cable(const char *s, const struct kernel_param *kp) kp 479 drivers/iio/pressure/dps310.c s64 kp; kp 488 drivers/iio/pressure/dps310.c kp = (s64)kpi; kp 507 drivers/iio/pressure/dps310.c denoms[1] = kp; kp 509 drivers/iio/pressure/dps310.c denoms[2] = kp * kp; kp 511 drivers/iio/pressure/dps310.c denoms[3] = kp * kp * kp; kp 515 drivers/iio/pressure/dps310.c denoms[5] = kp * kt; kp 517 drivers/iio/pressure/dps310.c denoms[6] = kp * kp * kt; kp 87 drivers/infiniband/hw/hfi1/driver.c static int hfi1_caps_set(const char *val, const struct kernel_param *kp); kp 88 drivers/infiniband/hw/hfi1/driver.c static int hfi1_caps_get(char *buffer, const struct kernel_param *kp); kp 112 drivers/infiniband/hw/hfi1/driver.c static int hfi1_caps_set(const char *val, const struct kernel_param *kp) kp 115 drivers/infiniband/hw/hfi1/driver.c unsigned long *cap_mask_ptr = (unsigned long *)kp->arg, kp 151 drivers/infiniband/hw/hfi1/driver.c static int hfi1_caps_get(char *buffer, const struct kernel_param *kp) kp 153 drivers/infiniband/hw/hfi1/driver.c unsigned long cap_mask = *(unsigned long *)kp->arg; kp 6137 drivers/infiniband/hw/qib/qib_iba7322.c static int setup_txselect(const char *str, const struct kernel_param *kp) kp 56 drivers/infiniband/sw/rxe/rxe_sysfs.c static int rxe_param_set_add(const char *val, const struct kernel_param *kp) kp 95 drivers/infiniband/sw/rxe/rxe_sysfs.c static int rxe_param_set_remove(const char *val, const struct kernel_param *kp) kp 172 drivers/infiniband/ulp/srp/ib_srp.c static int srp_tmo_get(char *buffer, const struct kernel_param *kp) kp 174 drivers/infiniband/ulp/srp/ib_srp.c int tmo = *(int *)kp->arg; kp 182 drivers/infiniband/ulp/srp/ib_srp.c static int srp_tmo_set(const char *val, const struct kernel_param *kp) kp 190 drivers/infiniband/ulp/srp/ib_srp.c if (kp->arg == &srp_reconnect_delay) kp 193 drivers/infiniband/ulp/srp/ib_srp.c else if (kp->arg == &srp_fast_io_fail_tmo) kp 200 drivers/infiniband/ulp/srp/ib_srp.c *(int *)kp->arg = tmo; kp 82 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_get_u64_x(char *buffer, const struct kernel_param *kp) kp 84 drivers/infiniband/ulp/srpt/ib_srpt.c return sprintf(buffer, "0x%016llx", *(u64 *)kp->arg); kp 95 drivers/input/keyboard/bcm-keypad.c static int bcm_kp_get_keycode(struct bcm_kp *kp, int row, int col) kp 97 drivers/input/keyboard/bcm-keypad.c unsigned int row_shift = get_count_order(kp->n_cols); kp 98 drivers/input/keyboard/bcm-keypad.c unsigned short *keymap = kp->input_dev->keycode; kp 103 drivers/input/keyboard/bcm-keypad.c static void bcm_kp_report_keys(struct bcm_kp *kp, int reg_num, int pull_mode) kp 112 drivers/input/keyboard/bcm-keypad.c writel(0xFFFFFFFF, kp->base + KPICRN_OFFSET(reg_num)); kp 114 drivers/input/keyboard/bcm-keypad.c state = readl(kp->base + KPSSRN_OFFSET(reg_num)); kp 115 drivers/input/keyboard/bcm-keypad.c change = kp->last_state[reg_num] ^ state; kp 116 drivers/input/keyboard/bcm-keypad.c kp->last_state[reg_num] = state; kp 124 drivers/input/keyboard/bcm-keypad.c keycode = bcm_kp_get_keycode(kp, row, col); kp 125 drivers/input/keyboard/bcm-keypad.c input_report_key(kp->input_dev, keycode, key_press); kp 131 drivers/input/keyboard/bcm-keypad.c struct bcm_kp *kp = dev_id; kp 132 drivers/input/keyboard/bcm-keypad.c int pull_mode = (kp->kpcr >> KPCR_MODE_SHIFT) & KPCR_MODE_MASK; kp 136 drivers/input/keyboard/bcm-keypad.c bcm_kp_report_keys(kp, reg_num, pull_mode); kp 138 drivers/input/keyboard/bcm-keypad.c input_sync(kp->input_dev); kp 143 drivers/input/keyboard/bcm-keypad.c static int bcm_kp_start(struct bcm_kp *kp) kp 147 drivers/input/keyboard/bcm-keypad.c if (kp->clk) { kp 148 drivers/input/keyboard/bcm-keypad.c error = clk_prepare_enable(kp->clk); kp 153 drivers/input/keyboard/bcm-keypad.c writel(kp->kpior, kp->base + KPIOR_OFFSET); kp 155 drivers/input/keyboard/bcm-keypad.c writel(kp->imr0_val, kp->base + KPIMR0_OFFSET); kp 156 drivers/input/keyboard/bcm-keypad.c writel(kp->imr1_val, kp->base + KPIMR1_OFFSET); kp 158 drivers/input/keyboard/bcm-keypad.c writel(kp->kpemr, kp->base + KPEMR0_OFFSET); kp 159 drivers/input/keyboard/bcm-keypad.c writel(kp->kpemr, kp->base + KPEMR1_OFFSET); kp 160 drivers/input/keyboard/bcm-keypad.c writel(kp->kpemr, kp->base + KPEMR2_OFFSET); kp 161 drivers/input/keyboard/bcm-keypad.c writel(kp->kpemr, kp->base + KPEMR3_OFFSET); kp 163 drivers/input/keyboard/bcm-keypad.c writel(0xFFFFFFFF, kp->base + KPICR0_OFFSET); kp 164 drivers/input/keyboard/bcm-keypad.c writel(0xFFFFFFFF, kp->base + KPICR1_OFFSET); kp 166 drivers/input/keyboard/bcm-keypad.c kp->last_state[0] = readl(kp->base + KPSSR0_OFFSET); kp 167 drivers/input/keyboard/bcm-keypad.c kp->last_state[0] = readl(kp->base + KPSSR1_OFFSET); kp 169 drivers/input/keyboard/bcm-keypad.c writel(kp->kpcr | KPCR_ENABLE, kp->base + KPCR_OFFSET); kp 174 drivers/input/keyboard/bcm-keypad.c static void bcm_kp_stop(const struct bcm_kp *kp) kp 178 drivers/input/keyboard/bcm-keypad.c val = readl(kp->base + KPCR_OFFSET); kp 180 drivers/input/keyboard/bcm-keypad.c writel(0, kp->base + KPCR_OFFSET); kp 181 drivers/input/keyboard/bcm-keypad.c writel(0, kp->base + KPIMR0_OFFSET); kp 182 drivers/input/keyboard/bcm-keypad.c writel(0, kp->base + KPIMR1_OFFSET); kp 183 drivers/input/keyboard/bcm-keypad.c writel(0xFFFFFFFF, kp->base + KPICR0_OFFSET); kp 184 drivers/input/keyboard/bcm-keypad.c writel(0xFFFFFFFF, kp->base + KPICR1_OFFSET); kp 186 drivers/input/keyboard/bcm-keypad.c if (kp->clk) kp 187 drivers/input/keyboard/bcm-keypad.c clk_disable_unprepare(kp->clk); kp 192 drivers/input/keyboard/bcm-keypad.c struct bcm_kp *kp = input_get_drvdata(dev); kp 194 drivers/input/keyboard/bcm-keypad.c return bcm_kp_start(kp); kp 199 drivers/input/keyboard/bcm-keypad.c struct bcm_kp *kp = input_get_drvdata(dev); kp 201 drivers/input/keyboard/bcm-keypad.c bcm_kp_stop(kp); kp 204 drivers/input/keyboard/bcm-keypad.c static int bcm_kp_matrix_key_parse_dt(struct bcm_kp *kp) kp 206 drivers/input/keyboard/bcm-keypad.c struct device *dev = kp->input_dev->dev.parent; kp 214 drivers/input/keyboard/bcm-keypad.c kp->kpcr = KPCR_STATUSFILTERENABLE | KPCR_COLFILTERENABLE; kp 216 drivers/input/keyboard/bcm-keypad.c error = matrix_keypad_parse_properties(dev, &kp->n_rows, &kp->n_cols); kp 223 drivers/input/keyboard/bcm-keypad.c kp->kpcr |= (kp->n_rows - 1) << KPCR_ROWWIDTH_SHIFT; kp 226 drivers/input/keyboard/bcm-keypad.c kp->kpcr |= (kp->n_cols - 1) << KPCR_COLUMNWIDTH_SHIFT; kp 235 drivers/input/keyboard/bcm-keypad.c col_mask = (1 << (kp->n_cols)) - 1; kp 236 drivers/input/keyboard/bcm-keypad.c num_rows = kp->n_rows; kp 239 drivers/input/keyboard/bcm-keypad.c kp->imr0_val = col_mask; kp 243 drivers/input/keyboard/bcm-keypad.c kp->imr0_val |= kp->imr0_val << MAX_COLS; kp 246 drivers/input/keyboard/bcm-keypad.c kp->imr1_val = 0; kp 248 drivers/input/keyboard/bcm-keypad.c kp->imr1_val = col_mask; kp 250 drivers/input/keyboard/bcm-keypad.c kp->imr1_val |= kp->imr1_val << MAX_COLS; kp 255 drivers/input/keyboard/bcm-keypad.c kp->kpemr = 0; kp 257 drivers/input/keyboard/bcm-keypad.c kp->kpemr |= (KPEMR_EDGETYPE_BOTH << i); kp 271 drivers/input/keyboard/bcm-keypad.c kp->kpcr |= dt_val << KPCR_STATUSFILTERTYPE_SHIFT; kp 285 drivers/input/keyboard/bcm-keypad.c kp->kpcr |= dt_val << KPCR_COLFILTERTYPE_SHIFT; kp 296 drivers/input/keyboard/bcm-keypad.c kp->kpior = ((1 << kp->n_rows) - 1) << kp 299 drivers/input/keyboard/bcm-keypad.c kp->kpior = ((1 << kp->n_cols) - 1) << kp 307 drivers/input/keyboard/bcm-keypad.c kp->kpcr |= KPCR_MODE; kp 310 drivers/input/keyboard/bcm-keypad.c kp->n_rows, kp->n_cols, kp 311 drivers/input/keyboard/bcm-keypad.c kp->kpcr, kp->kpior, kp->kpemr); kp 319 drivers/input/keyboard/bcm-keypad.c struct bcm_kp *kp; kp 324 drivers/input/keyboard/bcm-keypad.c kp = devm_kzalloc(&pdev->dev, sizeof(*kp), GFP_KERNEL); kp 325 drivers/input/keyboard/bcm-keypad.c if (!kp) kp 351 drivers/input/keyboard/bcm-keypad.c input_set_drvdata(input_dev, kp); kp 353 drivers/input/keyboard/bcm-keypad.c kp->input_dev = input_dev; kp 355 drivers/input/keyboard/bcm-keypad.c error = bcm_kp_matrix_key_parse_dt(kp); kp 360 drivers/input/keyboard/bcm-keypad.c kp->n_rows, kp->n_cols, kp 374 drivers/input/keyboard/bcm-keypad.c kp->base = devm_ioremap_resource(&pdev->dev, res); kp 375 drivers/input/keyboard/bcm-keypad.c if (IS_ERR(kp->base)) kp 376 drivers/input/keyboard/bcm-keypad.c return PTR_ERR(kp->base); kp 379 drivers/input/keyboard/bcm-keypad.c kp->clk = devm_clk_get(&pdev->dev, "peri_clk"); kp 380 drivers/input/keyboard/bcm-keypad.c if (IS_ERR(kp->clk)) { kp 381 drivers/input/keyboard/bcm-keypad.c error = PTR_ERR(kp->clk); kp 389 drivers/input/keyboard/bcm-keypad.c kp->clk = NULL; kp 399 drivers/input/keyboard/bcm-keypad.c actual_rate = clk_round_rate(kp->clk, desired_rate); kp 403 drivers/input/keyboard/bcm-keypad.c error = clk_set_rate(kp->clk, actual_rate); kp 407 drivers/input/keyboard/bcm-keypad.c error = clk_prepare_enable(kp->clk); kp 413 drivers/input/keyboard/bcm-keypad.c bcm_kp_stop(kp); kp 415 drivers/input/keyboard/bcm-keypad.c kp->irq = platform_get_irq(pdev, 0); kp 416 drivers/input/keyboard/bcm-keypad.c if (kp->irq < 0) kp 419 drivers/input/keyboard/bcm-keypad.c error = devm_request_threaded_irq(&pdev->dev, kp->irq, kp 421 drivers/input/keyboard/bcm-keypad.c IRQF_ONESHOT, pdev->name, kp); kp 108 drivers/input/keyboard/pmic8xxx-keypad.c static u8 pmic8xxx_col_state(struct pmic8xxx_kp *kp, u8 col) kp 112 drivers/input/keyboard/pmic8xxx-keypad.c return 1 << kp->num_cols; kp 114 drivers/input/keyboard/pmic8xxx-keypad.c return col & ((1 << kp->num_cols) - 1); kp 129 drivers/input/keyboard/pmic8xxx-keypad.c static int pmic8xxx_chk_sync_read(struct pmic8xxx_kp *kp) kp 134 drivers/input/keyboard/pmic8xxx-keypad.c rc = regmap_read(kp->regmap, KEYP_SCAN, &scan_val); kp 136 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, "Error reading KEYP_SCAN reg, rc=%d\n", rc); kp 142 drivers/input/keyboard/pmic8xxx-keypad.c rc = regmap_write(kp->regmap, KEYP_SCAN, scan_val); kp 144 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, "Error writing KEYP_SCAN reg, rc=%d\n", rc); kp 154 drivers/input/keyboard/pmic8xxx-keypad.c static int pmic8xxx_kp_read_data(struct pmic8xxx_kp *kp, u16 *state, kp 161 drivers/input/keyboard/pmic8xxx-keypad.c rc = regmap_read(kp->regmap, data_reg, &val); kp 164 drivers/input/keyboard/pmic8xxx-keypad.c dev_dbg(kp->dev, "%d = %d\n", row, val); kp 165 drivers/input/keyboard/pmic8xxx-keypad.c state[row] = pmic8xxx_col_state(kp, val); kp 171 drivers/input/keyboard/pmic8xxx-keypad.c static int pmic8xxx_kp_read_matrix(struct pmic8xxx_kp *kp, u16 *new_state, kp 177 drivers/input/keyboard/pmic8xxx-keypad.c if (kp->num_rows < PM8XXX_MIN_ROWS) kp 180 drivers/input/keyboard/pmic8xxx-keypad.c read_rows = kp->num_rows; kp 182 drivers/input/keyboard/pmic8xxx-keypad.c pmic8xxx_chk_sync_read(kp); kp 185 drivers/input/keyboard/pmic8xxx-keypad.c rc = pmic8xxx_kp_read_data(kp, old_state, KEYP_OLD_DATA, kp 188 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, kp 194 drivers/input/keyboard/pmic8xxx-keypad.c rc = pmic8xxx_kp_read_data(kp, new_state, KEYP_RECENT_DATA, kp 197 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, kp 205 drivers/input/keyboard/pmic8xxx-keypad.c rc = regmap_read(kp->regmap, KEYP_SCAN, &scan_val); kp 207 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, "Error reading KEYP_SCAN reg, rc=%d\n", rc); kp 212 drivers/input/keyboard/pmic8xxx-keypad.c rc = regmap_write(kp->regmap, KEYP_SCAN, scan_val); kp 214 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, "Error writing KEYP_SCAN reg, rc=%d\n", rc); kp 219 drivers/input/keyboard/pmic8xxx-keypad.c static void __pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, u16 *new_state, kp 224 drivers/input/keyboard/pmic8xxx-keypad.c for (row = 0; row < kp->num_rows; row++) { kp 230 drivers/input/keyboard/pmic8xxx-keypad.c for (col = 0; col < kp->num_cols; col++) { kp 234 drivers/input/keyboard/pmic8xxx-keypad.c dev_dbg(kp->dev, "key [%d:%d] %s\n", row, col, kp 240 drivers/input/keyboard/pmic8xxx-keypad.c input_event(kp->input, EV_MSC, MSC_SCAN, code); kp 241 drivers/input/keyboard/pmic8xxx-keypad.c input_report_key(kp->input, kp 242 drivers/input/keyboard/pmic8xxx-keypad.c kp->keycodes[code], kp 245 drivers/input/keyboard/pmic8xxx-keypad.c input_sync(kp->input); kp 250 drivers/input/keyboard/pmic8xxx-keypad.c static bool pmic8xxx_detect_ghost_keys(struct pmic8xxx_kp *kp, u16 *new_state) kp 256 drivers/input/keyboard/pmic8xxx-keypad.c for (row = 0; row < kp->num_rows; row++) { kp 258 drivers/input/keyboard/pmic8xxx-keypad.c ((1 << kp->num_cols) - 1); kp 264 drivers/input/keyboard/pmic8xxx-keypad.c dev_dbg(kp->dev, "detected ghost key on row[%d]" kp 274 drivers/input/keyboard/pmic8xxx-keypad.c static int pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, unsigned int events) kp 282 drivers/input/keyboard/pmic8xxx-keypad.c rc = pmic8xxx_kp_read_matrix(kp, new_state, NULL); kp 287 drivers/input/keyboard/pmic8xxx-keypad.c if (pmic8xxx_detect_ghost_keys(kp, new_state)) kp 289 drivers/input/keyboard/pmic8xxx-keypad.c __pmic8xxx_kp_scan_matrix(kp, new_state, kp->keystate); kp 290 drivers/input/keyboard/pmic8xxx-keypad.c memcpy(kp->keystate, new_state, sizeof(new_state)); kp 293 drivers/input/keyboard/pmic8xxx-keypad.c rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); kp 297 drivers/input/keyboard/pmic8xxx-keypad.c __pmic8xxx_kp_scan_matrix(kp, old_state, kp->keystate); kp 298 drivers/input/keyboard/pmic8xxx-keypad.c __pmic8xxx_kp_scan_matrix(kp, new_state, old_state); kp 299 drivers/input/keyboard/pmic8xxx-keypad.c memcpy(kp->keystate, new_state, sizeof(new_state)); kp 302 drivers/input/keyboard/pmic8xxx-keypad.c dev_dbg(kp->dev, "Some key events were lost\n"); kp 303 drivers/input/keyboard/pmic8xxx-keypad.c rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); kp 306 drivers/input/keyboard/pmic8xxx-keypad.c __pmic8xxx_kp_scan_matrix(kp, old_state, kp->keystate); kp 307 drivers/input/keyboard/pmic8xxx-keypad.c __pmic8xxx_kp_scan_matrix(kp, new_state, old_state); kp 308 drivers/input/keyboard/pmic8xxx-keypad.c memcpy(kp->keystate, new_state, sizeof(new_state)); kp 332 drivers/input/keyboard/pmic8xxx-keypad.c struct pmic8xxx_kp *kp = data; kp 334 drivers/input/keyboard/pmic8xxx-keypad.c rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); kp 336 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, "failed to read keypad matrix\n"); kp 340 drivers/input/keyboard/pmic8xxx-keypad.c __pmic8xxx_kp_scan_matrix(kp, new_state, kp->stuckstate); kp 347 drivers/input/keyboard/pmic8xxx-keypad.c struct pmic8xxx_kp *kp = data; kp 351 drivers/input/keyboard/pmic8xxx-keypad.c rc = regmap_read(kp->regmap, KEYP_CTRL, &ctrl_val); kp 353 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, "failed to read keyp_ctrl register\n"); kp 359 drivers/input/keyboard/pmic8xxx-keypad.c rc = pmic8xxx_kp_scan_matrix(kp, events); kp 361 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, "failed to scan matrix\n"); kp 366 drivers/input/keyboard/pmic8xxx-keypad.c static int pmic8xxx_kpd_init(struct pmic8xxx_kp *kp, kp 380 drivers/input/keyboard/pmic8xxx-keypad.c if (kp->num_cols < KEYP_CTRL_SCAN_COLS_MIN) kp 383 drivers/input/keyboard/pmic8xxx-keypad.c bits = kp->num_cols - KEYP_CTRL_SCAN_COLS_MIN; kp 388 drivers/input/keyboard/pmic8xxx-keypad.c if (kp->num_rows < KEYP_CTRL_SCAN_ROWS_MIN) kp 391 drivers/input/keyboard/pmic8xxx-keypad.c bits = row_bits[kp->num_rows - KEYP_CTRL_SCAN_ROWS_MIN]; kp 395 drivers/input/keyboard/pmic8xxx-keypad.c rc = regmap_write(kp->regmap, KEYP_CTRL, ctrl_val); kp 397 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, "Error writing KEYP_CTRL reg, rc=%d\n", rc); kp 442 drivers/input/keyboard/pmic8xxx-keypad.c rc = regmap_write(kp->regmap, KEYP_SCAN, scan_val); kp 444 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, "Error writing KEYP_SCAN reg, rc=%d\n", rc); kp 450 drivers/input/keyboard/pmic8xxx-keypad.c static int pmic8xxx_kp_enable(struct pmic8xxx_kp *kp) kp 454 drivers/input/keyboard/pmic8xxx-keypad.c kp->ctrl_reg |= KEYP_CTRL_KEYP_EN; kp 456 drivers/input/keyboard/pmic8xxx-keypad.c rc = regmap_write(kp->regmap, KEYP_CTRL, kp->ctrl_reg); kp 458 drivers/input/keyboard/pmic8xxx-keypad.c dev_err(kp->dev, "Error writing KEYP_CTRL reg, rc=%d\n", rc); kp 463 drivers/input/keyboard/pmic8xxx-keypad.c static int pmic8xxx_kp_disable(struct pmic8xxx_kp *kp) kp 467 drivers/input/keyboard/pmic8xxx-keypad.c kp->ctrl_reg &= ~KEYP_CTRL_KEYP_EN; kp 469 drivers/input/keyboard/pmic8xxx-keypad.c rc = regmap_write(kp->regmap, KEYP_CTRL, kp->ctrl_reg); kp 478 drivers/input/keyboard/pmic8xxx-keypad.c struct pmic8xxx_kp *kp = input_get_drvdata(dev); kp 480 drivers/input/keyboard/pmic8xxx-keypad.c return pmic8xxx_kp_enable(kp); kp 485 drivers/input/keyboard/pmic8xxx-keypad.c struct pmic8xxx_kp *kp = input_get_drvdata(dev); kp 487 drivers/input/keyboard/pmic8xxx-keypad.c pmic8xxx_kp_disable(kp); kp 506 drivers/input/keyboard/pmic8xxx-keypad.c struct pmic8xxx_kp *kp; kp 526 drivers/input/keyboard/pmic8xxx-keypad.c kp = devm_kzalloc(&pdev->dev, sizeof(*kp), GFP_KERNEL); kp 527 drivers/input/keyboard/pmic8xxx-keypad.c if (!kp) kp 530 drivers/input/keyboard/pmic8xxx-keypad.c kp->regmap = dev_get_regmap(pdev->dev.parent, NULL); kp 531 drivers/input/keyboard/pmic8xxx-keypad.c if (!kp->regmap) kp 534 drivers/input/keyboard/pmic8xxx-keypad.c platform_set_drvdata(pdev, kp); kp 536 drivers/input/keyboard/pmic8xxx-keypad.c kp->num_rows = rows; kp 537 drivers/input/keyboard/pmic8xxx-keypad.c kp->num_cols = cols; kp 538 drivers/input/keyboard/pmic8xxx-keypad.c kp->dev = &pdev->dev; kp 540 drivers/input/keyboard/pmic8xxx-keypad.c kp->input = devm_input_allocate_device(&pdev->dev); kp 541 drivers/input/keyboard/pmic8xxx-keypad.c if (!kp->input) { kp 546 drivers/input/keyboard/pmic8xxx-keypad.c kp->key_sense_irq = platform_get_irq(pdev, 0); kp 547 drivers/input/keyboard/pmic8xxx-keypad.c if (kp->key_sense_irq < 0) kp 548 drivers/input/keyboard/pmic8xxx-keypad.c return kp->key_sense_irq; kp 550 drivers/input/keyboard/pmic8xxx-keypad.c kp->key_stuck_irq = platform_get_irq(pdev, 1); kp 551 drivers/input/keyboard/pmic8xxx-keypad.c if (kp->key_stuck_irq < 0) kp 552 drivers/input/keyboard/pmic8xxx-keypad.c return kp->key_stuck_irq; kp 554 drivers/input/keyboard/pmic8xxx-keypad.c kp->input->name = "PMIC8XXX keypad"; kp 555 drivers/input/keyboard/pmic8xxx-keypad.c kp->input->phys = "pmic8xxx_keypad/input0"; kp 557 drivers/input/keyboard/pmic8xxx-keypad.c kp->input->id.bustype = BUS_I2C; kp 558 drivers/input/keyboard/pmic8xxx-keypad.c kp->input->id.version = 0x0001; kp 559 drivers/input/keyboard/pmic8xxx-keypad.c kp->input->id.product = 0x0001; kp 560 drivers/input/keyboard/pmic8xxx-keypad.c kp->input->id.vendor = 0x0001; kp 562 drivers/input/keyboard/pmic8xxx-keypad.c kp->input->open = pmic8xxx_kp_open; kp 563 drivers/input/keyboard/pmic8xxx-keypad.c kp->input->close = pmic8xxx_kp_close; kp 567 drivers/input/keyboard/pmic8xxx-keypad.c kp->keycodes, kp->input); kp 574 drivers/input/keyboard/pmic8xxx-keypad.c __set_bit(EV_REP, kp->input->evbit); kp 575 drivers/input/keyboard/pmic8xxx-keypad.c input_set_capability(kp->input, EV_MSC, MSC_SCAN); kp 577 drivers/input/keyboard/pmic8xxx-keypad.c input_set_drvdata(kp->input, kp); kp 580 drivers/input/keyboard/pmic8xxx-keypad.c memset(kp->keystate, 0xff, sizeof(kp->keystate)); kp 581 drivers/input/keyboard/pmic8xxx-keypad.c memset(kp->stuckstate, 0xff, sizeof(kp->stuckstate)); kp 583 drivers/input/keyboard/pmic8xxx-keypad.c rc = pmic8xxx_kpd_init(kp, pdev); kp 589 drivers/input/keyboard/pmic8xxx-keypad.c rc = devm_request_any_context_irq(&pdev->dev, kp->key_sense_irq, kp 591 drivers/input/keyboard/pmic8xxx-keypad.c kp); kp 597 drivers/input/keyboard/pmic8xxx-keypad.c rc = devm_request_any_context_irq(&pdev->dev, kp->key_stuck_irq, kp 599 drivers/input/keyboard/pmic8xxx-keypad.c "pmic-keypad-stuck", kp); kp 605 drivers/input/keyboard/pmic8xxx-keypad.c rc = regmap_read(kp->regmap, KEYP_CTRL, &ctrl_val); kp 611 drivers/input/keyboard/pmic8xxx-keypad.c kp->ctrl_reg = ctrl_val; kp 613 drivers/input/keyboard/pmic8xxx-keypad.c rc = input_register_device(kp->input); kp 628 drivers/input/keyboard/pmic8xxx-keypad.c struct pmic8xxx_kp *kp = platform_get_drvdata(pdev); kp 629 drivers/input/keyboard/pmic8xxx-keypad.c struct input_dev *input_dev = kp->input; kp 632 drivers/input/keyboard/pmic8xxx-keypad.c enable_irq_wake(kp->key_sense_irq); kp 637 drivers/input/keyboard/pmic8xxx-keypad.c pmic8xxx_kp_disable(kp); kp 648 drivers/input/keyboard/pmic8xxx-keypad.c struct pmic8xxx_kp *kp = platform_get_drvdata(pdev); kp 649 drivers/input/keyboard/pmic8xxx-keypad.c struct input_dev *input_dev = kp->input; kp 652 drivers/input/keyboard/pmic8xxx-keypad.c disable_irq_wake(kp->key_sense_irq); kp 657 drivers/input/keyboard/pmic8xxx-keypad.c pmic8xxx_kp_enable(kp); kp 125 drivers/input/keyboard/twl4030_keypad.c static int twl4030_kpread(struct twl4030_keypad *kp, kp 131 drivers/input/keyboard/twl4030_keypad.c dev_warn(kp->dbg_dev, kp 138 drivers/input/keyboard/twl4030_keypad.c static int twl4030_kpwrite_u8(struct twl4030_keypad *kp, u8 data, u32 reg) kp 143 drivers/input/keyboard/twl4030_keypad.c dev_warn(kp->dbg_dev, kp 150 drivers/input/keyboard/twl4030_keypad.c static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) kp 159 drivers/input/keyboard/twl4030_keypad.c return 1 << kp->n_cols; kp 161 drivers/input/keyboard/twl4030_keypad.c return col & ((1 << kp->n_cols) - 1); kp 164 drivers/input/keyboard/twl4030_keypad.c static int twl4030_read_kp_matrix_state(struct twl4030_keypad *kp, u16 *state) kp 168 drivers/input/keyboard/twl4030_keypad.c int ret = twl4030_kpread(kp, new_state, kp 169 drivers/input/keyboard/twl4030_keypad.c KEYP_FULL_CODE_7_0, kp->n_rows); kp 171 drivers/input/keyboard/twl4030_keypad.c for (row = 0; row < kp->n_rows; row++) kp 172 drivers/input/keyboard/twl4030_keypad.c state[row] = twl4030_col_xlate(kp, new_state[row]); kp 177 drivers/input/keyboard/twl4030_keypad.c static bool twl4030_is_in_ghost_state(struct twl4030_keypad *kp, u16 *key_state) kp 182 drivers/input/keyboard/twl4030_keypad.c for (i = 0; i < kp->n_rows; i++) { kp 194 drivers/input/keyboard/twl4030_keypad.c static void twl4030_kp_scan(struct twl4030_keypad *kp, bool release_all) kp 196 drivers/input/keyboard/twl4030_keypad.c struct input_dev *input = kp->input; kp 204 drivers/input/keyboard/twl4030_keypad.c int ret = twl4030_read_kp_matrix_state(kp, new_state); kp 209 drivers/input/keyboard/twl4030_keypad.c if (twl4030_is_in_ghost_state(kp, new_state)) kp 214 drivers/input/keyboard/twl4030_keypad.c for (row = 0; row < kp->n_rows; row++) { kp 215 drivers/input/keyboard/twl4030_keypad.c int changed = new_state[row] ^ kp->kp_state[row]; kp 221 drivers/input/keyboard/twl4030_keypad.c for (col = 0; col < kp->n_cols + 1; col++) { kp 227 drivers/input/keyboard/twl4030_keypad.c dev_dbg(kp->dbg_dev, "key [%d:%d] %s\n", row, col, kp 233 drivers/input/keyboard/twl4030_keypad.c input_report_key(input, kp->keymap[code], kp 236 drivers/input/keyboard/twl4030_keypad.c kp->kp_state[row] = new_state[row]; kp 246 drivers/input/keyboard/twl4030_keypad.c struct twl4030_keypad *kp = _kp; kp 251 drivers/input/keyboard/twl4030_keypad.c ret = twl4030_kpread(kp, ®, KEYP_ISR1, 1); kp 258 drivers/input/keyboard/twl4030_keypad.c twl4030_kp_scan(kp, false); kp 260 drivers/input/keyboard/twl4030_keypad.c twl4030_kp_scan(kp, true); kp 265 drivers/input/keyboard/twl4030_keypad.c static int twl4030_kp_program(struct twl4030_keypad *kp) kp 273 drivers/input/keyboard/twl4030_keypad.c if (twl4030_kpwrite_u8(kp, reg, KEYP_CTRL) < 0) kp 283 drivers/input/keyboard/twl4030_keypad.c if (twl4030_kpwrite_u8(kp, reg, KEYP_EDR) < 0) kp 288 drivers/input/keyboard/twl4030_keypad.c if (twl4030_kpwrite_u8(kp, reg, KEYP_LK_PTV) < 0) kp 293 drivers/input/keyboard/twl4030_keypad.c if (twl4030_kpwrite_u8(kp, i, KEYP_DEB) < 0) kp 298 drivers/input/keyboard/twl4030_keypad.c if (twl4030_kpwrite_u8(kp, (i & 0xFF), KEYP_TIMEOUT_L) < 0) kp 301 drivers/input/keyboard/twl4030_keypad.c if (twl4030_kpwrite_u8(kp, (i >> 8), KEYP_TIMEOUT_H) < 0) kp 309 drivers/input/keyboard/twl4030_keypad.c if (twl4030_kpwrite_u8(kp, reg, KEYP_SIH_CTRL) < 0) kp 313 drivers/input/keyboard/twl4030_keypad.c if (twl4030_read_kp_matrix_state(kp, kp->kp_state) < 0) kp 327 drivers/input/keyboard/twl4030_keypad.c struct twl4030_keypad *kp; kp 332 drivers/input/keyboard/twl4030_keypad.c kp = devm_kzalloc(&pdev->dev, sizeof(*kp), GFP_KERNEL); kp 333 drivers/input/keyboard/twl4030_keypad.c if (!kp) kp 341 drivers/input/keyboard/twl4030_keypad.c kp->dbg_dev = &pdev->dev; kp 342 drivers/input/keyboard/twl4030_keypad.c kp->input = input; kp 359 drivers/input/keyboard/twl4030_keypad.c kp->n_rows = pdata->rows; kp 360 drivers/input/keyboard/twl4030_keypad.c kp->n_cols = pdata->cols; kp 361 drivers/input/keyboard/twl4030_keypad.c kp->autorepeat = pdata->rep; kp 364 drivers/input/keyboard/twl4030_keypad.c error = matrix_keypad_parse_properties(&pdev->dev, &kp->n_rows, kp 365 drivers/input/keyboard/twl4030_keypad.c &kp->n_cols); kp 369 drivers/input/keyboard/twl4030_keypad.c kp->autorepeat = true; kp 372 drivers/input/keyboard/twl4030_keypad.c if (kp->n_rows > TWL4030_MAX_ROWS || kp->n_cols > TWL4030_MAX_COLS) { kp 378 drivers/input/keyboard/twl4030_keypad.c kp->irq = platform_get_irq(pdev, 0); kp 379 drivers/input/keyboard/twl4030_keypad.c if (!kp->irq) { kp 387 drivers/input/keyboard/twl4030_keypad.c kp->keymap, input); kp 389 drivers/input/keyboard/twl4030_keypad.c dev_err(kp->dbg_dev, "Failed to build keymap\n"); kp 395 drivers/input/keyboard/twl4030_keypad.c if (kp->autorepeat) kp 400 drivers/input/keyboard/twl4030_keypad.c dev_err(kp->dbg_dev, kp 405 drivers/input/keyboard/twl4030_keypad.c error = twl4030_kp_program(kp); kp 415 drivers/input/keyboard/twl4030_keypad.c error = devm_request_threaded_irq(&pdev->dev, kp->irq, NULL, do_kp_irq, kp 416 drivers/input/keyboard/twl4030_keypad.c 0, pdev->name, kp); kp 418 drivers/input/keyboard/twl4030_keypad.c dev_info(kp->dbg_dev, "request_irq failed for irq no=%d: %d\n", kp 419 drivers/input/keyboard/twl4030_keypad.c kp->irq, error); kp 425 drivers/input/keyboard/twl4030_keypad.c if (twl4030_kpwrite_u8(kp, reg, KEYP_IMR1)) { kp 427 drivers/input/keyboard/twl4030_keypad.c (void) twl4030_kpwrite_u8(kp, 0xff, KEYP_IMR1); kp 37 drivers/input/misc/ati_remote2.c const struct kernel_param *kp, kp 53 drivers/input/misc/ati_remote2.c *(unsigned int *)kp->arg = mask; kp 59 drivers/input/misc/ati_remote2.c const struct kernel_param *kp) kp 63 drivers/input/misc/ati_remote2.c return ati_remote2_set_mask(val, kp, ATI_REMOTE2_MAX_CHANNEL_MASK); kp 67 drivers/input/misc/ati_remote2.c const struct kernel_param *kp) kp 71 drivers/input/misc/ati_remote2.c return sprintf(buffer, "0x%04x", *(unsigned int *)kp->arg); kp 75 drivers/input/misc/ati_remote2.c const struct kernel_param *kp) kp 79 drivers/input/misc/ati_remote2.c return ati_remote2_set_mask(val, kp, ATI_REMOTE2_MAX_MODE_MASK); kp 83 drivers/input/misc/ati_remote2.c const struct kernel_param *kp) kp 87 drivers/input/misc/ati_remote2.c return sprintf(buffer, "0x%02x", *(unsigned int *)kp->arg); kp 48 drivers/input/mouse/psmouse-base.c static int psmouse_get_maxproto(char *buffer, const struct kernel_param *kp); kp 2024 drivers/input/mouse/psmouse-base.c static int psmouse_set_maxproto(const char *val, const struct kernel_param *kp) kp 2036 drivers/input/mouse/psmouse-base.c *((unsigned int *)kp->arg) = proto->type; kp 2041 drivers/input/mouse/psmouse-base.c static int psmouse_get_maxproto(char *buffer, const struct kernel_param *kp) kp 2043 drivers/input/mouse/psmouse-base.c int type = *((unsigned int *)kp->arg); kp 54 drivers/input/serio/i8042.c static int i8042_set_reset(const char *val, const struct kernel_param *kp) kp 56 drivers/input/serio/i8042.c enum i8042_controller_reset_mode *arg = kp->arg; kp 146 drivers/isdn/hardware/mISDN/avmfritz.c set_debug(const char *val, const struct kernel_param *kp) kp 151 drivers/isdn/hardware/mISDN/avmfritz.c ret = param_set_uint(val, kp); kp 232 drivers/isdn/hardware/mISDN/mISDNinfineon.c set_debug(const char *val, const struct kernel_param *kp) kp 237 drivers/isdn/hardware/mISDN/mISDNinfineon.c ret = param_set_uint(val, kp); kp 101 drivers/isdn/hardware/mISDN/netjet.c set_debug(const char *val, const struct kernel_param *kp) kp 106 drivers/isdn/hardware/mISDN/netjet.c ret = param_set_uint(val, kp); kp 84 drivers/isdn/hardware/mISDN/speedfax.c set_debug(const char *val, const struct kernel_param *kp) kp 89 drivers/isdn/hardware/mISDN/speedfax.c ret = param_set_uint(val, kp); kp 88 drivers/isdn/hardware/mISDN/w6692.c set_debug(const char *val, const struct kernel_param *kp) kp 93 drivers/isdn/hardware/mISDN/w6692.c ret = param_set_uint(val, kp); kp 5549 drivers/md/md.c static int add_named_array(const char *val, const struct kernel_param *kp) kp 9642 drivers/md/md.c static int get_ro(char *buffer, const struct kernel_param *kp) kp 9646 drivers/md/md.c static int set_ro(const char *val, const struct kernel_param *kp) kp 72 drivers/media/pci/tw686x/tw686x-core.c static int tw686x_dma_mode_get(char *buffer, const struct kernel_param *kp) kp 77 drivers/media/pci/tw686x/tw686x-core.c static int tw686x_dma_mode_set(const char *val, const struct kernel_param *kp) kp 2356 drivers/media/usb/uvc/uvc_driver.c static int uvc_clock_param_get(char *buffer, const struct kernel_param *kp) kp 2364 drivers/media/usb/uvc/uvc_driver.c static int uvc_clock_param_set(const char *val, const struct kernel_param *kp) kp 1313 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_v4l2_get_xu_mapping(struct uvc_xu_control_mapping *kp, kp 1316 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_xu_control_mapping32 *p = (void *)kp; kp 1326 drivers/media/usb/uvc/uvc_v4l2.c memset(kp->reserved, 0, sizeof(kp->reserved)); kp 1327 drivers/media/usb/uvc/uvc_v4l2.c kp->menu_info = count ? compat_ptr(info) : NULL; kp 1328 drivers/media/usb/uvc/uvc_v4l2.c kp->menu_count = count; kp 1332 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_v4l2_put_xu_mapping(const struct uvc_xu_control_mapping *kp, kp 1335 drivers/media/usb/uvc/uvc_v4l2.c if (copy_to_user(up, kp, offsetof(typeof(*up), menu_info)) || kp 1336 drivers/media/usb/uvc/uvc_v4l2.c put_user(kp->menu_count, &up->menu_count)) kp 1353 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_v4l2_get_xu_query(struct uvc_xu_control_query *kp, kp 1361 drivers/media/usb/uvc/uvc_v4l2.c *kp = (struct uvc_xu_control_query){ kp 1371 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_v4l2_put_xu_query(const struct uvc_xu_control_query *kp, kp 1374 drivers/media/usb/uvc/uvc_v4l2.c if (copy_to_user(up, kp, offsetof(typeof(*up), data))) kp 102 drivers/message/fusion/mptbase.c static int mpt_set_debug_level(const char *val, const struct kernel_param *kp); kp 245 drivers/message/fusion/mptbase.c static int mpt_set_debug_level(const char *val, const struct kernel_param *kp) kp 247 drivers/message/fusion/mptbase.c int ret = param_set_int(val, kp); kp 1124 drivers/misc/kgdbts.c const struct kernel_param *kp) kp 93 drivers/misc/lis3lv02d/lis3lv02d.c static int param_set_axis(const char *val, const struct kernel_param *kp) kp 95 drivers/misc/lis3lv02d/lis3lv02d.c int ret = param_set_int(val, kp); kp 97 drivers/misc/lis3lv02d/lis3lv02d.c int val = *(int *)kp->arg; kp 39 drivers/misc/lkdtm/core.c static int lkdtm_kprobe_handler(struct kprobe *kp, struct pt_regs *regs); kp 261 drivers/misc/lkdtm/core.c static int lkdtm_kprobe_handler(struct kprobe *kp, struct pt_regs *regs) kp 431 drivers/mtd/devices/block2mtd.c static int block2mtd_setup(const char *val, const struct kernel_param *kp) kp 268 drivers/mtd/devices/phram.c static int phram_param_call(const char *val, const struct kernel_param *kp) kp 100 drivers/mtd/ubi/block.c const struct kernel_param *kp) kp 1350 drivers/mtd/ubi/build.c static int ubi_mtd_param_parse(const char *val, const struct kernel_param *kp) kp 59 drivers/net/wireless/ath/wil6210/main.c static int mtu_max_set(const char *val, const struct kernel_param *kp) kp 66 drivers/net/wireless/ath/wil6210/main.c ret = param_set_uint(val, kp); kp 88 drivers/net/wireless/ath/wil6210/main.c static int ring_order_set(const char *val, const struct kernel_param *kp) kp 100 drivers/net/wireless/ath/wil6210/main.c *((uint *)kp->arg) = x; kp 1507 drivers/net/wireless/marvell/mwifiex/main.h int mwifiex_set_encode(struct mwifiex_private *priv, struct key_params *kp, kp 1108 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c int mwifiex_set_encode(struct mwifiex_private *priv, struct key_params *kp, kp 1118 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c if (kp && kp->cipher == WLAN_CIPHER_SUITE_AES_CMAC) kp 1129 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c if (kp && kp->seq && kp->seq_len) { kp 1130 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c memcpy(encrypt_key.pn, kp->seq, kp->seq_len); kp 1131 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c encrypt_key.pn_len = kp->seq_len; kp 61 drivers/nvme/host/pci.c static int io_queue_depth_set(const char *val, const struct kernel_param *kp); kp 133 drivers/nvme/host/pci.c static int io_queue_depth_set(const char *val, const struct kernel_param *kp) kp 141 drivers/nvme/host/pci.c return param_set_int(val, kp); kp 1137 drivers/pci/pcie/aspm.c const struct kernel_param *kp) kp 1162 drivers/pci/pcie/aspm.c static int pcie_aspm_get_policy(char *buffer, const struct kernel_param *kp) kp 837 drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c DB8500_FUNC_GROUPS(kp, "kp_a_1", "kp_a_2", "kp_b_1", "kp_b_2", "kp_c_1", "kp_oc1_1"); kp 912 drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c FUNCTION(kp), kp 354 drivers/platform/x86/sony-laptop.c struct sony_laptop_keypress kp; kp 360 drivers/platform/x86/sony-laptop.c (unsigned char *)&kp, sizeof(kp)) == sizeof(kp)) { kp 361 drivers/platform/x86/sony-laptop.c input_report_key(kp.dev, kp.key, 0); kp 362 drivers/platform/x86/sony-laptop.c input_sync(kp.dev); kp 378 drivers/platform/x86/sony-laptop.c struct sony_laptop_keypress kp = { NULL }; kp 404 drivers/platform/x86/sony-laptop.c kp.key = BTN_MIDDLE; kp 405 drivers/platform/x86/sony-laptop.c kp.dev = jog_dev; kp 414 drivers/platform/x86/sony-laptop.c kp.key = sony_laptop_input_keycode_map[scancode]; kp 415 drivers/platform/x86/sony-laptop.c if (kp.key != KEY_UNKNOWN) kp 416 drivers/platform/x86/sony-laptop.c kp.dev = key_dev; kp 421 drivers/platform/x86/sony-laptop.c if (kp.dev) { kp 425 drivers/platform/x86/sony-laptop.c input_event(kp.dev, EV_MSC, MSC_SCAN, scancode); kp 426 drivers/platform/x86/sony-laptop.c input_report_key(kp.dev, kp.key, 1); kp 427 drivers/platform/x86/sony-laptop.c input_sync(kp.dev); kp 431 drivers/platform/x86/sony-laptop.c (unsigned char *)&kp, sizeof(kp), kp 535 drivers/platform/x86/sony-laptop.c struct sony_laptop_keypress kp = { NULL }; kp 548 drivers/platform/x86/sony-laptop.c (unsigned char *)&kp, sizeof(kp)) == sizeof(kp)) { kp 549 drivers/platform/x86/sony-laptop.c input_report_key(kp.dev, kp.key, 0); kp 550 drivers/platform/x86/sony-laptop.c input_sync(kp.dev); kp 10302 drivers/platform/x86/thinkpad_acpi.c static int __init set_ibm_param(const char *val, const struct kernel_param *kp) kp 10307 drivers/platform/x86/thinkpad_acpi.c if (!kp || !kp->name || !val) kp 10317 drivers/platform/x86/thinkpad_acpi.c if (strcmp(ibm->name, kp->name) == 0 && ibm->write) { kp 878 drivers/power/supply/bq27xxx_battery.c static int poll_interval_param_set(const char *val, const struct kernel_param *kp) kp 881 drivers/power/supply/bq27xxx_battery.c unsigned int prev_val = *(unsigned int *) kp->arg; kp 884 drivers/power/supply/bq27xxx_battery.c ret = param_set_uint(val, kp); kp 885 drivers/power/supply/bq27xxx_battery.c if (ret < 0 || prev_val == *(unsigned int *) kp->arg) kp 334 drivers/power/supply/test_power.c static int param_set_ac_online(const char *key, const struct kernel_param *kp) kp 341 drivers/power/supply/test_power.c static int param_get_ac_online(char *buffer, const struct kernel_param *kp) kp 347 drivers/power/supply/test_power.c static int param_set_usb_online(const char *key, const struct kernel_param *kp) kp 354 drivers/power/supply/test_power.c static int param_get_usb_online(char *buffer, const struct kernel_param *kp) kp 361 drivers/power/supply/test_power.c const struct kernel_param *kp) kp 368 drivers/power/supply/test_power.c static int param_get_battery_status(char *buffer, const struct kernel_param *kp) kp 375 drivers/power/supply/test_power.c const struct kernel_param *kp) kp 382 drivers/power/supply/test_power.c static int param_get_battery_health(char *buffer, const struct kernel_param *kp) kp 389 drivers/power/supply/test_power.c const struct kernel_param *kp) kp 397 drivers/power/supply/test_power.c const struct kernel_param *kp) kp 404 drivers/power/supply/test_power.c const struct kernel_param *kp) kp 413 drivers/power/supply/test_power.c const struct kernel_param *kp) kp 421 drivers/power/supply/test_power.c const struct kernel_param *kp) kp 436 drivers/power/supply/test_power.c const struct kernel_param *kp) kp 82 drivers/pwm/pwm-bcm-kona.c static void kona_pwmc_prepare_for_settings(struct kona_pwmc *kp, kp 85 drivers/pwm/pwm-bcm-kona.c unsigned int value = readl(kp->base + PWM_CONTROL_OFFSET); kp 89 drivers/pwm/pwm-bcm-kona.c writel(value, kp->base + PWM_CONTROL_OFFSET); kp 98 drivers/pwm/pwm-bcm-kona.c static void kona_pwmc_apply_settings(struct kona_pwmc *kp, unsigned int chan) kp 100 drivers/pwm/pwm-bcm-kona.c unsigned int value = readl(kp->base + PWM_CONTROL_OFFSET); kp 105 drivers/pwm/pwm-bcm-kona.c writel(value, kp->base + PWM_CONTROL_OFFSET); kp 114 drivers/pwm/pwm-bcm-kona.c struct kona_pwmc *kp = to_kona_pwmc(chip); kp 130 drivers/pwm/pwm-bcm-kona.c rate = clk_get_rate(kp->clk); kp 159 drivers/pwm/pwm-bcm-kona.c kona_pwmc_prepare_for_settings(kp, chan); kp 161 drivers/pwm/pwm-bcm-kona.c value = readl(kp->base + PRESCALE_OFFSET); kp 164 drivers/pwm/pwm-bcm-kona.c writel(value, kp->base + PRESCALE_OFFSET); kp 166 drivers/pwm/pwm-bcm-kona.c writel(pc, kp->base + PERIOD_COUNT_OFFSET(chan)); kp 168 drivers/pwm/pwm-bcm-kona.c writel(dc, kp->base + DUTY_CYCLE_HIGH_OFFSET(chan)); kp 170 drivers/pwm/pwm-bcm-kona.c kona_pwmc_apply_settings(kp, chan); kp 179 drivers/pwm/pwm-bcm-kona.c struct kona_pwmc *kp = to_kona_pwmc(chip); kp 184 drivers/pwm/pwm-bcm-kona.c ret = clk_prepare_enable(kp->clk); kp 190 drivers/pwm/pwm-bcm-kona.c kona_pwmc_prepare_for_settings(kp, chan); kp 192 drivers/pwm/pwm-bcm-kona.c value = readl(kp->base + PWM_CONTROL_OFFSET); kp 199 drivers/pwm/pwm-bcm-kona.c writel(value, kp->base + PWM_CONTROL_OFFSET); kp 201 drivers/pwm/pwm-bcm-kona.c kona_pwmc_apply_settings(kp, chan); kp 203 drivers/pwm/pwm-bcm-kona.c clk_disable_unprepare(kp->clk); kp 210 drivers/pwm/pwm-bcm-kona.c struct kona_pwmc *kp = to_kona_pwmc(chip); kp 213 drivers/pwm/pwm-bcm-kona.c ret = clk_prepare_enable(kp->clk); kp 222 drivers/pwm/pwm-bcm-kona.c clk_disable_unprepare(kp->clk); kp 231 drivers/pwm/pwm-bcm-kona.c struct kona_pwmc *kp = to_kona_pwmc(chip); kp 235 drivers/pwm/pwm-bcm-kona.c kona_pwmc_prepare_for_settings(kp, chan); kp 238 drivers/pwm/pwm-bcm-kona.c writel(0, kp->base + DUTY_CYCLE_HIGH_OFFSET(chan)); kp 239 drivers/pwm/pwm-bcm-kona.c writel(0, kp->base + PERIOD_COUNT_OFFSET(chan)); kp 242 drivers/pwm/pwm-bcm-kona.c value = readl(kp->base + PRESCALE_OFFSET); kp 244 drivers/pwm/pwm-bcm-kona.c writel(value, kp->base + PRESCALE_OFFSET); kp 246 drivers/pwm/pwm-bcm-kona.c kona_pwmc_apply_settings(kp, chan); kp 248 drivers/pwm/pwm-bcm-kona.c clk_disable_unprepare(kp->clk); kp 261 drivers/pwm/pwm-bcm-kona.c struct kona_pwmc *kp; kp 267 drivers/pwm/pwm-bcm-kona.c kp = devm_kzalloc(&pdev->dev, sizeof(*kp), GFP_KERNEL); kp 268 drivers/pwm/pwm-bcm-kona.c if (kp == NULL) kp 271 drivers/pwm/pwm-bcm-kona.c platform_set_drvdata(pdev, kp); kp 273 drivers/pwm/pwm-bcm-kona.c kp->chip.dev = &pdev->dev; kp 274 drivers/pwm/pwm-bcm-kona.c kp->chip.ops = &kona_pwm_ops; kp 275 drivers/pwm/pwm-bcm-kona.c kp->chip.base = -1; kp 276 drivers/pwm/pwm-bcm-kona.c kp->chip.npwm = 6; kp 277 drivers/pwm/pwm-bcm-kona.c kp->chip.of_xlate = of_pwm_xlate_with_flags; kp 278 drivers/pwm/pwm-bcm-kona.c kp->chip.of_pwm_n_cells = 3; kp 281 drivers/pwm/pwm-bcm-kona.c kp->base = devm_ioremap_resource(&pdev->dev, res); kp 282 drivers/pwm/pwm-bcm-kona.c if (IS_ERR(kp->base)) kp 283 drivers/pwm/pwm-bcm-kona.c return PTR_ERR(kp->base); kp 285 drivers/pwm/pwm-bcm-kona.c kp->clk = devm_clk_get(&pdev->dev, NULL); kp 286 drivers/pwm/pwm-bcm-kona.c if (IS_ERR(kp->clk)) { kp 288 drivers/pwm/pwm-bcm-kona.c PTR_ERR(kp->clk)); kp 289 drivers/pwm/pwm-bcm-kona.c return PTR_ERR(kp->clk); kp 292 drivers/pwm/pwm-bcm-kona.c ret = clk_prepare_enable(kp->clk); kp 299 drivers/pwm/pwm-bcm-kona.c for (chan = 0; chan < kp->chip.npwm; chan++) kp 302 drivers/pwm/pwm-bcm-kona.c writel(value, kp->base + PWM_CONTROL_OFFSET); kp 304 drivers/pwm/pwm-bcm-kona.c clk_disable_unprepare(kp->clk); kp 306 drivers/pwm/pwm-bcm-kona.c ret = pwmchip_add_with_polarity(&kp->chip, PWM_POLARITY_INVERSED); kp 315 drivers/pwm/pwm-bcm-kona.c struct kona_pwmc *kp = platform_get_drvdata(pdev); kp 318 drivers/pwm/pwm-bcm-kona.c for (chan = 0; chan < kp->chip.npwm; chan++) kp 319 drivers/pwm/pwm-bcm-kona.c if (pwm_is_enabled(&kp->chip.pwms[chan])) kp 320 drivers/pwm/pwm-bcm-kona.c clk_disable_unprepare(kp->clk); kp 322 drivers/pwm/pwm-bcm-kona.c return pwmchip_remove(&kp->chip); kp 25 drivers/scsi/fcoe/fcoe_transport.c static int fcoe_transport_show(char *buffer, const struct kernel_param *kp); kp 596 drivers/scsi/fcoe/fcoe_transport.c static int fcoe_transport_show(char *buffer, const struct kernel_param *kp) kp 858 drivers/scsi/fcoe/fcoe_transport.c const struct kernel_param *kp) kp 863 drivers/scsi/fcoe/fcoe_transport.c enum fip_mode fip_mode = (enum fip_mode)kp->arg; kp 924 drivers/scsi/fcoe/fcoe_transport.c const struct kernel_param *kp) kp 969 drivers/scsi/fcoe/fcoe_transport.c const struct kernel_param *kp) kp 1004 drivers/scsi/fcoe/fcoe_transport.c const struct kernel_param *kp) kp 165 drivers/scsi/mpt3sas/mpt3sas_base.c _scsih_set_fwfault_debug(const char *val, const struct kernel_param *kp) kp 167 drivers/scsi/mpt3sas/mpt3sas_base.c int ret = param_set_int(val, kp); kp 296 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_set_debug_level(const char *val, const struct kernel_param *kp) kp 298 drivers/scsi/mpt3sas/mpt3sas_scsih.c int ret = param_set_int(val, kp); kp 51 drivers/staging/speakup/keyhelp.c u_char *kp, counters[MAXFUNCS], ch, ch1; kp 58 drivers/staging/speakup/keyhelp.c kp = state_tbl + nstates + 1; kp 59 drivers/staging/speakup/keyhelp.c while (*kp++) { kp 61 drivers/staging/speakup/keyhelp.c for (i = 0; i < nstates; i++, kp++) { kp 62 drivers/staging/speakup/keyhelp.c if (!*kp) kp 64 drivers/staging/speakup/keyhelp.c if ((state_tbl[i] & 16) != 0 && *kp == SPK_KEY) kp 66 drivers/staging/speakup/keyhelp.c counters[*kp]++; kp 81 drivers/staging/speakup/keyhelp.c kp = state_tbl + nstates + 1; kp 82 drivers/staging/speakup/keyhelp.c while ((ch = *kp++)) { kp 84 drivers/staging/speakup/keyhelp.c ch1 = *kp++; kp 136 drivers/staging/speakup/keyhelp.c u_char func, *kp; kp 183 drivers/staging/speakup/keyhelp.c kp = spk_our_keys[key] + 1; kp 185 drivers/staging/speakup/keyhelp.c if (ch == kp[i]) kp 210 drivers/target/target_core_user.c const struct kernel_param *kp) kp 233 drivers/target/target_core_user.c const struct kernel_param *kp) kp 250 drivers/target/target_core_user.c const struct kernel_param *kp) kp 257 drivers/target/target_core_user.c const struct kernel_param *kp) kp 302 drivers/target/target_core_user.c const struct kernel_param *kp) kp 99 drivers/thermal/intel/intel_powerclamp.c static int duration_set(const char *arg, const struct kernel_param *kp) kp 147 drivers/thermal/intel/intel_powerclamp.c static int window_size_set(const char *arg, const struct kernel_param *kp) kp 1295 drivers/tty/hvc/hvc_iucv.c static int param_set_vmidfilter(const char *val, const struct kernel_param *kp) kp 1322 drivers/tty/hvc/hvc_iucv.c static int param_get_vmidfilter(char *buffer, const struct kernel_param *kp) kp 236 drivers/tty/serial/kgdboc.c const struct kernel_param *kp) kp 994 drivers/tty/sysrq.c const struct kernel_param *kp) kp 1006 drivers/tty/sysrq.c *((unsigned short *)kp->arg) = val; kp 28 drivers/usb/core/quirks.c static int quirks_param_set(const char *val, const struct kernel_param *kp) kp 36 drivers/usb/core/quirks.c err = param_set_copystring(val, kp); kp 1943 drivers/video/fbdev/uvesafb.c static int param_set_scroll(const char *val, const struct kernel_param *kp) kp 636 drivers/virtio/virtio_mmio.c const struct kernel_param *kp) kp 705 drivers/virtio/virtio_mmio.c static int vm_cmdline_get(char *buffer, const struct kernel_param *kp) kp 35 fs/fuse/inode.c static int set_global_limit(const char *val, const struct kernel_param *kp); kp 838 fs/fuse/inode.c static int set_global_limit(const char *val, const struct kernel_param *kp) kp 842 fs/fuse/inode.c rv = param_set_uint(val, kp); kp 846 fs/fuse/inode.c sanitize_global_limit((unsigned *)kp->arg); kp 624 fs/lockd/svc.c static int param_set_##name(const char *val, const struct kernel_param *kp) \ kp 630 fs/lockd/svc.c *((type *) kp->arg) = num; \ kp 2965 fs/nfs/super.c static int param_set_portnr(const char *val, const struct kernel_param *kp) kp 2975 fs/nfs/super.c *((unsigned int *)kp->arg) = num; kp 89 fs/ntfs/compress.c u8 *kp = page_address(page); kp 94 fs/ntfs/compress.c clear_page(kp); kp 98 fs/ntfs/compress.c memset(kp + kp_ofs, 0, PAGE_SIZE - kp_ofs); kp 77 fs/ocfs2/dlmfs/dlmfs.c const struct kernel_param *kp) kp 79 fs/ocfs2/dlmfs/dlmfs.c printk(KERN_ERR "%s: readonly parameter\n", kp->name); kp 83 fs/ocfs2/dlmfs/dlmfs.c const struct kernel_param *kp) kp 242 fs/xfs/libxfs/xfs_alloc_btree.c xfs_alloc_key_t *kp = &key->alloc; kp 244 fs/xfs/libxfs/xfs_alloc_btree.c return (int64_t)be32_to_cpu(kp->ar_startblock) - rec->ar_startblock; kp 253 fs/xfs/libxfs/xfs_alloc_btree.c xfs_alloc_key_t *kp = &key->alloc; kp 256 fs/xfs/libxfs/xfs_alloc_btree.c diff = (int64_t)be32_to_cpu(kp->ar_blockcount) - rec->ar_blockcount; kp 260 fs/xfs/libxfs/xfs_alloc_btree.c return (int64_t)be32_to_cpu(kp->ar_startblock) - rec->ar_startblock; kp 660 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmbt_key *kp; /* root block key pointer */ kp 758 fs/xfs/libxfs/xfs_bmap.c kp = XFS_BMBT_KEY_ADDR(mp, block, 1); kp 760 fs/xfs/libxfs/xfs_bmap.c kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); kp 1838 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *kp) kp 1841 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_key_from_rec(kp, kp 1843 fs/xfs/libxfs/xfs_btree.c return kp; kp 1925 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *kp; kp 1933 fs/xfs/libxfs/xfs_btree.c kp = xfs_lookup_get_search_key(cur, level, kp 1942 fs/xfs/libxfs/xfs_btree.c diff = cur->bc_ops->key_diff(cur, kp); kp 2196 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *kp; kp 2224 fs/xfs/libxfs/xfs_btree.c kp = xfs_btree_key_addr(cur, ptr, block); kp 2225 fs/xfs/libxfs/xfs_btree.c xfs_btree_copy_keys(cur, kp, &key, 1); kp 2927 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *kp; /* pointer to btree key */ kp 2974 fs/xfs/libxfs/xfs_btree.c kp = xfs_btree_key_addr(cur, 1, block); kp 2976 fs/xfs/libxfs/xfs_btree.c xfs_btree_copy_keys(cur, ckp, kp, xfs_btree_get_numrecs(cblock)); kp 3318 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *kp; kp 3321 fs/xfs/libxfs/xfs_btree.c kp = xfs_btree_key_addr(cur, ptr, block); kp 3330 fs/xfs/libxfs/xfs_btree.c xfs_btree_shift_keys(cur, kp, 1, numrecs - ptr + 1); kp 3338 fs/xfs/libxfs/xfs_btree.c xfs_btree_copy_keys(cur, kp, key, 1); kp 3346 fs/xfs/libxfs/xfs_btree.c ASSERT(cur->bc_ops->keys_inorder(cur, kp, kp 3512 fs/xfs/libxfs/xfs_btree.c union xfs_btree_key *kp; kp 3574 fs/xfs/libxfs/xfs_btree.c kp = xfs_btree_key_addr(cur, 1, block); kp 3576 fs/xfs/libxfs/xfs_btree.c xfs_btree_copy_keys(cur, kp, ckp, numrecs); kp 185 fs/xfs/libxfs/xfs_refcount_btree.c struct xfs_refcount_key *kp = &key->refc; kp 187 fs/xfs/libxfs/xfs_refcount_btree.c return (int64_t)be32_to_cpu(kp->rc_startblock) - rec->rc_startblock; kp 231 fs/xfs/libxfs/xfs_rmap_btree.c struct xfs_rmap_key *kp = &key->rmap; kp 235 fs/xfs/libxfs/xfs_rmap_btree.c d = (int64_t)be32_to_cpu(kp->rm_startblock) - rec->rm_startblock; kp 239 fs/xfs/libxfs/xfs_rmap_btree.c x = be64_to_cpu(kp->rm_owner); kp 246 fs/xfs/libxfs/xfs_rmap_btree.c x = XFS_RMAP_OFF(be64_to_cpu(kp->rm_offset)); kp 148 include/linux/kprobes.h struct kprobe kp; kp 212 include/linux/kprobes.h ri->rp, ri->rp->kp.addr); kp 290 include/linux/kprobes.h struct kprobe kp; kp 368 include/linux/kprobes.h int disable_kprobe(struct kprobe *kp); kp 369 include/linux/kprobes.h int enable_kprobe(struct kprobe *kp); kp 371 include/linux/kprobes.h void dump_kprobe(struct kprobe *kp); kp 425 include/linux/kprobes.h static inline int disable_kprobe(struct kprobe *kp) kp 429 include/linux/kprobes.h static inline int enable_kprobe(struct kprobe *kp) kp 441 include/linux/kprobes.h return disable_kprobe(&rp->kp); kp 445 include/linux/kprobes.h return enable_kprobe(&rp->kp); kp 372 include/linux/module.h struct kernel_param *kp; kp 51 include/linux/moduleparam.h int (*set)(const char *val, const struct kernel_param *kp); kp 53 include/linux/moduleparam.h int (*get)(char *buffer, const struct kernel_param *kp); kp 340 include/linux/moduleparam.h extern int param_set_byte(const char *val, const struct kernel_param *kp); kp 341 include/linux/moduleparam.h extern int param_get_byte(char *buffer, const struct kernel_param *kp); kp 345 include/linux/moduleparam.h extern int param_set_short(const char *val, const struct kernel_param *kp); kp 346 include/linux/moduleparam.h extern int param_get_short(char *buffer, const struct kernel_param *kp); kp 350 include/linux/moduleparam.h extern int param_set_ushort(const char *val, const struct kernel_param *kp); kp 351 include/linux/moduleparam.h extern int param_get_ushort(char *buffer, const struct kernel_param *kp); kp 355 include/linux/moduleparam.h extern int param_set_int(const char *val, const struct kernel_param *kp); kp 356 include/linux/moduleparam.h extern int param_get_int(char *buffer, const struct kernel_param *kp); kp 360 include/linux/moduleparam.h extern int param_set_uint(const char *val, const struct kernel_param *kp); kp 361 include/linux/moduleparam.h extern int param_get_uint(char *buffer, const struct kernel_param *kp); kp 365 include/linux/moduleparam.h extern int param_set_long(const char *val, const struct kernel_param *kp); kp 366 include/linux/moduleparam.h extern int param_get_long(char *buffer, const struct kernel_param *kp); kp 370 include/linux/moduleparam.h extern int param_set_ulong(const char *val, const struct kernel_param *kp); kp 371 include/linux/moduleparam.h extern int param_get_ulong(char *buffer, const struct kernel_param *kp); kp 375 include/linux/moduleparam.h extern int param_set_ullong(const char *val, const struct kernel_param *kp); kp 376 include/linux/moduleparam.h extern int param_get_ullong(char *buffer, const struct kernel_param *kp); kp 380 include/linux/moduleparam.h extern int param_set_charp(const char *val, const struct kernel_param *kp); kp 381 include/linux/moduleparam.h extern int param_get_charp(char *buffer, const struct kernel_param *kp); kp 387 include/linux/moduleparam.h extern int param_set_bool(const char *val, const struct kernel_param *kp); kp 388 include/linux/moduleparam.h extern int param_get_bool(char *buffer, const struct kernel_param *kp); kp 393 include/linux/moduleparam.h const struct kernel_param *kp); kp 398 include/linux/moduleparam.h extern int param_set_invbool(const char *val, const struct kernel_param *kp); kp 399 include/linux/moduleparam.h extern int param_get_invbool(char *buffer, const struct kernel_param *kp); kp 404 include/linux/moduleparam.h extern int param_set_bint(const char *val, const struct kernel_param *kp); kp 512 include/linux/moduleparam.h extern int param_get_string(char *buffer, const struct kernel_param *kp); kp 284 include/net/netfilter/nf_conntrack.h int nf_conntrack_set_hashsize(const char *val, const struct kernel_param *kp); kp 2188 kernel/debug/kdb/kdb_main.c static int kdb_param_enable_nmi(const char *val, const struct kernel_param *kp) kp 2666 kernel/debug/kdb/kdb_main.c kdbtab_t *kp; kp 2671 kernel/debug/kdb/kdb_main.c for_each_kdbcmd(kp, i) { kp 2672 kernel/debug/kdb/kdb_main.c if (kp->cmd_name && (strcmp(kp->cmd_name, cmd) == 0)) { kp 2682 kernel/debug/kdb/kdb_main.c for_each_kdbcmd(kp, i) { kp 2683 kernel/debug/kdb/kdb_main.c if (kp->cmd_name == NULL) kp 2706 kernel/debug/kdb/kdb_main.c kp = kdb_commands + kdb_max_commands - KDB_BASE_CMD_MAX; kp 2710 kernel/debug/kdb/kdb_main.c kp->cmd_name = cmd; kp 2711 kernel/debug/kdb/kdb_main.c kp->cmd_func = func; kp 2712 kernel/debug/kdb/kdb_main.c kp->cmd_usage = usage; kp 2713 kernel/debug/kdb/kdb_main.c kp->cmd_help = help; kp 2714 kernel/debug/kdb/kdb_main.c kp->cmd_minlen = minlen; kp 2715 kernel/debug/kdb/kdb_main.c kp->cmd_flags = flags; kp 2756 kernel/debug/kdb/kdb_main.c kdbtab_t *kp; kp 2761 kernel/debug/kdb/kdb_main.c for_each_kdbcmd(kp, i) { kp 2762 kernel/debug/kdb/kdb_main.c if (kp->cmd_name && (strcmp(kp->cmd_name, cmd) == 0)) { kp 2763 kernel/debug/kdb/kdb_main.c kp->cmd_name = NULL; kp 2777 kernel/debug/kdb/kdb_main.c kdbtab_t *kp; kp 2779 kernel/debug/kdb/kdb_main.c for_each_kdbcmd(kp, i) kp 2780 kernel/debug/kdb/kdb_main.c kp->cmd_name = NULL; kp 15 kernel/fail_function.c static int fei_kprobe_handler(struct kprobe *kp, struct pt_regs *regs); kp 17 kernel/fail_function.c static void fei_post_handler(struct kprobe *kp, struct pt_regs *regs, kp 28 kernel/fail_function.c struct kprobe kp; kp 62 kernel/fail_function.c attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL); kp 63 kernel/fail_function.c if (!attr->kp.symbol_name) { kp 67 kernel/fail_function.c attr->kp.pre_handler = fei_kprobe_handler; kp 68 kernel/fail_function.c attr->kp.post_handler = fei_post_handler; kp 78 kernel/fail_function.c kfree(attr->kp.symbol_name); kp 88 kernel/fail_function.c if (!strcmp(attr->kp.symbol_name, sym)) kp 124 kernel/fail_function.c if (attr->kp.addr) { kp 125 kernel/fail_function.c if (adjust_error_retval((unsigned long)attr->kp.addr, kp 159 kernel/fail_function.c dir = debugfs_create_dir(attr->kp.symbol_name, fei_debugfs_dir); kp 168 kernel/fail_function.c dir = debugfs_lookup(attr->kp.symbol_name, fei_debugfs_dir); kp 172 kernel/fail_function.c static int fei_kprobe_handler(struct kprobe *kp, struct pt_regs *regs) kp 174 kernel/fail_function.c struct fei_attr *attr = container_of(kp, struct fei_attr, kp); kp 206 kernel/fail_function.c seq_printf(m, "%ps\n", attr->kp.addr); kp 225 kernel/fail_function.c unregister_kprobe(&attr->kp); kp 300 kernel/fail_function.c ret = register_kprobe(&attr->kp); kp 307 kernel/kprobes.c static inline void set_kprobe_instance(struct kprobe *kp) kp 309 kernel/kprobes.c __this_cpu_write(kprobe_instance, kp); kp 372 kernel/kprobes.c struct kprobe *kp; kp 374 kernel/kprobes.c list_for_each_entry_rcu(kp, &p->list, list) { kp 375 kernel/kprobes.c if (kp->pre_handler && likely(!kprobe_disabled(kp))) { kp 376 kernel/kprobes.c set_kprobe_instance(kp); kp 377 kernel/kprobes.c kp->pre_handler(kp, regs); kp 389 kernel/kprobes.c op = container_of(p, struct optimized_kprobe, kp); kp 401 kernel/kprobes.c op = container_of(p, struct optimized_kprobe, kp); kp 417 kernel/kprobes.c op = container_of(p, struct optimized_kprobe, kp); kp 428 kernel/kprobes.c op = container_of(p, struct optimized_kprobe, kp); kp 450 kernel/kprobes.c op = container_of(p, struct optimized_kprobe, kp); kp 514 kernel/kprobes.c op->kp.flags &= ~KPROBE_FLAG_OPTIMIZED; kp 516 kernel/kprobes.c if (kprobe_disabled(&op->kp)) kp 517 kernel/kprobes.c arch_disarm_kprobe(&op->kp); kp 518 kernel/kprobes.c if (kprobe_unused(&op->kp)) { kp 524 kernel/kprobes.c hlist_del_rcu(&op->kp.hlist); kp 537 kernel/kprobes.c if (WARN_ON_ONCE(!kprobe_unused(&op->kp))) { kp 544 kernel/kprobes.c free_aggr_kprobe(&op->kp); kp 641 kernel/kprobes.c op = container_of(p, struct optimized_kprobe, kp); kp 648 kernel/kprobes.c if (op->kp.flags & KPROBE_FLAG_OPTIMIZED) { kp 655 kernel/kprobes.c op->kp.flags |= KPROBE_FLAG_OPTIMIZED; kp 670 kernel/kprobes.c op->kp.flags &= ~KPROBE_FLAG_OPTIMIZED; kp 671 kernel/kprobes.c if (kprobe_disabled(&op->kp)) kp 672 kernel/kprobes.c arch_disarm_kprobe(&op->kp); kp 683 kernel/kprobes.c op = container_of(p, struct optimized_kprobe, kp); kp 701 kernel/kprobes.c op->kp.flags &= ~KPROBE_FLAG_OPTIMIZED; kp 725 kernel/kprobes.c op = container_of(ap, struct optimized_kprobe, kp); kp 742 kernel/kprobes.c op = container_of(p, struct optimized_kprobe, kp); kp 746 kernel/kprobes.c op->kp.flags &= ~KPROBE_FLAG_OPTIMIZED; kp 756 kernel/kprobes.c hlist_del_rcu(&op->kp.hlist); kp 775 kernel/kprobes.c op = container_of(p, struct optimized_kprobe, kp); kp 789 kernel/kprobes.c op->kp.addr = p->addr; kp 792 kernel/kprobes.c return &op->kp; kp 819 kernel/kprobes.c op = container_of(ap, struct optimized_kprobe, kp); kp 1083 kernel/kprobes.c static int arm_kprobe(struct kprobe *kp) kp 1085 kernel/kprobes.c if (unlikely(kprobe_ftrace(kp))) kp 1086 kernel/kprobes.c return arm_kprobe_ftrace(kp); kp 1090 kernel/kprobes.c __arm_kprobe(kp); kp 1098 kernel/kprobes.c static int disarm_kprobe(struct kprobe *kp, bool reopt) kp 1100 kernel/kprobes.c if (unlikely(kprobe_ftrace(kp))) kp 1101 kernel/kprobes.c return disarm_kprobe_ftrace(kp); kp 1105 kernel/kprobes.c __disarm_kprobe(kp, reopt); kp 1118 kernel/kprobes.c struct kprobe *kp; kp 1120 kernel/kprobes.c list_for_each_entry_rcu(kp, &p->list, list) { kp 1121 kernel/kprobes.c if (kp->pre_handler && likely(!kprobe_disabled(kp))) { kp 1122 kernel/kprobes.c set_kprobe_instance(kp); kp 1123 kernel/kprobes.c if (kp->pre_handler(kp, regs)) kp 1135 kernel/kprobes.c struct kprobe *kp; kp 1137 kernel/kprobes.c list_for_each_entry_rcu(kp, &p->list, list) { kp 1138 kernel/kprobes.c if (kp->post_handler && likely(!kprobe_disabled(kp))) { kp 1139 kernel/kprobes.c set_kprobe_instance(kp); kp 1140 kernel/kprobes.c kp->post_handler(kp, regs, flags); kp 1167 kernel/kprobes.c struct kprobe *kp; kp 1171 kernel/kprobes.c list_for_each_entry_rcu(kp, &p->list, list) kp 1172 kernel/kprobes.c kp->nmissed++; kp 1670 kernel/kprobes.c struct kprobe *kp; kp 1672 kernel/kprobes.c list_for_each_entry_rcu(kp, &ap->list, list) kp 1673 kernel/kprobes.c if (!kprobe_disabled(kp)) kp 1860 kernel/kprobes.c struct kretprobe *rp = container_of(p, struct kretprobe, kp); kp 1935 kernel/kprobes.c if (!kprobe_on_func_entry(rp->kp.addr, rp->kp.symbol_name, rp->kp.offset)) kp 1939 kernel/kprobes.c addr = kprobe_addr(&rp->kp); kp 1949 kernel/kprobes.c rp->kp.pre_handler = pre_handler_kretprobe; kp 1950 kernel/kprobes.c rp->kp.post_handler = NULL; kp 1951 kernel/kprobes.c rp->kp.fault_handler = NULL; kp 1976 kernel/kprobes.c ret = register_kprobe(&rp->kp); kp 2015 kernel/kprobes.c if (__unregister_kprobe_top(&rps[i]->kp) < 0) kp 2016 kernel/kprobes.c rps[i]->kp.addr = NULL; kp 2021 kernel/kprobes.c if (rps[i]->kp.addr) { kp 2022 kernel/kprobes.c __unregister_kprobe_bottom(&rps[i]->kp); kp 2063 kernel/kprobes.c struct kprobe *kp; kp 2071 kernel/kprobes.c list_for_each_entry_rcu(kp, &p->list, list) kp 2072 kernel/kprobes.c kp->flags |= KPROBE_FLAG_GONE; kp 2084 kernel/kprobes.c int disable_kprobe(struct kprobe *kp) kp 2092 kernel/kprobes.c p = __disable_kprobe(kp); kp 2102 kernel/kprobes.c int enable_kprobe(struct kprobe *kp) kp 2110 kernel/kprobes.c p = __get_valid_kprobe(kp); kp 2116 kernel/kprobes.c if (kprobe_gone(kp)) { kp 2122 kernel/kprobes.c if (p != kp) kp 2123 kernel/kprobes.c kp->flags &= ~KPROBE_FLAG_DISABLED; kp 2138 kernel/kprobes.c void dump_kprobe(struct kprobe *kp) kp 2142 kernel/kprobes.c kp->symbol_name, kp->offset, kp->addr); kp 2380 kernel/kprobes.c struct kprobe *p, *kp; kp 2392 kernel/kprobes.c list_for_each_entry_rcu(kp, &p->list, list) kp 2393 kernel/kprobes.c report_probe(pi, kp, sym, offset, modname, p); kp 2212 kernel/module.c destroy_params(mod->kp, mod->num_kp); kp 3154 kernel/module.c mod->kp = section_objs(info, "__param", kp 3155 kernel/module.c sizeof(*mod->kp), &mod->num_kp); kp 3905 kernel/module.c after_dashes = parse_args(mod->name, mod->args, mod->kp, mod->num_kp, kp 3917 kernel/module.c err = mod_sysfs_setup(mod, info, mod->kp, mod->num_kp); kp 3939 kernel/module.c destroy_params(mod->kp, mod->num_kp); kp 4550 kernel/module.c struct kernel_param *kp, kp 100 kernel/params.c static bool param_check_unsafe(const struct kernel_param *kp) kp 102 kernel/params.c if (kp->flags & KERNEL_PARAM_FL_HWPARAM && kp 106 kernel/params.c if (kp->flags & KERNEL_PARAM_FL_UNSAFE) { kp 108 kernel/params.c kp->name); kp 218 kernel/params.c int param_set_##name(const char *val, const struct kernel_param *kp) \ kp 220 kernel/params.c return strtolfn(val, 0, (type *)kp->arg); \ kp 222 kernel/params.c int param_get_##name(char *buffer, const struct kernel_param *kp) \ kp 225 kernel/params.c *((type *)kp->arg)); \ kp 245 kernel/params.c int param_set_charp(const char *val, const struct kernel_param *kp) kp 248 kernel/params.c pr_err("%s: string parameter too long\n", kp->name); kp 252 kernel/params.c maybe_kfree_parameter(*(char **)kp->arg); kp 257 kernel/params.c *(char **)kp->arg = kmalloc_parameter(strlen(val)+1); kp 258 kernel/params.c if (!*(char **)kp->arg) kp 260 kernel/params.c strcpy(*(char **)kp->arg, val); kp 262 kernel/params.c *(const char **)kp->arg = val; kp 268 kernel/params.c int param_get_charp(char *buffer, const struct kernel_param *kp) kp 270 kernel/params.c return scnprintf(buffer, PAGE_SIZE, "%s\n", *((char **)kp->arg)); kp 288 kernel/params.c int param_set_bool(const char *val, const struct kernel_param *kp) kp 294 kernel/params.c return strtobool(val, kp->arg); kp 298 kernel/params.c int param_get_bool(char *buffer, const struct kernel_param *kp) kp 301 kernel/params.c return sprintf(buffer, "%c\n", *(bool *)kp->arg ? 'Y' : 'N'); kp 312 kernel/params.c int param_set_bool_enable_only(const char *val, const struct kernel_param *kp) kp 316 kernel/params.c bool orig_value = *(bool *)kp->arg; kp 317 kernel/params.c struct kernel_param dummy_kp = *kp; kp 330 kernel/params.c err = param_set_bool(val, kp); kp 344 kernel/params.c int param_set_invbool(const char *val, const struct kernel_param *kp) kp 353 kernel/params.c *(bool *)kp->arg = !boolval; kp 358 kernel/params.c int param_get_invbool(char *buffer, const struct kernel_param *kp) kp 360 kernel/params.c return sprintf(buffer, "%c\n", (*(bool *)kp->arg) ? 'N' : 'Y'); kp 370 kernel/params.c int param_set_bint(const char *val, const struct kernel_param *kp) kp 373 kernel/params.c struct kernel_param boolkp = *kp; kp 381 kernel/params.c *(int *)kp->arg = v; kp 399 kernel/params.c int (*set)(const char *, const struct kernel_param *kp), kp 404 kernel/params.c struct kernel_param kp; kp 408 kernel/params.c kp.name = name; kp 409 kernel/params.c kp.arg = elem; kp 410 kernel/params.c kp.level = level; kp 427 kernel/params.c ret = set(val, &kp); kp 431 kernel/params.c kp.arg += elemsize; kp 443 kernel/params.c static int param_array_set(const char *val, const struct kernel_param *kp) kp 445 kernel/params.c const struct kparam_array *arr = kp->arr; kp 448 kernel/params.c return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, kp 449 kernel/params.c arr->elemsize, arr->ops->set, kp->level, kp 453 kernel/params.c static int param_array_get(char *buffer, const struct kernel_param *kp) kp 456 kernel/params.c const struct kparam_array *arr = kp->arr; kp 457 kernel/params.c struct kernel_param p = *kp; kp 491 kernel/params.c int param_set_copystring(const char *val, const struct kernel_param *kp) kp 493 kernel/params.c const struct kparam_string *kps = kp->str; kp 497 kernel/params.c kp->name, kps->maxlen-1); kp 505 kernel/params.c int param_get_string(char *buffer, const struct kernel_param *kp) kp 507 kernel/params.c const struct kparam_string *kps = kp->str; kp 607 kernel/params.c const struct kernel_param *kp, kp 615 kernel/params.c BUG_ON(!kp->perm); kp 651 kernel/params.c mk->mp->attrs[mk->mp->num].param = kp; kp 654 kernel/params.c if ((kp->perm & (S_IWUSR | S_IWGRP | S_IWOTH)) != 0) kp 659 kernel/params.c mk->mp->attrs[mk->mp->num].mattr.attr.mode = kp->perm; kp 813 kernel/params.c const struct kernel_param *kp; kp 817 kernel/params.c for (kp = __start___param; kp < __stop___param; kp++) { kp 820 kernel/params.c if (kp->perm == 0) kp 823 kernel/params.c dot = strchr(kp->name, '.'); kp 829 kernel/params.c name_len = dot - kp->name + 1; kp 830 kernel/params.c strlcpy(modname, kp->name, name_len); kp 832 kernel/params.c kernel_add_sysfs_param(modname, kp, name_len); kp 460 kernel/rcu/tree.c static int param_set_first_fqs_jiffies(const char *val, const struct kernel_param *kp) kp 466 kernel/rcu/tree.c WRITE_ONCE(*(ulong *)kp->arg, (j > HZ) ? HZ : j); kp 472 kernel/rcu/tree.c static int param_set_next_fqs_jiffies(const char *val, const struct kernel_param *kp) kp 478 kernel/rcu/tree.c WRITE_ONCE(*(ulong *)kp->arg, (j > HZ) ? HZ : (j ?: 1)); kp 50 kernel/test_kprobes.c static struct kprobe kp = { kp 60 kernel/test_kprobes.c ret = register_kprobe(&kp); kp 67 kernel/test_kprobes.c unregister_kprobe(&kp); kp 112 kernel/test_kprobes.c struct kprobe *kps[2] = {&kp, &kp2}; kp 115 kernel/test_kprobes.c kp.addr = NULL; kp 116 kernel/test_kprobes.c kp.flags = 0; kp 193 kernel/test_kprobes.c .kp.symbol_name = "kprobe_target" kp 236 kernel/test_kprobes.c .kp.symbol_name = "kprobe_target2" kp 245 kernel/test_kprobes.c rp.kp.addr = NULL; kp 246 kernel/test_kprobes.c rp.kp.flags = 0; kp 99 kernel/trace/trace_kprobe.c return tk->rp.kp.offset; kp 104 kernel/trace/trace_kprobe.c return !!(kprobe_gone(&tk->rp.kp)); kp 150 kernel/trace/trace_kprobe.c snprintf(buf, sizeof(buf), "0x%p", tk->rp.kp.addr); kp 151 kernel/trace/trace_kprobe.c else if (tk->rp.kp.offset) kp 153 kernel/trace/trace_kprobe.c trace_kprobe_symbol(tk), tk->rp.kp.offset); kp 186 kernel/trace/trace_kprobe.c return !(list_empty(&tk->rp.kp.list) && kp 187 kernel/trace/trace_kprobe.c hlist_unhashed(&tk->rp.kp.hlist)); kp 200 kernel/trace/trace_kprobe.c addr += tk->rp.kp.offset; kp 202 kernel/trace/trace_kprobe.c addr = (unsigned long)tk->rp.kp.addr; kp 223 kernel/trace/trace_kprobe.c return tk ? kprobe_on_func_entry(tk->rp.kp.addr, kp 224 kernel/trace/trace_kprobe.c tk->rp.kp.addr ? NULL : tk->rp.kp.symbol_name, kp 225 kernel/trace/trace_kprobe.c tk->rp.kp.addr ? 0 : tk->rp.kp.offset) : false; kp 239 kernel/trace/trace_kprobe.c static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs); kp 279 kernel/trace/trace_kprobe.c tk->rp.kp.symbol_name = tk->symbol; kp 280 kernel/trace/trace_kprobe.c tk->rp.kp.offset = offs; kp 282 kernel/trace/trace_kprobe.c tk->rp.kp.addr = addr; kp 287 kernel/trace/trace_kprobe.c tk->rp.kp.pre_handler = kprobe_dispatcher; kp 290 kernel/trace/trace_kprobe.c INIT_HLIST_NODE(&tk->rp.kp.hlist); kp 291 kernel/trace/trace_kprobe.c INIT_LIST_HEAD(&tk->rp.kp.list); kp 325 kernel/trace/trace_kprobe.c ret = enable_kprobe(&tk->rp.kp); kp 343 kernel/trace/trace_kprobe.c disable_kprobe(&tk->rp.kp); kp 506 kernel/trace/trace_kprobe.c tk->rp.kp.flags &= ~KPROBE_FLAG_DISABLED; kp 508 kernel/trace/trace_kprobe.c tk->rp.kp.flags |= KPROBE_FLAG_DISABLED; kp 513 kernel/trace/trace_kprobe.c ret = register_kprobe(&tk->rp.kp); kp 525 kernel/trace/trace_kprobe.c unregister_kprobe(&tk->rp.kp); kp 527 kernel/trace/trace_kprobe.c INIT_HLIST_NODE(&tk->rp.kp.hlist); kp 528 kernel/trace/trace_kprobe.c INIT_LIST_HEAD(&tk->rp.kp.list); kp 529 kernel/trace/trace_kprobe.c if (tk->rp.kp.symbol_name) kp 530 kernel/trace/trace_kprobe.c tk->rp.kp.addr = NULL; kp 927 kernel/trace/trace_kprobe.c seq_printf(m, " 0x%p", tk->rp.kp.addr); kp 928 kernel/trace/trace_kprobe.c else if (tk->rp.kp.offset) kp 930 kernel/trace/trace_kprobe.c tk->rp.kp.offset); kp 1004 kernel/trace/trace_kprobe.c tk->rp.kp.nmissed); kp 1204 kernel/trace/trace_kprobe.c entry->ip = (unsigned long)tk->rp.kp.addr; kp 1252 kernel/trace/trace_kprobe.c entry->func = (unsigned long)tk->rp.kp.addr; kp 1412 kernel/trace/trace_kprobe.c entry->ip = (unsigned long)tk->rp.kp.addr; kp 1448 kernel/trace/trace_kprobe.c entry->func = (unsigned long)tk->rp.kp.addr; kp 1475 kernel/trace/trace_kprobe.c *probe_offset = tk->rp.kp.offset; kp 1480 kernel/trace/trace_kprobe.c *probe_addr = (unsigned long)tk->rp.kp.addr; kp 1518 kernel/trace/trace_kprobe.c static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs) kp 1520 kernel/trace/trace_kprobe.c struct trace_kprobe *tk = container_of(kp, struct trace_kprobe, rp.kp); kp 5802 kernel/workqueue.c const struct kernel_param *kp) kp 107 lib/crc-t10dif.c static int crc_t10dif_transform_show(char *buffer, const struct kernel_param *kp) kp 36 mm/shuffle.c static int shuffle_show(char *buffer, const struct kernel_param *kp) kp 43 mm/shuffle.c const struct kernel_param *kp) kp 45 mm/shuffle.c int rc = param_set_bool(val, kp); kp 666 mm/zswap.c static int __zswap_param_set(const char *val, const struct kernel_param *kp, kp 679 mm/zswap.c if (!strcmp(s, *(char **)kp->arg) && zswap_has_pool) kp 686 mm/zswap.c return param_set_charp(s, kp); kp 720 mm/zswap.c ret = param_set_charp(s, kp); kp 749 mm/zswap.c ret = param_set_charp(s, kp); kp 762 mm/zswap.c const struct kernel_param *kp) kp 764 mm/zswap.c return __zswap_param_set(val, kp, zswap_zpool_type, NULL); kp 768 mm/zswap.c const struct kernel_param *kp) kp 770 mm/zswap.c return __zswap_param_set(val, kp, NULL, zswap_compressor); kp 774 mm/zswap.c const struct kernel_param *kp) kp 785 mm/zswap.c return param_set_bool(val, kp); kp 136 net/batman-adv/bat_algo.c static int batadv_param_set_ra(const char *val, const struct kernel_param *kp) kp 151 net/batman-adv/bat_algo.c return param_set_copystring(algo_name, kp); kp 2871 net/bluetooth/smp.c struct smp_cmd_keypress_notify *kp = (void *) skb->data; kp 2873 net/bluetooth/smp.c BT_DBG("value 0x%02x", kp->value); kp 51 net/ceph/ceph_common.c const struct kernel_param *kp) kp 297 net/ipv6/sit.c struct ip_tunnel_prl kprl, *kp; kp 311 net/ipv6/sit.c kp = (cmax <= 1 || capable(CAP_NET_ADMIN)) ? kp 312 net/ipv6/sit.c kcalloc(cmax, sizeof(*kp), GFP_KERNEL | __GFP_NOWARN) : kp 319 net/ipv6/sit.c if (!kp) { kp 325 net/ipv6/sit.c kp = kcalloc(ca, sizeof(*kp), GFP_ATOMIC); kp 326 net/ipv6/sit.c if (!kp) { kp 338 net/ipv6/sit.c kp[c].addr = prl->addr; kp 339 net/ipv6/sit.c kp[c].flags = prl->flags; kp 347 net/ipv6/sit.c len = sizeof(*kp) * c; kp 349 net/ipv6/sit.c if ((len && copy_to_user(a + 1, kp, len)) || put_user(len, &a->datalen)) kp 352 net/ipv6/sit.c kfree(kp); kp 2386 net/netfilter/nf_conntrack_core.c int nf_conntrack_set_hashsize(const char *val, const struct kernel_param *kp) kp 2396 net/netfilter/nf_conntrack_core.c return param_set_uint(val, kp); kp 143 net/netfilter/nf_nat_ftp.c static int warn_set(const char *val, const struct kernel_param *kp) kp 114 net/netfilter/nf_nat_irc.c static int warn_set(const char *val, const struct kernel_param *kp) kp 447 net/sched/cls_u32.c struct tc_u_knode __rcu **kp; kp 452 net/sched/cls_u32.c kp = &ht->ht[TC_U32_HASH(key->handle)]; kp 453 net/sched/cls_u32.c for (pkp = rtnl_dereference(*kp); pkp; kp 454 net/sched/cls_u32.c kp = &pkp->next, pkp = rtnl_dereference(*kp)) { kp 456 net/sched/cls_u32.c RCU_INIT_POINTER(*kp, key->next); kp 59 net/sunrpc/auth.c static int param_set_hashtbl_sz(const char *val, const struct kernel_param *kp) kp 73 net/sunrpc/auth.c *(unsigned int *)kp->arg = nbits; kp 79 net/sunrpc/auth.c static int param_get_hashtbl_sz(char *buffer, const struct kernel_param *kp) kp 83 net/sunrpc/auth.c nbits = *(unsigned int *)kp->arg; kp 54 net/sunrpc/svc.c param_set_pool_mode(const char *val, const struct kernel_param *kp) kp 56 net/sunrpc/svc.c int *ip = (int *)kp->arg; kp 84 net/sunrpc/svc.c param_get_pool_mode(char *buf, const struct kernel_param *kp) kp 86 net/sunrpc/svc.c int *ip = (int *)kp->arg; kp 3268 net/sunrpc/xprtsock.c const struct kernel_param *kp, kp 3281 net/sunrpc/xprtsock.c *((unsigned int *)kp->arg) = num; kp 3285 net/sunrpc/xprtsock.c static int param_set_portnr(const char *val, const struct kernel_param *kp) kp 3287 net/sunrpc/xprtsock.c return param_set_uint_minmax(val, kp, kp 3304 net/sunrpc/xprtsock.c const struct kernel_param *kp) kp 3306 net/sunrpc/xprtsock.c return param_set_uint_minmax(val, kp, kp 3320 net/sunrpc/xprtsock.c const struct kernel_param *kp) kp 3322 net/sunrpc/xprtsock.c return param_set_uint_minmax(val, kp, kp 1700 net/xfrm/xfrm_user.c struct xfrm_tmpl *kp = &xp->xfrm_vec[i]; kp 1703 net/xfrm/xfrm_user.c memcpy(&up->id, &kp->id, sizeof(up->id)); kp 1704 net/xfrm/xfrm_user.c up->family = kp->encap_family; kp 1705 net/xfrm/xfrm_user.c memcpy(&up->saddr, &kp->saddr, sizeof(up->saddr)); kp 1706 net/xfrm/xfrm_user.c up->reqid = kp->reqid; kp 1707 net/xfrm/xfrm_user.c up->mode = kp->mode; kp 1708 net/xfrm/xfrm_user.c up->share = kp->share; kp 1709 net/xfrm/xfrm_user.c up->optional = kp->optional; kp 1710 net/xfrm/xfrm_user.c up->aalgos = kp->aalgos; kp 1711 net/xfrm/xfrm_user.c up->ealgos = kp->ealgos; kp 1712 net/xfrm/xfrm_user.c up->calgos = kp->calgos; kp 23 samples/kprobes/kprobe_example.c static struct kprobe kp = { kp 97 samples/kprobes/kprobe_example.c kp.pre_handler = handler_pre; kp 98 samples/kprobes/kprobe_example.c kp.post_handler = handler_post; kp 99 samples/kprobes/kprobe_example.c kp.fault_handler = handler_fault; kp 101 samples/kprobes/kprobe_example.c ret = register_kprobe(&kp); kp 106 samples/kprobes/kprobe_example.c pr_info("Planted kprobe at %p\n", kp.addr); kp 112 samples/kprobes/kprobe_example.c unregister_kprobe(&kp); kp 113 samples/kprobes/kprobe_example.c pr_info("kprobe at %p unregistered\n", kp.addr); kp 83 samples/kprobes/kretprobe_example.c my_kretprobe.kp.symbol_name = func_name; kp 90 samples/kprobes/kretprobe_example.c my_kretprobe.kp.symbol_name, my_kretprobe.kp.addr); kp 97 samples/kprobes/kretprobe_example.c pr_info("kretprobe at %p unregistered\n", my_kretprobe.kp.addr); kp 101 samples/kprobes/kretprobe_example.c my_kretprobe.nmissed, my_kretprobe.kp.symbol_name); kp 1248 security/apparmor/lsm.c static int param_set_aabool(const char *val, const struct kernel_param *kp); kp 1249 security/apparmor/lsm.c static int param_get_aabool(char *buffer, const struct kernel_param *kp); kp 1257 security/apparmor/lsm.c static int param_set_aauint(const char *val, const struct kernel_param *kp); kp 1258 security/apparmor/lsm.c static int param_get_aauint(char *buffer, const struct kernel_param *kp); kp 1265 security/apparmor/lsm.c static int param_set_aalockpolicy(const char *val, const struct kernel_param *kp); kp 1266 security/apparmor/lsm.c static int param_get_aalockpolicy(char *buffer, const struct kernel_param *kp); kp 1274 security/apparmor/lsm.c static int param_set_audit(const char *val, const struct kernel_param *kp); kp 1275 security/apparmor/lsm.c static int param_get_audit(char *buffer, const struct kernel_param *kp); kp 1277 security/apparmor/lsm.c static int param_set_mode(const char *val, const struct kernel_param *kp); kp 1278 security/apparmor/lsm.c static int param_get_mode(char *buffer, const struct kernel_param *kp); kp 1335 security/apparmor/lsm.c static int param_get_aaintbool(char *buffer, const struct kernel_param *kp); kp 1336 security/apparmor/lsm.c static int param_set_aaintbool(const char *val, const struct kernel_param *kp); kp 1358 security/apparmor/lsm.c static int param_set_aalockpolicy(const char *val, const struct kernel_param *kp) kp 1364 security/apparmor/lsm.c return param_set_bool(val, kp); kp 1367 security/apparmor/lsm.c static int param_get_aalockpolicy(char *buffer, const struct kernel_param *kp) kp 1373 security/apparmor/lsm.c return param_get_bool(buffer, kp); kp 1376 security/apparmor/lsm.c static int param_set_aabool(const char *val, const struct kernel_param *kp) kp 1382 security/apparmor/lsm.c return param_set_bool(val, kp); kp 1385 security/apparmor/lsm.c static int param_get_aabool(char *buffer, const struct kernel_param *kp) kp 1391 security/apparmor/lsm.c return param_get_bool(buffer, kp); kp 1394 security/apparmor/lsm.c static int param_set_aauint(const char *val, const struct kernel_param *kp) kp 1404 security/apparmor/lsm.c error = param_set_uint(val, kp); kp 1410 security/apparmor/lsm.c static int param_get_aauint(char *buffer, const struct kernel_param *kp) kp 1416 security/apparmor/lsm.c return param_get_uint(buffer, kp); kp 1420 security/apparmor/lsm.c static int param_set_aaintbool(const char *val, const struct kernel_param *kp) kp 1430 security/apparmor/lsm.c value = !!*((int *)kp->arg); kp 1431 security/apparmor/lsm.c memcpy(&kp_local, kp, sizeof(kp_local)); kp 1436 security/apparmor/lsm.c *((int *)kp->arg) = *((bool *)kp_local.arg); kp 1446 security/apparmor/lsm.c static int param_get_aaintbool(char *buffer, const struct kernel_param *kp) kp 1452 security/apparmor/lsm.c value = !!*((int *)kp->arg); kp 1453 security/apparmor/lsm.c memcpy(&kp_local, kp, sizeof(kp_local)); kp 1459 security/apparmor/lsm.c static int param_get_audit(char *buffer, const struct kernel_param *kp) kp 1468 security/apparmor/lsm.c static int param_set_audit(const char *val, const struct kernel_param *kp) kp 1487 security/apparmor/lsm.c static int param_get_mode(char *buffer, const struct kernel_param *kp) kp 1497 security/apparmor/lsm.c static int param_set_mode(const char *val, const struct kernel_param *kp) kp 36 security/integrity/ima/ima_crypto.c static int param_set_bufsize(const char *val, const struct kernel_param *kp) kp 1049 security/smack/smackfs.c char *kp = SMACK_CIPSO_OPTION; kp 1052 security/smack/smackfs.c kp = skp->smk_label->smk_known; kp 1054 security/smack/smackfs.c skp->smk_masks, kp); kp 166 sound/pci/hda/hda_intel.c static int param_set_xint(const char *val, const struct kernel_param *kp); kp 940 sound/pci/hda/hda_intel.c static int param_set_xint(const char *val, const struct kernel_param *kp) kp 945 sound/pci/hda/hda_intel.c int ret = param_set_int(val, kp); kp 62 tools/thermal/tmon/pid.c p_param.kp = .36; kp 101 tools/thermal/tmon/pid.c p_term = -p_param.kp * (xk - xk_1); kp 102 tools/thermal/tmon/pid.c i_term = p_param.kp * p_param.ki * p_param.ts * ek; kp 103 tools/thermal/tmon/pid.c d_term = -p_param.kp * p_param.kd * (xk - 2 * xk_1 + xk_2) / p_param.ts; kp 123 tools/thermal/tmon/tmon.h double kp; /* Controller gain from Dialog Box */ kp 335 tools/thermal/tmon/tui.c p_param.kp, p_param.ki, p_param.kd, p_param.y_k);