Lines Matching +defs:code +defs:key
41 /* a key starts to repeat after this times INPUT_POLL_TIME */
43 /* a key repeats this times INPUT_POLL_TIME */
1084 * and '7', representing the numerical ASCII code of the
1612 /* send the key to the device only if a process is attached to it. */
1911 /* tries to bind a key to the signal name <name>. The key will send the
1913 * Returns the pointer to the new key if ok, NULL if the key could not be bound.
1918 struct logical_input *key;
1920 key = kzalloc(sizeof(struct logical_input), GFP_KERNEL);
1921 if (!key) {
1925 if (!input_name2mask(name, &key->mask, &key->value, &scan_mask_i,
1927 kfree(key);
1931 key->type = INPUT_TYPE_KBD;
1932 key->state = INPUT_ST_LOW;
1933 key->rise_time = 1;
1934 key->fall_time = 1;
1936 strncpy(key->u.kbd.press_str, press, sizeof(key->u.kbd.press_str));
1937 strncpy(key->u.kbd.repeat_str, repeat, sizeof(key->u.kbd.repeat_str));
1938 strncpy(key->u.kbd.release_str, release,
1939 sizeof(key->u.kbd.release_str));
1940 list_add(&key->list, &logical_inputs);
1941 return key;
1968 static int panel_notify_sys(struct notifier_block *this, unsigned long code,
1972 switch (code) {