Lines Matching refs:msk
155 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_token_new_connect() local
175 WRITE_ONCE(msk->token, subflow->token); in mptcp_token_new_connect()
176 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain); in mptcp_token_new_connect()
191 struct mptcp_sock *msk) in mptcp_token_accept() argument
203 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain); in mptcp_token_accept()
211 struct mptcp_sock *msk; in mptcp_token_exists() local
219 msk = mptcp_sk(sk); in mptcp_token_exists()
220 if (READ_ONCE(msk->token) == token) in mptcp_token_exists()
247 struct mptcp_sock *msk; in mptcp_token_get_sock() local
255 msk = mptcp_sk(sk); in mptcp_token_get_sock()
256 if (READ_ONCE(msk->token) != token || in mptcp_token_get_sock()
263 if (READ_ONCE(msk->token) != token || in mptcp_token_get_sock()
274 msk = NULL; in mptcp_token_get_sock()
278 return msk; in mptcp_token_get_sock()
372 void mptcp_token_destroy(struct mptcp_sock *msk) in mptcp_token_destroy() argument
377 if (sk_unhashed((struct sock *)msk)) in mptcp_token_destroy()
380 bucket = token_bucket(msk->token); in mptcp_token_destroy()
382 pos = __token_lookup_msk(bucket, msk->token); in mptcp_token_destroy()
383 if (!WARN_ON_ONCE(pos != msk)) { in mptcp_token_destroy()