Home
last modified time | relevance | path

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

/drivers/hid/usbhid/
Dusbkbd.c115 struct usb_kbd *kbd = urb->context; in usb_kbd_irq() local
131 input_report_key(kbd->dev, usb_kbd_keycode[i + 224], (kbd->new[0] >> i) & 1); in usb_kbd_irq()
135 if (kbd->old[i] > 3 && memscan(kbd->new + 2, kbd->old[i], 6) == kbd->new + 8) { in usb_kbd_irq()
136 if (usb_kbd_keycode[kbd->old[i]]) in usb_kbd_irq()
137 input_report_key(kbd->dev, usb_kbd_keycode[kbd->old[i]], 0); in usb_kbd_irq()
141 kbd->old[i]); in usb_kbd_irq()
144 if (kbd->new[i] > 3 && memscan(kbd->old + 2, kbd->new[i], 6) == kbd->old + 8) { in usb_kbd_irq()
145 if (usb_kbd_keycode[kbd->new[i]]) in usb_kbd_irq()
146 input_report_key(kbd->dev, usb_kbd_keycode[kbd->new[i]], 1); in usb_kbd_irq()
150 kbd->new[i]); in usb_kbd_irq()
[all …]
/drivers/s390/char/
Dkeyboard.c51 struct kbd_data *kbd; in kbd_alloc() local
54 kbd = kzalloc(sizeof(struct kbd_data), GFP_KERNEL); in kbd_alloc()
55 if (!kbd) in kbd_alloc()
57 kbd->key_maps = kzalloc(sizeof(key_maps), GFP_KERNEL); in kbd_alloc()
58 if (!kbd->key_maps) in kbd_alloc()
62 kbd->key_maps[i] = kmemdup(key_maps[i], in kbd_alloc()
65 if (!kbd->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()
74 kbd->func_table[i] = kstrdup(func_table[i], in kbd_alloc()
[all …]
Dtty3270.c93 struct kbd_data *kbd; /* key_maps stuff. */ member
451 tty3270_rcl_backward(struct kbd_data *kbd) in tty3270_rcl_backward() argument
456 tp = kbd->tty->driver_data; in tty3270_rcl_backward()
479 tty3270_exit_tty(struct kbd_data *kbd) in tty3270_exit_tty() argument
483 tp = kbd->tty->driver_data; in tty3270_exit_tty()
491 tty3270_scroll_forward(struct kbd_data *kbd) in tty3270_scroll_forward() argument
496 tp = kbd->tty->driver_data; in tty3270_scroll_forward()
514 tty3270_scroll_backward(struct kbd_data *kbd) in tty3270_scroll_backward() argument
519 tp = kbd->tty->driver_data; in tty3270_scroll_backward()
583 kbd_keycode(tp->kbd, *input++); in tty3270_read_tasklet()
[all …]
/drivers/input/keyboard/
Dspear-keyboard.c68 struct spear_kbd *kbd = dev_id; in spear_kbd_interrupt() local
69 struct input_dev *input = kbd->input; in spear_kbd_interrupt()
73 sts = readb(kbd->io_base + STATUS_REG); in spear_kbd_interrupt()
77 if (kbd->last_key != KEY_RESERVED) { in spear_kbd_interrupt()
78 input_report_key(input, kbd->last_key, 0); in spear_kbd_interrupt()
79 kbd->last_key = KEY_RESERVED; in spear_kbd_interrupt()
83 val = readb(kbd->io_base + DATA_REG); in spear_kbd_interrupt()
84 key = kbd->keycodes[val]; in spear_kbd_interrupt()
90 kbd->last_key = key; in spear_kbd_interrupt()
93 writeb(0, kbd->io_base + STATUS_REG); in spear_kbd_interrupt()
[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 …]
Dhil_kbd.c147 static void hil_dev_handle_kbd_events(struct hil_dev *kbd) in hil_dev_handle_kbd_events() argument
149 struct input_dev *dev = kbd->dev; in hil_dev_handle_kbd_events()
150 int idx = kbd->idx4 / 4; in hil_dev_handle_kbd_events()
153 switch (kbd->data[0] & HIL_POL_CHARTYPE_MASK) { in hil_dev_handle_kbd_events()
159 input_report_key(dev, kbd->data[i] & 0x7f, 1); in hil_dev_handle_kbd_events()
166 input_report_key(dev, kbd->data[i], 1); in hil_dev_handle_kbd_events()
171 unsigned int key = kbd->data[i]; in hil_dev_handle_kbd_events()
182 unsigned int key = kbd->data[i]; in hil_dev_handle_kbd_events()
193 unsigned int key = kbd->data[i]; in hil_dev_handle_kbd_events()
327 static void hil_dev_keyboard_setup(struct hil_dev *kbd) in hil_dev_keyboard_setup() argument
[all …]
Dimx_keypad.c574 struct imx_keypad *kbd = platform_get_drvdata(pdev); in imx_kbd_suspend() local
575 struct input_dev *input_dev = kbd->input_dev; in imx_kbd_suspend()
581 clk_disable(kbd->clk); in imx_kbd_suspend()
586 enable_irq_wake(kbd->irq); in imx_kbd_suspend()
594 struct imx_keypad *kbd = platform_get_drvdata(pdev); in imx_kbd_resume() local
595 struct input_dev *input_dev = kbd->input_dev; in imx_kbd_resume()
598 disable_irq_wake(kbd->irq); in imx_kbd_resume()
603 clk_enable(kbd->clk); in imx_kbd_resume()
DMakefile38 obj-$(CONFIG_KEYBOARD_OPENCORES) += opencores-kbd.o
DKconfig412 module will be called opencores-kbd.
/drivers/tty/vt/
Dkeyboard.c113 static struct kbd_struct *kbd = kbd_table; variable
452 if (kbd->kbdmode == VC_UNICODE) in handle_diacr()
469 if (kbd->kbdmode == VC_UNICODE) in fn_enter()
480 if (vc_kbd_mode(kbd, VC_CRLF)) in fn_enter()
489 chg_vc_kbd_led(kbd, VC_CAPSLOCK); in fn_caps_toggle()
497 set_vc_kbd_led(kbd, VC_CAPSLOCK); in fn_caps_on()
528 if (vc_kbd_mode(kbd, VC_APPLIC)) in fn_num()
543 chg_vc_kbd_led(kbd, VC_NUMLOCK); in fn_bare_num()
661 if ((kbd->kbdmode == VC_RAW || in k_spec()
662 kbd->kbdmode == VC_MEDIUMRAW || in k_spec()
[all …]
/drivers/input/misc/
Dxen-kbdfront.c34 struct input_dev *kbd; member
78 if (test_bit(event->key.keycode, info->kbd->keybit)) in input_handler()
79 dev = info->kbd; in input_handler()
112 struct input_dev *kbd, *ptr; in xenkbd_probe() local
135 kbd = input_allocate_device(); in xenkbd_probe()
136 if (!kbd) in xenkbd_probe()
138 kbd->name = "Xen Virtual Keyboard"; in xenkbd_probe()
139 kbd->phys = info->phys; in xenkbd_probe()
140 kbd->id.bustype = BUS_PCI; in xenkbd_probe()
141 kbd->id.vendor = 0x5853; in xenkbd_probe()
[all …]
/drivers/staging/media/lirc/
DTODO.lirc_zilog1 1. Both ir-kbd-i2c and lirc_zilog provide support for RX events for
4 a. ir-kbd-i2c needs a module parameter added to allow the user to tell
5 ir-kbd-i2c to ignore Z8 IR units.
7 b. lirc_zilog should provide Rx key presses to the rc core like ir-kbd-i2c
30 Note: Both lirc_zilog and ir-kbd-i2c support the Zilog Z8 for IR, as programmed
/drivers/input/serio/
Di8042-sparcio.h60 struct platform_device *kbd = of_find_device_by_node(dp); in sparc_i8042_probe() local
61 unsigned int irq = kbd->archdata.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.c182 } kbd; member
1756 char *press_str = input->u.kbd.press_str; in input_state_high()
1762 if (input->u.kbd.repeat_str[0]) { in input_state_high()
1763 char *repeat_str = input->u.kbd.repeat_str; in input_state_high()
1801 if (input->u.kbd.repeat_str[0]) { in input_state_falling()
1802 char *repeat_str = input->u.kbd.repeat_str; in input_state_falling()
1822 char *release_str = input->u.kbd.release_str; in input_state_falling()
2009 strncpy(key->u.kbd.press_str, press, sizeof(key->u.kbd.press_str)); in panel_bind_key()
2010 strncpy(key->u.kbd.repeat_str, repeat, sizeof(key->u.kbd.repeat_str)); in panel_bind_key()
2011 strncpy(key->u.kbd.release_str, release, in panel_bind_key()
[all …]
/drivers/media/video/
DMakefile206 obj-$(CONFIG_VIDEO_IR_I2C) += ir-kbd-i2c.o