Home
last modified time | relevance | path

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

123

/drivers/media/rc/
Drc-main.c175 static int scancode_to_u64(const struct input_keymap_entry *ke, u64 *scancode) in scancode_to_u64() argument
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()
324 index, rc_map->scan[index].scancode); in ir_update_mapping()
332 rc_map->scan[index].scancode, new_keycode); in ir_update_mapping()
372 u64 scancode, bool resize) in ir_establish_scancode() argument
385 scancode &= dev->scancode_mask; in ir_establish_scancode()
389 if (rc_map->scan[i].scancode == scancode) in ir_establish_scancode()
[all …]
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-mce_kbd-decoder.c148 static void ir_mce_kbd_process_keyboard_data(struct rc_dev *dev, u32 scancode) in ir_mce_kbd_process_keyboard_data() argument
150 u8 keydata1 = (scancode >> 8) & 0xff; in ir_mce_kbd_process_keyboard_data()
151 u8 keydata2 = (scancode >> 16) & 0xff; in ir_mce_kbd_process_keyboard_data()
152 u8 shiftmask = scancode & 0xff; in ir_mce_kbd_process_keyboard_data()
179 static void ir_mce_kbd_process_mouse_data(struct rc_dev *dev, u32 scancode) in ir_mce_kbd_process_mouse_data() argument
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
[all …]
Dir-sony-decoder.c38 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()
Dir-rc6-decoder.c83 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()
309 static int ir_rc6_encode(enum rc_proto protocol, u32 scancode, in ir_rc6_encode() argument
[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.c43 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()
Dir-rcmm-decoder.c62 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()
Dir-jvc-decoder.c128 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()
Dimon.c1242 static u32 imon_remote_key_lookup(struct imon_context *ictx, u32 scancode) in imon_remote_key_lookup() argument
1249 keycode = rc_g_keycode_from_table(ictx->rdev, scancode); in imon_remote_key_lookup()
1251 ictx->rc_scancode = scancode; in imon_remote_key_lookup()
1255 release = scancode & ~0x4000; in imon_remote_key_lookup()
1266 static u32 imon_mce_key_lookup(struct imon_context *ictx, u32 scancode) in imon_mce_key_lookup() argument
1281 if (scancode & 0x80000000) in imon_mce_key_lookup()
1282 scancode = scancode | MCE_KEY_MASK | MCE_TOGGLE_BIT; in imon_mce_key_lookup()
1284 ictx->rc_scancode = scancode; in imon_mce_key_lookup()
1285 keycode = rc_g_keycode_from_table(ictx->rdev, scancode); in imon_mce_key_lookup()
1392 u32 scancode = KEY_RESERVED; in imon_pad_to_keys() local
[all …]
/drivers/input/keyboard/
Damikbd.c169 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()
Datakbd.c164 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()
/drivers/media/usb/em28xx/
Dem28xx-input.c46 u32 scancode; member
64 u32 *scancode);
73 enum rc_proto *protocol, u32 *scancode) in em28xx_get_key_terratec() argument
99 *scancode = b; in em28xx_get_key_terratec()
104 enum rc_proto *protocol, u32 *scancode) in em28xx_get_key_em_haup() argument
129 *scancode = (bitrev8(buf[1]) & 0x1f) << 8 | bitrev8(buf[0]) >> 2; in em28xx_get_key_em_haup()
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()
[all …]
/drivers/input/serio/
Dpcips2.c61 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()
/drivers/platform/x86/dell/
Ddell-wmi-aio.c88 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()
/drivers/media/i2c/
Dir-kbd-i2c.c60 u32 *scancode, u8 *ptoggle, int size) in get_key_haup_common() argument
101 *scancode = RC_SCANCODE_RC5(dev, code); in get_key_haup_common()
125 *scancode = RC_SCANCODE_RC6_6A(vendor, dev, code); in get_key_haup_common()
134 u32 *scancode, u8 *toggle) in get_key_haup() argument
136 return get_key_haup_common(ir, protocol, scancode, toggle, 3); in get_key_haup()
140 u32 *scancode, u8 *toggle) in get_key_haup_xvr() argument
155 return get_key_haup_common(ir, protocol, scancode, toggle, 6); in get_key_haup_xvr()
159 u32 *scancode, u8 *toggle) in get_key_pixelview() argument
174 *scancode = b; in get_key_pixelview()
180 u32 *scancode, u8 *toggle) in get_key_fusionhdtv() argument
[all …]
/drivers/media/pci/saa7134/
Dsaa7134-input.c106 u32 *scancode, u8 *toggle) in get_key_flydvb_trio() argument
155 *scancode = b; in get_key_flydvb_trio()
162 u32 *scancode, u8 *toggle) in get_key_msi_tvanywhere_plus() argument
206 *scancode = b; in get_key_msi_tvanywhere_plus()
213 u32 *scancode, u8 *toggle) in get_key_kworld_pc150u() argument
258 *scancode = b; in get_key_kworld_pc150u()
264 u32 *scancode, u8 *toggle) in get_key_purpletv() argument
287 *scancode = b; in get_key_purpletv()
293 u32 *scancode, u8 *toggle) in get_key_beholdm6xx() argument
324 *scancode = RC_SCANCODE_NECX(data[11] << 8 | data[10], data[9]); in get_key_beholdm6xx()
[all …]
/drivers/media/usb/dvb-usb/
Ddtt200u.c89 u32 scancode; in dtt200u_rc_query() local
102 scancode = st->data[1]; in dtt200u_rc_query()
105 scancode = scancode << 8; in dtt200u_rc_query()
106 scancode |= st->data[2]; in dtt200u_rc_query()
109 scancode = scancode << 8; in dtt200u_rc_query()
110 scancode |= st->data[3]; in dtt200u_rc_query()
114 rc_keydown(d->rc_dev, proto, scancode, 0); in dtt200u_rc_query()
/drivers/platform/x86/
Dfujitsu-laptop.c859 static void acpi_fujitsu_laptop_press(struct acpi_device *device, int scancode) in acpi_fujitsu_laptop_press() argument
864 ret = kfifo_in_locked(&priv->fifo, (unsigned char *)&scancode, in acpi_fujitsu_laptop_press()
865 sizeof(scancode), &priv->fifo_lock); in acpi_fujitsu_laptop_press()
866 if (ret != sizeof(scancode)) { in acpi_fujitsu_laptop_press()
868 scancode); in acpi_fujitsu_laptop_press()
871 sparse_keymap_report_event(priv->input, scancode, 1, false); in acpi_fujitsu_laptop_press()
873 scancode); in acpi_fujitsu_laptop_press()
879 int scancode, ret; in acpi_fujitsu_laptop_release() local
882 ret = kfifo_out_locked(&priv->fifo, (unsigned char *)&scancode, in acpi_fujitsu_laptop_release()
883 sizeof(scancode), &priv->fifo_lock); in acpi_fujitsu_laptop_release()
[all …]
/drivers/staging/media/av7110/
Dav7110_ir.c25 u32 command, addr, scancode; in av7110_ir_handler() local
35 scancode = RC_SCANCODE_RC5(addr, command); in av7110_ir_handler()
41 scancode = ircom & ~0x8000; in av7110_ir_handler()
57 scancode = RC_SCANCODE_RC5(addr, command); in av7110_ir_handler()
67 rc_keydown(rcdev, proto, scancode, toggle != 0); in av7110_ir_handler()
/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()
/drivers/media/pci/mantis/
Dmantis_uart.c55 int i, scancode = 0, err = 0; in mantis_uart_read() local
64 scancode = (scancode << 8) | (data & 0x3f); in mantis_uart_read()
76 mantis_input_process(mantis, scancode); in mantis_uart_read()
/drivers/input/misc/
Dcm109.c172 static unsigned short keymap_kip1000(int scancode) in keymap_kip1000() argument
174 switch (scancode) { /* phone key: */ in keymap_kip1000()
191 default: return special_keymap(scancode); in keymap_kip1000()
205 static unsigned short keymap_gtalk(int scancode) in keymap_gtalk() argument
207 switch (scancode) { in keymap_gtalk()
224 default: return special_keymap(scancode); in keymap_gtalk()
234 static unsigned short keymap_usbph01(int scancode) in keymap_usbph01() argument
236 switch (scancode) { in keymap_usbph01()
253 default: return special_keymap(scancode); in keymap_usbph01()
265 static unsigned short keymap_atcom(int scancode) in keymap_atcom() argument
[all …]
/drivers/media/rc/img-ir/
Dimg-ir-nec.c30 request->scancode = bitrev8(addr) << 24 | in img_ir_nec_scancode()
38 request->scancode = addr << 16 | in img_ir_nec_scancode()
45 request->scancode = addr << 8 | in img_ir_nec_scancode()
171 .scancode = img_ir_nec_scancode,

123