/drivers/input/keyboard/ |
H A D | pmic8xxx-keypad.c | 116 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 D | twl4030_keypad.c | 138 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/pwm/ |
H A D | pwm-bcm-kona.c | 79 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/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...] |
H A D | gpio_input.c | 68 key_entry = kp->keys_info->keymap; 69 key_state = kp->key_state; 143 key_entry = kp->keys_info->keymap; 144 key_state = kp->key_state;
|
/drivers/media/v4l2-core/ |
H A D | v4l2-compat-ioctl32.c | 48 static int get_v4l2_window32(struct v4l2_window *kp, struct v4l2_window32 __user *up) argument 51 copy_from_user(&kp->w, &up->w, sizeof(up->w)) || 52 get_user(kp->field, &up->field) || 53 get_user(kp->chromakey, &up->chromakey) || 54 get_user(kp->clipcount, &up->clipcount)) 56 if (kp->clipcount > 2048) 58 if (kp->clipcount) { 61 int n = kp->clipcount; 68 kp->clips = kclips; 78 kp 82 put_v4l2_window32(struct v4l2_window *kp, struct v4l2_window32 __user *up) argument 92 get_v4l2_pix_format(struct v4l2_pix_format *kp, struct v4l2_pix_format __user *up) argument 99 get_v4l2_pix_format_mplane(struct v4l2_pix_format_mplane *kp, struct v4l2_pix_format_mplane __user *up) argument 107 put_v4l2_pix_format(struct v4l2_pix_format *kp, struct v4l2_pix_format __user *up) argument 114 put_v4l2_pix_format_mplane(struct v4l2_pix_format_mplane *kp, struct v4l2_pix_format_mplane __user *up) argument 122 get_v4l2_vbi_format(struct v4l2_vbi_format *kp, struct v4l2_vbi_format __user *up) argument 129 put_v4l2_vbi_format(struct v4l2_vbi_format *kp, struct v4l2_vbi_format __user *up) argument 136 get_v4l2_sliced_vbi_format(struct v4l2_sliced_vbi_format *kp, struct v4l2_sliced_vbi_format __user *up) argument 143 put_v4l2_sliced_vbi_format(struct v4l2_sliced_vbi_format *kp, struct v4l2_sliced_vbi_format __user *up) argument 179 __get_v4l2_format32(struct v4l2_format *kp, struct v4l2_format32 __user *up) argument 208 get_v4l2_format32(struct v4l2_format *kp, struct v4l2_format32 __user *up) argument 215 get_v4l2_create32(struct v4l2_create_buffers *kp, struct v4l2_create_buffers32 __user *up) argument 223 __put_v4l2_format32(struct v4l2_format *kp, struct v4l2_format32 __user *up) argument 249 put_v4l2_format32(struct v4l2_format *kp, struct v4l2_format32 __user *up) argument 257 put_v4l2_create32(struct v4l2_create_buffers *kp, struct v4l2_create_buffers32 __user *up) argument 274 get_v4l2_standard32(struct v4l2_standard *kp, struct v4l2_standard32 __user *up) argument 283 put_v4l2_standard32(struct v4l2_standard *kp, struct v4l2_standard32 __user *up) argument 383 get_v4l2_buffer32(struct v4l2_buffer *kp, struct v4l2_buffer32 __user *up) argument 471 put_v4l2_buffer32(struct v4l2_buffer *kp, struct v4l2_buffer32 __user *up) argument 555 get_v4l2_framebuffer32(struct v4l2_framebuffer *kp, struct v4l2_framebuffer32 __user *up) argument 569 put_v4l2_framebuffer32(struct v4l2_framebuffer *kp, struct v4l2_framebuffer32 __user *up) argument 595 get_v4l2_input32(struct v4l2_input *kp, struct v4l2_input32 __user *up) argument 602 put_v4l2_input32(struct v4l2_input *kp, struct v4l2_input32 __user *up) argument 645 get_v4l2_ext_controls32(struct v4l2_ext_controls *kp, struct v4l2_ext_controls32 __user *up) argument 693 put_v4l2_ext_controls32(struct v4l2_ext_controls *kp, struct v4l2_ext_controls32 __user *up) argument 748 put_v4l2_event32(struct v4l2_event *kp, struct v4l2_event32 __user *up) argument 770 get_v4l2_edid32(struct v4l2_edid *kp, struct v4l2_edid32 __user *up) argument 785 put_v4l2_edid32(struct v4l2_edid *kp, struct v4l2_edid32 __user *up) argument [all...] |
/drivers/staging/speakup/ |
H A D | keyhelp.c | 64 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/power/ |
H A D | test_power.c | 309 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/edac/ |
H A D | edac_module.c | 22 static int edac_set_debug_level(const char *buf, struct kernel_param *kp) argument 34 return param_set_int(buf, kp);
|
/drivers/media/usb/uvc/ |
H A D | uvc_v4l2.c | 1145 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/usb/phy/ |
H A D | otg-wakelock.c | 118 static int set_enabled(const char *val, const struct kernel_param *kp) argument 120 int rv = param_set_bool(val, kp);
|
/drivers/staging/android/ |
H A D | lowmemorykiller.c | 246 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/char/ |
H A D | sonypi.c | 777 struct sonypi_keypress kp; local 779 while (kfifo_out_locked(&sonypi_device.input_fifo, (unsigned char *)&kp, 780 sizeof(kp), &sonypi_device.input_fifo_lock) 781 == sizeof(kp)) { 783 input_report_key(kp.dev, kp.key, 0); 784 input_sync(kp.dev); 792 struct sonypi_keypress kp = { NULL }; local 809 kp.key = BTN_MIDDLE; 810 kp [all...] |
/drivers/misc/ |
H A D | lkdtm.c | 565 lkdtm.kp.symbol_name = "do_IRQ"; 569 lkdtm.kp.symbol_name = "handle_IRQ_event"; 573 lkdtm.kp.symbol_name = "tasklet_action"; 577 lkdtm.kp.symbol_name = "ll_rw_block"; 581 lkdtm.kp.symbol_name = "shrink_inactive_list"; 585 lkdtm.kp.symbol_name = "hrtimer_start"; 589 lkdtm.kp.symbol_name = "scsi_dispatch_cmd"; 594 lkdtm.kp.symbol_name = "generic_ide_ioctl";
|
/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/net/wireless/mwifiex/ |
H A D | sta_ioctl.c | 1050 int mwifiex_set_encode(struct mwifiex_private *priv, struct key_params *kp, argument 1060 if (kp && kp->cipher == WLAN_CIPHER_SUITE_AES_CMAC) 1071 if (kp && kp->seq && kp->seq_len) { 1072 memcpy(encrypt_key.pn, kp->seq, kp->seq_len); 1073 encrypt_key.pn_len = kp->seq_len;
|
/drivers/char/ipmi/ |
H A D | ipmi_watchdog.c | 192 static int set_param_timeout(const char *val, const struct kernel_param *kp) argument 204 *((int *)kp->arg) = l; 224 static int set_param_str(const char *val, const struct kernel_param *kp) argument 226 action_fn fn = (action_fn) kp->arg; 248 static int get_param_str(char *buffer, const struct kernel_param *kp) argument 250 action_fn fn = (action_fn) kp->arg; 260 static int set_param_wdog_ifnum(const char *val, const struct kernel_param *kp) argument 262 int rv = param_set_int(val, kp);
|
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/dma/ |
H A D | dmatest.c | 121 static int dmatest_run_set(const char *val, const struct kernel_param *kp); 122 static int dmatest_run_get(char *val, const struct kernel_param *kp); 187 static int dmatest_wait_get(char *val, const struct kernel_param *kp) argument 195 return param_get_bool(val, kp); 913 static int dmatest_run_get(char *val, const struct kernel_param *kp) argument 926 return param_get_bool(val, kp); 929 static int dmatest_run_set(const char *val, const struct kernel_param *kp) argument 935 ret = param_set_bool(val, kp);
|
/drivers/acpi/ |
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/scsi/fcoe/ |
H A D | fcoe_transport.c | 37 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...] |
/drivers/platform/x86/ |
H A D | sony-laptop.c | 367 struct sony_laptop_keypress kp; local 373 (unsigned char *)&kp, sizeof(kp)) == sizeof(kp)) { 374 input_report_key(kp.dev, kp.key, 0); 375 input_sync(kp.dev); 391 struct sony_laptop_keypress kp = { NULL }; local 417 kp.key = BTN_MIDDLE; 418 kp 548 struct sony_laptop_keypress kp = { NULL }; local [all...] |
/drivers/virtio/ |
H A D | virtio_mmio.c | 517 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/mtd/devices/ |
H A D | phram.c | 269 static int phram_param_call(const char *val, struct kernel_param *kp) argument
|