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