Lines Matching refs:kbd

63 extern void setledstate(struct kbd_struct *kbd, unsigned int led);
72 static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag) in vc_kbd_mode() argument
74 return ((kbd->modeflags >> flag) & 1); in vc_kbd_mode()
77 static inline int vc_kbd_led(struct kbd_struct * kbd, int flag) in vc_kbd_led() argument
79 return ((kbd->ledflagstate >> flag) & 1); in vc_kbd_led()
82 static inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag) in set_vc_kbd_mode() argument
84 kbd->modeflags |= 1 << flag; in set_vc_kbd_mode()
87 static inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag) in set_vc_kbd_led() argument
89 kbd->ledflagstate |= 1 << flag; in set_vc_kbd_led()
92 static inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag) in clr_vc_kbd_mode() argument
94 kbd->modeflags &= ~(1 << flag); in clr_vc_kbd_mode()
97 static inline void clr_vc_kbd_led(struct kbd_struct * kbd, int flag) in clr_vc_kbd_led() argument
99 kbd->ledflagstate &= ~(1 << flag); in clr_vc_kbd_led()
102 static inline void chg_vc_kbd_lock(struct kbd_struct * kbd, int flag) in chg_vc_kbd_lock() argument
104 kbd->lockstate ^= 1 << flag; in chg_vc_kbd_lock()
107 static inline void chg_vc_kbd_slock(struct kbd_struct * kbd, int flag) in chg_vc_kbd_slock() argument
109 kbd->slockstate ^= 1 << flag; in chg_vc_kbd_slock()
112 static inline void chg_vc_kbd_mode(struct kbd_struct * kbd, int flag) in chg_vc_kbd_mode() argument
114 kbd->modeflags ^= 1 << flag; in chg_vc_kbd_mode()
117 static inline void chg_vc_kbd_led(struct kbd_struct * kbd, int flag) in chg_vc_kbd_led() argument
119 kbd->ledflagstate ^= 1 << flag; in chg_vc_kbd_led()