Searched refs:keycode (Results 1 - 25 of 128) sorted by path

123456

/linux-master/drivers/hid/
H A Dhid-picolcd.h81 unsigned short keycode[PICOLCD_KEYS]; member in struct:picolcd_data
H A Dhid-appleir.c260 input_dev->keycode = appleir->keymap;
H A Dhid-creative-sb0540.c136 static int get_key(struct creative_sb0540 *creative_sb0540, u64 keycode) argument
141 if (creative_sb0540_codes[i] == keycode)
194 input_dev->keycode = creative_sb0540->keymap;
H A Dhid-input.c114 unsigned int cur_idx, unsigned int keycode)
117 * We should exclude unmapped usages when doing lookup by keycode.
119 return (usage->type == EV_KEY && usage->code == keycode);
186 ke->keycode = usage->type == EV_KEY ?
210 usage->code = ke->keycode;
214 dbg_hid("Assigned keycode %d to HID usage code %x\n",
218 * Set the keybit for the old keycode if the old keycode is used
1717 * report constant 0. As all map to the same keycode, they'd confuse
1719 * skip the keycode translatio
113 match_keycode(struct hid_usage *usage, unsigned int cur_idx, unsigned int keycode) argument
[all...]
H A Dhid-picolcd_core.c141 key_code = data->keycode[raw_data[i]];
164 key_code = data->keycode[data->pressed_keys[j]];
428 memcpy(data->keycode, def_keymap, sizeof(def_keymap));
437 idev->keycode = &data->keycode;
439 idev->keycodesize = sizeof(data->keycode[0]);
443 input_set_capability(idev, EV_KEY, data->keycode[i]);
/linux-master/drivers/input/
H A Dapm-power.c19 static void system_power_event(unsigned int keycode) argument
21 switch (keycode) {
H A Devdev.c819 if (put_user(ke.keycode, ip + 1))
854 if (get_user(ke.keycode, ip + 1))
H A Dinput.c826 return ((u8 *)dev->keycode)[index];
829 return ((u16 *)dev->keycode)[index];
832 return ((u32 *)dev->keycode)[index];
856 ke->keycode = input_fetch_keycode(dev, index);
886 if (dev->keycodesize < sizeof(ke->keycode) &&
887 (ke->keycode >> (dev->keycodesize * 8)))
892 u8 *k = (u8 *)dev->keycode;
894 k[index] = ke->keycode;
898 u16 *k = (u16 *)dev->keycode;
900 k[index] = ke->keycode;
[all...]
/linux-master/drivers/input/keyboard/
H A Djornada720_kbd.c112 input_dev->keycode = jornadakbd->keymap;
H A Dmaple_keyb.c28 unsigned short keycode[NR_SCANCODES]; member in struct:dc_kbd
85 int code, keycode; local
90 keycode = kbd->keycode[code];
92 input_report_key(dev, keycode, (kbd->new[0] >> i) & 1);
99 keycode = kbd->keycode[code];
100 if (keycode) {
102 input_report_key(dev, keycode, 0);
111 keycode
[all...]
H A Dadc-keys.c21 u32 keycode; member in struct:adc_keys_button
37 int keycode = 0; local
48 keycode = st->map[i].keycode;
54 keycode = 0;
56 if (st->last_key && st->last_key != keycode)
59 if (keycode)
60 input_report_key(input, keycode, 1);
63 st->last_key = keycode;
93 &map[i].keycode)) {
[all...]
H A Dadp5520-keys.c20 unsigned short keycode[ADP5520_KEYMAPSIZE]; member in struct:adp5520_keys
30 input_report_key(dev->input, dev->keycode[i], value);
114 input->keycodesize = sizeof(dev->keycode[0]);
116 input->keycode = dev->keycode;
118 memcpy(dev->keycode, pdata->keymap,
128 __set_bit(dev->keycode[i], input->keybit);
H A Dadp5588-keys.c191 unsigned short keycode[ADP5588_KEYMAPSIZE]; member in struct:adp5588_kpad
543 key_val, row, col, kpad->keycode[code]);
546 kpad->keycode[code], key_press);
662 kpad->keycode, kpad->input);
H A Dadp5589-keys.c235 unsigned short keycode[ADP5589_KEYMAPSIZE]; member in struct:adp5589_kpad
576 kpad->keycode[key_val - 1],
611 if (key == kpad->keycode[i])
614 dev_err(&kpad->client->dev, "RESET/UNLOCK key not in keycode map\n");
893 input->keycodesize = sizeof(kpad->keycode[0]);
895 input->keycode = kpad->keycode;
897 memcpy(kpad->keycode, pdata->keymap,
910 if (kpad->keycode[i] <= KEY_MAX)
911 __set_bit(kpad->keycode[
[all...]
H A Datakbd.c205 atakbd_dev->keycode = atakbd_keycode;
H A Datkbd.c72 * Scancode to keycode tables. These are just the default setting, and
186 unsigned short keycode; member in struct:__anon45
212 unsigned short keycode[ATKBD_KEYMAP_SIZE]; member in struct:atkbd
450 unsigned short keycode; local
507 keycode = atkbd->keycode[code];
510 if (keycode != ATKBD_KEY_NULL)
513 switch (keycode) {
523 "Use 'setkeycodes %s%02x <keycode>' to make it known.\n",
552 } else if (!atkbd->softrepeat && test_bit(keycode, de
1094 u16 scancode, keycode; local
[all...]
/linux-master/drivers/media/firewire/
H A Dfiredtv-rc.c138 idev->keycode = kmemdup(keytable, sizeof(keytable), GFP_KERNEL);
139 if (!idev->keycode) {
156 kfree(idev->keycode);
165 kfree(fdtv->remote_ctrl_dev->keycode);
172 u16 *keycode = idev->keycode; local
175 code = keycode[code - 0x0300];
177 code = keycode[code - 0x0320];
/linux-master/drivers/media/usb/dvb-usb/
H A Ddvb-usb-remote.c34 if (keymap[index].keycode == KEY_RESERVED ||
35 keymap[index].keycode == KEY_UNKNOWN) {
57 ke->keycode = keymap[index].keycode;
58 if (ke->keycode == KEY_UNKNOWN)
59 ke->keycode = KEY_RESERVED;
87 *old_keycode = keymap[index].keycode;
88 keymap->keycode = ke->keycode;
89 __set_bit(ke->keycode, de
[all...]
/linux-master/include/linux/input/
H A Dad714x.h44 int keycode; member in struct:ad714x_button_plat
/linux-master/arch/arm/mach-omap1/
H A Dams-delta-fiq-handler.S156 str r10, [r9, #BUF_KEY] @ clear keycode
188 @ Try appending the keycode to the circular buffer
204 ldr r8, [r9, #BUF_KEY] @ get last keycode
/linux-master/drivers/accessibility/speakup/
H A Dmain.c2108 speakup_key(struct vc_data *vc, int shift_state, int keycode, u_short keysym, argument
2137 if (keycode >= MAX_KEY)
2139 key_info = spk_our_keys[keycode];
2174 if (last_keycode == keycode &&
2182 last_keycode = keycode;
2214 ret = (*spk_special_handler) (vc, type, value, keycode);
2233 static int keycode; /* to hold the current keycode */ local
2254 /* speakup requires keycode and keysym currently */
2255 keycode
[all...]
/linux-master/drivers/acpi/
H A Dacpi_video.c1533 int keycode = 0; local
1543 keycode = KEY_SWITCHVIDEOMODE;
1550 keycode = KEY_SWITCHVIDEOMODE;
1554 keycode = KEY_SWITCHVIDEOMODE;
1557 keycode = KEY_VIDEO_NEXT;
1560 keycode = KEY_VIDEO_PREV;
1571 keycode = 0;
1573 if (keycode && (report_key_events & REPORT_OUTPUT_KEY_EVENTS)) {
1574 input_report_key(input, keycode, 1);
1576 input_report_key(input, keycode,
1597 int keycode = 0; local
[all...]
H A Dbutton.c433 int keycode; local
448 keycode = test_bit(KEY_SLEEP, input->keybit) ? KEY_SLEEP : KEY_POWER;
450 input_report_key(input, keycode, 1);
452 input_report_key(input, keycode, 0);
/linux-master/drivers/auxdisplay/
H A Dht16k33.c343 const unsigned short *keycodes = keypad->dev->keycode;
/linux-master/drivers/input/joystick/
H A Dadafruit-seesaw.c76 { KE_KEY, SEESAW_BUTTON_A, .keycode = BTN_SOUTH },
77 { KE_KEY, SEESAW_BUTTON_B, .keycode = BTN_EAST },
78 { KE_KEY, SEESAW_BUTTON_X, .keycode = BTN_NORTH },
79 { KE_KEY, SEESAW_BUTTON_Y, .keycode = BTN_WEST },
80 { KE_KEY, SEESAW_BUTTON_START, .keycode = BTN_START },
81 { KE_KEY, SEESAW_BUTTON_SELECT, .keycode = BTN_SELECT },

Completed in 552 milliseconds

123456