Lines Matching defs:tcon
99 void ksmbd_tree_connect_put(struct ksmbd_tree_connect *tcon)
106 if (!atomic_dec_return(&tcon->refcount) &&
107 waitqueue_active(&tcon->refcount_q))
108 wake_up(&tcon->refcount_q);
134 struct ksmbd_tree_connect *tcon;
137 tcon = xa_load(&sess->tree_conns, id);
138 if (tcon) {
139 if (tcon->t_state != TREE_CONNECTED)
140 tcon = NULL;
141 else if (!atomic_inc_not_zero(&tcon->refcount))
142 tcon = NULL;
146 return tcon;