Home
last modified time | relevance | path

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

123

/drivers/media/i2c/
Dir-kbd-i2c.c67 u32 *scancode, u8 *ptoggle, int size) in get_key_haup_common() argument
107 *scancode = RC_SCANCODE_RC5(dev, code); in get_key_haup_common()
129 *scancode = RC_SCANCODE_RC6_6A(vendor, dev, code); in get_key_haup_common()
138 u32 *scancode, u8 *toggle) in get_key_haup() argument
140 return get_key_haup_common(ir, protocol, scancode, toggle, 3); in get_key_haup()
144 u32 *scancode, u8 *toggle) in get_key_haup_xvr() argument
159 return get_key_haup_common(ir, protocol, scancode, toggle, 6); in get_key_haup_xvr()
163 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/usb/em28xx/
Dem28xx-input.c58 u32 scancode; member
76 int (*get_key_i2c)(struct i2c_client *ir, enum rc_type *protocol, u32 *scancode);
85 enum rc_type *protocol, u32 *scancode) in em28xx_get_key_terratec() argument
104 *scancode = b; in em28xx_get_key_terratec()
109 enum rc_type *protocol, u32 *scancode) in em28xx_get_key_em_haup() argument
134 *scancode = (bitrev8(buf[1]) & 0x1f) << 8 | bitrev8(buf[0]) >> 2; in em28xx_get_key_em_haup()
139 enum rc_type *protocol, u32 *scancode) in em28xx_get_key_pinnacle_usb_grey() argument
152 *scancode = buf[2] & 0x3f; in em28xx_get_key_pinnacle_usb_grey()
157 enum rc_type *protocol, u32 *scancode) in em28xx_get_key_winfast_usbii_deluxe() argument
178 *scancode = key; in em28xx_get_key_winfast_usbii_deluxe()
[all …]
/drivers/input/keyboard/
Datakbd.c195 static void atakbd_interrupt(unsigned char scancode, char down) in atakbd_interrupt() argument
198 if (scancode < 0x72) { /* scancodes < 0xf2 are keys */ in atakbd_interrupt()
202 scancode = atakbd_keycode[scancode]; in atakbd_interrupt()
204 if (scancode == KEY_CAPSLOCK) { /* CapsLock is a toggle switch key on Amiga */ in atakbd_interrupt()
205 input_report_key(atakbd_dev, scancode, 1); in atakbd_interrupt()
206 input_report_key(atakbd_dev, scancode, 0); in atakbd_interrupt()
209 input_report_key(atakbd_dev, scancode, down); in atakbd_interrupt()
213 printk(KERN_INFO "atakbd: unhandled scancode %x\n", scancode); in atakbd_interrupt()
Damikbd.c188 unsigned char scancode, down; in amikbd_interrupt() local
190 scancode = ~ciaa.sdr; /* get and invert scancode (keyboard is active low) */ in amikbd_interrupt()
195 down = !(scancode & 1); /* lowest bit is release bit */ in amikbd_interrupt()
196 scancode >>= 1; in amikbd_interrupt()
198 if (scancode < 0x78) { /* scancodes < 0x78 are keys */ in amikbd_interrupt()
199 if (scancode == 98) { /* CapsLock is a toggle switch key on Amiga */ in amikbd_interrupt()
200 input_report_key(dev, scancode, 1); in amikbd_interrupt()
201 input_report_key(dev, scancode, 0); in amikbd_interrupt()
203 input_report_key(dev, scancode, down); in amikbd_interrupt()
208 printk(amikbd_messages[scancode - 0x78]); in amikbd_interrupt()
/drivers/media/rc/
Drc-main.c236 index, rc_map->scan[index].scancode); in ir_update_mapping()
244 rc_map->scan[index].scancode, new_keycode); in ir_update_mapping()
283 unsigned int scancode, in ir_establish_scancode() argument
297 scancode &= dev->scancode_mask; in ir_establish_scancode()
301 if (rc_map->scan[i].scancode == scancode) in ir_establish_scancode()
305 if (rc_map->scan[i].scancode >= scancode) in ir_establish_scancode()
319 rc_map->scan[i].scancode = scancode; in ir_establish_scancode()
342 unsigned int scancode; in ir_setkeycode() local
355 retval = input_scancode_to_scalar(ke, &scancode); in ir_setkeycode()
359 index = ir_establish_scancode(rdev, rc_map, scancode, true); in ir_setkeycode()
[all …]
Dir-rc6-decoder.c89 u32 scancode; in ir_rc6_decode() local
230 scancode = data->body; in ir_rc6_decode()
234 scancode, toggle); in ir_rc6_decode()
244 scancode = data->body; in ir_rc6_decode()
255 if ((scancode & RC6_6A_LCC_MASK) == RC6_6A_MCE_CC) { in ir_rc6_decode()
257 toggle = !!(scancode & RC6_6A_MCE_TOGGLE_MASK); in ir_rc6_decode()
258 scancode &= ~RC6_6A_MCE_TOGGLE_MASK; in ir_rc6_decode()
270 protocol, scancode, toggle); in ir_rc6_decode()
277 rc_keydown(dev, protocol, scancode, toggle); in ir_rc6_decode()
Dir-nec-decoder.c51 u32 scancode; in ir_nec_decode() local
173 scancode = data->bits; in ir_nec_decode()
174 IR_dprintk(1, "NEC (modified) scancode 0x%08x\n", scancode); in ir_nec_decode()
178 scancode = address << 16 | in ir_nec_decode()
181 IR_dprintk(1, "NEC (Ext) scancode 0x%06x\n", scancode); in ir_nec_decode()
185 scancode = address << 8 | command; in ir_nec_decode()
186 IR_dprintk(1, "NEC scancode 0x%04x\n", scancode); in ir_nec_decode()
193 rc_keydown(dev, rc_type, scancode, 0); in ir_nec_decode()
Dir-mce_kbd-decoder.c148 u32 scancode) in ir_mce_kbd_process_keyboard_data() argument
150 u8 keydata = (scancode >> 8) & 0xff; in ir_mce_kbd_process_keyboard_data()
151 u8 shiftmask = scancode & 0xff; in ir_mce_kbd_process_keyboard_data()
176 static void ir_mce_kbd_process_mouse_data(struct input_dev *idev, u32 scancode) in ir_mce_kbd_process_mouse_data() argument
179 u8 xdata = (scancode >> 7) & 0x7f; in ir_mce_kbd_process_mouse_data()
180 u8 ydata = (scancode >> 14) & 0x7f; in ir_mce_kbd_process_mouse_data()
183 bool right = scancode & 0x40; in ir_mce_kbd_process_mouse_data()
184 bool left = scancode & 0x20; in ir_mce_kbd_process_mouse_data()
216 u32 scancode; in ir_mce_kbd_decode() local
320 scancode = data->body & 0xffff; in ir_mce_kbd_decode()
[all …]
Dir-rc5-decoder.c53 u32 scancode; in ir_rc5_decode() local
136 scancode = system << 16 | command << 8 | xdata; in ir_rc5_decode()
150 scancode = system << 8 | command; in ir_rc5_decode()
163 scancode = system << 6 | command; in ir_rc5_decode()
170 scancode, protocol, toggle); in ir_rc5_decode()
172 rc_keydown(dev, protocol, scancode, toggle); in ir_rc5_decode()
Dimon.c1259 static u32 imon_remote_key_lookup(struct imon_context *ictx, u32 scancode) in imon_remote_key_lookup() argument
1266 keycode = rc_g_keycode_from_table(ictx->rdev, scancode); in imon_remote_key_lookup()
1268 ictx->rc_scancode = scancode; in imon_remote_key_lookup()
1272 release = scancode & ~0x4000; in imon_remote_key_lookup()
1283 static u32 imon_mce_key_lookup(struct imon_context *ictx, u32 scancode) in imon_mce_key_lookup() argument
1298 if (scancode & 0x80000000) in imon_mce_key_lookup()
1299 scancode = scancode | MCE_KEY_MASK | MCE_TOGGLE_BIT; in imon_mce_key_lookup()
1301 ictx->rc_scancode = scancode; in imon_mce_key_lookup()
1302 keycode = rc_g_keycode_from_table(ictx->rdev, scancode); in imon_mce_key_lookup()
1407 u32 scancode = KEY_RESERVED; in imon_pad_to_keys() local
[all …]
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 IR_dprintk(1, "Sharp scancode 0x%04x\n", scancode); in ir_sharp_decode()
164 rc_keydown(dev, RC_TYPE_SHARP, scancode, 0); in ir_sharp_decode()
Dir-sanyo-decoder.c58 u32 scancode; in ir_sanyo_decode() local
165 scancode = address << 8 | command; in ir_sanyo_decode()
166 IR_dprintk(1, "SANYO scancode: 0x%06x\n", scancode); in ir_sanyo_decode()
167 rc_keydown(dev, RC_TYPE_SANYO, scancode, 0); in ir_sanyo_decode()
Dir-sony-decoder.c46 u32 scancode; in ir_sony_decode() local
155 scancode = device << 16 | subdevice << 8 | function; in ir_sony_decode()
156 IR_dprintk(1, "Sony(%u) scancode 0x%05x\n", data->count, scancode); in ir_sony_decode()
157 rc_keydown(dev, protocol, scancode, 0); in ir_sony_decode()
Dir-jvc-decoder.c136 u32 scancode; in ir_jvc_decode() local
137 scancode = (bitrev8((data->bits >> 8) & 0xff) << 8) | in ir_jvc_decode()
139 IR_dprintk(1, "JVC scancode 0x%04x\n", scancode); in ir_jvc_decode()
140 rc_keydown(dev, RC_TYPE_JVC, scancode, data->toggle); in ir_jvc_decode()
Dir-xmp-decoder.c85 u32 scancode; in ir_xmp_decode() local
139 scancode = addr << 24 | subaddr << 16 | in ir_xmp_decode()
141 IR_dprintk(1, "XMP scancode 0x%06x\n", scancode); in ir_xmp_decode()
144 rc_keydown(dev, RC_TYPE_XMP, scancode, 0); in ir_xmp_decode()
/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()
/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()
/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()
Ddvb-usb-remote.c17 unsigned int scancode; in legacy_dvb_usb_get_keymap_index() local
22 if (input_scancode_to_scalar(ke, &scancode)) in legacy_dvb_usb_get_keymap_index()
27 if (keymap[index].scancode == scancode) in legacy_dvb_usb_get_keymap_index()
59 ke->len = sizeof(keymap[index].scancode); in legacy_dvb_usb_getkeycode()
60 memcpy(&ke->scancode, &keymap[index].scancode, ke->len); in legacy_dvb_usb_getkeycode()
/drivers/media/pci/saa7134/
Dsaa7134-input.c116 u32 *scancode, u8 *toggle) in get_key_flydvb_trio() argument
163 *scancode = b; in get_key_flydvb_trio()
169 u32 *scancode, u8 *toggle) in get_key_msi_tvanywhere_plus() argument
211 *scancode = b; in get_key_msi_tvanywhere_plus()
218 u32 *scancode, u8 *toggle) in get_key_kworld_pc150u() argument
260 *scancode = b; in get_key_kworld_pc150u()
266 u32 *scancode, u8 *toggle) in get_key_purpletv() argument
285 *scancode = b; in get_key_purpletv()
291 u32 *scancode, u8 *toggle) in get_key_hvr1110() argument
315 *scancode = RC_SCANCODE_RC5(buf[3] & 0x1f, buf[4] >> 2); in get_key_hvr1110()
[all …]
/drivers/media/usb/cx231xx/
Dcx231xx-input.c31 u8 cmd, scancode; in get_key_isdbt() local
49 scancode = bitrev8(cmd); in get_key_isdbt()
52 cmd, scancode); in get_key_isdbt()
55 *pscancode = scancode; in get_key_isdbt()
/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()
/drivers/media/rc/img-ir/
Dimg-ir-nec.c33 request->scancode = bitrev8(addr) << 24 | in img_ir_nec_scancode()
41 request->scancode = addr << 16 | in img_ir_nec_scancode()
48 request->scancode = addr << 8 | in img_ir_nec_scancode()
158 .scancode = img_ir_nec_scancode,
/drivers/input/misc/
Dcm109.c175 static unsigned short keymap_kip1000(int scancode) in keymap_kip1000() argument
177 switch (scancode) { /* phone key: */ in keymap_kip1000()
194 default: return special_keymap(scancode); in keymap_kip1000()
208 static unsigned short keymap_gtalk(int scancode) in keymap_gtalk() argument
210 switch (scancode) { in keymap_gtalk()
227 default: return special_keymap(scancode); in keymap_gtalk()
237 static unsigned short keymap_usbph01(int scancode) in keymap_usbph01() argument
239 switch (scancode) { in keymap_usbph01()
256 default: return special_keymap(scancode); in keymap_usbph01()
268 static unsigned short keymap_atcom(int scancode) in keymap_atcom() argument
[all …]
Dati_remote2.c493 unsigned int scancode; in ati_remote2_getkeycode() local
503 scancode = (mode << 8) + ati_remote2_key_table[offset].hw_code; in ati_remote2_getkeycode()
505 if (input_scancode_to_scalar(ke, &scancode)) in ati_remote2_getkeycode()
508 mode = scancode >> 8; in ati_remote2_getkeycode()
512 offset = ati_remote2_lookup(scancode & 0xff); in ati_remote2_getkeycode()
520 ke->len = sizeof(scancode); in ati_remote2_getkeycode()
521 memcpy(&ke->scancode, &scancode, sizeof(scancode)); in ati_remote2_getkeycode()
535 unsigned int scancode; in ati_remote2_setkeycode() local
545 if (input_scancode_to_scalar(ke, &scancode)) in ati_remote2_setkeycode()
548 mode = scancode >> 8; in ati_remote2_setkeycode()
[all …]

123