Searched refs:num_keycodes (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/input/touchscreen/ |
H A D | msg2638.c | 79 int num_keycodes; member 101 for (i = 0; i < msg2638->num_keycodes; ++i) in msg2138_report_keys() 324 if (msg2638->num_keycodes) { in msg2638_init_input_dev() 326 input_dev->keycodemax = msg2638->num_keycodes; in msg2638_init_input_dev() 328 for (i = 0; i < msg2638->num_keycodes; i++) in msg2638_init_input_dev() 401 msg2638->num_keycodes = device_property_count_u32(dev, in msg2638_ts_probe() 403 if (msg2638->num_keycodes == -EINVAL) { in msg2638_ts_probe() 404 msg2638->num_keycodes = 0; in msg2638_ts_probe() 405 } else if (msg2638->num_keycodes < 0) { in msg2638_ts_probe() 407 msg2638->num_keycodes); in msg2638_ts_probe() [all …]
|
H A D | mms114.c | 74 int num_keycodes; member 202 if (touch->id > data->num_keycodes) { in mms114_process_touchkey() 509 data->num_keycodes = device_property_count_u32(&client->dev, in mms114_probe() 511 if (data->num_keycodes == -EINVAL) { in mms114_probe() 512 data->num_keycodes = 0; in mms114_probe() 513 } else if (data->num_keycodes < 0) { in mms114_probe() 516 data->num_keycodes); in mms114_probe() 517 return data->num_keycodes; in mms114_probe() 518 } else if (data->num_keycodes > MMS114_MAX_TOUCHKEYS) { in mms114_probe() 521 data->num_keycodes, MMS114_MAX_TOUCHKEYS); in mms114_probe() [all …]
|
/openbmc/u-boot/drivers/input/ |
H A D | input.c | 377 int keycode[], int num_keycodes, int *same) in input_check_keycodes() argument 386 *same = sort_array_by_ordering(keycode, num_keycodes, in input_check_keycodes() 389 memcpy(config->prev_keycodes, keycode, num_keycodes * sizeof(int)); in input_check_keycodes() 390 config->num_prev_keycodes = num_keycodes; in input_check_keycodes() 392 return *same != num_keycodes; in input_check_keycodes() 452 int keycode[], int num_keycodes, char output_ch[], in input_keycodes_to_ascii() argument 462 for (i = 0; i < num_keycodes; i++) { in input_keycodes_to_ascii() 472 for (i = same; i < num_keycodes; i++) { in input_keycodes_to_ascii() 510 int num_keycodes, bool do_send) in _input_send_keycodes() argument 512 char ch[num_keycodes * ANSI_CHAR_MAX]; in _input_send_keycodes() [all …]
|
H A D | cros_ec_keyb.c | 104 int num_keys, num_keycodes; in cros_ec_kbc_check() local 137 num_keycodes = key_matrix_decode(&priv->matrix, keys, in cros_ec_kbc_check() 139 sent = input_send_keycodes(input, keycodes, num_keycodes); in cros_ec_kbc_check()
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | tm2-touchkey.c | 53 int num_keycodes; member 152 if (index < 0 || index >= touchkey->num_keycodes) { in tm2_touchkey_irq_handler() 161 for (i = 0; i < touchkey->num_keycodes; i++) in tm2_touchkey_irq_handler() 219 touchkey->num_keycodes = of_property_read_variable_u32_array(np, in tm2_touchkey_probe() 222 if (touchkey->num_keycodes <= 0) { in tm2_touchkey_probe() 226 touchkey->num_keycodes = 2; in tm2_touchkey_probe() 254 touchkey->input_dev->keycodemax = touchkey->num_keycodes; in tm2_touchkey_probe() 258 for (i = 0; i < touchkey->num_keycodes; i++) in tm2_touchkey_probe()
|