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()
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()
259 if (READ_ONCE(msk->token) != token) { in mptcp_token_get_sock()
269 msk = NULL; in mptcp_token_get_sock()
273 return msk; in mptcp_token_get_sock()
367 void mptcp_token_destroy(struct mptcp_sock *msk) in mptcp_token_destroy() argument
372 if (sk_unhashed((struct sock *)msk)) in mptcp_token_destroy()
375 bucket = token_bucket(msk->token); in mptcp_token_destroy()
377 pos = __token_lookup_msk(bucket, msk->token); in mptcp_token_destroy()
378 if (!WARN_ON_ONCE(pos != msk)) { in mptcp_token_destroy()