Lines Matching refs:flag
12 * kbd->xxx contains the VC-local things (flag settings etc..)
72 static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag)
74 return ((kbd->modeflags >> flag) & 1);
77 static inline int vc_kbd_led(struct kbd_struct * kbd, int flag)
79 return ((kbd->ledflagstate >> flag) & 1);
82 static inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag)
84 kbd->modeflags |= 1 << flag;
87 static inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag)
89 kbd->ledflagstate |= 1 << flag;
92 static inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag)
94 kbd->modeflags &= ~(1 << flag);
97 static inline void clr_vc_kbd_led(struct kbd_struct * kbd, int flag)
99 kbd->ledflagstate &= ~(1 << flag);
102 static inline void chg_vc_kbd_lock(struct kbd_struct * kbd, int flag)
104 kbd->lockstate ^= 1 << flag;
107 static inline void chg_vc_kbd_slock(struct kbd_struct * kbd, int flag)
109 kbd->slockstate ^= 1 << flag;
112 static inline void chg_vc_kbd_mode(struct kbd_struct * kbd, int flag)
114 kbd->modeflags ^= 1 << flag;
117 static inline void chg_vc_kbd_led(struct kbd_struct * kbd, int flag)
119 kbd->ledflagstate ^= 1 << flag;