Lines Matching refs:gss_pipe
59 struct gss_pipe { struct
81 struct gss_pipe *gss_pipe[2]; argument
548 gss_msg->pipe = gss_auth->gss_pipe[vers]->pipe; in gss_alloc_msg()
885 struct gss_pipe *gss_pipe = pdo->pdo_data; in gss_pipe_dentry_destroy() local
886 struct rpc_pipe *pipe = gss_pipe->pipe; in gss_pipe_dentry_destroy()
897 struct gss_pipe *p = pdo->pdo_data; in gss_pipe_dentry_create()
912 static struct gss_pipe *gss_pipe_alloc(struct rpc_clnt *clnt, in gss_pipe_alloc()
916 struct gss_pipe *p; in gss_pipe_alloc()
948 struct gss_pipe *gss_pipe; in gss_pipe_match_pdo() local
953 gss_pipe = container_of(pdo, struct gss_pipe, pdo); in gss_pipe_match_pdo()
954 if (strcmp(gss_pipe->name, args->name) != 0) in gss_pipe_match_pdo()
956 if (!kref_get_unless_zero(&gss_pipe->kref)) in gss_pipe_match_pdo()
963 struct gss_pipe *gss_pipe; in gss_pipe_alloc_pdo() local
966 gss_pipe = gss_pipe_alloc(args->clnt, args->name, args->upcall_ops); in gss_pipe_alloc_pdo()
967 if (!IS_ERR(gss_pipe)) in gss_pipe_alloc_pdo()
968 return &gss_pipe->pdo; in gss_pipe_alloc_pdo()
972 static struct gss_pipe *gss_pipe_get(struct rpc_clnt *clnt, in gss_pipe_get()
990 return container_of(pdo, struct gss_pipe, pdo); in gss_pipe_get()
994 static void __gss_pipe_free(struct gss_pipe *p) in __gss_pipe_free()
1008 struct gss_pipe *p = container_of(kref, struct gss_pipe, kref); in __gss_pipe_release()
1013 static void gss_pipe_free(struct gss_pipe *p) in gss_pipe_free()
1028 struct gss_pipe *gss_pipe; in gss_create_new() local
1076 gss_pipe = gss_pipe_get(clnt, "gssd", &gss_upcall_ops_v1); in gss_create_new()
1077 if (IS_ERR(gss_pipe)) { in gss_create_new()
1078 err = PTR_ERR(gss_pipe); in gss_create_new()
1081 gss_auth->gss_pipe[1] = gss_pipe; in gss_create_new()
1083 gss_pipe = gss_pipe_get(clnt, gss_auth->mech->gm_name, in gss_create_new()
1085 if (IS_ERR(gss_pipe)) { in gss_create_new()
1086 err = PTR_ERR(gss_pipe); in gss_create_new()
1089 gss_auth->gss_pipe[0] = gss_pipe; in gss_create_new()
1093 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_create_new()
1112 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_free()
1113 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_free()
1148 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_destroy()
1149 gss_auth->gss_pipe[0] = NULL; in gss_destroy()
1150 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_destroy()
1151 gss_auth->gss_pipe[1] = NULL; in gss_destroy()