Lines Matching refs:sess
19 ksmbd_tree_conn_connect(struct ksmbd_conn *conn, struct ksmbd_session *sess, in ksmbd_tree_conn_connect() argument
39 tree_conn->id = ksmbd_acquire_tree_conn_id(sess); in ksmbd_tree_conn_connect()
46 resp = ksmbd_ipc_tree_connect_request(sess, in ksmbd_tree_conn_connect()
74 tree_conn->user = sess->user; in ksmbd_tree_conn_connect()
78 ret = xa_err(xa_store(&sess->tree_conns, tree_conn->id, tree_conn, in ksmbd_tree_conn_connect()
89 ksmbd_release_tree_conn_id(sess, tree_conn->id); in ksmbd_tree_conn_connect()
96 int ksmbd_tree_conn_disconnect(struct ksmbd_session *sess, in ksmbd_tree_conn_disconnect() argument
101 ret = ksmbd_ipc_tree_disconnect_request(sess->id, tree_conn->id); in ksmbd_tree_conn_disconnect()
102 ksmbd_release_tree_conn_id(sess, tree_conn->id); in ksmbd_tree_conn_disconnect()
103 xa_erase(&sess->tree_conns, tree_conn->id); in ksmbd_tree_conn_disconnect()
109 struct ksmbd_tree_connect *ksmbd_tree_conn_lookup(struct ksmbd_session *sess, in ksmbd_tree_conn_lookup() argument
112 return xa_load(&sess->tree_conns, id); in ksmbd_tree_conn_lookup()
115 struct ksmbd_share_config *ksmbd_tree_conn_share(struct ksmbd_session *sess, in ksmbd_tree_conn_share() argument
120 tc = ksmbd_tree_conn_lookup(sess, id); in ksmbd_tree_conn_share()
126 int ksmbd_tree_conn_session_logoff(struct ksmbd_session *sess) in ksmbd_tree_conn_session_logoff() argument
132 xa_for_each(&sess->tree_conns, id, tc) in ksmbd_tree_conn_session_logoff()
133 ret |= ksmbd_tree_conn_disconnect(sess, tc); in ksmbd_tree_conn_session_logoff()
134 xa_destroy(&sess->tree_conns); in ksmbd_tree_conn_session_logoff()