Lines Matching refs:msk
154 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_token_new_connect() local
174 WRITE_ONCE(msk->token, subflow->token); in mptcp_token_new_connect()
175 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain); in mptcp_token_new_connect()
190 struct mptcp_sock *msk) in mptcp_token_accept() argument
202 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain); in mptcp_token_accept()
210 struct mptcp_sock *msk; in mptcp_token_exists() local
218 msk = mptcp_sk(sk); in mptcp_token_exists()
219 if (READ_ONCE(msk->token) == token) in mptcp_token_exists()
246 struct mptcp_sock *msk; in mptcp_token_get_sock() local
254 msk = mptcp_sk(sk); in mptcp_token_get_sock()
255 if (READ_ONCE(msk->token) != token || in mptcp_token_get_sock()
262 if (READ_ONCE(msk->token) != token || in mptcp_token_get_sock()
273 msk = NULL; in mptcp_token_get_sock()
277 return msk; in mptcp_token_get_sock()
371 void mptcp_token_destroy(struct mptcp_sock *msk) in mptcp_token_destroy() argument
376 if (sk_unhashed((struct sock *)msk)) in mptcp_token_destroy()
379 bucket = token_bucket(msk->token); in mptcp_token_destroy()
381 pos = __token_lookup_msk(bucket, msk->token); in mptcp_token_destroy()
382 if (!WARN_ON_ONCE(pos != msk)) { in mptcp_token_destroy()