Lines Matching refs:flag

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
107 kbd->modeflags &= ~(1 << flag); in clr_vc_kbd_mode()
110 static inline void clr_vc_kbd_led(struct kbd_struct * kbd, int flag) in clr_vc_kbd_led() argument
112 kbd->ledflagstate &= ~(1 << flag); in clr_vc_kbd_led()
115 static inline void chg_vc_kbd_lock(struct kbd_struct * kbd, int flag) in chg_vc_kbd_lock() argument
117 kbd->lockstate ^= 1 << flag; in chg_vc_kbd_lock()
120 static inline void chg_vc_kbd_slock(struct kbd_struct * kbd, int flag) in chg_vc_kbd_slock() argument
122 kbd->slockstate ^= 1 << flag; in chg_vc_kbd_slock()
125 static inline void chg_vc_kbd_mode(struct kbd_struct * kbd, int flag) in chg_vc_kbd_mode() argument
127 kbd->modeflags ^= 1 << flag; in chg_vc_kbd_mode()
130 static inline void chg_vc_kbd_led(struct kbd_struct * kbd, int flag) in chg_vc_kbd_led() argument
132 kbd->ledflagstate ^= 1 << flag; in chg_vc_kbd_led()