/drivers/usb/otg/ |
H A D | otg-wakelock.c | 117 static int set_enabled(const char *val, const struct kernel_param *kp) argument 119 int rv = param_set_bool(val, kp);
|
/drivers/staging/android/ |
H A D | lowmemorykiller.c | 218 static int lowmem_adj_array_set(const char *val, const struct kernel_param *kp) argument 222 ret = param_array_ops.set(val, kp); 230 static int lowmem_adj_array_get(char *buffer, const struct kernel_param *kp) argument 232 return param_array_ops.get(buffer, kp);
|
/drivers/staging/speakup/ |
H A D | keyhelp.c | 64 u_char *kp, counters[MAXFUNCS], ch, ch1; local 70 kp = state_tbl + nstates + 1; 71 while (*kp++) { 73 for (i = 0; i < nstates; i++, kp++) { 74 if (!*kp) 76 if ((state_tbl[i]&16) != 0 && *kp == SPK_KEY) 78 counters[*kp]++; 93 kp = state_tbl + nstates + 1; 94 while ((ch = *kp++)) { 96 ch1 = *kp 144 u_char func, *kp; local [all...] |
/drivers/usb/storage/ |
H A D | libusual.c | 206 static int usu_set_bias(const char *bias_s, struct kernel_param *kp) argument 231 static int usu_get_bias(char *buffer, struct kernel_param *kp) argument
|
/drivers/ide/ |
H A D | ide.c | 180 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 D | ipath_init_chip.c | 66 static int ipath_set_kpiobufs(const char *val, struct kernel_param *kp); 1031 static int ipath_set_kpiobufs(const char *str, struct kernel_param *kp) argument
|
/drivers/input/keyboard/ |
H A D | tnetv107x-keypad.c | 53 #define keypad_read(kp, reg) __raw_readl(&(kp)->regs->reg) 54 #define keypad_write(kp, reg, val) __raw_writel(val, &(kp)->regs->reg) 73 struct keypad_data *kp = data; local 79 spin_lock_irqsave(&kp->lock, flags); 82 if (irq == kp->irq_press) 84 curr_keys[i] = keypad_read(kp, pres[i]); 87 change = curr_keys[i] ^ kp->prev_keys[i]; 97 code = MATRIX_SCAN_CODE(row, col, kp 116 struct keypad_data *kp = input_get_drvdata(dev); local 149 struct keypad_data *kp = input_get_drvdata(dev); local 161 struct keypad_data *kp; local 305 struct keypad_data *kp = platform_get_drvdata(pdev); local [all...] |
H A D | pmic8xxx-keypad.c | 113 static int pmic8xxx_kp_write_u8(struct pmic8xxx_kp *kp, argument 118 rc = pm8xxx_writeb(kp->dev->parent, reg, data); 122 static int pmic8xxx_kp_read(struct pmic8xxx_kp *kp, argument 127 rc = pm8xxx_read_buf(kp->dev->parent, reg, data, num_bytes); 131 static int pmic8xxx_kp_read_u8(struct pmic8xxx_kp *kp, argument 136 rc = pmic8xxx_kp_read(kp, data, reg, 1); 140 static u8 pmic8xxx_col_state(struct pmic8xxx_kp *kp, u8 col) argument 144 return 1 << kp->pdata->num_cols; 146 return col & ((1 << kp->pdata->num_cols) - 1); 161 static int pmic8xxx_chk_sync_read(struct pmic8xxx_kp *kp) argument 186 pmic8xxx_kp_read_data(struct pmic8xxx_kp *kp, u16 *state, u16 data_reg, int read_rows) argument 205 pmic8xxx_kp_read_matrix(struct pmic8xxx_kp *kp, u16 *new_state, u16 *old_state) argument 253 __pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, u16 *new_state, u16 *old_state) argument 284 pmic8xxx_detect_ghost_keys(struct pmic8xxx_kp *kp, u16 *new_state) argument 308 pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, unsigned int events) argument 366 struct pmic8xxx_kp *kp = data; local 381 struct pmic8xxx_kp *kp = data; local 400 pmic8xxx_kpd_init(struct pmic8xxx_kp *kp) argument 450 pmic8xxx_kp_config_gpio(int gpio_start, int num_gpios, struct pmic8xxx_kp *kp, struct pm_gpio *gpio_config) argument 471 pmic8xxx_kp_enable(struct pmic8xxx_kp *kp) argument 484 pmic8xxx_kp_disable(struct pmic8xxx_kp *kp) argument 499 struct pmic8xxx_kp *kp = input_get_drvdata(dev); local 506 struct pmic8xxx_kp *kp = input_get_drvdata(dev); local 526 struct pmic8xxx_kp *kp; local 717 struct pmic8xxx_kp *kp = platform_get_drvdata(pdev); local 733 struct pmic8xxx_kp *kp = platform_get_drvdata(pdev); local 753 struct pmic8xxx_kp *kp = platform_get_drvdata(pdev); local [all...] |
H A D | twl4030_keypad.c | 137 static int twl4030_kpread(struct twl4030_keypad *kp, argument 143 dev_warn(kp->dbg_dev, 150 static int twl4030_kpwrite_u8(struct twl4030_keypad *kp, u8 data, u32 reg) argument 155 dev_warn(kp->dbg_dev, 162 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) argument 170 return 1 << kp->n_cols; 172 return col & ((1 << kp->n_cols) - 1); 175 static int twl4030_read_kp_matrix_state(struct twl4030_keypad *kp, u16 *state) argument 179 int ret = twl4030_kpread(kp, new_state, 180 KEYP_FULL_CODE_7_0, kp 188 twl4030_is_in_ghost_state(struct twl4030_keypad *kp, u16 *key_state) argument 205 twl4030_kp_scan(struct twl4030_keypad *kp, bool release_all) argument 257 struct twl4030_keypad *kp = _kp; local 274 twl4030_kp_program(struct twl4030_keypad *kp) argument 335 struct twl4030_keypad *kp; local 438 struct twl4030_keypad *kp = platform_get_drvdata(pdev); local [all...] |
/drivers/input/misc/ |
H A D | gpio_matrix.c | 38 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 D | ati_remote2.c | 42 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 D | phram.c | 267 static int __init phram_param_call(const char *val, struct kernel_param *kp) argument
|
H A D | block2mtd.c | 398 static int block2mtd_setup(const char *val, struct kernel_param *kp) argument
|
/drivers/power/ |
H A D | test_power.c | 265 static int param_set_ac_online(const char *key, const struct kernel_param *kp) argument 272 static int param_get_ac_online(char *buffer, const struct kernel_param *kp) argument 279 const struct kernel_param *kp) 286 static int param_get_battery_status(char *buffer, const struct kernel_param *kp) argument 293 const struct kernel_param *kp) 300 static int param_get_battery_health(char *buffer, const struct kernel_param *kp) argument 307 const struct kernel_param *kp) 315 const struct kernel_param *kp) 322 const struct kernel_param *kp) 331 const struct kernel_param *kp) 278 param_set_battery_status(const char *key, const struct kernel_param *kp) argument 292 param_set_battery_health(const char *key, const struct kernel_param *kp) argument 306 param_set_battery_present(const char *key, const struct kernel_param *kp) argument 314 param_get_battery_present(char *buffer, const struct kernel_param *kp) argument 321 param_set_battery_technology(const char *key, const struct kernel_param *kp) argument 330 param_get_battery_technology(char *buffer, const struct kernel_param *kp) argument 338 param_set_battery_capacity(const char *key, const struct kernel_param *kp) argument [all...] |
/drivers/tty/serial/ |
H A D | kgdboc.c | 238 static int param_set_kgdboc_var(const char *kmessage, struct kernel_param *kp) argument
|
/drivers/acpi/ |
H A D | sleep.c | 33 static int set_param_wake_flag(const char *val, struct kernel_param *kp) argument 35 int ret = param_set_int(val, kp); 40 if (kp->arg == (const char *)>s) { 46 if (kp->arg == (const char *)&bfs) {
|
H A D | sysfs.c | 103 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/isdn/hardware/mISDN/ |
H A D | speedfax.c | 97 set_debug(const char *val, struct kernel_param *kp) argument 102 ret = param_set_uint(val, kp);
|
/drivers/scsi/fcoe/ |
H A D | fcoe_transport.c | 37 static int fcoe_transport_show(char *buffer, const struct kernel_param *kp); 481 static int fcoe_transport_show(char *buffer, const struct kernel_param *kp) argument 634 * @kp: The associated kernel param 641 static int fcoe_transport_create(const char *buffer, struct kernel_param *kp) argument 646 enum fip_state fip_mode = (enum fip_state)(long)kp->arg; 699 * @kp: The associated kernel parameter 706 static int fcoe_transport_destroy(const char *buffer, struct kernel_param *kp) argument 744 * @kp: The associated kernel parameter 750 static int fcoe_transport_disable(const char *buffer, struct kernel_param *kp) argument 782 * @kp 788 fcoe_transport_enable(const char *buffer, struct kernel_param *kp) argument [all...] |
/drivers/staging/rtl8192u/ieee80211/ |
H A D | aes.c | 346 const u32 *kp = E_KEY + 4; local 354 f_nround (b1, b0, kp); 355 f_nround (b0, b1, kp); 359 f_nround (b1, b0, kp); 360 f_nround (b0, b1, kp); 363 f_nround (b1, b0, kp); 364 f_nround (b0, b1, kp); 365 f_nround (b1, b0, kp); 366 f_nround (b0, b1, kp); 367 f_nround (b1, b0, kp); 400 const u32 *kp = D_KEY + key_len + 20; local [all...] |
/drivers/char/ipmi/ |
H A D | ipmi_poweroff.c | 69 static int set_param_ifnum(const char *val, struct kernel_param *kp) argument 71 int rv = param_set_int(val, kp);
|
/drivers/edac/ |
H A D | edac_mc_sysfs.c | 49 static int edac_set_poll_msec(const char *val, struct kernel_param *kp) argument 60 *((int *)kp->arg) = l;
|
/drivers/hid/ |
H A D | hid-magicmouse.c | 37 static int param_set_scroll_speed(const char *val, struct kernel_param *kp) { argument
|
/drivers/media/video/uvc/ |
H A D | uvc_driver.c | 1995 static int uvc_clock_param_get(char *buffer, struct kernel_param *kp) argument 2003 static int uvc_clock_param_set(const char *val, struct kernel_param *kp) argument
|
H A D | uvc_v4l2.c | 1052 static int uvc_v4l2_get_xu_mapping(struct uvc_xu_control_mapping *kp, argument 1060 __copy_from_user(kp, up, offsetof(typeof(*up), menu_info)) || 1061 __get_user(kp->menu_count, &up->menu_count)) 1064 memset(kp->reserved, 0, sizeof(kp->reserved)); 1066 if (kp->menu_count == 0) { 1067 kp->menu_info = NULL; 1074 if (!access_ok(VERIFY_READ, umenus, kp->menu_count * sizeof(*umenus))) 1077 kmenus = compat_alloc_user_space(kp->menu_count * sizeof(*kmenus)); 1080 kp 1088 uvc_v4l2_put_xu_mapping(const struct uvc_xu_control_mapping *kp, struct uvc_xu_control_mapping32 __user *up) argument 1125 uvc_v4l2_get_xu_query(struct uvc_xu_control_query *kp, const struct uvc_xu_control_query32 __user *up) argument 1158 uvc_v4l2_put_xu_query(const struct uvc_xu_control_query *kp, struct uvc_xu_control_query32 __user *up) argument [all...] |