Lines Matching refs:gss_pipe

60 struct gss_pipe {  struct
83 struct gss_pipe *gss_pipe[2]; argument
521 gss_msg->pipe = gss_auth->gss_pipe[vers]->pipe; in gss_alloc_msg()
858 struct gss_pipe *gss_pipe = pdo->pdo_data; in gss_pipe_dentry_destroy() local
859 struct rpc_pipe *pipe = gss_pipe->pipe; in gss_pipe_dentry_destroy()
870 struct gss_pipe *p = pdo->pdo_data; in gss_pipe_dentry_create()
885 static struct gss_pipe *gss_pipe_alloc(struct rpc_clnt *clnt, in gss_pipe_alloc()
889 struct gss_pipe *p; in gss_pipe_alloc()
921 struct gss_pipe *gss_pipe; in gss_pipe_match_pdo() local
926 gss_pipe = container_of(pdo, struct gss_pipe, pdo); in gss_pipe_match_pdo()
927 if (strcmp(gss_pipe->name, args->name) != 0) in gss_pipe_match_pdo()
929 if (!kref_get_unless_zero(&gss_pipe->kref)) in gss_pipe_match_pdo()
936 struct gss_pipe *gss_pipe; in gss_pipe_alloc_pdo() local
939 gss_pipe = gss_pipe_alloc(args->clnt, args->name, args->upcall_ops); in gss_pipe_alloc_pdo()
940 if (!IS_ERR(gss_pipe)) in gss_pipe_alloc_pdo()
941 return &gss_pipe->pdo; in gss_pipe_alloc_pdo()
945 static struct gss_pipe *gss_pipe_get(struct rpc_clnt *clnt, in gss_pipe_get()
963 return container_of(pdo, struct gss_pipe, pdo); in gss_pipe_get()
967 static void __gss_pipe_free(struct gss_pipe *p) in __gss_pipe_free()
981 struct gss_pipe *p = container_of(kref, struct gss_pipe, kref); in __gss_pipe_release()
986 static void gss_pipe_free(struct gss_pipe *p) in gss_pipe_free()
1001 struct gss_pipe *gss_pipe; in gss_create_new() local
1050 gss_pipe = gss_pipe_get(clnt, "gssd", &gss_upcall_ops_v1); in gss_create_new()
1051 if (IS_ERR(gss_pipe)) { in gss_create_new()
1052 err = PTR_ERR(gss_pipe); in gss_create_new()
1055 gss_auth->gss_pipe[1] = gss_pipe; in gss_create_new()
1057 gss_pipe = gss_pipe_get(clnt, gss_auth->mech->gm_name, in gss_create_new()
1059 if (IS_ERR(gss_pipe)) { in gss_create_new()
1060 err = PTR_ERR(gss_pipe); in gss_create_new()
1063 gss_auth->gss_pipe[0] = gss_pipe; in gss_create_new()
1067 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_create_new()
1086 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_free()
1087 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_free()
1122 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_destroy()
1123 gss_auth->gss_pipe[0] = NULL; in gss_destroy()
1124 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_destroy()
1125 gss_auth->gss_pipe[1] = NULL; in gss_destroy()