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