scancode 137 arch/m68k/atari/atakeyb.c int scancode; scancode 153 arch/m68k/atari/atakeyb.c scancode = acia.key_data; scancode 157 arch/m68k/atari/atakeyb.c else if (IS_SYNC_CODE(scancode)) { scancode 172 arch/m68k/atari/atakeyb.c scancode = acia.key_data; /* get it or reset the ACIA, I'll get it! */ scancode 176 arch/m68k/atari/atakeyb.c switch (scancode) { scancode 188 arch/m68k/atari/atakeyb.c kb_state.buf[0] = scancode; scancode 200 arch/m68k/atari/atakeyb.c kb_state.buf[0] = scancode; scancode 213 arch/m68k/atari/atakeyb.c break_flag = scancode & BREAK_MASK; scancode 214 arch/m68k/atari/atakeyb.c scancode &= ~BREAK_MASK; scancode 224 arch/m68k/atari/atakeyb.c set_bit(scancode, broken_keys); scancode 227 arch/m68k/atari/atakeyb.c keyval = scancode; scancode 231 arch/m68k/atari/atakeyb.c pr_warn("Key with scancode %d ", scancode); scancode 240 arch/m68k/atari/atakeyb.c } else if (test_bit(scancode, broken_keys)) scancode 244 arch/m68k/atari/atakeyb.c atari_input_keyboard_interrupt_hook((unsigned char)scancode, !break_flag); scancode 250 arch/m68k/atari/atakeyb.c kb_state.buf[kb_state.len++] = scancode; scancode 259 arch/m68k/atari/atakeyb.c kb_state.buf[kb_state.len++] = scancode; scancode 268 arch/m68k/atari/atakeyb.c kb_state.buf[1] = scancode; scancode 276 arch/m68k/atari/atakeyb.c kb_state.buf[kb_state.len++] = scancode; scancode 287 arch/m68k/atari/atakeyb.c if (kb_state.len <= 0 || IS_SYNC_CODE(scancode)) { scancode 1756 drivers/gpu/drm/bridge/sil-sii8620.c static bool sii8620_rcp_consume(struct sii8620 *ctx, u8 scancode) scancode 1758 drivers/gpu/drm/bridge/sil-sii8620.c bool pressed = !(scancode & MHL_RCP_KEY_RELEASED_MASK); scancode 1760 drivers/gpu/drm/bridge/sil-sii8620.c scancode &= MHL_RCP_KEY_ID_MASK; scancode 1768 drivers/gpu/drm/bridge/sil-sii8620.c rc_keydown(ctx->rc_dev, RC_PROTO_CEC, scancode, 0); scancode 62 drivers/hid/hid-input.c unsigned int cur_idx, unsigned int scancode) scancode 64 drivers/hid/hid-input.c return (usage->hid & (HID_USAGE_PAGE | HID_USAGE)) == scancode; scancode 119 drivers/hid/hid-input.c unsigned int scancode; scancode 123 drivers/hid/hid-input.c else if (input_scancode_to_scalar(ke, &scancode) == 0) scancode 124 drivers/hid/hid-input.c usage = hidinput_find_key(hid, match_scancode, scancode, index); scancode 136 drivers/hid/hid-input.c unsigned int scancode, index; scancode 143 drivers/hid/hid-input.c scancode = usage->hid & (HID_USAGE_PAGE | HID_USAGE); scancode 144 drivers/hid/hid-input.c ke->len = sizeof(scancode); scancode 145 drivers/hid/hid-input.c memcpy(ke->scancode, &scancode, sizeof(scancode)); scancode 811 drivers/input/evdev.c if (copy_from_user(ke.scancode, p, sizeof(unsigned int))) scancode 850 drivers/input/evdev.c if (copy_from_user(ke.scancode, p, sizeof(unsigned int))) scancode 866 drivers/input/evdev.c if (ke.len > sizeof(ke.scancode)) scancode 764 drivers/input/input.c unsigned int *scancode) scancode 768 drivers/input/input.c *scancode = *((u8 *)ke->scancode); scancode 772 drivers/input/input.c *scancode = *((u16 *)ke->scancode); scancode 776 drivers/input/input.c *scancode = *((u32 *)ke->scancode); scancode 830 drivers/input/input.c memcpy(ke->scancode, &index, sizeof(index)); scancode 172 drivers/input/keyboard/amikbd.c unsigned char scancode, down; scancode 174 drivers/input/keyboard/amikbd.c scancode = ~ciaa.sdr; /* get and invert scancode (keyboard is active low) */ scancode 179 drivers/input/keyboard/amikbd.c down = !(scancode & 1); /* lowest bit is release bit */ scancode 180 drivers/input/keyboard/amikbd.c scancode >>= 1; scancode 182 drivers/input/keyboard/amikbd.c if (scancode < 0x78) { /* scancodes < 0x78 are keys */ scancode 183 drivers/input/keyboard/amikbd.c if (scancode == 98) { /* CapsLock is a toggle switch key on Amiga */ scancode 184 drivers/input/keyboard/amikbd.c input_report_key(dev, scancode, 1); scancode 185 drivers/input/keyboard/amikbd.c input_report_key(dev, scancode, 0); scancode 187 drivers/input/keyboard/amikbd.c input_report_key(dev, scancode, down); scancode 192 drivers/input/keyboard/amikbd.c printk(amikbd_messages[scancode - 0x78]); scancode 167 drivers/input/keyboard/atakbd.c static void atakbd_interrupt(unsigned char scancode, char down) scancode 170 drivers/input/keyboard/atakbd.c if (scancode < 0x73) { /* scancodes < 0xf3 are keys */ scancode 174 drivers/input/keyboard/atakbd.c scancode = atakbd_keycode[scancode]; scancode 176 drivers/input/keyboard/atakbd.c input_report_key(atakbd_dev, scancode, down); scancode 179 drivers/input/keyboard/atakbd.c printk(KERN_INFO "atakbd: unhandled scancode %x\n", scancode); scancode 1004 drivers/input/keyboard/atkbd.c unsigned int scancode; scancode 1012 drivers/input/keyboard/atkbd.c scancode = atkbd_unxlate_table[i]; scancode 1013 drivers/input/keyboard/atkbd.c atkbd->keycode[i] = atkbd_set2_keycode[scancode]; scancode 1014 drivers/input/keyboard/atkbd.c atkbd->keycode[i | 0x80] = atkbd_set2_keycode[scancode | 0x80]; scancode 1017 drivers/input/keyboard/atkbd.c if ((scancode | 0x80) == atkbd_scroll_keys[j].set2) scancode 1027 drivers/input/keyboard/atkbd.c scancode = atkbd_scroll_keys[i].set2; scancode 1028 drivers/input/keyboard/atkbd.c atkbd->keycode[scancode] = atkbd_scroll_keys[i].keycode; scancode 1036 drivers/input/keyboard/atkbd.c scancode = atkbd_compat_scancode(atkbd, ATKBD_RET_HANGEUL); scancode 1037 drivers/input/keyboard/atkbd.c atkbd->keycode[scancode] = KEY_HANGEUL; scancode 1038 drivers/input/keyboard/atkbd.c __set_bit(scancode, atkbd->force_release_mask); scancode 1040 drivers/input/keyboard/atkbd.c scancode = atkbd_compat_scancode(atkbd, ATKBD_RET_HANJA); scancode 1041 drivers/input/keyboard/atkbd.c atkbd->keycode[scancode] = KEY_HANJA; scancode 1042 drivers/input/keyboard/atkbd.c __set_bit(scancode, atkbd->force_release_mask); scancode 92 drivers/input/keyboard/jornada680_kbd.c unsigned int scancode = (i << 3) + j; scancode 94 drivers/input/keyboard/jornada680_kbd.c EV_MSC, MSC_SCAN, scancode); scancode 96 drivers/input/keyboard/jornada680_kbd.c keymap[scancode], scancode 131 drivers/input/keyboard/locomokbd.c unsigned int scancode, pressed, key; scancode 133 drivers/input/keyboard/locomokbd.c scancode = SCANCODE(col, row); scancode 135 drivers/input/keyboard/locomokbd.c key = locomokbd->keycode[scancode]; scancode 75 drivers/input/keyboard/lpc32xx-keys.c unsigned row, changed, scancode, keycode; scancode 85 drivers/input/keyboard/lpc32xx-keys.c scancode = MATRIX_SCAN_CODE(row, col, scancode 87 drivers/input/keyboard/lpc32xx-keys.c keycode = kscandat->keymap[scancode]; scancode 88 drivers/input/keyboard/lpc32xx-keys.c input_event(input, EV_MSC, MSC_SCAN, scancode); scancode 161 drivers/input/keyboard/tegra-kbc.c unsigned char scancode = scancode 164 drivers/input/keyboard/tegra-kbc.c scancodes[num_down] = scancode; scancode 165 drivers/input/keyboard/tegra-kbc.c keycodes[num_down] = kbc->keycode[scancode]; scancode 488 drivers/input/misc/ati_remote2.c unsigned int scancode; scancode 498 drivers/input/misc/ati_remote2.c scancode = (mode << 8) + ati_remote2_key_table[offset].hw_code; scancode 500 drivers/input/misc/ati_remote2.c if (input_scancode_to_scalar(ke, &scancode)) scancode 503 drivers/input/misc/ati_remote2.c mode = scancode >> 8; scancode 507 drivers/input/misc/ati_remote2.c offset = ati_remote2_lookup(scancode & 0xff); scancode 515 drivers/input/misc/ati_remote2.c ke->len = sizeof(scancode); scancode 516 drivers/input/misc/ati_remote2.c memcpy(&ke->scancode, &scancode, sizeof(scancode)); scancode 530 drivers/input/misc/ati_remote2.c unsigned int scancode; scancode 540 drivers/input/misc/ati_remote2.c if (input_scancode_to_scalar(ke, &scancode)) scancode 543 drivers/input/misc/ati_remote2.c mode = scancode >> 8; scancode 547 drivers/input/misc/ati_remote2.c offset = ati_remote2_lookup(scancode & 0xff); scancode 172 drivers/input/misc/cm109.c static unsigned short keymap_kip1000(int scancode) scancode 174 drivers/input/misc/cm109.c switch (scancode) { /* phone key: */ scancode 191 drivers/input/misc/cm109.c default: return special_keymap(scancode); scancode 205 drivers/input/misc/cm109.c static unsigned short keymap_gtalk(int scancode) scancode 207 drivers/input/misc/cm109.c switch (scancode) { scancode 224 drivers/input/misc/cm109.c default: return special_keymap(scancode); scancode 234 drivers/input/misc/cm109.c static unsigned short keymap_usbph01(int scancode) scancode 236 drivers/input/misc/cm109.c switch (scancode) { scancode 253 drivers/input/misc/cm109.c default: return special_keymap(scancode); scancode 265 drivers/input/misc/cm109.c static unsigned short keymap_atcom(int scancode) scancode 267 drivers/input/misc/cm109.c switch (scancode) { /* phone key: */ scancode 284 drivers/input/misc/cm109.c default: return special_keymap(scancode); scancode 190 drivers/input/misc/yealink.c static int map_p1k_to_key(int scancode) scancode 192 drivers/input/misc/yealink.c switch(scancode) { /* phone key: */ scancode 69 drivers/input/serio/ams_delta_serio.c u8 scancode; scancode 86 drivers/input/serio/ams_delta_serio.c scancode = (u8) (data >> 1) & 0xFF; scancode 87 drivers/input/serio/ams_delta_serio.c serio_interrupt(priv->serio, scancode, dfl); scancode 61 drivers/input/serio/pcips2.c unsigned char status, scancode; scancode 71 drivers/input/serio/pcips2.c scancode = inb(ps2if->base + PS2_DATA); scancode 72 drivers/input/serio/pcips2.c if (status == 0xff && scancode == 0xff) scancode 77 drivers/input/serio/pcips2.c if (hweight8(scancode) & 1) scancode 80 drivers/input/serio/pcips2.c serio_interrupt(ps2if->io, scancode, flag); scancode 87 drivers/input/serio/pcips2.c unsigned char status, scancode; scancode 93 drivers/input/serio/pcips2.c scancode = inb(ps2if->base + PS2_DATA); scancode 94 drivers/input/serio/pcips2.c if (status == 0xff && scancode == 0xff) scancode 64 drivers/input/serio/sa1111ps2.c unsigned int scancode, flag, status; scancode 74 drivers/input/serio/sa1111ps2.c scancode = readl_relaxed(ps2if->base + PS2DATA) & 0xff; scancode 76 drivers/input/serio/sa1111ps2.c if (hweight8(scancode) & 1) scancode 79 drivers/input/serio/sa1111ps2.c serio_interrupt(ps2if->io, scancode, flag); scancode 99 drivers/input/sparse-keymap.c unsigned int scancode; scancode 103 drivers/input/sparse-keymap.c else if (input_scancode_to_scalar(ke, &scancode) == 0) scancode 104 drivers/input/sparse-keymap.c key = sparse_keymap_entry_from_scancode(dev, scancode); scancode 124 drivers/input/sparse-keymap.c memcpy(ke->scancode, &key->code, sizeof(key->code)); scancode 285 drivers/macintosh/adbhid.c adbhid_input_keycode(int id, int scancode, int repeat) scancode 290 drivers/macintosh/adbhid.c keycode = scancode & 0x7f; scancode 291 drivers/macintosh/adbhid.c up_flag = scancode & 0x80; scancode 306 drivers/macintosh/adbhid.c } else if (scancode == 0xff && scancode 60 drivers/media/i2c/ir-kbd-i2c.c u32 *scancode, u8 *ptoggle, int size) scancode 101 drivers/media/i2c/ir-kbd-i2c.c *scancode = RC_SCANCODE_RC5(dev, code); scancode 125 drivers/media/i2c/ir-kbd-i2c.c *scancode = RC_SCANCODE_RC6_6A(vendor, dev, code); scancode 134 drivers/media/i2c/ir-kbd-i2c.c u32 *scancode, u8 *toggle) scancode 136 drivers/media/i2c/ir-kbd-i2c.c return get_key_haup_common(ir, protocol, scancode, toggle, 3); scancode 140 drivers/media/i2c/ir-kbd-i2c.c u32 *scancode, u8 *toggle) scancode 155 drivers/media/i2c/ir-kbd-i2c.c return get_key_haup_common(ir, protocol, scancode, toggle, 6); scancode 159 drivers/media/i2c/ir-kbd-i2c.c u32 *scancode, u8 *toggle) scancode 174 drivers/media/i2c/ir-kbd-i2c.c *scancode = b; scancode 180 drivers/media/i2c/ir-kbd-i2c.c u32 *scancode, u8 *toggle) scancode 202 drivers/media/i2c/ir-kbd-i2c.c *scancode = buf[2]; scancode 208 drivers/media/i2c/ir-kbd-i2c.c u32 *scancode, u8 *toggle) scancode 236 drivers/media/i2c/ir-kbd-i2c.c *scancode = b; scancode 242 drivers/media/i2c/ir-kbd-i2c.c u32 *scancode, u8 *toggle) scancode 276 drivers/media/i2c/ir-kbd-i2c.c *scancode = key; scancode 278 drivers/media/i2c/ir-kbd-i2c.c *scancode |= keygroup << 8; scancode 288 drivers/media/i2c/ir-kbd-i2c.c u32 scancode; scancode 293 drivers/media/i2c/ir-kbd-i2c.c rc = ir->get_key(ir, &protocol, &scancode, &toggle); scancode 301 drivers/media/i2c/ir-kbd-i2c.c __func__, protocol, scancode); scancode 302 drivers/media/i2c/ir-kbd-i2c.c rc_keydown(ir->rc, protocol, scancode, toggle); scancode 187 drivers/media/pci/bt8xx/bttv-input.c u32 gap, rc5, scancode; scancode 230 drivers/media/pci/bt8xx/bttv-input.c scancode = RC_SCANCODE_RC5(system, command); scancode 231 drivers/media/pci/bt8xx/bttv-input.c rc_keydown(ir->dev, RC_PROTO_RC5, scancode, toggle); scancode 232 drivers/media/pci/bt8xx/bttv-input.c dprintk("scancode %x, toggle %x\n", scancode, toggle); scancode 324 drivers/media/pci/bt8xx/bttv-input.c u32 *scancode, u8 *toggle) scancode 356 drivers/media/pci/bt8xx/bttv-input.c *scancode = b; scancode 133 drivers/media/pci/cx88/cx88-input.c u32 scancode; scancode 137 drivers/media/pci/cx88/cx88-input.c scancode = RC_SCANCODE_NECX(addr, cmd); scancode 140 drivers/media/pci/cx88/cx88-input.c rc_keydown_notimeout(ir->dev, RC_PROTO_NECX, scancode, scancode 555 drivers/media/pci/cx88/cx88-input.c u32 *scancode, u8 *toggle) scancode 580 drivers/media/pci/cx88/cx88-input.c *scancode = code & 0xff; scancode 138 drivers/media/pci/ivtv/ivtv-i2c.c u32 *scancode, u8 *toggle) scancode 158 drivers/media/pci/ivtv/ivtv-i2c.c *scancode = keybuf[3] | keybuf[2] << 8 | keybuf[1] << 16 |keybuf[0] << 24; scancode 23 drivers/media/pci/mantis/mantis_input.c void mantis_input_process(struct mantis_pci *mantis, int scancode) scancode 26 drivers/media/pci/mantis/mantis_input.c rc_keydown(mantis->rc, RC_PROTO_UNKNOWN, scancode, 0); scancode 14 drivers/media/pci/mantis/mantis_input.h void mantis_input_process(struct mantis_pci *mantis, int scancode); scancode 55 drivers/media/pci/mantis/mantis_uart.c int i, scancode = 0, err = 0; scancode 64 drivers/media/pci/mantis/mantis_uart.c scancode = (scancode << 8) | (data & 0x3f); scancode 76 drivers/media/pci/mantis/mantis_uart.c mantis_input_process(mantis, scancode); scancode 106 drivers/media/pci/saa7134/saa7134-input.c u32 *scancode, u8 *toggle) scancode 155 drivers/media/pci/saa7134/saa7134-input.c *scancode = b; scancode 162 drivers/media/pci/saa7134/saa7134-input.c u32 *scancode, u8 *toggle) scancode 206 drivers/media/pci/saa7134/saa7134-input.c *scancode = b; scancode 213 drivers/media/pci/saa7134/saa7134-input.c u32 *scancode, u8 *toggle) scancode 258 drivers/media/pci/saa7134/saa7134-input.c *scancode = b; scancode 264 drivers/media/pci/saa7134/saa7134-input.c u32 *scancode, u8 *toggle) scancode 287 drivers/media/pci/saa7134/saa7134-input.c *scancode = b; scancode 293 drivers/media/pci/saa7134/saa7134-input.c u32 *scancode, u8 *toggle) scancode 324 drivers/media/pci/saa7134/saa7134-input.c *scancode = RC_SCANCODE_NECX(data[11] << 8 | data[10], data[9]); scancode 333 drivers/media/pci/saa7134/saa7134-input.c u32 *scancode, u8 *toggle, int parity_offset, scancode 374 drivers/media/pci/saa7134/saa7134-input.c *scancode = code; scancode 391 drivers/media/pci/saa7134/saa7134-input.c u32 *scancode, u8 *toggle) scancode 394 drivers/media/pci/saa7134/saa7134-input.c return get_key_pinnacle(ir, protocol, scancode, toggle, 1, 0xfe, 0xff); scancode 403 drivers/media/pci/saa7134/saa7134-input.c u32 *scancode, u8 *toggle) scancode 411 drivers/media/pci/saa7134/saa7134-input.c return get_key_pinnacle(ir, protocol, scancode, toggle, 2, 0x80, 0x88); scancode 25 drivers/media/pci/ttpci/av7110_ir.c u32 command, addr, scancode; scancode 35 drivers/media/pci/ttpci/av7110_ir.c scancode = RC_SCANCODE_RC5(addr, command); scancode 41 drivers/media/pci/ttpci/av7110_ir.c scancode = ircom & ~0x8000; scancode 57 drivers/media/pci/ttpci/av7110_ir.c scancode = RC_SCANCODE_RC5(addr, command); scancode 67 drivers/media/pci/ttpci/av7110_ir.c rc_keydown(rcdev, proto, scancode, toggle != 0); scancode 486 drivers/media/rc/ati_remote.c unsigned char scancode; scancode 525 drivers/media/rc/ati_remote.c scancode = data[2] & 0x7f; scancode 529 drivers/media/rc/ati_remote.c remote_num, data[2], scancode); scancode 531 drivers/media/rc/ati_remote.c if (scancode >= 0x70) { scancode 539 drivers/media/rc/ati_remote.c scancode & 0x78); scancode 548 drivers/media/rc/ati_remote.c if (scancode == ati_remote_tbl[i].data) { scancode 605 drivers/media/rc/ati_remote.c count = (scancode & 0x07) + 1; scancode 606 drivers/media/rc/ati_remote.c scancode &= 0x78; scancode 617 drivers/media/rc/ati_remote.c scancode, data[2]); scancode 43 drivers/media/rc/bpf-lirc.c BPF_CALL_4(bpf_rc_keydown, u32*, sample, u32, protocol, u64, scancode, scancode 50 drivers/media/rc/bpf-lirc.c rc_keydown(ctrl->dev, protocol, scancode, toggle != 0); scancode 825 drivers/media/rc/img-ir/img-ir-hw.c if (dec->scancode) scancode 826 drivers/media/rc/img-ir/img-ir-hw.c ret = dec->scancode(len, raw, hw->enabled_protocols, &request); scancode 828 drivers/media/rc/img-ir/img-ir-hw.c request.scancode = (u32)raw; scancode 830 drivers/media/rc/img-ir/img-ir-hw.c request.scancode = (u32)raw & ((1 << len)-1); scancode 835 drivers/media/rc/img-ir/img-ir-hw.c request.scancode, request.toggle); scancode 836 drivers/media/rc/img-ir/img-ir-hw.c rc_keydown(hw->rdev, request.protocol, request.scancode, scancode 141 drivers/media/rc/img-ir/img-ir-hw.h u32 scancode; scancode 175 drivers/media/rc/img-ir/img-ir-hw.h int (*scancode)(int len, u64 raw, u64 enabled_protocols, scancode 23 drivers/media/rc/img-ir/img-ir-jvc.c request->scancode = cust << 8 | data; scancode 82 drivers/media/rc/img-ir/img-ir-jvc.c .scancode = img_ir_jvc_scancode, scancode 30 drivers/media/rc/img-ir/img-ir-nec.c request->scancode = bitrev8(addr) << 24 | scancode 38 drivers/media/rc/img-ir/img-ir-nec.c request->scancode = addr << 16 | scancode 45 drivers/media/rc/img-ir/img-ir-nec.c request->scancode = addr << 8 | scancode 171 drivers/media/rc/img-ir/img-ir-nec.c .scancode = img_ir_nec_scancode, scancode 33 drivers/media/rc/img-ir/img-ir-rc5.c request->scancode = addr << 8 | cmd; scancode 82 drivers/media/rc/img-ir/img-ir-rc5.c .scancode = img_ir_rc5_scancode, scancode 54 drivers/media/rc/img-ir/img-ir-rc6.c request->scancode = addr << 8 | cmd; scancode 111 drivers/media/rc/img-ir/img-ir-rc6.c .scancode = img_ir_rc6_scancode, scancode 44 drivers/media/rc/img-ir/img-ir-sanyo.c request->scancode = addr << 8 | data; scancode 123 drivers/media/rc/img-ir/img-ir-sanyo.c .scancode = img_ir_sanyo_scancode, scancode 32 drivers/media/rc/img-ir/img-ir-sharp.c request->scancode = addr << 8 | cmd; scancode 100 drivers/media/rc/img-ir/img-ir-sharp.c .scancode = img_ir_sharp_scancode, scancode 48 drivers/media/rc/img-ir/img-ir-sony.c request->scancode = dev << 16 | subdev << 8 | func; scancode 159 drivers/media/rc/img-ir/img-ir-sony.c .scancode = img_ir_sony_scancode, scancode 1214 drivers/media/rc/imon.c static u32 imon_remote_key_lookup(struct imon_context *ictx, u32 scancode) scancode 1221 drivers/media/rc/imon.c keycode = rc_g_keycode_from_table(ictx->rdev, scancode); scancode 1223 drivers/media/rc/imon.c ictx->rc_scancode = scancode; scancode 1227 drivers/media/rc/imon.c release = scancode & ~0x4000; scancode 1238 drivers/media/rc/imon.c static u32 imon_mce_key_lookup(struct imon_context *ictx, u32 scancode) scancode 1253 drivers/media/rc/imon.c if (scancode & 0x80000000) scancode 1254 drivers/media/rc/imon.c scancode = scancode | MCE_KEY_MASK | MCE_TOGGLE_BIT; scancode 1256 drivers/media/rc/imon.c ictx->rc_scancode = scancode; scancode 1257 drivers/media/rc/imon.c keycode = rc_g_keycode_from_table(ictx->rdev, scancode); scancode 1362 drivers/media/rc/imon.c u32 scancode = KEY_RESERVED; scancode 1396 drivers/media/rc/imon.c scancode = be32_to_cpu(*((__be32 *)buf)); scancode 1407 drivers/media/rc/imon.c scancode = 0x01007f00; /* KEY_DOWN */ scancode 1409 drivers/media/rc/imon.c scancode = 0x01008000; /* KEY_UP */ scancode 1414 drivers/media/rc/imon.c scancode = 0x0100007f; /* KEY_RIGHT */ scancode 1416 drivers/media/rc/imon.c scancode = 0x01000080; /* KEY_LEFT */ scancode 1460 drivers/media/rc/imon.c scancode = be32_to_cpu(*((__be32 *)buf)); scancode 1470 drivers/media/rc/imon.c scancode = 0x01007f00; /* KEY_DOWN */ scancode 1472 drivers/media/rc/imon.c scancode = 0x01008000; /* KEY_UP */ scancode 1477 drivers/media/rc/imon.c scancode = 0x0100007f; /* KEY_RIGHT */ scancode 1479 drivers/media/rc/imon.c scancode = 0x01000080; /* KEY_LEFT */ scancode 1484 drivers/media/rc/imon.c if (scancode) { scancode 1486 drivers/media/rc/imon.c ictx->kc = imon_remote_key_lookup(ictx, scancode); scancode 1551 drivers/media/rc/imon.c u64 scancode; scancode 1564 drivers/media/rc/imon.c scancode = be64_to_cpu(*((__be64 *)buf)); scancode 1566 drivers/media/rc/imon.c kc = imon_panel_key_lookup(ictx, scancode); scancode 1569 drivers/media/rc/imon.c scancode = be32_to_cpu(*((__be32 *)buf)); scancode 1574 drivers/media/rc/imon.c kc = imon_mce_key_lookup(ictx, scancode); scancode 1577 drivers/media/rc/imon.c kc = imon_remote_key_lookup(ictx, scancode); scancode 192 drivers/media/rc/ir-imon-decoder.c static int ir_imon_encode(enum rc_proto protocol, u32 scancode, scancode 204 drivers/media/rc/ir-imon-decoder.c pulse = !(scancode & (BIT(i) | BIT(i + 1))); scancode 216 drivers/media/rc/ir-imon-decoder.c pulse = !(scancode & BIT(i)); scancode 128 drivers/media/rc/ir-jvc-decoder.c u32 scancode; scancode 129 drivers/media/rc/ir-jvc-decoder.c scancode = (bitrev8((data->bits >> 8) & 0xff) << 8) | scancode 131 drivers/media/rc/ir-jvc-decoder.c dev_dbg(&dev->dev, "JVC scancode 0x%04x\n", scancode); scancode 132 drivers/media/rc/ir-jvc-decoder.c rc_keydown(dev, RC_PROTO_JVC, scancode, data->toggle); scancode 188 drivers/media/rc/ir-jvc-decoder.c static int ir_jvc_encode(enum rc_proto protocol, u32 scancode, scancode 193 drivers/media/rc/ir-jvc-decoder.c u32 raw = (bitrev8((scancode >> 8) & 0xff) << 8) | scancode 194 drivers/media/rc/ir-jvc-decoder.c (bitrev8((scancode >> 0) & 0xff) << 0); scancode 148 drivers/media/rc/ir-mce_kbd-decoder.c static void ir_mce_kbd_process_keyboard_data(struct rc_dev *dev, u32 scancode) scancode 150 drivers/media/rc/ir-mce_kbd-decoder.c u8 keydata1 = (scancode >> 8) & 0xff; scancode 151 drivers/media/rc/ir-mce_kbd-decoder.c u8 keydata2 = (scancode >> 16) & 0xff; scancode 152 drivers/media/rc/ir-mce_kbd-decoder.c u8 shiftmask = scancode & 0xff; scancode 179 drivers/media/rc/ir-mce_kbd-decoder.c static void ir_mce_kbd_process_mouse_data(struct rc_dev *dev, u32 scancode) scancode 182 drivers/media/rc/ir-mce_kbd-decoder.c u8 xdata = (scancode >> 7) & 0x7f; scancode 183 drivers/media/rc/ir-mce_kbd-decoder.c u8 ydata = (scancode >> 14) & 0x7f; scancode 186 drivers/media/rc/ir-mce_kbd-decoder.c bool right = scancode & 0x40; scancode 187 drivers/media/rc/ir-mce_kbd-decoder.c bool left = scancode & 0x20; scancode 219 drivers/media/rc/ir-mce_kbd-decoder.c u32 scancode; scancode 318 drivers/media/rc/ir-mce_kbd-decoder.c scancode = data->body & 0xffffff; scancode 322 drivers/media/rc/ir-mce_kbd-decoder.c if (scancode) { scancode 330 drivers/media/rc/ir-mce_kbd-decoder.c ir_mce_kbd_process_keyboard_data(dev, scancode); scancode 335 drivers/media/rc/ir-mce_kbd-decoder.c scancode = data->body & 0x1fffff; scancode 336 drivers/media/rc/ir-mce_kbd-decoder.c dev_dbg(&dev->dev, "mouse data 0x%06x\n", scancode); scancode 338 drivers/media/rc/ir-mce_kbd-decoder.c ir_mce_kbd_process_mouse_data(dev, scancode); scancode 346 drivers/media/rc/ir-mce_kbd-decoder.c lsc.scancode = scancode; scancode 349 drivers/media/rc/ir-mce_kbd-decoder.c input_event(dev->input_dev, EV_MSC, MSC_SCAN, scancode); scancode 399 drivers/media/rc/ir-mce_kbd-decoder.c static int ir_mce_kbd_encode(enum rc_proto protocol, u32 scancode, scancode 407 drivers/media/rc/ir-mce_kbd-decoder.c raw = scancode | scancode 411 drivers/media/rc/ir-mce_kbd-decoder.c raw = scancode | scancode 42 drivers/media/rc/ir-nec-decoder.c u32 scancode; scancode 147 drivers/media/rc/ir-nec-decoder.c scancode = ir_nec_bytes_to_scancode(address, scancode 156 drivers/media/rc/ir-nec-decoder.c rc_keydown(dev, rc_proto, scancode, 0); scancode 176 drivers/media/rc/ir-nec-decoder.c static u32 ir_nec_scancode_to_raw(enum rc_proto protocol, u32 scancode) scancode 180 drivers/media/rc/ir-nec-decoder.c data = scancode & 0xff; scancode 185 drivers/media/rc/ir-nec-decoder.c addr_inv = (scancode >> 24) & 0xff; scancode 186 drivers/media/rc/ir-nec-decoder.c addr = (scancode >> 16) & 0xff; scancode 187 drivers/media/rc/ir-nec-decoder.c data_inv = (scancode >> 8) & 0xff; scancode 191 drivers/media/rc/ir-nec-decoder.c addr = (scancode >> 16) & 0xff; scancode 192 drivers/media/rc/ir-nec-decoder.c addr_inv = (scancode >> 8) & 0xff; scancode 197 drivers/media/rc/ir-nec-decoder.c addr = (scancode >> 8) & 0xff; scancode 232 drivers/media/rc/ir-nec-decoder.c static int ir_nec_encode(enum rc_proto protocol, u32 scancode, scancode 240 drivers/media/rc/ir-nec-decoder.c raw = ir_nec_scancode_to_raw(protocol, scancode); scancode 44 drivers/media/rc/ir-rc5-decoder.c u32 scancode; scancode 124 drivers/media/rc/ir-rc5-decoder.c scancode = system << 16 | command << 8 | xdata; scancode 138 drivers/media/rc/ir-rc5-decoder.c scancode = system << 8 | command; scancode 151 drivers/media/rc/ir-rc5-decoder.c scancode = system << 6 | command; scancode 158 drivers/media/rc/ir-rc5-decoder.c scancode, protocol, toggle); scancode 160 drivers/media/rc/ir-rc5-decoder.c rc_keydown(dev, protocol, scancode, toggle); scancode 209 drivers/media/rc/ir-rc5-decoder.c static int ir_rc5_encode(enum rc_proto protocol, u32 scancode, scancode 219 drivers/media/rc/ir-rc5-decoder.c command = (scancode & 0x003f) >> 0; scancode 220 drivers/media/rc/ir-rc5-decoder.c commandx = (scancode & 0x0040) >> 6; scancode 221 drivers/media/rc/ir-rc5-decoder.c system = (scancode & 0x1f00) >> 8; scancode 232 drivers/media/rc/ir-rc5-decoder.c xdata = (scancode & 0x00003f) >> 0; scancode 233 drivers/media/rc/ir-rc5-decoder.c command = (scancode & 0x003f00) >> 8; scancode 234 drivers/media/rc/ir-rc5-decoder.c commandx = !(scancode & 0x004000); scancode 235 drivers/media/rc/ir-rc5-decoder.c system = (scancode & 0x1f0000) >> 16; scancode 258 drivers/media/rc/ir-rc5-decoder.c scancode & 0x2fff); scancode 83 drivers/media/rc/ir-rc6-decoder.c u32 scancode; scancode 214 drivers/media/rc/ir-rc6-decoder.c scancode = data->body; scancode 218 drivers/media/rc/ir-rc6-decoder.c scancode, toggle); scancode 228 drivers/media/rc/ir-rc6-decoder.c scancode = data->body; scancode 239 drivers/media/rc/ir-rc6-decoder.c switch (scancode & RC6_6A_LCC_MASK) { scancode 244 drivers/media/rc/ir-rc6-decoder.c toggle = !!(scancode & RC6_6A_MCE_TOGGLE_MASK); scancode 245 drivers/media/rc/ir-rc6-decoder.c scancode &= ~RC6_6A_MCE_TOGGLE_MASK; scancode 259 drivers/media/rc/ir-rc6-decoder.c protocol, scancode, toggle); scancode 266 drivers/media/rc/ir-rc6-decoder.c rc_keydown(dev, protocol, scancode, toggle); scancode 309 drivers/media/rc/ir-rc6-decoder.c static int ir_rc6_encode(enum rc_proto protocol, u32 scancode, scancode 332 drivers/media/rc/ir-rc6-decoder.c scancode); scancode 371 drivers/media/rc/ir-rc6-decoder.c scancode); scancode 62 drivers/media/rc/ir-rcmm-decoder.c u32 scancode; scancode 152 drivers/media/rc/ir-rcmm-decoder.c scancode = data->bits & ~0x8000; scancode 155 drivers/media/rc/ir-rcmm-decoder.c scancode = data->bits; scancode 159 drivers/media/rc/ir-rcmm-decoder.c rc_keydown(dev, RC_PROTO_RCMM32, scancode, toggle); scancode 199 drivers/media/rc/ir-rcmm-decoder.c static int ir_rcmm_encode(enum rc_proto protocol, u32 scancode, scancode 207 drivers/media/rc/ir-rcmm-decoder.c ret = ir_rcmm_rawencoder(&e, max, 32, scancode); scancode 210 drivers/media/rc/ir-rcmm-decoder.c ret = ir_rcmm_rawencoder(&e, max, 24, scancode); scancode 213 drivers/media/rc/ir-rcmm-decoder.c ret = ir_rcmm_rawencoder(&e, max, 12, scancode); scancode 49 drivers/media/rc/ir-sanyo-decoder.c u32 scancode; scancode 153 drivers/media/rc/ir-sanyo-decoder.c scancode = address << 8 | command; scancode 154 drivers/media/rc/ir-sanyo-decoder.c dev_dbg(&dev->dev, "SANYO scancode: 0x%06x\n", scancode); scancode 155 drivers/media/rc/ir-sanyo-decoder.c rc_keydown(dev, RC_PROTO_SANYO, scancode, 0); scancode 189 drivers/media/rc/ir-sanyo-decoder.c static int ir_sanyo_encode(enum rc_proto protocol, u32 scancode, scancode 196 drivers/media/rc/ir-sanyo-decoder.c raw = ((u64)(bitrev16(scancode >> 8) & 0xfff8) << (8 + 8 + 13 - 3)) | scancode 197 drivers/media/rc/ir-sanyo-decoder.c ((u64)(bitrev16(~scancode >> 8) & 0xfff8) << (8 + 8 + 0 - 3)) | scancode 198 drivers/media/rc/ir-sanyo-decoder.c ((bitrev8(scancode) & 0xff) << 8) | scancode 199 drivers/media/rc/ir-sanyo-decoder.c (bitrev8(~scancode) & 0xff); scancode 41 drivers/media/rc/ir-sharp-decoder.c u32 msg, echo, address, command, scancode; scancode 153 drivers/media/rc/ir-sharp-decoder.c scancode = address << 8 | command; scancode 154 drivers/media/rc/ir-sharp-decoder.c dev_dbg(&dev->dev, "Sharp scancode 0x%04x\n", scancode); scancode 156 drivers/media/rc/ir-sharp-decoder.c rc_keydown(dev, RC_PROTO_SHARP, scancode, 0); scancode 190 drivers/media/rc/ir-sharp-decoder.c static int ir_sharp_encode(enum rc_proto protocol, u32 scancode, scancode 197 drivers/media/rc/ir-sharp-decoder.c raw = (((bitrev8(scancode >> 8) >> 3) << 8) & 0x1f00) | scancode 198 drivers/media/rc/ir-sharp-decoder.c bitrev8(scancode); scancode 206 drivers/media/rc/ir-sharp-decoder.c raw = (((bitrev8(scancode >> 8) >> 3) << 8) & 0x1f00) | scancode 207 drivers/media/rc/ir-sharp-decoder.c bitrev8(~scancode); scancode 38 drivers/media/rc/ir-sony-decoder.c u32 scancode; scancode 148 drivers/media/rc/ir-sony-decoder.c scancode = device << 16 | subdevice << 8 | function; scancode 150 drivers/media/rc/ir-sony-decoder.c scancode); scancode 151 drivers/media/rc/ir-sony-decoder.c rc_keydown(dev, protocol, scancode, 0); scancode 187 drivers/media/rc/ir-sony-decoder.c static int ir_sony_encode(enum rc_proto protocol, u32 scancode, scancode 195 drivers/media/rc/ir-sony-decoder.c raw = (scancode & 0x7f) | ((scancode & 0x1f0000) >> 9); scancode 198 drivers/media/rc/ir-sony-decoder.c raw = (scancode & 0x7f) | ((scancode & 0xff0000) >> 9); scancode 201 drivers/media/rc/ir-sony-decoder.c raw = (scancode & 0x7f) | ((scancode & 0x1f0000) >> 9) | scancode 202 drivers/media/rc/ir-sony-decoder.c ((scancode & 0xff00) << 4); scancode 77 drivers/media/rc/ir-xmp-decoder.c u32 scancode; scancode 132 drivers/media/rc/ir-xmp-decoder.c scancode = addr << 24 | subaddr << 16 | scancode 134 drivers/media/rc/ir-xmp-decoder.c dev_dbg(&dev->dev, "XMP scancode 0x%06x\n", scancode); scancode 137 drivers/media/rc/ir-xmp-decoder.c rc_keydown(dev, RC_PROTO_XMP, scancode, 0); scancode 278 drivers/media/rc/lirc_dev.c if (scan.scancode > U32_MAX || scancode 279 drivers/media/rc/lirc_dev.c !rc_validate_scancode(scan.rc_proto, scan.scancode)) { scancode 290 drivers/media/rc/lirc_dev.c ret = ir_raw_encode_scancode(scan.rc_proto, scan.scancode, scancode 38 drivers/media/rc/rc-core-priv.h int (*encode)(enum rc_proto protocol, u32 scancode, scancode 178 drivers/media/rc/rc-core-priv.h bool rc_validate_scancode(enum rc_proto proto, u32 scancode); scancode 521 drivers/media/rc/rc-ir-raw.c int ir_raw_encode_scancode(enum rc_proto protocol, u32 scancode, scancode 533 drivers/media/rc/rc-ir-raw.c ret = handler->encode(protocol, scancode, events, max); scancode 289 drivers/media/rc/rc-main.c index, rc_map->scan[index].scancode); scancode 297 drivers/media/rc/rc-main.c rc_map->scan[index].scancode, new_keycode); scancode 337 drivers/media/rc/rc-main.c unsigned int scancode, scancode 351 drivers/media/rc/rc-main.c scancode &= dev->scancode_mask; scancode 355 drivers/media/rc/rc-main.c if (rc_map->scan[i].scancode == scancode) scancode 359 drivers/media/rc/rc-main.c if (rc_map->scan[i].scancode >= scancode) scancode 373 drivers/media/rc/rc-main.c rc_map->scan[i].scancode = scancode; scancode 397 drivers/media/rc/rc-main.c unsigned int scancode; scancode 410 drivers/media/rc/rc-main.c retval = input_scancode_to_scalar(ke, &scancode); scancode 414 drivers/media/rc/rc-main.c index = ir_establish_scancode(rdev, rc_map, scancode, true); scancode 451 drivers/media/rc/rc-main.c from->scan[i].scancode, false); scancode 469 drivers/media/rc/rc-main.c const unsigned int *scancode = key; scancode 472 drivers/media/rc/rc-main.c if (*scancode < e->scancode) scancode 474 drivers/media/rc/rc-main.c else if (*scancode > e->scancode) scancode 490 drivers/media/rc/rc-main.c unsigned int scancode) scancode 494 drivers/media/rc/rc-main.c res = bsearch(&scancode, rc_map->scan, rc_map->len, scancode 519 drivers/media/rc/rc-main.c unsigned int scancode; scancode 527 drivers/media/rc/rc-main.c retval = input_scancode_to_scalar(ke, &scancode); scancode 531 drivers/media/rc/rc-main.c index = ir_lookup_by_scancode(rc_map, scancode); scancode 539 drivers/media/rc/rc-main.c ke->len = sizeof(entry->scancode); scancode 540 drivers/media/rc/rc-main.c memcpy(ke->scancode, &entry->scancode, sizeof(entry->scancode)); scancode 573 drivers/media/rc/rc-main.c u32 rc_g_keycode_from_table(struct rc_dev *dev, u32 scancode) scancode 582 drivers/media/rc/rc-main.c index = ir_lookup_by_scancode(rc_map, scancode); scancode 590 drivers/media/rc/rc-main.c dev->device_name, scancode, keycode); scancode 711 drivers/media/rc/rc-main.c .scancode = dev->last_scancode, .rc_proto = dev->last_protocol, scancode 746 drivers/media/rc/rc-main.c u32 scancode, u32 keycode, u8 toggle) scancode 750 drivers/media/rc/rc-main.c dev->last_scancode != scancode || scancode 753 drivers/media/rc/rc-main.c .scancode = scancode, .rc_proto = protocol, scancode 764 drivers/media/rc/rc-main.c input_event(dev->input_dev, EV_MSC, MSC_SCAN, scancode); scancode 767 drivers/media/rc/rc-main.c dev->last_scancode = scancode; scancode 776 drivers/media/rc/rc-main.c dev->device_name, keycode, protocol, scancode); scancode 812 drivers/media/rc/rc-main.c void rc_keydown(struct rc_dev *dev, enum rc_proto protocol, u32 scancode, scancode 816 drivers/media/rc/rc-main.c u32 keycode = rc_g_keycode_from_table(dev, scancode); scancode 819 drivers/media/rc/rc-main.c ir_do_keydown(dev, protocol, scancode, keycode, toggle); scancode 843 drivers/media/rc/rc-main.c u32 scancode, u8 toggle) scancode 846 drivers/media/rc/rc-main.c u32 keycode = rc_g_keycode_from_table(dev, scancode); scancode 849 drivers/media/rc/rc-main.c ir_do_keydown(dev, protocol, scancode, keycode, toggle); scancode 860 drivers/media/rc/rc-main.c bool rc_validate_scancode(enum rc_proto proto, u32 scancode) scancode 868 drivers/media/rc/rc-main.c if ((((scancode >> 16) ^ ~(scancode >> 8)) & 0xff) == 0) scancode 877 drivers/media/rc/rc-main.c if ((((scancode >> 8) ^ ~scancode) & 0xff) == 0) scancode 885 drivers/media/rc/rc-main.c if ((scancode & 0xffff0000) != 0x800f0000) scancode 889 drivers/media/rc/rc-main.c if ((scancode & 0xffff0000) == 0x800f0000) scancode 53 drivers/media/rc/zx-irdec.c u32 rawcode, scancode; scancode 71 drivers/media/rc/zx-irdec.c scancode = ir_nec_bytes_to_scancode(address, not_address, scancode 74 drivers/media/rc/zx-irdec.c rc_keydown(irdec->rcd, rc_proto, scancode, 0); scancode 21 drivers/media/usb/cx231xx/cx231xx-input.c u8 cmd, scancode; scancode 39 drivers/media/usb/cx231xx/cx231xx-input.c scancode = bitrev8(cmd); scancode 41 drivers/media/usb/cx231xx/cx231xx-input.c dev_dbg(&ir->rc->dev, "cmd %02x, scan = %02x\n", cmd, scancode); scancode 44 drivers/media/usb/cx231xx/cx231xx-input.c *pscancode = scancode; scancode 179 drivers/media/usb/dvb-usb-v2/dvbsky.c u32 code = 0xffff, scancode; scancode 193 drivers/media/usb/dvb-usb-v2/dvbsky.c scancode = rc5_system << 8 | rc5_command; scancode 194 drivers/media/usb/dvb-usb-v2/dvbsky.c rc_keydown(d->rc_dev, RC_PROTO_RC5, scancode, toggle); scancode 519 drivers/media/usb/dvb-usb/dib0700_devices.c u32 scancode; scancode 560 drivers/media/usb/dvb-usb/dib0700_devices.c scancode = RC_SCANCODE_NEC(st->buf[3 - 2], st->buf[3 - 3]); scancode 567 drivers/media/usb/dvb-usb/dib0700_devices.c scancode = RC_SCANCODE_RC5(st->buf[3 - 2], st->buf[3 - 3]); scancode 572 drivers/media/usb/dvb-usb/dib0700_devices.c rc_keydown(d->rc_dev, protocol, scancode, toggle); scancode 89 drivers/media/usb/dvb-usb/dtt200u.c u32 scancode; scancode 102 drivers/media/usb/dvb-usb/dtt200u.c scancode = st->data[1]; scancode 105 drivers/media/usb/dvb-usb/dtt200u.c scancode = scancode << 8; scancode 106 drivers/media/usb/dvb-usb/dtt200u.c scancode |= st->data[2]; scancode 109 drivers/media/usb/dvb-usb/dtt200u.c scancode = scancode << 8; scancode 110 drivers/media/usb/dvb-usb/dtt200u.c scancode |= st->data[3]; scancode 114 drivers/media/usb/dvb-usb/dtt200u.c rc_keydown(d->rc_dev, proto, scancode, 0); scancode 18 drivers/media/usb/dvb-usb/dvb-usb-remote.c unsigned int scancode; scancode 23 drivers/media/usb/dvb-usb/dvb-usb-remote.c if (input_scancode_to_scalar(ke, &scancode)) scancode 28 drivers/media/usb/dvb-usb/dvb-usb-remote.c if (keymap[index].scancode == scancode) scancode 60 drivers/media/usb/dvb-usb/dvb-usb-remote.c ke->len = sizeof(keymap[index].scancode); scancode 61 drivers/media/usb/dvb-usb/dvb-usb-remote.c memcpy(&ke->scancode, &keymap[index].scancode, ke->len); scancode 81 drivers/media/usb/dvb-usb/dvb-usb.h return (key->scancode >> 8) & 0xff; scancode 86 drivers/media/usb/dvb-usb/dvb-usb.h return key->scancode & 0xff; scancode 91 drivers/media/usb/dvb-usb/dvb-usb.h return key->scancode & 0xffff; scancode 56 drivers/media/usb/em28xx/em28xx-input.c u32 scancode; scancode 74 drivers/media/usb/em28xx/em28xx-input.c u32 *scancode); scancode 83 drivers/media/usb/em28xx/em28xx-input.c enum rc_proto *protocol, u32 *scancode) scancode 109 drivers/media/usb/em28xx/em28xx-input.c *scancode = b; scancode 114 drivers/media/usb/em28xx/em28xx-input.c enum rc_proto *protocol, u32 *scancode) scancode 139 drivers/media/usb/em28xx/em28xx-input.c *scancode = (bitrev8(buf[1]) & 0x1f) << 8 | bitrev8(buf[0]) >> 2; scancode 145 drivers/media/usb/em28xx/em28xx-input.c u32 *scancode) scancode 158 drivers/media/usb/em28xx/em28xx-input.c *scancode = buf[2] & 0x3f; scancode 164 drivers/media/usb/em28xx/em28xx-input.c u32 *scancode) scancode 195 drivers/media/usb/em28xx/em28xx-input.c *scancode = key; scancode 230 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = RC_SCANCODE_RC5(msg[1], msg[2]); scancode 235 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = RC_SCANCODE_NEC(msg[1], msg[2]); scancode 240 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = msg[1] << 8 | msg[2]; scancode 276 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = RC_SCANCODE_RC5(msg[1], msg[2]); scancode 280 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = ir_nec_bytes_to_scancode(msg[1], msg[2], msg[3], msg[4], scancode 286 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = RC_SCANCODE_RC6_0(msg[1], msg[2]); scancode 291 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = (msg[1] << 24) | (msg[2] << 16) | scancode 305 drivers/media/usb/em28xx/em28xx-input.c static u32 scancode; scancode 309 drivers/media/usb/em28xx/em28xx-input.c rc = ir->get_key_i2c(ir->i2c_client, &protocol, &scancode); scancode 317 drivers/media/usb/em28xx/em28xx-input.c __func__, protocol, scancode); scancode 318 drivers/media/usb/em28xx/em28xx-input.c rc_keydown(ir->rc, protocol, scancode, 0); scancode 338 drivers/media/usb/em28xx/em28xx-input.c poll_result.scancode); scancode 342 drivers/media/usb/em28xx/em28xx-input.c poll_result.scancode, scancode 347 drivers/media/usb/em28xx/em28xx-input.c poll_result.scancode & 0xff, scancode 156 drivers/media/usb/tm6000/tm6000-input.c u32 scancode; scancode 167 drivers/media/usb/tm6000/tm6000-input.c scancode = RC_SCANCODE_RC5(device, command); scancode 171 drivers/media/usb/tm6000/tm6000-input.c scancode = RC_SCANCODE_NEC(device, command); scancode 175 drivers/media/usb/tm6000/tm6000-input.c scancode = RC_SCANCODE_OTHER(device << 8 | command); scancode 180 drivers/media/usb/tm6000/tm6000-input.c __func__, protocol, scancode); scancode 181 drivers/media/usb/tm6000/tm6000-input.c rc_keydown(ir->rc, protocol, scancode, 0); scancode 1714 drivers/platform/x86/acer-wmi.c u32 scancode; scancode 1751 drivers/platform/x86/acer-wmi.c scancode = return_value.key_num; scancode 1766 drivers/platform/x86/acer-wmi.c scancode = (device_state & ACER_WMID3_GDS_TOUCHPAD) ? scancode 1769 drivers/platform/x86/acer-wmi.c sparse_keymap_report_event(acer_wmi_input_dev, scancode, 1, true); scancode 88 drivers/platform/x86/dell-wmi-aio.c unsigned int scancode = 0; scancode 93 drivers/platform/x86/dell-wmi-aio.c scancode = obj->integer.value; scancode 95 drivers/platform/x86/dell-wmi-aio.c scancode, 1, true); scancode 102 drivers/platform/x86/dell-wmi-aio.c scancode = event->event[0]; scancode 108 drivers/platform/x86/dell-wmi-aio.c scancode = obj->buffer.pointer[0]; scancode 110 drivers/platform/x86/dell-wmi-aio.c if (scancode) scancode 113 drivers/platform/x86/dell-wmi-aio.c scancode, 1, true); scancode 182 drivers/platform/x86/dell-wmi.c u16 scancode; scancode 430 drivers/platform/x86/dell-wmi.c static bool have_scancode(u32 scancode, const struct key_entry *keymap, int len) scancode 435 drivers/platform/x86/dell-wmi.c if (keymap[i].code == scancode) scancode 494 drivers/platform/x86/dell-wmi.c bios_entry->scancode, bios_entry->keycode); scancode 502 drivers/platform/x86/dell-wmi.c keymap[pos].code = bios_entry->scancode; scancode 861 drivers/platform/x86/fujitsu-laptop.c static void acpi_fujitsu_laptop_press(struct acpi_device *device, int scancode) scancode 866 drivers/platform/x86/fujitsu-laptop.c ret = kfifo_in_locked(&priv->fifo, (unsigned char *)&scancode, scancode 867 drivers/platform/x86/fujitsu-laptop.c sizeof(scancode), &priv->fifo_lock); scancode 868 drivers/platform/x86/fujitsu-laptop.c if (ret != sizeof(scancode)) { scancode 870 drivers/platform/x86/fujitsu-laptop.c scancode); scancode 873 drivers/platform/x86/fujitsu-laptop.c sparse_keymap_report_event(priv->input, scancode, 1, false); scancode 875 drivers/platform/x86/fujitsu-laptop.c scancode); scancode 881 drivers/platform/x86/fujitsu-laptop.c int scancode, ret; scancode 884 drivers/platform/x86/fujitsu-laptop.c ret = kfifo_out_locked(&priv->fifo, (unsigned char *)&scancode, scancode 885 drivers/platform/x86/fujitsu-laptop.c sizeof(scancode), &priv->fifo_lock); scancode 886 drivers/platform/x86/fujitsu-laptop.c if (ret != sizeof(scancode)) scancode 888 drivers/platform/x86/fujitsu-laptop.c sparse_keymap_report_event(priv->input, scancode, 0, false); scancode 890 drivers/platform/x86/fujitsu-laptop.c "Pop scancode from ringbuffer [0x%x]\n", scancode); scancode 898 drivers/platform/x86/fujitsu-laptop.c int scancode, i = 0; scancode 915 drivers/platform/x86/fujitsu-laptop.c scancode = irb & 0x4ff; scancode 916 drivers/platform/x86/fujitsu-laptop.c if (sparse_keymap_entry_from_scancode(priv->input, scancode)) scancode 917 drivers/platform/x86/fujitsu-laptop.c acpi_fujitsu_laptop_press(device, scancode); scancode 918 drivers/platform/x86/fujitsu-laptop.c else if (scancode == 0) scancode 717 drivers/platform/x86/ideapad-laptop.c unsigned long scancode) scancode 719 drivers/platform/x86/ideapad-laptop.c sparse_keymap_report_event(priv->inputdev, scancode, 1, true); scancode 379 drivers/platform/x86/sony-laptop.c int scancode = -1; scancode 413 drivers/platform/x86/sony-laptop.c if ((scancode = sony_laptop_input_index[event]) != -1) { scancode 414 drivers/platform/x86/sony-laptop.c kp.key = sony_laptop_input_keycode_map[scancode]; scancode 424 drivers/platform/x86/sony-laptop.c if (scancode != -1) scancode 425 drivers/platform/x86/sony-laptop.c input_event(kp.dev, EV_MSC, MSC_SCAN, scancode); scancode 2054 drivers/platform/x86/thinkpad_acpi.c static void hotkey_driver_event(const unsigned int scancode); scancode 2387 drivers/platform/x86/thinkpad_acpi.c static void tpacpi_input_send_key(const unsigned int scancode) scancode 2389 drivers/platform/x86/thinkpad_acpi.c const unsigned int keycode = hotkey_keycode_map[scancode]; scancode 2394 drivers/platform/x86/thinkpad_acpi.c input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode); scancode 2398 drivers/platform/x86/thinkpad_acpi.c input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode); scancode 2407 drivers/platform/x86/thinkpad_acpi.c static void tpacpi_input_send_key_masked(const unsigned int scancode) scancode 2409 drivers/platform/x86/thinkpad_acpi.c hotkey_driver_event(scancode); scancode 2410 drivers/platform/x86/thinkpad_acpi.c if (hotkey_user_mask & (1 << scancode)) scancode 2411 drivers/platform/x86/thinkpad_acpi.c tpacpi_input_send_key(scancode); scancode 2418 drivers/platform/x86/thinkpad_acpi.c static void tpacpi_hotkey_send_key(unsigned int scancode) scancode 2420 drivers/platform/x86/thinkpad_acpi.c tpacpi_input_send_key_masked(scancode); scancode 3184 drivers/platform/x86/thinkpad_acpi.c static void __init hotkey_unmap(const unsigned int scancode) scancode 3186 drivers/platform/x86/thinkpad_acpi.c if (hotkey_keycode_map[scancode] != KEY_RESERVED) { scancode 3187 drivers/platform/x86/thinkpad_acpi.c clear_bit(hotkey_keycode_map[scancode], scancode 3189 drivers/platform/x86/thinkpad_acpi.c hotkey_keycode_map[scancode] = KEY_RESERVED; scancode 3821 drivers/platform/x86/thinkpad_acpi.c static bool adaptive_keyboard_hotkey_notify_hotkey(unsigned int scancode) scancode 3827 drivers/platform/x86/thinkpad_acpi.c switch (scancode) { scancode 3858 drivers/platform/x86/thinkpad_acpi.c if (scancode < FIRST_ADAPTIVE_KEY || scancode 3859 drivers/platform/x86/thinkpad_acpi.c scancode >= FIRST_ADAPTIVE_KEY + scancode 3863 drivers/platform/x86/thinkpad_acpi.c scancode); scancode 3866 drivers/platform/x86/thinkpad_acpi.c keycode = hotkey_keycode_map[scancode - FIRST_ADAPTIVE_KEY + scancode 3888 drivers/platform/x86/thinkpad_acpi.c unsigned int scancode = hkey & 0xfff; scancode 3899 drivers/platform/x86/thinkpad_acpi.c if (scancode > 0 && scancode 3900 drivers/platform/x86/thinkpad_acpi.c scancode <= TP_ACPI_HOTKEYSCAN_ADAPTIVE_START) { scancode 3902 drivers/platform/x86/thinkpad_acpi.c scancode--; scancode 3903 drivers/platform/x86/thinkpad_acpi.c if (!(hotkey_source_mask & (1 << scancode))) { scancode 3904 drivers/platform/x86/thinkpad_acpi.c tpacpi_input_send_key_masked(scancode); scancode 3914 drivers/platform/x86/thinkpad_acpi.c return adaptive_keyboard_hotkey_notify_hotkey(scancode); scancode 3921 drivers/platform/x86/thinkpad_acpi.c scancode -= (0x300 - TP_ACPI_HOTKEYSCAN_EXTENDED_START); scancode 3922 drivers/platform/x86/thinkpad_acpi.c if (scancode >= TP_ACPI_HOTKEYSCAN_EXTENDED_START && scancode 3923 drivers/platform/x86/thinkpad_acpi.c scancode < TPACPI_HOTKEY_MAP_LEN) { scancode 3924 drivers/platform/x86/thinkpad_acpi.c tpacpi_input_send_key(scancode); scancode 9864 drivers/platform/x86/thinkpad_acpi.c static void hotkey_driver_event(const unsigned int scancode) scancode 9866 drivers/platform/x86/thinkpad_acpi.c tpacpi_driver_event(TP_HKEY_EV_HOTKEY_BASE + scancode); scancode 2714 drivers/platform/x86/toshiba_acpi.c int scancode) scancode 2716 drivers/platform/x86/toshiba_acpi.c if (scancode == 0x100) scancode 2720 drivers/platform/x86/toshiba_acpi.c if (scancode & 0x80) scancode 2723 drivers/platform/x86/toshiba_acpi.c if (!sparse_keymap_report_event(dev->hotkey_dev, scancode, 1, true)) scancode 2724 drivers/platform/x86/toshiba_acpi.c pr_info("Unknown key %x\n", scancode); scancode 2730 drivers/platform/x86/toshiba_acpi.c int scancode = toshiba_acpi_query_hotkey(dev); scancode 2732 drivers/platform/x86/toshiba_acpi.c if (scancode < 0) { scancode 2734 drivers/platform/x86/toshiba_acpi.c } else if (scancode != 0) { scancode 2735 drivers/platform/x86/toshiba_acpi.c toshiba_acpi_report_hotkey(dev, scancode); scancode 2737 drivers/platform/x86/toshiba_acpi.c dev->last_key_event = scancode; scancode 575 drivers/staging/unisys/visorinput/visorinput.c static int scancode_to_keycode(int scancode) scancode 577 drivers/staging/unisys/visorinput/visorinput.c if (scancode > 0xff) scancode 578 drivers/staging/unisys/visorinput/visorinput.c return visorkbd_ext_keycode[(scancode >> 8) & 0xff]; scancode 580 drivers/staging/unisys/visorinput/visorinput.c return visorkbd_keycode[scancode]; scancode 605 drivers/staging/unisys/visorinput/visorinput.c int scancode, keycode; scancode 617 drivers/staging/unisys/visorinput/visorinput.c scancode = r.activity.arg1; scancode 618 drivers/staging/unisys/visorinput/visorinput.c keycode = scancode_to_keycode(scancode); scancode 184 drivers/tty/vt/keyboard.c static int getkeycode(unsigned int scancode) scancode 189 drivers/tty/vt/keyboard.c .len = sizeof(scancode), scancode 195 drivers/tty/vt/keyboard.c memcpy(d.ke.scancode, &scancode, sizeof(scancode)); scancode 211 drivers/tty/vt/keyboard.c static int setkeycode(unsigned int scancode, unsigned int keycode) scancode 216 drivers/tty/vt/keyboard.c .len = sizeof(scancode), scancode 222 drivers/tty/vt/keyboard.c memcpy(d.ke.scancode, &scancode, sizeof(scancode)); scancode 1871 drivers/tty/vt/keyboard.c kc = getkeycode(tmp.scancode); scancode 1878 drivers/tty/vt/keyboard.c kc = setkeycode(tmp.scancode, tmp.keycode); scancode 493 include/linux/input.h unsigned int *scancode); scancode 25 include/media/i2c/ir-kbd-i2c.h u32 *scancode, u8 *toggle); scancode 56 include/media/i2c/ir-kbd-i2c.h u32 *scancode, u8 *toggle); scancode 287 include/media/rc-core.h void rc_keydown(struct rc_dev *dev, enum rc_proto protocol, u32 scancode, scancode 290 include/media/rc-core.h u32 scancode, u8 toggle); scancode 292 include/media/rc-core.h u32 rc_g_keycode_from_table(struct rc_dev *dev, u32 scancode); scancode 326 include/media/rc-core.h int ir_raw_encode_scancode(enum rc_proto protocol, u32 scancode, scancode 359 include/media/rc-core.h u32 scancode; scancode 365 include/media/rc-core.h scancode = not_address << 24 | scancode 372 include/media/rc-core.h scancode = address << 16 | scancode 378 include/media/rc-core.h scancode = address << 8 | command; scancode 382 include/media/rc-core.h return scancode; scancode 92 include/media/rc-map.h u32 scancode; scancode 120 include/uapi/linux/input.h __u8 scancode[32]; scancode 141 include/uapi/linux/kd.h unsigned int scancode, keycode; scancode 160 include/uapi/linux/lirc.h __u64 scancode; scancode 37 kernel/debug/kdb/kdb_keyboard.c int scancode, scanstatus; scancode 56 kernel/debug/kdb/kdb_keyboard.c scancode = inb(KBD_DATA_REG); scancode 72 kernel/debug/kdb/kdb_keyboard.c if (((scancode&0x7f) == 0x2a) || ((scancode&0x7f) == 0x36)) { scancode 76 kernel/debug/kdb/kdb_keyboard.c if ((scancode & 0x80) == 0) scancode 83 kernel/debug/kdb/kdb_keyboard.c if ((scancode&0x7f) == 0x1d) { scancode 87 kernel/debug/kdb/kdb_keyboard.c if ((scancode & 0x80) == 0) scancode 94 kernel/debug/kdb/kdb_keyboard.c if ((scancode & 0x80) != 0) { scancode 95 kernel/debug/kdb/kdb_keyboard.c if (scancode == 0x9c) scancode 100 kernel/debug/kdb/kdb_keyboard.c scancode &= 0x7f; scancode 106 kernel/debug/kdb/kdb_keyboard.c if (scancode == 0x3a) { scancode 118 kernel/debug/kdb/kdb_keyboard.c if (scancode == 0x0e) { scancode 126 kernel/debug/kdb/kdb_keyboard.c switch (scancode) { scancode 145 kernel/debug/kdb/kdb_keyboard.c if (scancode == 0xe0) scancode 153 kernel/debug/kdb/kdb_keyboard.c if (scancode == 0x73) scancode 154 kernel/debug/kdb/kdb_keyboard.c scancode = 0x59; scancode 155 kernel/debug/kdb/kdb_keyboard.c else if (scancode == 0x7d) scancode 156 kernel/debug/kdb/kdb_keyboard.c scancode = 0x7c; scancode 159 kernel/debug/kdb/kdb_keyboard.c keychar = plain_map[scancode]; scancode 161 kernel/debug/kdb/kdb_keyboard.c keychar = key_maps[1][scancode]; scancode 163 kernel/debug/kdb/kdb_keyboard.c keychar = key_maps[4][scancode]; scancode 166 kernel/debug/kdb/kdb_keyboard.c kdb_printf("Unknown state/scancode (%d)\n", scancode); scancode 185 kernel/debug/kdb/kdb_keyboard.c if (scancode == 0x1c) { scancode 201 kernel/debug/kdb/kdb_keyboard.c int scancode, scanstatus; scancode 233 kernel/debug/kdb/kdb_keyboard.c scancode = inb(KBD_DATA_REG); scancode 258 kernel/debug/kdb/kdb_keyboard.c if (scancode != 0x9c) scancode 160 tools/include/uapi/linux/lirc.h __u64 scancode; scancode 160 tools/testing/selftests/bpf/bpf_helpers.h unsigned long long scancode, unsigned int toggle) = scancode 134 tools/testing/selftests/ir/ir_loopback.c unsigned int scancode = rand() & protocols[i].mask; scancode 138 tools/testing/selftests/ir/ir_loopback.c scancode |= 0x800f0000; scancode 141 tools/testing/selftests/ir/ir_loopback.c (((scancode >> 16) ^ ~(scancode >> 8)) & 0xff) == 0) scancode 145 tools/testing/selftests/ir/ir_loopback.c (((scancode >> 8) ^ ~scancode) & 0xff) == 0) scancode 149 tools/testing/selftests/ir/ir_loopback.c (scancode & 0x000c0000) != 0x000c0000 && scancode 150 tools/testing/selftests/ir/ir_loopback.c scancode & 0x00008000) scancode 155 tools/testing/selftests/ir/ir_loopback.c .scancode = scancode scancode 158 tools/testing/selftests/ir/ir_loopback.c printf("Testing scancode:%x\n", scancode); scancode 190 tools/testing/selftests/ir/ir_loopback.c else if (lsc.scancode != lsc2.scancode) scancode 192 tools/testing/selftests/ir/ir_loopback.c lsc2.scancode);