Lines Matching full:tty
9 #include <linux/tty.h>
22 struct tty_struct *tty; member
30 struct tty_struct *tty; in __speakup_set_selection() local
38 /* release the lock by setting tty of the struct to NULL */ in __speakup_set_selection()
39 tty = xchg(&ssw->tty, NULL); in __speakup_set_selection()
51 set_selection_kernel(&sel, tty); in __speakup_set_selection()
54 tty_kref_put(tty); in __speakup_set_selection()
62 int speakup_set_selection(struct tty_struct *tty) in speakup_set_selection() argument
66 * invariant that if speakup_sel_work.tty is not NULL when in speakup_set_selection()
70 tty_kref_get(tty); in speakup_set_selection()
71 if (cmpxchg(&speakup_sel_work.tty, NULL, tty)) { in speakup_set_selection()
72 tty_kref_put(tty); in speakup_set_selection()
75 /* now we have the 'lock' by setting tty member of in speakup_set_selection()
94 struct tty_struct *tty; in speakup_cancel_selection() local
101 tty = xchg(&speakup_sel_work.tty, NULL); in speakup_cancel_selection()
102 if (tty) in speakup_cancel_selection()
103 tty_kref_put(tty); in speakup_cancel_selection()
110 struct tty_struct *tty = xchg(&ssw->tty, NULL); in __speakup_paste_selection() local
112 paste_selection(tty); in __speakup_paste_selection()
113 tty_kref_put(tty); in __speakup_paste_selection()
121 int speakup_paste_selection(struct tty_struct *tty) in speakup_paste_selection() argument
123 tty_kref_get(tty); in speakup_paste_selection()
124 if (cmpxchg(&speakup_paste_work.tty, NULL, tty)) { in speakup_paste_selection()
125 tty_kref_put(tty); in speakup_paste_selection()
135 struct tty_struct *tty; in speakup_cancel_paste() local
138 tty = xchg(&speakup_paste_work.tty, NULL); in speakup_cancel_paste()
139 if (tty) in speakup_cancel_paste()
140 tty_kref_put(tty); in speakup_cancel_paste()