Lines Matching full:tcon
101 void ksmbd_tree_connect_put(struct ksmbd_tree_connect *tcon) in ksmbd_tree_connect_put() argument
108 if (!atomic_dec_return(&tcon->refcount) && in ksmbd_tree_connect_put()
109 waitqueue_active(&tcon->refcount_q)) in ksmbd_tree_connect_put()
110 wake_up(&tcon->refcount_q); in ksmbd_tree_connect_put()
136 struct ksmbd_tree_connect *tcon; in ksmbd_tree_conn_lookup() local
139 tcon = xa_load(&sess->tree_conns, id); in ksmbd_tree_conn_lookup()
140 if (tcon) { in ksmbd_tree_conn_lookup()
141 if (tcon->t_state != TREE_CONNECTED) in ksmbd_tree_conn_lookup()
142 tcon = NULL; in ksmbd_tree_conn_lookup()
143 else if (!atomic_inc_not_zero(&tcon->refcount)) in ksmbd_tree_conn_lookup()
144 tcon = NULL; in ksmbd_tree_conn_lookup()
148 return tcon; in ksmbd_tree_conn_lookup()