• Home
  • Raw
  • Download

Lines Matching refs:msk

54 	struct mptcp_sock *msk;  in build_msk()  local
56 msk = kunit_kzalloc(test, sizeof(struct mptcp_sock), GFP_USER); in build_msk()
57 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, msk); in build_msk()
58 refcount_set(&((struct sock *)msk)->sk_refcnt, 1); in build_msk()
59 sock_net_set((struct sock *)msk, &init_net); in build_msk()
62 ((struct sock *)msk)->sk_prot = &tcp_prot; in build_msk()
63 return msk; in build_msk()
70 struct mptcp_sock *msk = build_msk(test); in mptcp_token_test_msk_basic() local
75 ctx->conn = (struct sock *)msk; in mptcp_token_test_msk_basic()
76 sk = (struct sock *)msk; in mptcp_token_test_msk_basic()
81 KUNIT_EXPECT_EQ(test, ctx->token, msk->token); in mptcp_token_test_msk_basic()
82 KUNIT_EXPECT_PTR_EQ(test, msk, mptcp_token_get_sock(&init_net, ctx->token)); in mptcp_token_test_msk_basic()
85 mptcp_token_destroy(msk); in mptcp_token_test_msk_basic()
92 struct mptcp_sock *msk = build_msk(test); in mptcp_token_test_accept() local
96 msk->token = req->token; in mptcp_token_test_accept()
97 mptcp_token_accept(req, msk); in mptcp_token_test_accept()
98 KUNIT_EXPECT_PTR_EQ(test, msk, mptcp_token_get_sock(&init_net, msk->token)); in mptcp_token_test_accept()
102 KUNIT_EXPECT_PTR_EQ(test, msk, mptcp_token_get_sock(&init_net, msk->token)); in mptcp_token_test_accept()
105 mptcp_token_destroy(msk); in mptcp_token_test_accept()
111 struct mptcp_sock *msk = build_msk(test); in mptcp_token_test_destroyed() local
115 sk = (struct sock *)msk; in mptcp_token_test_destroyed()
119 msk->token = req->token; in mptcp_token_test_destroyed()
120 mptcp_token_accept(req, msk); in mptcp_token_test_destroyed()
124 KUNIT_EXPECT_PTR_EQ(test, null_msk, mptcp_token_get_sock(&init_net, msk->token)); in mptcp_token_test_destroyed()
127 mptcp_token_destroy(msk); in mptcp_token_test_destroyed()