Lines Matching defs:key
67 /* a key starts to repeat after this times INPUT_POLL_TIME */
69 /* a key repeats this times INPUT_POLL_TIME */
1089 /* send the key to the device only if a process is attached to it. */
1171 * transitions from single-key to multiple-key, but
1427 /* tries to bind a key to the signal name <name>. The key will send the
1429 * Returns the pointer to the new key if ok, NULL if the key could not be bound.
1435 struct logical_input *key;
1437 key = kzalloc(sizeof(*key), GFP_KERNEL);
1438 if (!key)
1441 if (!input_name2mask(name, &key->mask, &key->value, &scan_mask_i,
1443 kfree(key);
1447 key->type = INPUT_TYPE_KBD;
1448 key->state = INPUT_ST_LOW;
1449 key->rise_time = 1;
1450 key->fall_time = 1;
1452 strncpy(key->u.kbd.press_str, press, sizeof(key->u.kbd.press_str));
1453 strncpy(key->u.kbd.repeat_str, repeat, sizeof(key->u.kbd.repeat_str));
1454 strncpy(key->u.kbd.release_str, release,
1455 sizeof(key->u.kbd.release_str));
1456 list_add(&key->list, &logical_inputs);
1457 return key;