/openbmc/linux/kernel/debug/kdb/ |
H A D | kdb_keyboard.c | 38 int scancode, scanstatus; in kdb_get_kbd_char() local 73 if (((scancode&0x7f) == 0x2a) || ((scancode&0x7f) == 0x36)) { in kdb_get_kbd_char() 96 if (scancode == 0x9c) in kdb_get_kbd_char() 101 scancode &= 0x7f; in kdb_get_kbd_char() 107 if (scancode == 0x3a) { in kdb_get_kbd_char() 119 if (scancode == 0x0e) { in kdb_get_kbd_char() 127 switch (scancode) { in kdb_get_kbd_char() 146 if (scancode == 0xe0) in kdb_get_kbd_char() 154 if (scancode == 0x73) in kdb_get_kbd_char() 155 scancode = 0x59; in kdb_get_kbd_char() [all …]
|
/openbmc/obmc-ikvm/ |
H A D | ikvm_input.cpp | 329 uint8_t scancode = 0; in keyToScancode() local 356 scancode = USBHID_KEY_1; in keyToScancode() 359 scancode = USBHID_KEY_2; in keyToScancode() 362 scancode = USBHID_KEY_3; in keyToScancode() 365 scancode = USBHID_KEY_4; in keyToScancode() 368 scancode = USBHID_KEY_5; in keyToScancode() 371 scancode = USBHID_KEY_6; in keyToScancode() 374 scancode = USBHID_KEY_7; in keyToScancode() 377 scancode = USBHID_KEY_8; in keyToScancode() 380 scancode = USBHID_KEY_9; in keyToScancode() [all …]
|
/openbmc/linux/tools/testing/selftests/ir/ |
H A D | ir_loopback.c | 143 unsigned int scancode = rand() & protocols[i].mask; in main() local 147 scancode |= 0x800f0000; in main() 150 (((scancode >> 16) ^ ~(scancode >> 8)) & 0xff) == 0) in main() 154 (((scancode >> 8) ^ ~scancode) & 0xff) == 0) in main() 158 (scancode & 0x000c0000) != 0x000c0000 && in main() 159 scancode & 0x00008000) in main() 164 .scancode = scancode in main() 167 printf("Testing scancode:%x\n", scancode); in main() 199 else if (lsc.scancode != lsc2.scancode) in main() 201 lsc2.scancode); in main()
|
/openbmc/linux/arch/m68k/atari/ |
H A D | atakeyb.c | 137 int scancode; in atari_keyboard_interrupt() local 153 scancode = acia.key_data; in atari_keyboard_interrupt() 157 else if (IS_SYNC_CODE(scancode)) { in atari_keyboard_interrupt() 176 switch (scancode) { in atari_keyboard_interrupt() 188 kb_state.buf[0] = scancode; in atari_keyboard_interrupt() 200 kb_state.buf[0] = scancode; in atari_keyboard_interrupt() 213 break_flag = scancode & BREAK_MASK; in atari_keyboard_interrupt() 214 scancode &= ~BREAK_MASK; in atari_keyboard_interrupt() 224 set_bit(scancode, broken_keys); in atari_keyboard_interrupt() 227 keyval = scancode; in atari_keyboard_interrupt() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/classes/ |
H A D | scancode.bbclass | 1 # We use scancode utlity for extacting licence information. 2 # scancode itself is an OSS Utlitity. 3 # For more informaiton https://github.com/nexB/scancode-toolkit 9 SCANCODE_GIT_LOCATION ?= "https://github.com/nexB/scancode-toolkit.git" 10 SCANCODE_SRC_LOCATION ?= "${DL_DIR}/scancode" 20 mkdir -p ${DEPLOY_DIR_IMAGE}/scancode 23 ./scancode ${S} --format ${SCANCODE_FORMAT} ${DEPLOY_DIR_IMAGE}/scancode/${PN}.${EXT} 27 addtask scancode after do_patch 30 echo "We are done running scancode"
|
/openbmc/linux/Documentation/userspace-api/media/rc/ |
H A D | keytable.c.rst | 70 " %s <device> <scancode> <keycode>\\n" 105 char *scancode, *keycode, s[2048]; 123 scancode=strtok(s,"\\n\\t =:"); 124 if (!scancode) { 125 perror ("parsing input file scancode"); 128 if (!strcasecmp(scancode, "scancode")) { 129 scancode = strtok(NULL,"\\n\\t =:"); 130 if (!scancode) { 131 perror ("parsing input file scancode"); 142 // printf ("parsing %s=%s:", scancode, keycode); [all …]
|
H A D | rc-protos.rst | 38 .. flat-table:: rc5 bits scancode mapping 43 - scancode bit 88 .. flat-table:: rc-5-sz bits scancode mapping 93 - scancode bit 138 - scancode bit 199 - scancode bit 226 - scancode bit 253 - scancode bit 311 - scancode bit 364 The scancode is the exact 20 bits [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | ir-rc5-decoder.c | 44 u32 scancode; in ir_rc5_decode() local 138 scancode = system << 8 | command; in ir_rc5_decode() 151 scancode = system << 6 | command; in ir_rc5_decode() 158 scancode, protocol, toggle); in ir_rc5_decode() 219 command = (scancode & 0x003f) >> 0; in ir_rc5_encode() 220 commandx = (scancode & 0x0040) >> 6; in ir_rc5_encode() 221 system = (scancode & 0x1f00) >> 8; in ir_rc5_encode() 232 xdata = (scancode & 0x00003f) >> 0; in ir_rc5_encode() 233 command = (scancode & 0x003f00) >> 8; in ir_rc5_encode() 234 commandx = !(scancode & 0x004000); in ir_rc5_encode() [all …]
|
H A D | ir-nec-decoder.c | 42 u32 scancode; in ir_nec_decode() local 147 scancode = ir_nec_bytes_to_scancode(address, in ir_nec_decode() 156 rc_keydown(dev, rc_proto, scancode, 0); in ir_nec_decode() 180 data = scancode & 0xff; in ir_nec_scancode_to_raw() 185 addr_inv = (scancode >> 24) & 0xff; in ir_nec_scancode_to_raw() 186 addr = (scancode >> 16) & 0xff; in ir_nec_scancode_to_raw() 187 data_inv = (scancode >> 8) & 0xff; in ir_nec_scancode_to_raw() 191 addr = (scancode >> 16) & 0xff; in ir_nec_scancode_to_raw() 192 addr_inv = (scancode >> 8) & 0xff; in ir_nec_scancode_to_raw() 197 addr = (scancode >> 8) & 0xff; in ir_nec_scancode_to_raw() [all …]
|
H A D | ir-sony-decoder.c | 38 u32 scancode; in ir_sony_decode() local 148 scancode = device << 16 | subdevice << 8 | function; in ir_sony_decode() 150 scancode); in ir_sony_decode() 151 rc_keydown(dev, protocol, scancode, 0); in ir_sony_decode() 187 static int ir_sony_encode(enum rc_proto protocol, u32 scancode, in ir_sony_encode() argument 195 raw = (scancode & 0x7f) | ((scancode & 0x1f0000) >> 9); in ir_sony_encode() 198 raw = (scancode & 0x7f) | ((scancode & 0xff0000) >> 9); in ir_sony_encode() 201 raw = (scancode & 0x7f) | ((scancode & 0x1f0000) >> 9) | in ir_sony_encode() 202 ((scancode & 0xff00) << 4); in ir_sony_encode()
|
H A D | rc-main.c | 179 *scancode = *((u8 *)ke->scancode); in scancode_to_u64() 183 *scancode = *((u16 *)ke->scancode); in scancode_to_u64() 187 *scancode = *((u32 *)ke->scancode); in scancode_to_u64() 191 *scancode = *((u64 *)ke->scancode); in scancode_to_u64() 389 if (rc_map->scan[i].scancode == scancode) in ir_establish_scancode() 393 if (rc_map->scan[i].scancode >= scancode) in ir_establish_scancode() 407 rc_map->scan[i].scancode = scancode; in ir_establish_scancode() 505 if (*scancode < e->scancode) in rc_map_cmp() 507 else if (*scancode > e->scancode) in rc_map_cmp() 573 memcpy(ke->scancode, &entry->scancode, sizeof(entry->scancode)); in ir_getkeycode() [all …]
|
H A D | ir-mce_kbd-decoder.c | 152 u8 shiftmask = scancode & 0xff; in ir_mce_kbd_process_keyboard_data() 182 u8 xdata = (scancode >> 7) & 0x7f; in ir_mce_kbd_process_mouse_data() 183 u8 ydata = (scancode >> 14) & 0x7f; in ir_mce_kbd_process_mouse_data() 186 bool right = scancode & 0x40; in ir_mce_kbd_process_mouse_data() 187 bool left = scancode & 0x20; in ir_mce_kbd_process_mouse_data() 219 u32 scancode; in ir_mce_kbd_decode() local 318 scancode = data->body & 0xffffff; in ir_mce_kbd_decode() 322 if (scancode) { in ir_mce_kbd_decode() 346 lsc.scancode = scancode; in ir_mce_kbd_decode() 407 raw = scancode | in ir_mce_kbd_encode() [all …]
|
H A D | ir-sharp-decoder.c | 43 u32 msg, echo, address, command, scancode; in ir_sharp_decode() local 155 scancode = address << 8 | command; in ir_sharp_decode() 156 dev_dbg(&dev->dev, "Sharp scancode 0x%04x\n", scancode); in ir_sharp_decode() 158 rc_keydown(dev, RC_PROTO_SHARP, scancode, 0); in ir_sharp_decode() 192 static int ir_sharp_encode(enum rc_proto protocol, u32 scancode, in ir_sharp_encode() argument 199 raw = (((bitrev8(scancode >> 8) >> 3) << 8) & 0x1f00) | in ir_sharp_encode() 200 bitrev8(scancode); in ir_sharp_encode() 208 raw = (((bitrev8(scancode >> 8) >> 3) << 8) & 0x1f00) | in ir_sharp_encode() 209 bitrev8(~scancode); in ir_sharp_encode()
|
H A D | ir-sanyo-decoder.c | 49 u32 scancode; in ir_sanyo_decode() local 153 scancode = address << 8 | command; in ir_sanyo_decode() 154 dev_dbg(&dev->dev, "SANYO scancode: 0x%06x\n", scancode); in ir_sanyo_decode() 155 rc_keydown(dev, RC_PROTO_SANYO, scancode, 0); in ir_sanyo_decode() 189 static int ir_sanyo_encode(enum rc_proto protocol, u32 scancode, in ir_sanyo_encode() argument 196 raw = ((u64)(bitrev16(scancode >> 8) & 0xfff8) << (8 + 8 + 13 - 3)) | in ir_sanyo_encode() 197 ((u64)(bitrev16(~scancode >> 8) & 0xfff8) << (8 + 8 + 0 - 3)) | in ir_sanyo_encode() 198 ((bitrev8(scancode) & 0xff) << 8) | in ir_sanyo_encode() 199 (bitrev8(~scancode) & 0xff); in ir_sanyo_encode()
|
H A D | ir-rc6-decoder.c | 83 u32 scancode; in ir_rc6_decode() local 214 scancode = data->body; in ir_rc6_decode() 218 scancode, toggle); in ir_rc6_decode() 228 scancode = data->body; in ir_rc6_decode() 239 switch (scancode & RC6_6A_LCC_MASK) { in ir_rc6_decode() 244 toggle = !!(scancode & RC6_6A_MCE_TOGGLE_MASK); in ir_rc6_decode() 245 scancode &= ~RC6_6A_MCE_TOGGLE_MASK; in ir_rc6_decode() 259 protocol, scancode, toggle); in ir_rc6_decode() 266 rc_keydown(dev, protocol, scancode, toggle); in ir_rc6_decode() 332 scancode); in ir_rc6_encode() [all …]
|
H A D | ir-rcmm-decoder.c | 62 u32 scancode; in ir_rcmm_decode() local 152 scancode = data->bits & ~0x8000; in ir_rcmm_decode() 155 scancode = data->bits; in ir_rcmm_decode() 159 rc_keydown(dev, RC_PROTO_RCMM32, scancode, toggle); in ir_rcmm_decode() 201 static int ir_rcmm_encode(enum rc_proto protocol, u32 scancode, in ir_rcmm_encode() argument 209 ret = ir_rcmm_rawencoder(&e, max, 32, scancode); in ir_rcmm_encode() 212 ret = ir_rcmm_rawencoder(&e, max, 24, scancode); in ir_rcmm_encode() 215 ret = ir_rcmm_rawencoder(&e, max, 12, scancode); in ir_rcmm_encode()
|
H A D | ir-jvc-decoder.c | 128 u32 scancode; in ir_jvc_decode() local 129 scancode = (bitrev8((data->bits >> 8) & 0xff) << 8) | in ir_jvc_decode() 131 dev_dbg(&dev->dev, "JVC scancode 0x%04x\n", scancode); in ir_jvc_decode() 132 rc_keydown(dev, RC_PROTO_JVC, scancode, data->toggle); in ir_jvc_decode() 188 static int ir_jvc_encode(enum rc_proto protocol, u32 scancode, in ir_jvc_encode() argument 193 u32 raw = (bitrev8((scancode >> 8) & 0xff) << 8) | in ir_jvc_encode() 194 (bitrev8((scancode >> 0) & 0xff) << 0); in ir_jvc_encode()
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | amikbd.c | 169 unsigned char scancode, down; in amikbd_interrupt() local 171 scancode = ~ciaa.sdr; /* get and invert scancode (keyboard is active low) */ in amikbd_interrupt() 176 down = !(scancode & 1); /* lowest bit is release bit */ in amikbd_interrupt() 177 scancode >>= 1; in amikbd_interrupt() 179 if (scancode < 0x78) { /* scancodes < 0x78 are keys */ in amikbd_interrupt() 180 if (scancode == 98) { /* CapsLock is a toggle switch key on Amiga */ in amikbd_interrupt() 181 input_report_key(dev, scancode, 1); in amikbd_interrupt() 182 input_report_key(dev, scancode, 0); in amikbd_interrupt() 184 input_report_key(dev, scancode, down); in amikbd_interrupt() 189 printk(amikbd_messages[scancode - 0x78]); in amikbd_interrupt()
|
H A D | atakbd.c | 164 static void atakbd_interrupt(unsigned char scancode, char down) in atakbd_interrupt() argument 167 if (scancode < 0x73) { /* scancodes < 0xf3 are keys */ in atakbd_interrupt() 171 scancode = atakbd_keycode[scancode]; in atakbd_interrupt() 173 input_report_key(atakbd_dev, scancode, down); in atakbd_interrupt() 176 printk(KERN_INFO "atakbd: unhandled scancode %x\n", scancode); in atakbd_interrupt()
|
/openbmc/u-boot/common/ |
H A D | usb_kbd.c | 187 if ((scancode > 3) && (scancode <= 0x1d)) { in usb_kbd_translate() 188 keycode = scancode - 4 + 'a'; in usb_kbd_translate() 202 if ((scancode > 0x1d) && (scancode < 0x39)) { in usb_kbd_translate() 207 keycode = usb_kbd_numkey[scancode - 0x1e]; in usb_kbd_translate() 211 if ((scancode >= 0x4f) && (scancode <= 0x52)) in usb_kbd_translate() 212 keycode = usb_kbd_arrow[scancode - 0x4f]; in usb_kbd_translate() 215 if ((scancode >= 0x54) && (scancode <= 0x67)) in usb_kbd_translate() 219 keycode = scancode - 0x3; in usb_kbd_translate() 222 if (scancode == NUM_LOCK) { in usb_kbd_translate() 227 if (scancode == CAPS_LOCK) { in usb_kbd_translate() [all …]
|
/openbmc/linux/drivers/media/usb/em28xx/ |
H A D | em28xx-input.c | 46 u32 scancode; member 64 u32 *scancode); 99 *scancode = b; in em28xx_get_key_terratec() 135 u32 *scancode) in em28xx_get_key_pinnacle_usb_grey() argument 148 *scancode = buf[2] & 0x3f; in em28xx_get_key_pinnacle_usb_grey() 154 u32 *scancode) in em28xx_get_key_winfast_usbii_deluxe() argument 185 *scancode = key; in em28xx_get_key_winfast_usbii_deluxe() 295 static u32 scancode; in em28xx_i2c_ir_handle_key() local 307 __func__, protocol, scancode); in em28xx_i2c_ir_handle_key() 328 poll_result.scancode); in em28xx_ir_handle_key() [all …]
|
/openbmc/linux/drivers/platform/x86/dell/ |
H A D | dell-wmi-aio.c | 88 unsigned int scancode = 0; in dell_wmi_aio_notify() local 93 scancode = obj->integer.value; in dell_wmi_aio_notify() 95 scancode, 1, true); in dell_wmi_aio_notify() 102 scancode = event->event[0]; in dell_wmi_aio_notify() 108 scancode = obj->buffer.pointer[0]; in dell_wmi_aio_notify() 110 if (scancode) in dell_wmi_aio_notify() 113 scancode, 1, true); in dell_wmi_aio_notify()
|
/openbmc/linux/drivers/input/serio/ |
H A D | pcips2.c | 61 unsigned char status, scancode; in pcips2_interrupt() local 71 scancode = inb(ps2if->base + PS2_DATA); in pcips2_interrupt() 72 if (status == 0xff && scancode == 0xff) in pcips2_interrupt() 77 if (hweight8(scancode) & 1) in pcips2_interrupt() 80 serio_interrupt(ps2if->io, scancode, flag); in pcips2_interrupt() 87 unsigned char status, scancode; in pcips2_flush_input() local 93 scancode = inb(ps2if->base + PS2_DATA); in pcips2_flush_input() 94 if (status == 0xff && scancode == 0xff) in pcips2_flush_input()
|
/openbmc/linux/include/media/ |
H A D | rc-core.h | 281 void rc_keydown(struct rc_dev *dev, enum rc_proto protocol, u64 scancode, 284 u64 scancode, u8 toggle); 286 u32 rc_g_keycode_from_table(struct rc_dev *dev, u64 scancode); 320 int ir_raw_encode_scancode(enum rc_proto protocol, u32 scancode, 353 u32 scancode; in ir_nec_bytes_to_scancode() local 359 scancode = not_address << 24 | in ir_nec_bytes_to_scancode() 366 scancode = address << 16 | in ir_nec_bytes_to_scancode() 372 scancode = address << 8 | command; in ir_nec_bytes_to_scancode() 376 return scancode; in ir_nec_bytes_to_scancode()
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ir-kbd-i2c.c | 134 u32 *scancode, u8 *toggle) in get_key_haup() argument 140 u32 *scancode, u8 *toggle) in get_key_haup_xvr() argument 159 u32 *scancode, u8 *toggle) in get_key_pixelview() argument 174 *scancode = b; in get_key_pixelview() 202 *scancode = buf[2]; in get_key_fusionhdtv() 208 u32 *scancode, u8 *toggle) in get_key_knc1() argument 236 *scancode = b; in get_key_knc1() 273 *scancode = b; in get_key_geniatech() 313 *scancode = key; in get_key_avermedia_cardbus() 315 *scancode |= keygroup << 8; in get_key_avermedia_cardbus() [all …]
|