Searched defs:kp (Results 1 - 25 of 56) sorted by relevance

123

/drivers/edac/
H A Dedac_module.c22 static int edac_set_debug_level(const char *buf, struct kernel_param *kp) argument
34 return param_set_int(buf, kp);
/drivers/usb/phy/
H A Dotg-wakelock.c118 static int set_enabled(const char *val, const struct kernel_param *kp) argument
120 int rv = param_set_bool(val, kp);
/drivers/staging/speakup/
H A Dkeyhelp.c64 u_char *kp, counters[MAXFUNCS], ch, ch1; local
71 kp = state_tbl + nstates + 1;
72 while (*kp++) {
74 for (i = 0; i < nstates; i++, kp++) {
75 if (!*kp)
77 if ((state_tbl[i]&16) != 0 && *kp == SPK_KEY)
79 counters[*kp]++;
94 kp = state_tbl + nstates + 1;
95 while ((ch = *kp++)) {
97 ch1 = *kp
149 u_char func, *kp; local
[all...]
/drivers/ide/
H A Dide.c180 static int ide_set_dev_param_mask(const char *s, const struct kernel_param *kp) argument
183 unsigned int *dev_param_mask = (unsigned int *)kp->arg;
248 static int ide_set_disk_chs(const char *str, struct kernel_param *kp) argument
332 static int ide_set_ignore_cable(const char *s, struct kernel_param *kp) argument
/drivers/infiniband/hw/ipath/
H A Dipath_init_chip.c66 static int ipath_set_kpiobufs(const char *val, struct kernel_param *kp);
1021 static int ipath_set_kpiobufs(const char *str, struct kernel_param *kp) argument
/drivers/input/misc/
H A Dgpio_matrix.c38 static void clear_phantom_key(struct gpio_kp *kp, int out, int in) argument
40 struct gpio_event_matrix_info *mi = kp->keypad_info;
46 if (!test_bit(keycode, kp->input_devs->dev[dev]->key)) {
51 __clear_bit(key_index, kp->keys_pressed);
60 static int restore_keys_for_input(struct gpio_kp *kp, int out, int in) argument
65 key_index = out * kp->keypad_info->ninputs + in;
66 while (out < kp->keypad_info->noutputs) {
67 if (test_bit(key_index, kp->keys_pressed)) {
69 clear_phantom_key(kp, out, in);
71 key_index += kp
77 remove_phantom_keys(struct gpio_kp *kp) argument
107 report_key(struct gpio_kp *kp, int key_index, int out, int in) argument
133 report_sync(struct gpio_kp *kp) argument
146 struct gpio_kp *kp = container_of(timer, struct gpio_kp, timer); local
225 struct gpio_kp *kp = dev_id; local
250 gpio_keypad_request_irqs(struct gpio_kp *kp) argument
312 struct gpio_kp *kp; local
[all...]
H A Dati_remote2.c42 const struct kernel_param *kp,
58 *(unsigned int *)kp->arg = mask;
64 const struct kernel_param *kp)
68 return ati_remote2_set_mask(val, kp, ATI_REMOTE2_MAX_CHANNEL_MASK);
72 const struct kernel_param *kp)
76 return sprintf(buffer, "0x%04x", *(unsigned int *)kp->arg);
80 const struct kernel_param *kp)
84 return ati_remote2_set_mask(val, kp, ATI_REMOTE2_MAX_MODE_MASK);
88 const struct kernel_param *kp)
92 return sprintf(buffer, "0x%02x", *(unsigned int *)kp
41 ati_remote2_set_mask(const char *val, const struct kernel_param *kp, unsigned int max) argument
63 ati_remote2_set_channel_mask(const char *val, const struct kernel_param *kp) argument
71 ati_remote2_get_channel_mask(char *buffer, const struct kernel_param *kp) argument
79 ati_remote2_set_mode_mask(const char *val, const struct kernel_param *kp) argument
87 ati_remote2_get_mode_mask(char *buffer, const struct kernel_param *kp) argument
[all...]
/drivers/mtd/devices/
H A Dblock2mtd.c404 static int block2mtd_setup(const char *val, struct kernel_param *kp) argument
H A Dphram.c269 static int phram_param_call(const char *val, struct kernel_param *kp) argument
/drivers/pwm/
H A Dpwm-bcm-kona.c79 static void kona_pwmc_apply_settings(struct kona_pwmc *kp, unsigned int chan) argument
81 unsigned int value = readl(kp->base + PWM_CONTROL_OFFSET);
86 writel(value, kp->base + PWM_CONTROL_OFFSET);
91 writel(value, kp->base + PWM_CONTROL_OFFSET);
97 struct kona_pwmc *kp = to_kona_pwmc(chip); local
113 rate = clk_get_rate(kp->clk);
138 value = readl(kp->base + PRESCALE_OFFSET);
141 writel(value, kp->base + PRESCALE_OFFSET);
143 writel(pc, kp->base + PERIOD_COUNT_OFFSET(chan));
145 writel(dc, kp
156 struct kona_pwmc *kp = to_kona_pwmc(chip); local
188 struct kona_pwmc *kp = to_kona_pwmc(chip); local
208 struct kona_pwmc *kp = to_kona_pwmc(chip); local
231 struct kona_pwmc *kp; local
289 struct kona_pwmc *kp = platform_get_drvdata(pdev); local
[all...]
/drivers/staging/android/
H A Dlowmemorykiller.c246 static int lowmem_adj_array_set(const char *val, const struct kernel_param *kp) argument
250 ret = param_array_ops.set(val, kp);
258 static int lowmem_adj_array_get(char *buffer, const struct kernel_param *kp) argument
260 return param_array_ops.get(buffer, kp);
/drivers/tty/serial/
H A Dkgdboc.c248 static int param_set_kgdboc_var(const char *kmessage, struct kernel_param *kp) argument
/drivers/isdn/hardware/mISDN/
H A Dspeedfax.c97 set_debug(const char *val, struct kernel_param *kp) argument
102 ret = param_set_uint(val, kp);
/drivers/mtd/ubi/
H A Dblock.c100 const struct kernel_param *kp)
99 ubiblock_set_param(const char *val, const struct kernel_param *kp) argument
H A Dbuild.c1394 * @kp: not used
1399 static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp) argument
/drivers/power/
H A Dtest_power.c309 static int param_set_ac_online(const char *key, const struct kernel_param *kp) argument
316 static int param_get_ac_online(char *buffer, const struct kernel_param *kp) argument
322 static int param_set_usb_online(const char *key, const struct kernel_param *kp) argument
329 static int param_get_usb_online(char *buffer, const struct kernel_param *kp) argument
336 const struct kernel_param *kp)
343 static int param_get_battery_status(char *buffer, const struct kernel_param *kp) argument
350 const struct kernel_param *kp)
357 static int param_get_battery_health(char *buffer, const struct kernel_param *kp) argument
364 const struct kernel_param *kp)
372 const struct kernel_param *kp)
335 param_set_battery_status(const char *key, const struct kernel_param *kp) argument
349 param_set_battery_health(const char *key, const struct kernel_param *kp) argument
363 param_set_battery_present(const char *key, const struct kernel_param *kp) argument
371 param_get_battery_present(char *buffer, const struct kernel_param *kp) argument
378 param_set_battery_technology(const char *key, const struct kernel_param *kp) argument
387 param_get_battery_technology(char *buffer, const struct kernel_param *kp) argument
395 param_set_battery_capacity(const char *key, const struct kernel_param *kp) argument
410 param_set_battery_voltage(const char *key, const struct kernel_param *kp) argument
[all...]
/drivers/virtio/
H A Dvirtio_mmio.c517 const struct kernel_param *kp)
588 static int vm_cmdline_get(char *buffer, const struct kernel_param *kp) argument
516 vm_cmdline_set(const char *device, const struct kernel_param *kp) argument
/drivers/acpi/
H A Dsysfs.c103 static int param_get_debug_layer(char *buffer, const struct kernel_param *kp) argument
131 static int param_get_debug_level(char *buffer, const struct kernel_param *kp) argument
172 static int param_set_trace_state(const char *val, struct kernel_param *kp) argument
206 static int param_get_trace_state(char *buffer, struct kernel_param *kp) argument
232 static int param_get_acpica_version(char *buffer, struct kernel_param *kp) argument
/drivers/char/ipmi/
H A Dipmi_poweroff.c69 static int set_param_ifnum(const char *val, struct kernel_param *kp) argument
71 int rv = param_set_int(val, kp);
/drivers/hid/
H A Dhid-magicmouse.c37 static int param_set_scroll_speed(const char *val, struct kernel_param *kp) { argument
/drivers/input/keyboard/
H A Dpmic8xxx-keypad.c116 static u8 pmic8xxx_col_state(struct pmic8xxx_kp *kp, u8 col) argument
120 return 1 << kp->num_cols;
122 return col & ((1 << kp->num_cols) - 1);
137 static int pmic8xxx_chk_sync_read(struct pmic8xxx_kp *kp) argument
142 rc = regmap_read(kp->regmap, KEYP_SCAN, &scan_val);
144 dev_err(kp->dev, "Error reading KEYP_SCAN reg, rc=%d\n", rc);
150 rc = regmap_write(kp->regmap, KEYP_SCAN, scan_val);
152 dev_err(kp->dev, "Error writing KEYP_SCAN reg, rc=%d\n", rc);
162 static int pmic8xxx_kp_read_data(struct pmic8xxx_kp *kp, u16 *state, argument
169 rc = regmap_read(kp
179 pmic8xxx_kp_read_matrix(struct pmic8xxx_kp *kp, u16 *new_state, u16 *old_state) argument
227 __pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, u16 *new_state, u16 *old_state) argument
258 pmic8xxx_detect_ghost_keys(struct pmic8xxx_kp *kp, u16 *new_state) argument
282 pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, unsigned int events) argument
340 struct pmic8xxx_kp *kp = data; local
355 struct pmic8xxx_kp *kp = data; local
374 pmic8xxx_kpd_init(struct pmic8xxx_kp *kp, struct platform_device *pdev) argument
458 pmic8xxx_kp_enable(struct pmic8xxx_kp *kp) argument
471 pmic8xxx_kp_disable(struct pmic8xxx_kp *kp) argument
486 struct pmic8xxx_kp *kp = input_get_drvdata(dev); local
493 struct pmic8xxx_kp *kp = input_get_drvdata(dev); local
513 struct pmic8xxx_kp *kp; local
638 struct pmic8xxx_kp *kp = platform_get_drvdata(pdev); local
658 struct pmic8xxx_kp *kp = platform_get_drvdata(pdev); local
[all...]
H A Dtwl4030_keypad.c138 static int twl4030_kpread(struct twl4030_keypad *kp, argument
144 dev_warn(kp->dbg_dev,
151 static int twl4030_kpwrite_u8(struct twl4030_keypad *kp, u8 data, u32 reg) argument
156 dev_warn(kp->dbg_dev,
163 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) argument
171 return 1 << kp->n_cols;
173 return col & ((1 << kp->n_cols) - 1);
176 static int twl4030_read_kp_matrix_state(struct twl4030_keypad *kp, u16 *state) argument
180 int ret = twl4030_kpread(kp, new_state,
181 KEYP_FULL_CODE_7_0, kp
189 twl4030_is_in_ghost_state(struct twl4030_keypad *kp, u16 *key_state) argument
206 twl4030_kp_scan(struct twl4030_keypad *kp, bool release_all) argument
258 struct twl4030_keypad *kp = _kp; local
275 twl4030_kp_program(struct twl4030_keypad *kp) argument
336 struct twl4030_keypad *kp; local
[all...]
/drivers/media/usb/uvc/
H A Duvc_driver.c2040 static int uvc_clock_param_get(char *buffer, struct kernel_param *kp) argument
2048 static int uvc_clock_param_set(const char *val, struct kernel_param *kp) argument
H A Duvc_v4l2.c1145 static int uvc_v4l2_get_xu_mapping(struct uvc_xu_control_mapping *kp, argument
1153 __copy_from_user(kp, up, offsetof(typeof(*up), menu_info)) ||
1154 __get_user(kp->menu_count, &up->menu_count))
1157 memset(kp->reserved, 0, sizeof(kp->reserved));
1159 if (kp->menu_count == 0) {
1160 kp->menu_info = NULL;
1167 if (!access_ok(VERIFY_READ, umenus, kp->menu_count * sizeof(*umenus)))
1170 kmenus = compat_alloc_user_space(kp->menu_count * sizeof(*kmenus));
1173 kp
1181 uvc_v4l2_put_xu_mapping(const struct uvc_xu_control_mapping *kp, struct uvc_xu_control_mapping32 __user *up) argument
1217 uvc_v4l2_get_xu_query(struct uvc_xu_control_query *kp, const struct uvc_xu_control_query32 __user *up) argument
1250 uvc_v4l2_put_xu_query(const struct uvc_xu_control_query *kp, struct uvc_xu_control_query32 __user *up) argument
[all...]
/drivers/scsi/fcoe/
H A Dfcoe_transport.c37 static int fcoe_transport_show(char *buffer, const struct kernel_param *kp);
583 static int fcoe_transport_show(char *buffer, const struct kernel_param *kp) argument
838 * @kp: The associated kernel param
845 static int fcoe_transport_create(const char *buffer, struct kernel_param *kp) argument
850 enum fip_state fip_mode = (enum fip_state)(long)kp->arg;
903 * @kp: The associated kernel parameter
910 static int fcoe_transport_destroy(const char *buffer, struct kernel_param *kp) argument
948 * @kp: The associated kernel parameter
954 static int fcoe_transport_disable(const char *buffer, struct kernel_param *kp) argument
982 * @kp
988 fcoe_transport_enable(const char *buffer, struct kernel_param *kp) argument
[all...]

Completed in 617 milliseconds

123