Home
last modified time | relevance | path

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

12

/linux-2.4.37.9/drivers/usb/
Dusbkbd.c82 struct usb_kbd *kbd = urb->context; in usb_kbd_irq() local
88 input_report_key(&kbd->dev, usb_kbd_keycode[i + 224], (kbd->new[0] >> i) & 1); in usb_kbd_irq()
92 if (kbd->old[i] > 3 && memscan(kbd->new + 2, kbd->old[i], 6) == kbd->new + 8) { in usb_kbd_irq()
93 if (usb_kbd_keycode[kbd->old[i]]) in usb_kbd_irq()
94 input_report_key(&kbd->dev, usb_kbd_keycode[kbd->old[i]], 0); in usb_kbd_irq()
96 info("Unknown key (scancode %#x) released.", kbd->old[i]); in usb_kbd_irq()
99 if (kbd->new[i] > 3 && memscan(kbd->old + 2, kbd->new[i], 6) == kbd->old + 8) { in usb_kbd_irq()
100 if (usb_kbd_keycode[kbd->new[i]]) in usb_kbd_irq()
101 input_report_key(&kbd->dev, usb_kbd_keycode[kbd->new[i]], 1); in usb_kbd_irq()
103 info("Unknown key (scancode %#x) pressed.", kbd->new[i]); in usb_kbd_irq()
[all …]
/linux-2.4.37.9/drivers/char/
Dscan_keyb.c69 struct scan_keyboard *kbd; in scan_kbd() local
73 for(kbd=keyboards; kbd!=NULL; kbd=kbd->next) { in scan_kbd()
75 if(!kbd->scan(kbd->s0)) in scan_kbd()
76 check_kbd(kbd->table, in scan_kbd()
77 kbd->s0, kbd->s1, kbd->length); in scan_kbd()
79 memcpy(kbd->s0, kbd->s1, kbd->length); in scan_kbd()
82 if(!kbd->scan(kbd->s1)) in scan_kbd()
83 check_kbd(kbd->table, in scan_kbd()
84 kbd->s1, kbd->s0, kbd->length); in scan_kbd()
86 memcpy(kbd->s1, kbd->s0, kbd->length); in scan_kbd()
[all …]
Dkeyboard.c96 static struct kbd_struct * kbd = kbd_table; variable
217 kbd = kbd_table + fg_console; in handle_scancode()
221 raw_mode = (kbd->kbdmode == VC_RAW); in handle_scancode()
272 handle_sysrq(kbd_sysrq_xlate[keycode], kbd_pt_regs, kbd, tty); in handle_scancode()
278 if (kbd->kbdmode == VC_MEDIUMRAW) { in handle_scancode()
298 (vc_kbd_mode(kbd,VC_REPEAT) && tty && in handle_scancode()
304 int shift_final = (shift_state | kbd->slockstate) ^ in handle_scancode()
305 kbd->lockstate; in handle_scancode()
318 if (vc_kbd_led(kbd, VC_CAPSLOCK)) { in handle_scancode()
326 kbd->slockstate = 0; in handle_scancode()
[all …]
Dsysrq.c46 struct kbd_struct *kbd, struct tty_struct *tty) { in sysrq_handle_loglevel() argument
63 struct kbd_struct *kbd, struct tty_struct *tty) { in sysrq_handle_SAK() argument
78 struct kbd_struct *kbd, struct tty_struct *tty) { in sysrq_handle_unraw() argument
79 if (kbd) in sysrq_handle_unraw()
80 kbd->kbdmode = VC_XLATE; in sysrq_handle_unraw()
91 struct kbd_struct *kbd, struct tty_struct *tty) { in sysrq_handle_reboot() argument
221 struct kbd_struct *kbd, struct tty_struct *tty) { in sysrq_handle_sync() argument
232 struct kbd_struct *kbd, struct tty_struct *tty) { in sysrq_handle_mountro() argument
248 struct kbd_struct *kbd, struct tty_struct *tty) { in sysrq_handle_showregs() argument
260 struct kbd_struct *kbd, struct tty_struct *tty) { in sysrq_handle_showstate() argument
[all …]
Dvt.c159 do_kdsk_ioctl(int cmd, struct kbentry *user_kbe, int perm, struct kbd_struct *kbd) in do_kdsk_ioctl() argument
177 if (kbd->kbdmode != VC_UNICODE && KTYP(val) >= NR_TYPES) in do_kdsk_ioctl()
202 if (kbd->kbdmode != VC_UNICODE) in do_kdsk_ioctl()
439 struct kbd_struct * kbd; in vt_ioctl() local
455 kbd = kbd_table + console; in vt_ioctl()
581 kbd->kbdmode = VC_RAW; in vt_ioctl()
584 kbd->kbdmode = VC_MEDIUMRAW; in vt_ioctl()
587 kbd->kbdmode = VC_XLATE; in vt_ioctl()
591 kbd->kbdmode = VC_UNICODE; in vt_ioctl()
601 ucval = ((kbd->kbdmode == VC_RAW) ? K_RAW : in vt_ioctl()
[all …]
/linux-2.4.37.9/drivers/hil/
Dhil_kbd.c158 static void hil_kbd_process_record(struct hil_kbd *kbd) in hil_kbd_process_record() argument
160 struct input_dev *dev = &kbd->dev; in hil_kbd_process_record()
161 hil_packet *data = kbd->data; in hil_kbd_process_record()
165 idx = kbd->idx4/4; in hil_kbd_process_record()
177 kbd->idd[i] = kbd->data[i] & HIL_PKT_DATA_MASK; in hil_kbd_process_record()
179 kbd->idd[i] = 0; in hil_kbd_process_record()
183 kbd->rsc[i] = kbd->data[i] & HIL_PKT_DATA_MASK; in hil_kbd_process_record()
185 kbd->rsc[i] = 0; in hil_kbd_process_record()
189 kbd->exd[i] = kbd->data[i] & HIL_PKT_DATA_MASK; in hil_kbd_process_record()
191 kbd->exd[i] = 0; in hil_kbd_process_record()
[all …]
/linux-2.4.37.9/include/linux/
Dkbd_kern.h70 extern void setledstate(struct kbd_struct *kbd, unsigned int led);
85 static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag) in vc_kbd_mode() argument
87 return ((kbd->modeflags >> flag) & 1); in vc_kbd_mode()
90 static inline int vc_kbd_led(struct kbd_struct * kbd, int flag) in vc_kbd_led() argument
92 return ((kbd->ledflagstate >> flag) & 1); in vc_kbd_led()
95 static inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag) in set_vc_kbd_mode() argument
97 kbd->modeflags |= 1 << flag; in set_vc_kbd_mode()
100 static inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag) in set_vc_kbd_led() argument
102 kbd->ledflagstate |= 1 << flag; in set_vc_kbd_led()
105 static inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag) in clr_vc_kbd_mode() argument
[all …]
/linux-2.4.37.9/arch/ppc/platforms/
Dchrp_setup.c455 struct device_node *kbd; in chrp_init_IRQ() local
488 for (kbd = find_devices("keyboard"); kbd; kbd = kbd->next) in chrp_init_IRQ()
489 if (kbd->parent && kbd->parent->type in chrp_init_IRQ()
490 && strcmp(kbd->parent->type, "adb") == 0) in chrp_init_IRQ()
492 if (kbd) in chrp_init_IRQ()
528 struct device_node *kbd; in chrp_init2() local
530 for (kbd = find_devices("keyboard"); kbd; kbd = kbd->next) { in chrp_init2()
531 if (kbd->parent && kbd->parent->type in chrp_init2()
532 && strcmp(kbd->parent->type, "adb") == 0) { in chrp_init2()
/linux-2.4.37.9/drivers/sbus/char/
Dsunkbd.c115 static struct kbd_struct * kbd = kbd_table; variable
516 kbd = kbd_table + fg_console; in __sunkbd_inchar()
517 if((raw_mode = (kbd->kbdmode == VC_RAW))) { in __sunkbd_inchar()
547 handle_sysrq(sun_sysrq_xlate[keycode], pt_regs, kbd, tty); in __sunkbd_inchar()
555 if(kbd->kbdmode == VC_MEDIUMRAW) { in __sunkbd_inchar()
574 (vc_kbd_mode(kbd,VC_REPEAT) && tty && in __sunkbd_inchar()
580 int shift_final = shift_state ^ kbd->lockstate ^ kbd->slockstate; in __sunkbd_inchar()
591 if (vc_kbd_led(kbd, VC_CAPSLOCK)) { in __sunkbd_inchar()
599 kbd->slockstate = 0; in __sunkbd_inchar()
652 if (vc_kbd_mode(kbd,VC_CRLF)) in enter()
[all …]
Dsunserial.c110 static void nop_setledstate (struct kbd_struct *kbd, unsigned int ledstate) in nop_setledstate() argument
181 void setledstate (struct kbd_struct *kbd, unsigned int ledstate) in setledstate() argument
183 kbd_ops.setledstate(kbd, ledstate); in setledstate()
/linux-2.4.37.9/arch/ppc/boot/prep/
Dkbd.c20 static int kbd(int noblock) in kbd() function
234 while ((c = kbd(0)) == 0) ; in CRT_getc()
244 key_pending = kbd(1); in CRT_tstc()
DMakefile33 obj-$(CONFIG_VGA_CONSOLE) += vreset.o kbd.o
/linux-2.4.37.9/drivers/macintosh/
Dmac_keyb.c327 struct kbd_struct *kbd; in input_keycode() local
330 kbd = kbd_table + fg_console; in input_keycode()
377 if (kbd->kbdmode != VC_RAW) { in input_keycode()
507 struct kbd_struct *kbd; in mouse_input() local
547 kbd = kbd_table + fg_console; in mouse_input()
550 if (kbd->kbdmode == VC_RAW) { in mouse_input()
/linux-2.4.37.9/arch/mips/jazz/
DMakefile17 rtc-jazz.o setup.o floppy-jazz.o kbd-jazz.o
/linux-2.4.37.9/arch/mips64/lib/
DMakefile18 obj-$(CONFIG_PC_KEYB) += kbd-std.o
/linux-2.4.37.9/arch/mips/lib/
DMakefile24 obj-$(CONFIG_PC_KEYB) += kbd-std.o
/linux-2.4.37.9/arch/arm/lib/
DMakefile22 obj-$(CONFIG_VT)+= kbd.o
/linux-2.4.37.9/arch/ppc64/xmon/
Dstart.c56 static void sysrq_handle_xmon(int key, struct pt_regs *pt_regs, struct kbd_struct *kbd, struct tty_… in sysrq_handle_xmon() argument
/linux-2.4.37.9/arch/ppc/xmon/
Dstart.c96 struct kbd_struct *kbd, struct tty_struct *tty) in sysrq_handle_xmon() argument
/linux-2.4.37.9/Documentation/x86_64/
Dboot-options.txt86 kbd Use the keyboard controller. cold reset (default)
/linux-2.4.37.9/arch/ppc64/kernel/
Dopen_pic.c153 struct device_node *kbd; in openpic_init_IRQ() local
/linux-2.4.37.9/drivers/acpi/
Dsystem.c1218 struct kbd_struct *kbd, struct tty_struct *tty) in acpi_sysrq_power_off() argument
/linux-2.4.37.9/arch/i386/kernel/
Dapm.c962 struct kbd_struct *kbd, struct tty_struct *tty) { in handle_poweroff() argument
/linux-2.4.37.9/Documentation/
Dkernel-parameters.txt292 kbd-reset [VT]
/linux-2.4.37.9/Documentation/filesystems/devfs/
DChangeLog426 - Supported Sparc keyboard (/dev/kbd)

12