Home
last modified time | relevance | path

Searched refs:kbd (Results 1 – 13 of 13) sorted by relevance

/drivers/hid/usbhid/
Dusbkbd.c84 struct usb_kbd *kbd = urb->context; in usb_kbd_irq() local
100 input_report_key(kbd->dev, usb_kbd_keycode[i + 224], (kbd->new[0] >> i) & 1); in usb_kbd_irq()
104 if (kbd->old[i] > 3 && memscan(kbd->new + 2, kbd->old[i], 6) == kbd->new + 8) { in usb_kbd_irq()
105 if (usb_kbd_keycode[kbd->old[i]]) in usb_kbd_irq()
106 input_report_key(kbd->dev, usb_kbd_keycode[kbd->old[i]], 0); in usb_kbd_irq()
109 "Unknown key (scancode %#x) released.\n", kbd->old[i]); in usb_kbd_irq()
112 if (kbd->new[i] > 3 && memscan(kbd->old + 2, kbd->new[i], 6) == kbd->old + 8) { in usb_kbd_irq()
113 if (usb_kbd_keycode[kbd->new[i]]) in usb_kbd_irq()
114 input_report_key(kbd->dev, usb_kbd_keycode[kbd->new[i]], 1); in usb_kbd_irq()
117 "Unknown key (scancode %#x) released.\n", kbd->new[i]); in usb_kbd_irq()
[all …]
/drivers/input/keyboard/
Dhil_kbd.c89 static void hil_kbd_process_record(struct hil_kbd *kbd) in hil_kbd_process_record() argument
91 struct input_dev *dev = kbd->dev; in hil_kbd_process_record()
92 hil_packet *data = kbd->data; in hil_kbd_process_record()
96 idx = kbd->idx4/4; in hil_kbd_process_record()
110 kbd->idd[i] = kbd->data[i] & HIL_PKT_DATA_MASK; in hil_kbd_process_record()
112 kbd->idd[i] = 0; in hil_kbd_process_record()
117 kbd->rsc[i] = kbd->data[i] & HIL_PKT_DATA_MASK; in hil_kbd_process_record()
119 kbd->rsc[i] = 0; in hil_kbd_process_record()
124 kbd->exd[i] = kbd->data[i] & HIL_PKT_DATA_MASK; in hil_kbd_process_record()
126 kbd->exd[i] = 0; in hil_kbd_process_record()
[all …]
Dmaple_keyb.c95 static void dc_scan_kbd(struct dc_kbd *kbd) in dc_scan_kbd() argument
97 struct input_dev *dev = kbd->dev; in dc_scan_kbd()
104 keycode = kbd->keycode[code]; in dc_scan_kbd()
106 input_report_key(dev, keycode, (kbd->new[0] >> i) & 1); in dc_scan_kbd()
110 ptr = memchr(kbd->new + 2, kbd->old[i], 6); in dc_scan_kbd()
111 code = kbd->old[i]; in dc_scan_kbd()
113 keycode = kbd->keycode[code]; in dc_scan_kbd()
122 ptr = memchr(kbd->old + 2, kbd->new[i], 6); in dc_scan_kbd()
123 code = kbd->new[i]; in dc_scan_kbd()
125 keycode = kbd->keycode[code]; in dc_scan_kbd()
[all …]
/drivers/s390/char/
Dkeyboard.c50 struct kbd_data *kbd; in kbd_alloc() local
53 kbd = kzalloc(sizeof(struct kbd_data), GFP_KERNEL); in kbd_alloc()
54 if (!kbd) in kbd_alloc()
56 kbd->key_maps = kzalloc(sizeof(key_maps), GFP_KERNEL); in kbd_alloc()
57 if (!kbd->key_maps) in kbd_alloc()
61 kbd->key_maps[i] = in kbd_alloc()
63 if (!kbd->key_maps[i]) in kbd_alloc()
65 memcpy(kbd->key_maps[i], key_maps[i], in kbd_alloc()
69 kbd->func_table = kzalloc(sizeof(func_table), GFP_KERNEL); in kbd_alloc()
70 if (!kbd->func_table) in kbd_alloc()
[all …]
Dtty3270.c92 struct kbd_data *kbd; /* key_maps stuff. */ member
455 tty3270_rcl_backward(struct kbd_data *kbd) in tty3270_rcl_backward() argument
460 tp = kbd->tty->driver_data; in tty3270_rcl_backward()
483 tty3270_exit_tty(struct kbd_data *kbd) in tty3270_exit_tty() argument
487 tp = kbd->tty->driver_data; in tty3270_exit_tty()
495 tty3270_scroll_forward(struct kbd_data *kbd) in tty3270_scroll_forward() argument
500 tp = kbd->tty->driver_data; in tty3270_scroll_forward()
518 tty3270_scroll_backward(struct kbd_data *kbd) in tty3270_scroll_backward() argument
523 tp = kbd->tty->driver_data; in tty3270_scroll_backward()
588 kbd_keycode(tp->kbd, *input++); in tty3270_read_tasklet()
[all …]
/drivers/input/
Dxen-kbdfront.c32 struct input_dev *kbd; member
75 if (test_bit(event->key.keycode, info->kbd->keybit)) in input_handler()
76 dev = info->kbd; in input_handler()
110 struct input_dev *kbd, *ptr; in xenkbd_probe() local
127 kbd = input_allocate_device(); in xenkbd_probe()
128 if (!kbd) in xenkbd_probe()
130 kbd->name = "Xen Virtual Keyboard"; in xenkbd_probe()
131 kbd->phys = info->phys; in xenkbd_probe()
132 kbd->id.bustype = BUS_PCI; in xenkbd_probe()
133 kbd->id.vendor = 0x5853; in xenkbd_probe()
[all …]
/drivers/char/
Dkeyboard.c116 static struct kbd_struct *kbd = kbd_table; variable
429 if (kbd->kbdmode == VC_UNICODE) in handle_diacr()
446 if (kbd->kbdmode == VC_UNICODE) in fn_enter()
456 if (vc_kbd_mode(kbd, VC_CRLF)) in fn_enter()
464 chg_vc_kbd_led(kbd, VC_CAPSLOCK); in fn_caps_toggle()
471 set_vc_kbd_led(kbd, VC_CAPSLOCK); in fn_caps_on()
501 if (vc_kbd_mode(kbd,VC_APPLIC)) in fn_num()
516 chg_vc_kbd_led(kbd, VC_NUMLOCK); in fn_bare_num()
634 if ((kbd->kbdmode == VC_RAW || in k_spec()
635 kbd->kbdmode == VC_MEDIUMRAW) && in k_spec()
[all …]
Dvt_ioctl.c75 do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm, struct kbd_struct *kbd) in do_kdsk_ioctl() argument
91 if (kbd->kbdmode != VC_UNICODE && KTYP(val) >= NR_TYPES) in do_kdsk_ioctl()
116 if (kbd->kbdmode != VC_UNICODE) in do_kdsk_ioctl()
371 struct kbd_struct * kbd; in vt_ioctl() local
396 kbd = kbd_table + console; in vt_ioctl()
538 kbd->kbdmode = VC_RAW; in vt_ioctl()
541 kbd->kbdmode = VC_MEDIUMRAW; in vt_ioctl()
544 kbd->kbdmode = VC_XLATE; in vt_ioctl()
548 kbd->kbdmode = VC_UNICODE; in vt_ioctl()
559 ucval = ((kbd->kbdmode == VC_RAW) ? K_RAW : in vt_ioctl()
[all …]
Dselection.c143 struct kbd_struct *kbd = kbd_table + fg_console; in set_selection() local
187 use_unicode = kbd && kbd->kbdmode == VC_UNICODE; in set_selection()
Dsysrq.c109 struct kbd_struct *kbd = &kbd_table[fg_console]; in sysrq_handle_unraw() local
111 if (kbd) in sysrq_handle_unraw()
112 kbd->kbdmode = default_utf8 ? VC_UNICODE : VC_XLATE; in sysrq_handle_unraw()
/drivers/input/serio/
Di8042-sparcio.h60 struct of_device *kbd = of_find_device_by_node(dp); in sparc_i8042_probe() local
61 unsigned int irq = kbd->irqs[0]; in sparc_i8042_probe()
65 kbd_iobase = of_ioremap(&kbd->resource[0], in sparc_i8042_probe()
67 kbd_res = &kbd->resource[0]; in sparc_i8042_probe()
/drivers/staging/panel/
Dpanel.c176 } kbd; member
1682 if (input->u.kbd.press_str[0]) in panel_process_inputs()
1684 u.kbd. in panel_process_inputs()
1688 u.kbd. in panel_process_inputs()
1692 if (input->u.kbd.repeat_str[0]) { in panel_process_inputs()
1698 u.kbd. in panel_process_inputs()
1702 u.kbd. in panel_process_inputs()
1732 if (input->u.kbd.repeat_str[0]) { in panel_process_inputs()
1735 keypad_send_key(input->u.kbd.repeat_str, in panel_process_inputs()
1736 sizeof(input->u.kbd.repeat_str)); in panel_process_inputs()
[all …]
/drivers/media/video/
DMakefile29 obj-$(CONFIG_VIDEO_IR_I2C) += ir-kbd-i2c.o