Home
last modified time | relevance | path

Searched refs:scancode (Results 1 – 25 of 101) sorted by relevance

12345

/Linux-v4.19/kernel/debug/kdb/
Dkdb_keyboard.c37 int scancode, scanstatus; in kdb_get_kbd_char() local
56 scancode = inb(KBD_DATA_REG); in kdb_get_kbd_char()
72 if (((scancode&0x7f) == 0x2a) || ((scancode&0x7f) == 0x36)) { in kdb_get_kbd_char()
76 if ((scancode & 0x80) == 0) in kdb_get_kbd_char()
83 if ((scancode&0x7f) == 0x1d) { in kdb_get_kbd_char()
87 if ((scancode & 0x80) == 0) in kdb_get_kbd_char()
94 if ((scancode & 0x80) != 0) { in kdb_get_kbd_char()
95 if (scancode == 0x9c) in kdb_get_kbd_char()
100 scancode &= 0x7f; in kdb_get_kbd_char()
106 if (scancode == 0x3a) { in kdb_get_kbd_char()
[all …]
/Linux-v4.19/arch/m68k/atari/
Datakeyb.c137 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()
172 scancode = acia.key_data; /* get it or reset the ACIA, I'll get it! */ 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()
[all …]
/Linux-v4.19/Documentation/media/uapi/rc/
Dkeytable.c.rst39 printf("scancode 0x%04x = %s (0x%02x)\\n", codes[0], p->name, codes[1]);
45 printf("scancode %d = '%c' (0x%02x)\\n", codes[0], codes[1], codes[1]);
47 printf("scancode %d = 0x%02x\\n", codes[0], codes[1]);
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 =:");
[all …]
Dlirc-dev-intro.rst39 .. _lirc-mode-scancode:
40 .. _lirc-scancode-flag-toggle:
41 .. _lirc-scancode-flag-repeat:
48 the desired scancode set in the ``scancode`` member, :c:type:`rc_proto`
53 with ``scancode`` set to the received scancode and the IR protocol
54 :c:type:`rc_proto`. If the scancode maps to a valid key code, this is set
63 repeating the entire scancode, the remote sends a shorter message with
64 no scancode, which just means button is held, a "repeat". When this is
65 received, the ``LIRC_SCANCODE_FLAG_REPEAT`` is set and the scancode and
74 (in ``CLOCK_MONOTONIC``) when the scancode was decoded.
/Linux-v4.19/drivers/media/rc/
Dir-rc5-decoder.c44 u32 scancode; in ir_rc5_decode() local
124 scancode = system << 16 | command << 8 | xdata; in ir_rc5_decode()
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()
160 rc_keydown(dev, protocol, scancode, toggle); in ir_rc5_decode()
209 static int ir_rc5_encode(enum rc_proto protocol, u32 scancode, in ir_rc5_encode() argument
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()
[all …]
Dir-nec-decoder.c42 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()
176 static u32 ir_nec_scancode_to_raw(enum rc_proto protocol, u32 scancode) in ir_nec_scancode_to_raw() argument
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()
[all …]
Dir-sony-decoder.c46 u32 scancode; in ir_sony_decode() local
156 scancode = device << 16 | subdevice << 8 | function; in ir_sony_decode()
158 scancode); in ir_sony_decode()
159 rc_keydown(dev, protocol, scancode, 0); in ir_sony_decode()
195 static int ir_sony_encode(enum rc_proto protocol, u32 scancode, in ir_sony_encode() argument
203 raw = (scancode & 0x7f) | ((scancode & 0x1f0000) >> 9); in ir_sony_encode()
206 raw = (scancode & 0x7f) | ((scancode & 0xff0000) >> 9); in ir_sony_encode()
209 raw = (scancode & 0x7f) | ((scancode & 0x1f0000) >> 9) | in ir_sony_encode()
210 ((scancode & 0xff00) << 4); in ir_sony_encode()
Dir-mce_kbd-decoder.c155 static void ir_mce_kbd_process_keyboard_data(struct rc_dev *dev, u32 scancode) in ir_mce_kbd_process_keyboard_data() argument
158 u8 keydata1 = (scancode >> 8) & 0xff; in ir_mce_kbd_process_keyboard_data()
159 u8 keydata2 = (scancode >> 16) & 0xff; in ir_mce_kbd_process_keyboard_data()
160 u8 shiftmask = scancode & 0xff; in ir_mce_kbd_process_keyboard_data()
187 static void ir_mce_kbd_process_mouse_data(struct rc_dev *dev, u32 scancode) in ir_mce_kbd_process_mouse_data() argument
191 u8 xdata = (scancode >> 7) & 0x7f; in ir_mce_kbd_process_mouse_data()
192 u8 ydata = (scancode >> 14) & 0x7f; in ir_mce_kbd_process_mouse_data()
195 bool right = scancode & 0x40; in ir_mce_kbd_process_mouse_data()
196 bool left = scancode & 0x20; in ir_mce_kbd_process_mouse_data()
228 u32 scancode; in ir_mce_kbd_decode() local
[all …]
Drc-main.c282 index, rc_map->scan[index].scancode); in ir_update_mapping()
290 rc_map->scan[index].scancode, new_keycode); in ir_update_mapping()
330 unsigned int scancode, in ir_establish_scancode() argument
344 scancode &= dev->scancode_mask; in ir_establish_scancode()
348 if (rc_map->scan[i].scancode == scancode) in ir_establish_scancode()
352 if (rc_map->scan[i].scancode >= scancode) in ir_establish_scancode()
366 rc_map->scan[i].scancode = scancode; in ir_establish_scancode()
390 unsigned int scancode; in ir_setkeycode() local
403 retval = input_scancode_to_scalar(ke, &scancode); in ir_setkeycode()
407 index = ir_establish_scancode(rdev, rc_map, scancode, true); in ir_setkeycode()
[all …]
Dir-sanyo-decoder.c49 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()
Dir-sharp-decoder.c49 u32 msg, echo, address, command, scancode; in ir_sharp_decode() local
161 scancode = address << 8 | command; in ir_sharp_decode()
162 dev_dbg(&dev->dev, "Sharp scancode 0x%04x\n", scancode); in ir_sharp_decode()
164 rc_keydown(dev, RC_PROTO_SHARP, scancode, 0); in ir_sharp_decode()
198 static int ir_sharp_encode(enum rc_proto protocol, u32 scancode, in ir_sharp_encode() argument
205 raw = (((bitrev8(scancode >> 8) >> 3) << 8) & 0x1f00) | in ir_sharp_encode()
206 bitrev8(scancode); in ir_sharp_encode()
214 raw = (((bitrev8(scancode >> 8) >> 3) << 8) & 0x1f00) | in ir_sharp_encode()
215 bitrev8(~scancode); in ir_sharp_encode()
Dir-rc6-decoder.c89 u32 scancode; in ir_rc6_decode() local
220 scancode = data->body; in ir_rc6_decode()
224 scancode, toggle); in ir_rc6_decode()
234 scancode = data->body; in ir_rc6_decode()
245 if ((scancode & RC6_6A_LCC_MASK) == RC6_6A_MCE_CC) { in ir_rc6_decode()
247 toggle = !!(scancode & RC6_6A_MCE_TOGGLE_MASK); in ir_rc6_decode()
248 scancode &= ~RC6_6A_MCE_TOGGLE_MASK; in ir_rc6_decode()
260 protocol, scancode, toggle); in ir_rc6_decode()
267 rc_keydown(dev, protocol, scancode, toggle); in ir_rc6_decode()
310 static int ir_rc6_encode(enum rc_proto protocol, u32 scancode, in ir_rc6_encode() argument
[all …]
Dir-jvc-decoder.c136 u32 scancode; in ir_jvc_decode() local
137 scancode = (bitrev8((data->bits >> 8) & 0xff) << 8) | in ir_jvc_decode()
139 dev_dbg(&dev->dev, "JVC scancode 0x%04x\n", scancode); in ir_jvc_decode()
140 rc_keydown(dev, RC_PROTO_JVC, scancode, data->toggle); in ir_jvc_decode()
196 static int ir_jvc_encode(enum rc_proto protocol, u32 scancode, in ir_jvc_encode() argument
201 u32 raw = (bitrev8((scancode >> 8) & 0xff) << 8) | in ir_jvc_encode()
202 (bitrev8((scancode >> 0) & 0xff) << 0); in ir_jvc_encode()
/Linux-v4.19/drivers/input/keyboard/
Damikbd.c184 unsigned char scancode, down; in amikbd_interrupt() local
186 scancode = ~ciaa.sdr; /* get and invert scancode (keyboard is active low) */ in amikbd_interrupt()
191 down = !(scancode & 1); /* lowest bit is release bit */ in amikbd_interrupt()
192 scancode >>= 1; in amikbd_interrupt()
194 if (scancode < 0x78) { /* scancodes < 0x78 are keys */ in amikbd_interrupt()
195 if (scancode == 98) { /* CapsLock is a toggle switch key on Amiga */ in amikbd_interrupt()
196 input_report_key(dev, scancode, 1); in amikbd_interrupt()
197 input_report_key(dev, scancode, 0); in amikbd_interrupt()
199 input_report_key(dev, scancode, down); in amikbd_interrupt()
204 printk(amikbd_messages[scancode - 0x78]); in amikbd_interrupt()
Datakbd.c179 static void atakbd_interrupt(unsigned char scancode, char down) in atakbd_interrupt() argument
182 if (scancode < 0x73) { /* scancodes < 0xf3 are keys */ in atakbd_interrupt()
186 scancode = atakbd_keycode[scancode]; in atakbd_interrupt()
188 input_report_key(atakbd_dev, scancode, down); in atakbd_interrupt()
191 printk(KERN_INFO "atakbd: unhandled scancode %x\n", scancode); in atakbd_interrupt()
/Linux-v4.19/drivers/media/usb/em28xx/
Dem28xx-input.c55 u32 scancode; member
74 u32 *scancode);
83 enum rc_proto *protocol, u32 *scancode) in em28xx_get_key_terratec() argument
109 *scancode = b; in em28xx_get_key_terratec()
114 enum rc_proto *protocol, u32 *scancode) in em28xx_get_key_em_haup() argument
139 *scancode = (bitrev8(buf[1]) & 0x1f) << 8 | bitrev8(buf[0]) >> 2; in em28xx_get_key_em_haup()
145 u32 *scancode) in em28xx_get_key_pinnacle_usb_grey() argument
158 *scancode = buf[2] & 0x3f; in em28xx_get_key_pinnacle_usb_grey()
164 u32 *scancode) in em28xx_get_key_winfast_usbii_deluxe() argument
195 *scancode = key; in em28xx_get_key_winfast_usbii_deluxe()
[all …]
/Linux-v4.19/drivers/platform/x86/
Ddell-wmi-aio.c101 unsigned int scancode = 0; in dell_wmi_aio_notify() local
106 scancode = obj->integer.value; in dell_wmi_aio_notify()
108 scancode, 1, true); in dell_wmi_aio_notify()
115 scancode = event->event[0]; in dell_wmi_aio_notify()
121 scancode = obj->buffer.pointer[0]; in dell_wmi_aio_notify()
123 if (scancode) in dell_wmi_aio_notify()
126 scancode, 1, true); in dell_wmi_aio_notify()
Dfujitsu-laptop.c874 static void acpi_fujitsu_laptop_press(struct acpi_device *device, int scancode) in acpi_fujitsu_laptop_press() argument
879 ret = kfifo_in_locked(&priv->fifo, (unsigned char *)&scancode, in acpi_fujitsu_laptop_press()
880 sizeof(scancode), &priv->fifo_lock); in acpi_fujitsu_laptop_press()
881 if (ret != sizeof(scancode)) { in acpi_fujitsu_laptop_press()
883 scancode); in acpi_fujitsu_laptop_press()
886 sparse_keymap_report_event(priv->input, scancode, 1, false); in acpi_fujitsu_laptop_press()
888 scancode); in acpi_fujitsu_laptop_press()
894 int scancode, ret; in acpi_fujitsu_laptop_release() local
897 ret = kfifo_out_locked(&priv->fifo, (unsigned char *)&scancode, in acpi_fujitsu_laptop_release()
898 sizeof(scancode), &priv->fifo_lock); in acpi_fujitsu_laptop_release()
[all …]
/Linux-v4.19/drivers/input/serio/
Dpcips2.c64 unsigned char status, scancode; in pcips2_interrupt() local
74 scancode = inb(ps2if->base + PS2_DATA); in pcips2_interrupt()
75 if (status == 0xff && scancode == 0xff) in pcips2_interrupt()
80 if (hweight8(scancode) & 1) in pcips2_interrupt()
83 serio_interrupt(ps2if->io, scancode, flag); in pcips2_interrupt()
90 unsigned char status, scancode; in pcips2_flush_input() local
96 scancode = inb(ps2if->base + PS2_DATA); in pcips2_flush_input()
97 if (status == 0xff && scancode == 0xff) in pcips2_flush_input()
/Linux-v4.19/include/media/
Drc-core.h295 void rc_keydown(struct rc_dev *dev, enum rc_proto protocol, u32 scancode,
298 u32 scancode, u8 toggle);
300 u32 rc_g_keycode_from_table(struct rc_dev *dev, u32 scancode);
341 int ir_raw_encode_scancode(enum rc_proto protocol, u32 scancode,
376 u32 scancode; in ir_nec_bytes_to_scancode() local
382 scancode = not_address << 24 | in ir_nec_bytes_to_scancode()
389 scancode = address << 16 | in ir_nec_bytes_to_scancode()
395 scancode = address << 8 | command; in ir_nec_bytes_to_scancode()
399 return scancode; in ir_nec_bytes_to_scancode()
/Linux-v4.19/drivers/media/i2c/
Dir-kbd-i2c.c70 u32 *scancode, u8 *ptoggle, int size) in get_key_haup_common() argument
111 *scancode = RC_SCANCODE_RC5(dev, code); in get_key_haup_common()
135 *scancode = RC_SCANCODE_RC6_6A(vendor, dev, code); in get_key_haup_common()
144 u32 *scancode, u8 *toggle) in get_key_haup() argument
146 return get_key_haup_common(ir, protocol, scancode, toggle, 3); in get_key_haup()
150 u32 *scancode, u8 *toggle) in get_key_haup_xvr() argument
165 return get_key_haup_common(ir, protocol, scancode, toggle, 6); in get_key_haup_xvr()
169 u32 *scancode, u8 *toggle) in get_key_pixelview() argument
184 *scancode = b; in get_key_pixelview()
190 u32 *scancode, u8 *toggle) in get_key_fusionhdtv() argument
[all …]
/Linux-v4.19/drivers/media/usb/dvb-usb/
Ddtt200u.c92 u32 scancode; in dtt200u_rc_query() local
105 scancode = st->data[1]; in dtt200u_rc_query()
108 scancode = scancode << 8; in dtt200u_rc_query()
109 scancode |= st->data[2]; in dtt200u_rc_query()
112 scancode = scancode << 8; in dtt200u_rc_query()
113 scancode |= st->data[3]; in dtt200u_rc_query()
117 rc_keydown(d->rc_dev, proto, scancode, 0); in dtt200u_rc_query()
/Linux-v4.19/drivers/media/pci/saa7134/
Dsaa7134-input.c116 u32 *scancode, u8 *toggle) in get_key_flydvb_trio() argument
165 *scancode = b; in get_key_flydvb_trio()
172 u32 *scancode, u8 *toggle) in get_key_msi_tvanywhere_plus() argument
216 *scancode = b; in get_key_msi_tvanywhere_plus()
223 u32 *scancode, u8 *toggle) in get_key_kworld_pc150u() argument
268 *scancode = b; in get_key_kworld_pc150u()
274 u32 *scancode, u8 *toggle) in get_key_purpletv() argument
297 *scancode = b; in get_key_purpletv()
303 u32 *scancode, u8 *toggle) in get_key_hvr1110() argument
333 *scancode = RC_SCANCODE_RC5(buf[3] & 0x1f, buf[4] >> 2); in get_key_hvr1110()
[all …]
/Linux-v4.19/drivers/media/usb/cx231xx/
Dcx231xx-input.c21 u8 cmd, scancode; in get_key_isdbt() local
39 scancode = bitrev8(cmd); in get_key_isdbt()
41 dev_dbg(&ir->rc->dev, "cmd %02x, scan = %02x\n", cmd, scancode); in get_key_isdbt()
44 *pscancode = scancode; in get_key_isdbt()
/Linux-v4.19/drivers/media/pci/mantis/
Dmantis_uart.c67 int i, scancode = 0, err = 0; in mantis_uart_read() local
76 scancode = (scancode << 8) | (data & 0x3f); in mantis_uart_read()
88 mantis_input_process(mantis, scancode); in mantis_uart_read()

12345