/linux-4.1.27/kernel/debug/kdb/ |
H A D | kdb_keyboard.c | 37 int scancode, scanstatus; kdb_get_kbd_char() local 54 * Fetch the scancode kdb_get_kbd_char() 56 scancode = inb(KBD_DATA_REG); kdb_get_kbd_char() 72 if (((scancode&0x7f) == 0x2a) || ((scancode&0x7f) == 0x36)) { kdb_get_kbd_char() 76 if ((scancode & 0x80) == 0) kdb_get_kbd_char() 83 if ((scancode&0x7f) == 0x1d) { kdb_get_kbd_char() 87 if ((scancode & 0x80) == 0) kdb_get_kbd_char() 94 if ((scancode & 0x80) != 0) { kdb_get_kbd_char() 95 if (scancode == 0x9c) kdb_get_kbd_char() 100 scancode &= 0x7f; kdb_get_kbd_char() 103 * Translate scancode kdb_get_kbd_char() 106 if (scancode == 0x3a) { kdb_get_kbd_char() 118 if (scancode == 0x0e) { kdb_get_kbd_char() 126 switch (scancode) { kdb_get_kbd_char() 145 if (scancode == 0xe0) kdb_get_kbd_char() 153 if (scancode == 0x73) kdb_get_kbd_char() 154 scancode = 0x59; kdb_get_kbd_char() 155 else if (scancode == 0x7d) kdb_get_kbd_char() 156 scancode = 0x7c; kdb_get_kbd_char() 159 keychar = plain_map[scancode]; kdb_get_kbd_char() 161 keychar = key_maps[1][scancode]; kdb_get_kbd_char() 163 keychar = key_maps[4][scancode]; kdb_get_kbd_char() 166 kdb_printf("Unknown state/scancode (%d)\n", scancode); kdb_get_kbd_char() 185 if (scancode == 0x1c) { kdb_get_kbd_char() 201 int scancode, scanstatus; kdb_kbd_cleanup_state() local 231 * Fetch the scancode. kdb_kbd_cleanup_state() 233 scancode = inb(KBD_DATA_REG); kdb_kbd_cleanup_state() 258 if (scancode != 0x9c) kdb_kbd_cleanup_state()
|
/linux-4.1.27/drivers/media/rc/img-ir/ |
H A D | img-ir-jvc.c | 14 /* Convert JVC data to a scancode */ img_ir_jvc_scancode() 27 request->scancode = cust << 8 | data; img_ir_jvc_scancode() 31 /* Convert JVC scancode to JVC data filter */ img_ir_jvc_filter() 85 /* scancode logic */ 86 .scancode = img_ir_jvc_scancode,
|
H A D | img-ir-rc5.c | 14 /* Convert RC5 data to a scancode */ img_ir_rc5_scancode() 37 request->scancode = addr << 8 | cmd; img_ir_rc5_scancode() 42 /* Convert RC5 scancode to RC5 data filter */ img_ir_rc5_filter() 85 /* scancode logic */ 86 .scancode = img_ir_rc5_scancode,
|
H A D | img-ir-sharp.c | 14 /* Convert Sharp data to a scancode */ img_ir_sharp_scancode() 36 request->scancode = addr << 8 | cmd; img_ir_sharp_scancode() 40 /* Convert Sharp scancode to Sharp data filter */ img_ir_sharp_filter() 103 /* scancode logic */ 104 .scancode = img_ir_sharp_scancode,
|
H A D | img-ir-rc6.c | 14 /* Convert RC6 data to a scancode */ img_ir_rc6_scancode() 34 * The start bit is not important to recover the scancode. img_ir_rc6_scancode() 58 request->scancode = addr << 8 | cmd; img_ir_rc6_scancode() 63 /* Convert RC6 scancode to RC6 data filter */ img_ir_rc6_filter() 114 /* scancode logic */ 115 .scancode = img_ir_rc6_scancode,
|
H A D | img-ir-nec.c | 15 /* Convert NEC data to a scancode */ img_ir_nec_scancode() 33 request->scancode = bitrev8(addr) << 24 | img_ir_nec_scancode() 40 request->scancode = addr << 16 | img_ir_nec_scancode() 46 request->scancode = addr << 8 | img_ir_nec_scancode() 53 /* Convert NEC scancode to NEC data filter */ img_ir_nec_filter() 155 /* scancode logic */ 156 .scancode = img_ir_nec_scancode,
|
H A D | img-ir-sanyo.c | 25 /* Convert Sanyo data to a scancode */ img_ir_sanyo_scancode() 48 request->scancode = addr << 8 | data; img_ir_sanyo_scancode() 52 /* Convert Sanyo scancode to Sanyo data filter */ img_ir_sanyo_filter() 126 /* scancode logic */ 127 .scancode = img_ir_sanyo_scancode,
|
H A D | img-ir-sony.c | 14 /* Convert Sony data to a scancode */ img_ir_sony_scancode() 52 request->scancode = dev << 16 | subdev << 8 | func; img_ir_sony_scancode() 56 /* Convert NEC scancode to NEC data filter */ img_ir_sony_filter() 151 /* scancode logic */ 152 .scancode = img_ir_sony_scancode,
|
H A D | img-ir-hw.h | 132 #define IMG_IR_SCANCODE 0 /* new scancode */ 139 * @scancode: Scan code of received message (must be written by 145 u32 scancode; member in struct:img_ir_scancode_req 159 * @scancode: Pointer to function to convert the IR data into a scancode (it 161 * Returns IMG_IR_SCANCODE to emit new scancode. 164 * @filter: Pointer to function to convert scancode filter to raw hardware 178 /* scancode logic */ 179 int (*scancode)(int len, u64 raw, u64 enabled_protocols, member in struct:img_ir_decoder 229 * @filters: HW filters (derived from scancode filters).
|
H A D | img-ir-hw.c | 12 * provided in separate modules which provide the parameters and scancode 460 /* Callback for setting scancode filter */ img_ir_set_filter() 469 dev_dbg(priv->dev, "IR scancode %sfilter=%08x & %08x\n", img_ir_set_filter() 482 /* current decoder must support scancode filtering */ img_ir_set_filter() 488 /* convert scancode filter to raw filter */ img_ir_set_filter() 581 /* clear the wakeup scancode filter */ img_ir_set_decoder() 826 if (dec->scancode) img_ir_handle_data() 827 ret = dec->scancode(len, raw, hw->enabled_protocols, &request); img_ir_handle_data() 829 request.scancode = (u32)raw; img_ir_handle_data() 831 request.scancode = (u32)raw & ((1 << len)-1); img_ir_handle_data() 836 request.scancode, request.toggle); img_ir_handle_data() 837 rc_keydown(hw->rdev, request.protocol, request.scancode, img_ir_handle_data()
|
/linux-4.1.27/drivers/media/rc/ |
H A D | ir-nec-decoder.c | 51 u32 scancode; ir_nec_decode() local 175 scancode = data->bits; ir_nec_decode() 176 IR_dprintk(1, "NEC (modified) scancode 0x%08x\n", scancode); ir_nec_decode() 179 scancode = address << 16 | ir_nec_decode() 182 IR_dprintk(1, "NEC (Ext) scancode 0x%06x\n", scancode); ir_nec_decode() 185 scancode = address << 8 | command; ir_nec_decode() 186 IR_dprintk(1, "NEC scancode 0x%04x\n", scancode); ir_nec_decode() 192 rc_keydown(dev, RC_TYPE_NEC, scancode, 0); ir_nec_decode()
|
H A D | rc-main.c | 118 * ir_create_table() - initializes a scancode table 145 * ir_free_table() - frees memory allocated by a scancode table 149 * scancode table. 159 * ir_resize_table() - resizes a scancode table if necessary 207 * ir_update_mapping() - set a keycode in the scancode->keycode table 209 * @rc_map: scancode table to be adjusted 214 * This routine is used to update scancode->keycode mapping at given 228 index, rc_map->scan[index].scancode); ir_update_mapping() 236 rc_map->scan[index].scancode, new_keycode); ir_update_mapping() 244 /* ... but another scancode might use the same keycode */ ir_update_mapping() 260 * ir_establish_scancode() - set a keycode in the scancode->keycode table 262 * @rc_map: scancode table to be searched 263 * @scancode: the desired scancode 266 * @return: index of the mapping containing scancode in question 269 * This routine is used to locate given scancode in rc_map. 270 * If scancode is not yet present the routine will allocate a new slot 275 unsigned int scancode, ir_establish_scancode() 289 scancode &= dev->scancode_mask; ir_establish_scancode() 293 if (rc_map->scan[i].scancode == scancode) ir_establish_scancode() 296 /* Keytable is sorted from lowest to highest scancode */ ir_establish_scancode() 297 if (rc_map->scan[i].scancode >= scancode) ir_establish_scancode() 311 rc_map->scan[i].scancode = scancode; ir_establish_scancode() 319 * ir_setkeycode() - set a keycode in the scancode->keycode table 321 * @scancode: the desired scancode 334 unsigned int scancode; ir_setkeycode() local 347 retval = input_scancode_to_scalar(ke, &scancode); ir_setkeycode() 351 index = ir_establish_scancode(rdev, rc_map, scancode, true); ir_setkeycode() 366 * ir_setkeytable() - sets several entries in the scancode->keycode table 391 from->scan[i].scancode, false); ir_setkeytable() 408 * ir_lookup_by_scancode() - locate mapping by scancode 410 * @scancode: scancode to look for in the table 414 * given scancode. 417 unsigned int scancode) ir_lookup_by_scancode() 425 if (rc_map->scan[mid].scancode < scancode) ir_lookup_by_scancode() 427 else if (rc_map->scan[mid].scancode > scancode) ir_lookup_by_scancode() 437 * ir_getkeycode() - get a keycode from the scancode->keycode table 439 * @scancode: the desired scancode 453 unsigned int scancode; ir_getkeycode() local 461 retval = input_scancode_to_scalar(ke, &scancode); ir_getkeycode() 465 index = ir_lookup_by_scancode(rc_map, scancode); ir_getkeycode() 473 ke->len = sizeof(entry->scancode); ir_getkeycode() 474 memcpy(ke->scancode, &entry->scancode, sizeof(entry->scancode)); ir_getkeycode() 497 * rc_g_keycode_from_table() - gets the keycode that corresponds to a scancode 499 * @scancode: the scancode to look for 502 * This routine is used by drivers which need to convert a scancode to a 506 u32 rc_g_keycode_from_table(struct rc_dev *dev, u32 scancode) rc_g_keycode_from_table() argument 515 index = ir_lookup_by_scancode(rc_map, scancode); rc_g_keycode_from_table() 522 IR_dprintk(1, "%s: scancode 0x%04x keycode 0x%02x\n", rc_g_keycode_from_table() 523 dev->input_name, scancode, keycode); rc_g_keycode_from_table() 600 * not include the necessary bits to reproduce the scancode has been 627 * @scancode: the scancode of the keypress 635 u32 scancode, u32 keycode, u8 toggle) ir_do_keydown() 639 dev->last_scancode != scancode || ir_do_keydown() 645 input_event(dev->input_dev, EV_MSC, MSC_SCAN, scancode); ir_do_keydown() 651 dev->last_scancode = scancode; ir_do_keydown() 656 "key 0x%04x, protocol 0x%04x, scancode 0x%08x\n", ir_do_keydown() 657 dev->input_name, keycode, protocol, scancode); ir_do_keydown() 670 * @scancode: the scancode for the keypress 677 void rc_keydown(struct rc_dev *dev, enum rc_type protocol, u32 scancode, u8 toggle) rc_keydown() argument 680 u32 keycode = rc_g_keycode_from_table(dev, scancode); rc_keydown() 683 ir_do_keydown(dev, protocol, scancode, keycode, toggle); rc_keydown() 698 * @scancode: the scancode for the keypress 706 u32 scancode, u8 toggle) rc_keydown_notimeout() 709 u32 keycode = rc_g_keycode_from_table(dev, scancode); rc_keydown_notimeout() 712 ir_do_keydown(dev, protocol, scancode, keycode, toggle); rc_keydown_notimeout() 1058 * show_filter() - shows the current scancode filter value or mask 1063 * This routine is a callback routine to read a scancode filter value or mask. 1065 * It prints the current scancode filter value or mask of the appropriate filter 1103 * store_filter() - changes the scancode filter value 1109 * This routine is for changing a scancode filter value or mask. 1112 * specified or if scancode filtering is not supported by the driver, otherwise 273 ir_establish_scancode(struct rc_dev *dev, struct rc_map *rc_map, unsigned int scancode, bool resize) ir_establish_scancode() argument 416 ir_lookup_by_scancode(const struct rc_map *rc_map, unsigned int scancode) ir_lookup_by_scancode() argument 634 ir_do_keydown(struct rc_dev *dev, enum rc_type protocol, u32 scancode, u32 keycode, u8 toggle) ir_do_keydown() argument 705 rc_keydown_notimeout(struct rc_dev *dev, enum rc_type protocol, u32 scancode, u8 toggle) rc_keydown_notimeout() argument
|
H A D | ir-rc6-decoder.c | 89 u32 scancode; ir_rc6_decode() local 235 scancode = data->body; ir_rc6_decode() 238 IR_dprintk(1, "RC6(0) scancode 0x%04x (toggle: %u)\n", ir_rc6_decode() 239 scancode, toggle); ir_rc6_decode() 249 scancode = data->body; ir_rc6_decode() 260 if ((scancode & RC6_6A_LCC_MASK) == RC6_6A_MCE_CC) { ir_rc6_decode() 262 toggle = !!(scancode & RC6_6A_MCE_TOGGLE_MASK); ir_rc6_decode() 263 scancode &= ~RC6_6A_MCE_TOGGLE_MASK; ir_rc6_decode() 274 IR_dprintk(1, "RC6(6A) proto 0x%04x, scancode 0x%08x (toggle: %u)\n", ir_rc6_decode() 275 protocol, scancode, toggle); ir_rc6_decode() 282 rc_keydown(dev, protocol, scancode, toggle); ir_rc6_decode()
|
H A D | ir-rc5-decoder.c | 53 u32 scancode; ir_rc5_decode() local 139 scancode = system << 16 | command << 8 | xdata; ir_rc5_decode() 153 scancode = system << 8 | command; ir_rc5_decode() 166 scancode = system << 6 | command; ir_rc5_decode() 172 IR_dprintk(1, "RC5(x/sz) scancode 0x%06x (p: %u, t: %u)\n", ir_rc5_decode() 173 scancode, protocol, toggle); ir_rc5_decode() 175 rc_keydown(dev, protocol, scancode, toggle); ir_rc5_decode()
|
H A D | ir-mce_kbd-decoder.c | 148 u32 scancode) ir_mce_kbd_process_keyboard_data() 150 u8 keydata = (scancode >> 8) & 0xff; ir_mce_kbd_process_keyboard_data() 151 u8 shiftmask = scancode & 0xff; ir_mce_kbd_process_keyboard_data() 176 static void ir_mce_kbd_process_mouse_data(struct input_dev *idev, u32 scancode) ir_mce_kbd_process_mouse_data() argument 179 u8 xdata = (scancode >> 7) & 0x7f; ir_mce_kbd_process_mouse_data() 180 u8 ydata = (scancode >> 14) & 0x7f; ir_mce_kbd_process_mouse_data() 183 bool right = scancode & 0x40; ir_mce_kbd_process_mouse_data() 184 bool left = scancode & 0x20; ir_mce_kbd_process_mouse_data() 216 u32 scancode; ir_mce_kbd_decode() local 323 scancode = data->body & 0xffff; ir_mce_kbd_decode() 331 ir_mce_kbd_process_keyboard_data(data->idev, scancode); ir_mce_kbd_decode() 334 scancode = data->body & 0x1fffff; ir_mce_kbd_decode() 335 IR_dprintk(1, "mouse data 0x%06x\n", scancode); ir_mce_kbd_decode() 337 ir_mce_kbd_process_mouse_data(data->idev, scancode); ir_mce_kbd_decode() 147 ir_mce_kbd_process_keyboard_data(struct input_dev *idev, u32 scancode) ir_mce_kbd_process_keyboard_data() argument
|
H A D | ir-jvc-decoder.c | 139 u32 scancode; ir_jvc_decode() local 140 scancode = (bitrev8((data->bits >> 8) & 0xff) << 8) | ir_jvc_decode() 142 IR_dprintk(1, "JVC scancode 0x%04x\n", scancode); ir_jvc_decode() 143 rc_keydown(dev, RC_TYPE_JVC, scancode, data->toggle); ir_jvc_decode()
|
H A D | ir-sanyo-decoder.c | 58 u32 scancode; ir_sanyo_decode() local 168 scancode = address << 8 | command; ir_sanyo_decode() 169 IR_dprintk(1, "SANYO scancode: 0x%06x\n", scancode); ir_sanyo_decode() 170 rc_keydown(dev, RC_TYPE_SANYO, scancode, 0); ir_sanyo_decode()
|
H A D | ir-sharp-decoder.c | 49 u32 msg, echo, address, command, scancode; ir_sharp_decode() local 162 scancode = address << 8 | command; ir_sharp_decode() 163 IR_dprintk(1, "Sharp scancode 0x%04x\n", scancode); ir_sharp_decode() 165 rc_keydown(dev, RC_TYPE_SHARP, scancode, 0); ir_sharp_decode()
|
H A D | ir-sony-decoder.c | 46 u32 scancode; ir_sony_decode() local 162 scancode = device << 16 | subdevice << 8 | function; ir_sony_decode() 163 IR_dprintk(1, "Sony(%u) scancode 0x%05x\n", data->count, scancode); ir_sony_decode() 164 rc_keydown(dev, protocol, scancode, 0); ir_sony_decode()
|
H A D | ir-xmp-decoder.c | 88 u32 scancode; ir_xmp_decode() local 142 scancode = addr << 24 | subaddr << 16 | ir_xmp_decode() 144 IR_dprintk(1, "XMP scancode 0x%06x\n", scancode); ir_xmp_decode() 147 rc_keydown(dev, RC_TYPE_XMP, scancode, 0); ir_xmp_decode()
|
H A D | ati_remote.c | 493 unsigned char scancode; ati_remote_input_report() local 533 scancode = data[2] & 0x7f; ati_remote_input_report() 536 "channel 0x%02x; key data %02x, scancode %02x\n", ati_remote_input_report() 537 remote_num, data[2], scancode); ati_remote_input_report() 539 if (scancode >= 0x70) { ati_remote_input_report() 543 * Get the keycode assigned to scancode 0x78/0x70. If it is ati_remote_input_report() 547 scancode & 0x78); ati_remote_input_report() 556 if (scancode == ati_remote_tbl[i].data) { ati_remote_input_report() 609 * scroll up (0x78) / down (0x70) scancode ati_remote_input_report() 611 * rest of the scancode. ati_remote_input_report() 613 count = (scancode & 0x07) + 1; ati_remote_input_report() 614 scancode &= 0x78; ati_remote_input_report() 624 scancode, data[2]); ati_remote_input_report()
|
H A D | imon.c | 146 u32 rc_scancode; /* the computed remote scancode */ 1259 static u32 imon_remote_key_lookup(struct imon_context *ictx, u32 scancode) imon_remote_key_lookup() argument 1266 keycode = rc_g_keycode_from_table(ictx->rdev, scancode); imon_remote_key_lookup() 1268 ictx->rc_scancode = scancode; imon_remote_key_lookup() 1272 release = scancode & ~0x4000; imon_remote_key_lookup() 1283 static u32 imon_mce_key_lookup(struct imon_context *ictx, u32 scancode) imon_mce_key_lookup() argument 1298 if (scancode & 0x80000000) imon_mce_key_lookup() 1299 scancode = scancode | MCE_KEY_MASK | MCE_TOGGLE_BIT; imon_mce_key_lookup() 1301 ictx->rc_scancode = scancode; imon_mce_key_lookup() 1302 keycode = rc_g_keycode_from_table(ictx->rdev, scancode); imon_mce_key_lookup() 1407 u32 scancode = KEY_RESERVED; imon_pad_to_keys() local 1441 scancode = be32_to_cpu(*((__be32 *)buf)); imon_pad_to_keys() 1452 scancode = 0x01007f00; /* KEY_DOWN */ imon_pad_to_keys() 1454 scancode = 0x01008000; /* KEY_UP */ imon_pad_to_keys() 1459 scancode = 0x0100007f; /* KEY_RIGHT */ imon_pad_to_keys() 1461 scancode = 0x01000080; /* KEY_LEFT */ imon_pad_to_keys() 1505 scancode = be32_to_cpu(*((__be32 *)buf)); imon_pad_to_keys() 1515 scancode = 0x01007f00; /* KEY_DOWN */ imon_pad_to_keys() 1517 scancode = 0x01008000; /* KEY_UP */ imon_pad_to_keys() 1522 scancode = 0x0100007f; /* KEY_RIGHT */ imon_pad_to_keys() 1524 scancode = 0x01000080; /* KEY_LEFT */ imon_pad_to_keys() 1529 if (scancode) { imon_pad_to_keys() 1531 ictx->kc = imon_remote_key_lookup(ictx, scancode); imon_pad_to_keys() 1597 u64 scancode; imon_incoming_packet() local 1610 scancode = be64_to_cpu(*((__be64 *)buf)); imon_incoming_packet() 1612 kc = imon_panel_key_lookup(ictx, scancode); imon_incoming_packet() 1615 scancode = be32_to_cpu(*((__be32 *)buf)); imon_incoming_packet() 1620 kc = imon_mce_key_lookup(ictx, scancode); imon_incoming_packet() 1623 kc = imon_remote_key_lookup(ictx, scancode); imon_incoming_packet()
|
H A D | winbond-cir.c | 715 dev_err(dev, "RC5 - Invalid wake scancode\n"); wbcir_shutdown() 734 dev_err(dev, "NEC - Invalid wake scancode\n"); wbcir_shutdown() 756 dev_err(dev, "RC6 - Invalid wake scancode\n"); wbcir_shutdown() 812 dev_err(dev, "RC6 - Invalid wake scancode\n"); wbcir_shutdown()
|
/linux-4.1.27/drivers/input/keyboard/ |
H A D | amikbd.c | 188 unsigned char scancode, down; amikbd_interrupt() local 190 scancode = ~ciaa.sdr; /* get and invert scancode (keyboard is active low) */ amikbd_interrupt() 195 down = !(scancode & 1); /* lowest bit is release bit */ amikbd_interrupt() 196 scancode >>= 1; amikbd_interrupt() 198 if (scancode < 0x78) { /* scancodes < 0x78 are keys */ amikbd_interrupt() 199 if (scancode == 98) { /* CapsLock is a toggle switch key on Amiga */ amikbd_interrupt() 200 input_report_key(dev, scancode, 1); amikbd_interrupt() 201 input_report_key(dev, scancode, 0); amikbd_interrupt() 203 input_report_key(dev, scancode, down); amikbd_interrupt() 208 printk(amikbd_messages[scancode - 0x78]); amikbd_interrupt()
|
H A D | atakbd.c | 195 static void atakbd_interrupt(unsigned char scancode, char down) atakbd_interrupt() argument 198 if (scancode < 0x72) { /* scancodes < 0xf2 are keys */ atakbd_interrupt() 202 scancode = atakbd_keycode[scancode]; atakbd_interrupt() 204 if (scancode == KEY_CAPSLOCK) { /* CapsLock is a toggle switch key on Amiga */ atakbd_interrupt() 205 input_report_key(atakbd_dev, scancode, 1); atakbd_interrupt() 206 input_report_key(atakbd_dev, scancode, 0); atakbd_interrupt() 209 input_report_key(atakbd_dev, scancode, down); atakbd_interrupt() 213 printk(KERN_INFO "atakbd: unhandled scancode %x\n", scancode); atakbd_interrupt()
|
H A D | lpc32xx-keys.c | 85 unsigned row, changed, scancode, keycode; lpc32xx_mod_states() local 95 scancode = MATRIX_SCAN_CODE(row, col, lpc32xx_mod_states() 97 keycode = kscandat->keymap[scancode]; lpc32xx_mod_states() 98 input_event(input, EV_MSC, MSC_SCAN, scancode); lpc32xx_mod_states()
|
H A D | atkbd.c | 312 * Checks if we should mangle the scancode to extract 'release' bit 350 * Encode the scancode, 0xe0 prefix, and high bit into a single integer, 1001 * according to the selected scancode set 1006 unsigned int scancode; atkbd_set_keycode_table() local 1014 scancode = atkbd_unxlate_table[i]; atkbd_set_keycode_table() 1015 atkbd->keycode[i] = atkbd_set2_keycode[scancode]; atkbd_set_keycode_table() 1016 atkbd->keycode[i | 0x80] = atkbd_set2_keycode[scancode | 0x80]; atkbd_set_keycode_table() 1019 if ((scancode | 0x80) == atkbd_scroll_keys[j].set2) atkbd_set_keycode_table() 1029 scancode = atkbd_scroll_keys[i].set2; atkbd_set_keycode_table() 1030 atkbd->keycode[scancode] = atkbd_scroll_keys[i].keycode; atkbd_set_keycode_table() 1038 scancode = atkbd_compat_scancode(atkbd, ATKBD_RET_HANGEUL); atkbd_set_keycode_table() 1039 atkbd->keycode[scancode] = KEY_HANGEUL; atkbd_set_keycode_table() 1040 __set_bit(scancode, atkbd->force_release_mask); atkbd_set_keycode_table() 1042 scancode = atkbd_compat_scancode(atkbd, ATKBD_RET_HANJA); atkbd_set_keycode_table() 1043 atkbd->keycode[scancode] = KEY_HANJA; atkbd_set_keycode_table() 1044 __set_bit(scancode, atkbd->force_release_mask); atkbd_set_keycode_table() 1257 * of multi-byte scancode. atkbd_reconnect()
|
H A D | jornada680_kbd.c | 95 unsigned int scancode = (i << 3) + j; jornada_parse_kbd() local 97 EV_MSC, MSC_SCAN, scancode); jornada_parse_kbd() 99 keymap[scancode], jornada_parse_kbd()
|
H A D | locomokbd.c | 146 unsigned int scancode, pressed, key; locomokbd_scankeyboard() local 148 scancode = SCANCODE(col, row); locomokbd_scankeyboard() 150 key = locomokbd->keycode[scancode]; locomokbd_scankeyboard()
|
H A D | maple_keyb.c | 119 "Unknown key (scancode %#x) released.", dc_scan_kbd() 131 "Unknown key (scancode %#x) pressed.", dc_scan_kbd()
|
H A D | max7359_keypad.c | 97 unsigned int scancode = MATRIX_SCAN_CODE(row, col, max7359_build_keycode() local 101 keypad->keycodes[scancode] = keycode; max7359_build_keycode()
|
H A D | xtkbd.c | 78 printk(KERN_WARNING "xtkbd.c: Unknown key (scancode %#x) %s.\n", xtkbd_interrupt()
|
H A D | tegra-kbc.c | 174 unsigned char scancode = tegra_kbc_report_keys() local 177 scancodes[num_down] = scancode; tegra_kbc_report_keys() 178 keycodes[num_down] = kbc->keycode[scancode]; tegra_kbc_report_keys()
|
H A D | hpps2atkbd.h | 34 /* Raw SET 2 scancode table */
|
H A D | sunkbd.c | 140 "sunkbd.c: Unknown key (scancode %#x) %s.\n", sunkbd_interrupt()
|
H A D | lkkbd.c | 492 "%s: Unknown key with scancode 0x%02x on %s.\n", lkkbd_interrupt()
|
/linux-4.1.27/drivers/platform/x86/ |
H A D | dell-wmi-aio.c | 101 unsigned int scancode = 0; dell_wmi_aio_notify() local 105 /* Most All-In-One correctly return integer scancode */ dell_wmi_aio_notify() 106 scancode = obj->integer.value; dell_wmi_aio_notify() 108 scancode, 1, true); dell_wmi_aio_notify() 115 scancode = event->event[0]; dell_wmi_aio_notify() 117 /* Broken machines return the scancode in a dell_wmi_aio_notify() 121 scancode = obj->buffer.pointer[0]; dell_wmi_aio_notify() 123 if (scancode) dell_wmi_aio_notify() 126 scancode, 1, true); dell_wmi_aio_notify()
|
H A D | dell-wmi.c | 108 u16 scancode; member in struct:dell_bios_keymap_entry 319 keymap[i].code = bios_entry->scancode; dell_wmi_prepare_new_keymap()
|
H A D | thinkpad_acpi.c | 2054 static void hotkey_driver_event(const unsigned int scancode); 2272 /* Do NOT call without validating scancode first */ tpacpi_input_send_key() 2273 static void tpacpi_input_send_key(const unsigned int scancode) tpacpi_input_send_key() argument 2275 const unsigned int keycode = hotkey_keycode_map[scancode]; tpacpi_input_send_key() 2280 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode); tpacpi_input_send_key() 2284 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode); tpacpi_input_send_key() 2292 /* Do NOT call without validating scancode first */ tpacpi_input_send_key_masked() 2293 static void tpacpi_input_send_key_masked(const unsigned int scancode) tpacpi_input_send_key_masked() argument 2295 hotkey_driver_event(scancode); tpacpi_input_send_key_masked() 2296 if (hotkey_user_mask & (1 << scancode)) tpacpi_input_send_key_masked() 2297 tpacpi_input_send_key(scancode); tpacpi_input_send_key_masked() 2303 /* Do NOT call without validating scancode first */ tpacpi_hotkey_send_key() 2304 static void tpacpi_hotkey_send_key(unsigned int scancode) tpacpi_hotkey_send_key() argument 2306 tpacpi_input_send_key_masked(scancode); tpacpi_hotkey_send_key() 3064 static void __init hotkey_unmap(const unsigned int scancode) hotkey_unmap() argument 3066 if (hotkey_keycode_map[scancode] != KEY_RESERVED) { hotkey_unmap() 3067 clear_bit(hotkey_keycode_map[scancode], hotkey_unmap() 3069 hotkey_keycode_map[scancode] = KEY_RESERVED; hotkey_unmap() 3623 static bool adaptive_keyboard_hotkey_notify_hotkey(unsigned int scancode) adaptive_keyboard_hotkey_notify_hotkey() argument 3629 switch (scancode) { adaptive_keyboard_hotkey_notify_hotkey() 3660 if (scancode < FIRST_ADAPTIVE_KEY || adaptive_keyboard_hotkey_notify_hotkey() 3661 scancode >= FIRST_ADAPTIVE_KEY + TPACPI_HOTKEY_MAP_LEN - adaptive_keyboard_hotkey_notify_hotkey() 3664 scancode); adaptive_keyboard_hotkey_notify_hotkey() 3667 keycode = hotkey_keycode_map[scancode - FIRST_ADAPTIVE_KEY + ADAPTIVE_KEY_OFFSET]; adaptive_keyboard_hotkey_notify_hotkey() 3688 unsigned int scancode = hkey & 0xfff; hotkey_notify_hotkey() local 3692 /* HKEY event 0x1001 is scancode 0x00 */ hotkey_notify_hotkey() 3693 if (scancode > 0 && scancode <= TPACPI_HOTKEY_MAP_LEN) { hotkey_notify_hotkey() 3694 scancode--; hotkey_notify_hotkey() 3695 if (!(hotkey_source_mask & (1 << scancode))) { hotkey_notify_hotkey() 3696 tpacpi_input_send_key_masked(scancode); hotkey_notify_hotkey() 3703 return adaptive_keyboard_hotkey_notify_hotkey(scancode); hotkey_notify_hotkey() 8841 static void hotkey_driver_event(const unsigned int scancode) hotkey_driver_event() argument 8843 tpacpi_driver_event(TP_HKEY_EV_HOTKEY_BASE + scancode); hotkey_driver_event()
|
H A D | toshiba_acpi.c | 2448 * Returns hotkey scancode, or < 0 on failure. 2466 int scancode) toshiba_acpi_report_hotkey() 2468 if (scancode == 0x100) toshiba_acpi_report_hotkey() 2472 if (scancode & 0x80) toshiba_acpi_report_hotkey() 2475 if (!sparse_keymap_report_event(dev->hotkey_dev, scancode, 1, true)) toshiba_acpi_report_hotkey() 2476 pr_info("Unknown key %x\n", scancode); toshiba_acpi_report_hotkey() 2483 int scancode; toshiba_acpi_process_hotkeys() local 2486 scancode = toshiba_acpi_query_hotkey(dev); toshiba_acpi_process_hotkeys() 2487 if (scancode < 0) toshiba_acpi_process_hotkeys() 2489 else if (scancode != 0) toshiba_acpi_process_hotkeys() 2490 toshiba_acpi_report_hotkey(dev, scancode); toshiba_acpi_process_hotkeys() 2465 toshiba_acpi_report_hotkey(struct toshiba_acpi_dev *dev, int scancode) toshiba_acpi_report_hotkey() argument
|
H A D | ideapad-laptop.c | 616 unsigned long scancode) ideapad_input_report() 618 sparse_keymap_report_event(priv->inputdev, scancode, 1, true); ideapad_input_report() 615 ideapad_input_report(struct ideapad_private *priv, unsigned long scancode) ideapad_input_report() argument
|
H A D | acer-wmi.c | 1724 u32 scancode; acer_wmi_notify() local 1761 scancode = return_value.key_num; acer_wmi_notify() 1776 scancode = (device_state & ACER_WMID3_GDS_TOUCHPAD) ? acer_wmi_notify() 1779 sparse_keymap_report_event(acer_wmi_input_dev, scancode, 1, true); acer_wmi_notify()
|
H A D | sony-laptop.c | 392 int scancode = -1; sony_laptop_report_input_event() local 426 if ((scancode = sony_laptop_input_index[event]) != -1) { sony_laptop_report_input_event() 427 kp.key = sony_laptop_input_keycode_map[scancode]; sony_laptop_report_input_event() 435 /* if we have a scancode we emit it so we can always sony_laptop_report_input_event() 437 if (scancode != -1) sony_laptop_report_input_event() 438 input_event(kp.dev, EV_MSC, MSC_SCAN, scancode); sony_laptop_report_input_event()
|
/linux-4.1.27/drivers/input/serio/ |
H A D | pcips2.c | 64 unsigned char status, scancode; pcips2_interrupt() local 74 scancode = inb(ps2if->base + PS2_DATA); pcips2_interrupt() 75 if (status == 0xff && scancode == 0xff) pcips2_interrupt() 80 if (hweight8(scancode) & 1) pcips2_interrupt() 83 serio_interrupt(ps2if->io, scancode, flag); pcips2_interrupt() 90 unsigned char status, scancode; pcips2_flush_input() local 96 scancode = inb(ps2if->base + PS2_DATA); pcips2_flush_input() 97 if (status == 0xff && scancode == 0xff) pcips2_flush_input()
|
H A D | ams_delta_serio.c | 70 u8 scancode; ams_delta_serio_interrupt() local 86 scancode = (u8) (data >> 1) & 0xFF; ams_delta_serio_interrupt() 87 serio_interrupt(ams_delta_serio, scancode, dfl); ams_delta_serio_interrupt()
|
H A D | sa1111ps2.c | 65 unsigned int scancode, flag, status; ps2_rxint() local 75 scancode = sa1111_readl(ps2if->base + PS2DATA) & 0xff; ps2_rxint() 77 if (hweight8(scancode) & 1) ps2_rxint() 80 serio_interrupt(ps2if->io, scancode, flag); ps2_rxint()
|
/linux-4.1.27/include/media/ |
H A D | ir-kbd-i2c.h | 24 u32 *scancode, u8 *toggle); 49 u32 *scancode, u8 *toggle);
|
H A D | rc-core.h | 33 RC_DRIVER_SCANCODE = 0, /* Driver or hardware generates a scancode */ 40 * @mask: Mask of bits of scancode to compare. 81 * @scancode_filter: scancode filter 82 * @scancode_wakeup_filter: scancode wakeup filters 84 * scancode to the application. As this is a hardware limit, we can't do 96 * @last_scancode: scancode of last keypress 119 * @s_filter: set the scancode filter 120 * @s_wakeup_filter: set the wakeup scancode filter 195 void rc_keydown(struct rc_dev *dev, enum rc_type protocol, u32 scancode, u8 toggle); 196 void rc_keydown_notimeout(struct rc_dev *dev, enum rc_type protocol, u32 scancode, u8 toggle); 198 u32 rc_g_keycode_from_table(struct rc_dev *dev, u32 scancode);
|
H A D | rc-map.h | 80 u32 scancode; member in struct:rc_map_table
|
/linux-4.1.27/arch/m68k/atari/ |
H A D | atakeyb.c | 137 int scancode; atari_keyboard_interrupt() local 153 scancode = acia.key_data; atari_keyboard_interrupt() 157 else if (IS_SYNC_CODE(scancode)) { atari_keyboard_interrupt() 159 * single scancode */ atari_keyboard_interrupt() 172 scancode = acia.key_data; /* get it or reset the ACIA, I'll get it! */ atari_keyboard_interrupt() 176 switch (scancode) { atari_keyboard_interrupt() 188 kb_state.buf[0] = scancode; atari_keyboard_interrupt() 200 kb_state.buf[0] = scancode; atari_keyboard_interrupt() 213 break_flag = scancode & BREAK_MASK; atari_keyboard_interrupt() 214 scancode &= ~BREAK_MASK; atari_keyboard_interrupt() 224 set_bit(scancode, broken_keys); atari_keyboard_interrupt() 227 keyval = scancode; atari_keyboard_interrupt() 231 printk(KERN_WARNING "Key with scancode %d ", scancode); atari_keyboard_interrupt() 240 } else if (test_bit(scancode, broken_keys)) atari_keyboard_interrupt() 244 atari_input_keyboard_interrupt_hook((unsigned char)scancode, !break_flag); atari_keyboard_interrupt() 250 kb_state.buf[kb_state.len++] = scancode; atari_keyboard_interrupt() 259 kb_state.buf[kb_state.len++] = scancode; atari_keyboard_interrupt() 268 kb_state.buf[1] = scancode; atari_keyboard_interrupt() 276 kb_state.buf[kb_state.len++] = scancode; atari_keyboard_interrupt() 287 if (kb_state.len <= 0 || IS_SYNC_CODE(scancode)) { atari_keyboard_interrupt()
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | ir-kbd-i2c.c | 66 u32 *scancode, u8 *ptoggle, int size, int offset) get_key_haup_common() 102 *scancode = RC_SCANCODE_RC5(dev, code); get_key_haup_common() 108 u32 *scancode, u8 *toggle) get_key_haup() 110 return get_key_haup_common (ir, protocol, scancode, toggle, 3, 0); get_key_haup() 114 u32 *scancode, u8 *toggle) get_key_haup_xvr() 129 return get_key_haup_common(ir, protocol, scancode, toggle, 6, 3); get_key_haup_xvr() 133 u32 *scancode, u8 *toggle) get_key_pixelview() 144 *scancode = b; get_key_pixelview() 150 u32 *scancode, u8 *toggle) get_key_fusionhdtv() 169 *scancode = buf[2]; get_key_fusionhdtv() 175 u32 *scancode, u8 *toggle) get_key_knc1() 199 *scancode = b; get_key_knc1() 205 u32 *scancode, u8 *toggle) get_key_avermedia_cardbus() 240 *scancode = key; get_key_avermedia_cardbus() 242 *scancode |= keygroup << 8; get_key_avermedia_cardbus() 252 u32 scancode; ir_key_poll() local 257 rc = ir->get_key(ir, &protocol, &scancode, &toggle); ir_key_poll() 264 dprintk(1, "%s: proto = 0x%04x, scancode = 0x%08x\n", ir_key_poll() 265 __func__, protocol, scancode); ir_key_poll() 266 rc_keydown(ir->rc, protocol, scancode, toggle); ir_key_poll() 65 get_key_haup_common(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *ptoggle, int size, int offset) get_key_haup_common() argument 107 get_key_haup(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_haup() argument 113 get_key_haup_xvr(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_haup_xvr() argument 132 get_key_pixelview(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_pixelview() argument 149 get_key_fusionhdtv(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_fusionhdtv() argument 174 get_key_knc1(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_knc1() argument 204 get_key_avermedia_cardbus(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_avermedia_cardbus() argument
|
/linux-4.1.27/drivers/media/usb/em28xx/ |
H A D | em28xx-input.c | 58 u32 scancode; member in struct:em28xx_ir_poll_result 76 int (*get_key_i2c)(struct i2c_client *ir, enum rc_type *protocol, u32 *scancode); 85 enum rc_type *protocol, u32 *scancode) em28xx_get_key_terratec() 104 *scancode = b; em28xx_get_key_terratec() 109 enum rc_type *protocol, u32 *scancode) em28xx_get_key_em_haup() 134 *scancode = (bitrev8(buf[1]) & 0x1f) << 8 | bitrev8(buf[0]) >> 2; em28xx_get_key_em_haup() 139 enum rc_type *protocol, u32 *scancode) em28xx_get_key_pinnacle_usb_grey() 152 *scancode = buf[2] & 0x3f; em28xx_get_key_pinnacle_usb_grey() 157 enum rc_type *protocol, u32 *scancode) em28xx_get_key_winfast_usbii_deluxe() 178 *scancode = key; em28xx_get_key_winfast_usbii_deluxe() 212 poll_result->scancode = RC_SCANCODE_RC5(msg[1], msg[2]); default_polling_getkey() 217 poll_result->scancode = RC_SCANCODE_NEC(msg[1], msg[2]); default_polling_getkey() 222 poll_result->scancode = msg[1] << 8 | msg[2]; default_polling_getkey() 257 poll_result->scancode = RC_SCANCODE_RC5(msg[1], msg[2]); em2874_polling_getkey() 262 poll_result->scancode = msg[1] << 8 | msg[2]; em2874_polling_getkey() 264 poll_result->scancode = RC_SCANCODE_NEC32((msg[1] << 24) | em2874_polling_getkey() 269 poll_result->scancode = RC_SCANCODE_NECX(msg[1] << 8 | em2874_polling_getkey() 272 poll_result->scancode = RC_SCANCODE_NEC(msg[1], msg[3]); em2874_polling_getkey() 277 poll_result->scancode = RC_SCANCODE_RC6_0(msg[1], msg[2]); em2874_polling_getkey() 282 poll_result->scancode = (msg[1] << 24) | (msg[2] << 16) | em2874_polling_getkey() 296 static u32 scancode; em28xx_i2c_ir_handle_key() local 300 rc = ir->get_key_i2c(ir->i2c_client, &protocol, &scancode); em28xx_i2c_ir_handle_key() 307 dprintk("%s: proto = 0x%04x, scancode = 0x%04x\n", em28xx_i2c_ir_handle_key() 308 __func__, protocol, scancode); em28xx_i2c_ir_handle_key() 309 rc_keydown(ir->rc, protocol, scancode, 0); em28xx_i2c_ir_handle_key() 329 poll_result.scancode); em28xx_ir_handle_key() 333 poll_result.scancode, em28xx_ir_handle_key() 338 poll_result.scancode & 0xff, em28xx_ir_handle_key() 84 em28xx_get_key_terratec(struct i2c_client *i2c_dev, enum rc_type *protocol, u32 *scancode) em28xx_get_key_terratec() argument 108 em28xx_get_key_em_haup(struct i2c_client *i2c_dev, enum rc_type *protocol, u32 *scancode) em28xx_get_key_em_haup() argument 138 em28xx_get_key_pinnacle_usb_grey(struct i2c_client *i2c_dev, enum rc_type *protocol, u32 *scancode) em28xx_get_key_pinnacle_usb_grey() argument 156 em28xx_get_key_winfast_usbii_deluxe(struct i2c_client *i2c_dev, enum rc_type *protocol, u32 *scancode) em28xx_get_key_winfast_usbii_deluxe() argument
|
/linux-4.1.27/drivers/media/usb/cx231xx/ |
H A D | cx231xx-input.c | 31 u8 cmd, scancode; get_key_isdbt() local 49 scancode = bitrev8(cmd); get_key_isdbt() 52 cmd, scancode); get_key_isdbt() 55 *pscancode = scancode; get_key_isdbt()
|
/linux-4.1.27/drivers/media/usb/dvb-usb/ |
H A D | dvb-usb-remote.c | 17 unsigned int scancode; legacy_dvb_usb_get_keymap_index() local 22 if (input_scancode_to_scalar(ke, &scancode)) legacy_dvb_usb_get_keymap_index() 27 if (keymap[index].scancode == scancode) legacy_dvb_usb_get_keymap_index() 59 ke->len = sizeof(keymap[index].scancode); legacy_dvb_usb_getkeycode() 60 memcpy(&ke->scancode, &keymap[index].scancode, ke->len); legacy_dvb_usb_getkeycode() 78 * scancode table. For it to happen, one possibility legacy_dvb_usb_setkeycode()
|
H A D | dvb-usb.h | 80 return (key->scancode >> 8) & 0xff; rc5_custom() 85 return key->scancode & 0xff; rc5_data() 90 return key->scancode & 0xffff; rc5_scan()
|
H A D | dib0700_devices.c | 522 u32 scancode; dib0700_rc_query_old_firmware() local 559 scancode = RC_SCANCODE_NEC(key[3-2], key[3-3]); dib0700_rc_query_old_firmware() 566 scancode = RC_SCANCODE_RC5(key[3-2], key[3-3]); dib0700_rc_query_old_firmware() 571 rc_keydown(d->rc_dev, protocol, scancode, toggle); dib0700_rc_query_old_firmware()
|
/linux-4.1.27/drivers/media/pci/cx88/ |
H A D | cx88-input.c | 137 /* bit cleared on keydown, NEC scancode, 0xAAAACC, A = 0x866b */ cx88_ir_handle_key() 140 u32 scancode; cx88_ir_handle_key() local 144 scancode = RC_SCANCODE_NECX(addr, cmd); cx88_ir_handle_key() 147 rc_keydown_notimeout(ir->dev, RC_TYPE_NEC, scancode, 0); cx88_ir_handle_key() 447 * reasons. Among others, the scancode tables were using the scancode cx88_ir_init() 452 * Pixelview Ultra Pro, where only part of the scancode is sent via cx88_ir_init() 453 * GPIO. So, there's no way to get the full scancode. Due to that, cx88_ir_init() 559 u32 *scancode, u8 *toggle) get_key_pvr2000() 584 *scancode = code & 0xff; get_key_pvr2000() 558 get_key_pvr2000(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_pvr2000() argument
|
/linux-4.1.27/drivers/input/misc/ |
H A D | ati_remote2.c | 493 unsigned int scancode; ati_remote2_getkeycode() local 503 scancode = (mode << 8) + ati_remote2_key_table[offset].hw_code; ati_remote2_getkeycode() 505 if (input_scancode_to_scalar(ke, &scancode)) ati_remote2_getkeycode() 508 mode = scancode >> 8; ati_remote2_getkeycode() 512 offset = ati_remote2_lookup(scancode & 0xff); ati_remote2_getkeycode() 520 ke->len = sizeof(scancode); ati_remote2_getkeycode() 521 memcpy(&ke->scancode, &scancode, sizeof(scancode)); ati_remote2_getkeycode() 535 unsigned int scancode; ati_remote2_setkeycode() local 545 if (input_scancode_to_scalar(ke, &scancode)) ati_remote2_setkeycode() 548 mode = scancode >> 8; ati_remote2_setkeycode() 552 offset = ati_remote2_lookup(scancode & 0xff); ati_remote2_setkeycode() 597 /* AUX1-AUX4 and PC generate the same scancode. */ ati_remote2_input_init()
|
H A D | cm109.c | 175 static unsigned short keymap_kip1000(int scancode) keymap_kip1000() argument 177 switch (scancode) { /* phone key: */ keymap_kip1000() 194 default: return special_keymap(scancode); keymap_kip1000() 208 static unsigned short keymap_gtalk(int scancode) keymap_gtalk() argument 210 switch (scancode) { keymap_gtalk() 227 default: return special_keymap(scancode); keymap_gtalk() 237 static unsigned short keymap_usbph01(int scancode) keymap_usbph01() argument 239 switch (scancode) { keymap_usbph01() 256 default: return special_keymap(scancode); keymap_usbph01() 268 static unsigned short keymap_atcom(int scancode) keymap_atcom() argument 270 switch (scancode) { /* phone key: */ keymap_atcom() 287 default: return special_keymap(scancode); keymap_atcom()
|
H A D | yealink.h | 59 /* Request scancode 64 * data[0] on return returns the scancode
|
H A D | yealink.c | 205 static int map_p1k_to_key(int scancode) map_p1k_to_key() argument 207 switch(scancode) { /* phone key: */ map_p1k_to_key() 441 dev_dbg(&yld->intf->dev, "get scancode %x\n", urb_irq_callback()
|
/linux-4.1.27/drivers/input/ |
H A D | sparse-keymap.c | 103 unsigned int scancode; sparse_keymap_locate() local 107 else if (input_scancode_to_scalar(ke, &scancode) == 0) sparse_keymap_locate() 108 key = sparse_keymap_entry_from_scancode(dev, scancode); sparse_keymap_locate() 128 memcpy(ke->scancode, &key->code, sizeof(key->code)); sparse_keymap_getkeycode() 299 * sparse_keymap_report_event - report event corresponding to given scancode
|
H A D | input.c | 723 * input_scancode_to_scalar() - converts scancode in &struct input_keymap_entry 724 * @ke: keymap entry containing scancode to be converted. 725 * @scancode: pointer to the location where converted scancode should 728 * This function is used to convert scancode stored in &struct keymap_entry 733 unsigned int *scancode) input_scancode_to_scalar() 737 *scancode = *((u8 *)ke->scancode); input_scancode_to_scalar() 741 *scancode = *((u16 *)ke->scancode); input_scancode_to_scalar() 745 *scancode = *((u32 *)ke->scancode); input_scancode_to_scalar() 758 * defined. In this case, an array indexed by the scancode is used. 799 memcpy(ke->scancode, &index, sizeof(index)); input_default_getkeycode() 865 * input_get_keycode - retrieve keycode currently mapped to a given scancode 886 * input_set_keycode - attribute a keycode to a given scancode 732 input_scancode_to_scalar(const struct input_keymap_entry *ke, unsigned int *scancode) input_scancode_to_scalar() argument
|
H A D | evdev.c | 711 if (copy_from_user(ke.scancode, p, sizeof(unsigned int))) evdev_handle_get_keycode() 750 if (copy_from_user(ke.scancode, p, sizeof(unsigned int))) evdev_handle_set_keycode() 766 if (ke.len > sizeof(ke.scancode)) evdev_handle_set_keycode_v2()
|
/linux-4.1.27/drivers/media/usb/tm6000/ |
H A D | tm6000-input.c | 169 u32 scancode; tm6000_ir_keydown() local 180 scancode = RC_SCANCODE_RC5(device, command); tm6000_ir_keydown() 184 scancode = RC_SCANCODE_NEC(device, command); tm6000_ir_keydown() 188 scancode = RC_SCANCODE_OTHER(device << 8 | command); tm6000_ir_keydown() 192 dprintk(1, "%s, protocol: 0x%04x, scancode: 0x%08x\n", tm6000_ir_keydown() 193 __func__, protocol, scancode); tm6000_ir_keydown() 194 rc_keydown(ir->rc, protocol, scancode, 0); tm6000_ir_keydown() 329 ir->key_addr = ((rc->rc_map.scan[0].scancode >> 8) & 0xffff); tm6000_ir_change_protocol()
|
/linux-4.1.27/drivers/media/pci/saa7134/ |
H A D | saa7134-input.c | 112 u32 *scancode, u8 *toggle) get_key_flydvb_trio() 159 *scancode = b; get_key_flydvb_trio() 165 u32 *scancode, u8 *toggle) get_key_msi_tvanywhere_plus() 207 *scancode = b; get_key_msi_tvanywhere_plus() 214 u32 *scancode, u8 *toggle) get_key_kworld_pc150u() 256 *scancode = b; get_key_kworld_pc150u() 262 u32 *scancode, u8 *toggle) get_key_purpletv() 281 *scancode = b; get_key_purpletv() 287 u32 *scancode, u8 *toggle) get_key_hvr1110() 311 *scancode = RC_SCANCODE_RC5(buf[3] & 0x1f, buf[4] >> 2); get_key_hvr1110() 318 u32 *scancode, u8 *toggle) get_key_beholdm6xx() 345 *scancode = RC_SCANCODE_NECX(data[11] << 8 | data[10], data[9]); get_key_beholdm6xx() 354 u32 *scancode, u8 *toggle, int parity_offset, get_key_pinnacle() 391 *scancode = code; get_key_pinnacle() 408 u32 *scancode, u8 *toggle) get_key_pinnacle_grey() 411 return get_key_pinnacle(ir, protocol, scancode, toggle, 1, 0xfe, 0xff); get_key_pinnacle_grey() 420 u32 *scancode, u8 *toggle) get_key_pinnacle_color() 428 return get_key_pinnacle(ir, protocol, scancode, toggle, 2, 0x80, 0x88); get_key_pinnacle_color() 111 get_key_flydvb_trio(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_flydvb_trio() argument 164 get_key_msi_tvanywhere_plus(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_msi_tvanywhere_plus() argument 213 get_key_kworld_pc150u(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_kworld_pc150u() argument 261 get_key_purpletv(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_purpletv() argument 286 get_key_hvr1110(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_hvr1110() argument 317 get_key_beholdm6xx(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_beholdm6xx() argument 353 get_key_pinnacle(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle, int parity_offset, int marker, int code_modulo) get_key_pinnacle() argument 407 get_key_pinnacle_grey(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_pinnacle_grey() argument 419 get_key_pinnacle_color(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_pinnacle_color() argument
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | q40_master.h | 16 #define KEYCODE_REG 0x1c /* value of received scancode */
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
H A D | bttv-input.c | 198 u32 gap, rc5, scancode; bttv_rc5_timer_end() local 244 scancode = RC_SCANCODE_RC5(system, command); bttv_rc5_timer_end() 245 rc_keydown(ir->dev, RC_TYPE_RC5, scancode, toggle); bttv_rc5_timer_end() 246 dprintk("scancode %x, toggle %x\n", scancode, toggle); bttv_rc5_timer_end() 340 u32 *scancode, u8 *toggle) get_key_pv951() 368 *scancode = b; get_key_pv951() 339 get_key_pv951(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_pv951() argument
|
/linux-4.1.27/drivers/media/rc/keymaps/ |
H A D | rc-reddo.c | 29 * 1) scancode 0x61d601 is mapped to different button:
|
/linux-4.1.27/include/uapi/linux/ |
H A D | input.h | 78 * @scancode: scancode represented in machine-endian form. 79 * @len: length of the scancode that resides in @scancode buffer. 80 * @index: index in the keymap, may be used instead of scancode 83 * should perform lookup in keymap by @index instead of @scancode 84 * @keycode: key code assigned to this scancode 87 * option of performing lookup either by @scancode itself or by @index 88 * in keymap entry. EVIOCGKEYCODE will also return scancode or index 97 __u8 scancode[32]; member in struct:input_keymap_entry
|
H A D | kd.h | 140 unsigned int scancode, keycode; member in struct:kbkeycode
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-input.c | 74 unsigned int cur_idx, unsigned int scancode) match_scancode() 76 return (usage->hid & (HID_USAGE_PAGE | HID_USAGE)) == scancode; match_scancode() 131 unsigned int scancode; hidinput_locate_usage() local 135 else if (input_scancode_to_scalar(ke, &scancode) == 0) hidinput_locate_usage() 136 usage = hidinput_find_key(hid, match_scancode, scancode, index); hidinput_locate_usage() 148 unsigned int scancode, index; hidinput_getkeycode() local 155 scancode = usage->hid & (HID_USAGE_PAGE | HID_USAGE); hidinput_getkeycode() 156 ke->len = sizeof(scancode); hidinput_getkeycode() 157 memcpy(ke->scancode, &scancode, sizeof(scancode)); hidinput_getkeycode() 1162 /* report the usage code as scancode if the key status has changed */ hidinput_hid_event() 73 match_scancode(struct hid_usage *usage, unsigned int cur_idx, unsigned int scancode) match_scancode() argument
|
H A D | hid-picolcd_debugfs.c | 696 /* Up to 20 byes of IR scancode data */ picolcd_debug_raw_event()
|
/linux-4.1.27/include/linux/ |
H A D | kbd_kern.h | 53 #define VC_RAW 2 /* raw (scancode) mode */
|
H A D | input.h | 466 unsigned int *scancode);
|
/linux-4.1.27/drivers/tty/vt/ |
H A D | keyboard.c | 154 * keyboard in the list that accepts the scancode and keycode. 176 static int getkeycode(unsigned int scancode) getkeycode() argument 181 .len = sizeof(scancode), getkeycode() 187 memcpy(d.ke.scancode, &scancode, sizeof(scancode)); getkeycode() 203 static int setkeycode(unsigned int scancode, unsigned int keycode) setkeycode() argument 208 .len = sizeof(scancode), setkeycode() 214 memcpy(d.ke.scancode, &scancode, sizeof(scancode)); setkeycode() 1751 kc = getkeycode(tmp.scancode); vt_do_kbkeycode_ioctl() 1758 kc = setkeycode(tmp.scancode, tmp.keycode); vt_do_kbkeycode_ioctl()
|
/linux-4.1.27/drivers/hid/usbhid/ |
H A D | usbkbd.c | 140 "Unknown key (scancode %#x) released.\n", usb_kbd_irq() 149 "Unknown key (scancode %#x) pressed.\n", usb_kbd_irq()
|
/linux-4.1.27/drivers/macintosh/ |
H A D | adbhid.c | 284 adbhid_input_keycode(int id, int scancode, int repeat) adbhid_input_keycode() argument 289 keycode = scancode & 0x7f; adbhid_input_keycode() 290 up_flag = scancode & 0x80; adbhid_input_keycode() 305 } else if (scancode == 0xff && adbhid_input_keycode() 323 "(scancode 0xff).\n"); adbhid_input_keycode() 399 printk(KERN_INFO "Unhandled ADB key (scancode %#02x) %s.\n", keycode, adbhid_input_keycode()
|
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/ |
H A D | dvbsky.c | 201 u32 code = 0xffff, scancode; dvbsky_rc_query() local 217 scancode = rc5_system << 8 | rc5_command; dvbsky_rc_query() 218 rc_keydown(d->rc_dev, RC_TYPE_RC5, scancode, toggle); dvbsky_rc_query()
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
H A D | ivtv-i2c.c | 152 u32 *scancode, u8 *toggle) get_key_adaptec() 172 *scancode = keybuf[3] | keybuf[2] << 8 | keybuf[1] << 16 |keybuf[0] << 24; get_key_adaptec() 151 get_key_adaptec(struct IR_i2c *ir, enum rc_type *protocol, u32 *scancode, u8 *toggle) get_key_adaptec() argument
|
/linux-4.1.27/drivers/media/usb/au0828/ |
H A D | au0828-input.c | 237 pr_info("Error while getting RC scancode\n"); au0828_rc_work()
|
/linux-4.1.27/net/bluetooth/hidp/ |
H A D | core.c | 195 BT_ERR("Unknown key (scancode %#x) released.", keys[i]); hidp_input_report() 202 BT_ERR("Unknown key (scancode %#x) pressed.", udata[i]); hidp_input_report()
|
/linux-4.1.27/drivers/media/pci/dm1105/ |
H A D | dm1105.c | 681 /* FIXME: UNKNOWN because we don't generate a full NEC scancode (yet?) */ dm1105_emit_key()
|