Lines Matching refs:gss_pipe

81 struct gss_pipe {  struct
103 struct gss_pipe *gss_pipe[2]; argument
503 gss_msg->pipe = gss_auth->gss_pipe[vers]->pipe; in gss_alloc_msg()
842 struct gss_pipe *gss_pipe = pdo->pdo_data; in gss_pipe_dentry_destroy() local
843 struct rpc_pipe *pipe = gss_pipe->pipe; in gss_pipe_dentry_destroy()
854 struct gss_pipe *p = pdo->pdo_data; in gss_pipe_dentry_create()
869 static struct gss_pipe *gss_pipe_alloc(struct rpc_clnt *clnt, in gss_pipe_alloc()
873 struct gss_pipe *p; in gss_pipe_alloc()
905 struct gss_pipe *gss_pipe; in gss_pipe_match_pdo() local
910 gss_pipe = container_of(pdo, struct gss_pipe, pdo); in gss_pipe_match_pdo()
911 if (strcmp(gss_pipe->name, args->name) != 0) in gss_pipe_match_pdo()
913 if (!kref_get_unless_zero(&gss_pipe->kref)) in gss_pipe_match_pdo()
920 struct gss_pipe *gss_pipe; in gss_pipe_alloc_pdo() local
923 gss_pipe = gss_pipe_alloc(args->clnt, args->name, args->upcall_ops); in gss_pipe_alloc_pdo()
924 if (!IS_ERR(gss_pipe)) in gss_pipe_alloc_pdo()
925 return &gss_pipe->pdo; in gss_pipe_alloc_pdo()
929 static struct gss_pipe *gss_pipe_get(struct rpc_clnt *clnt, in gss_pipe_get()
947 return container_of(pdo, struct gss_pipe, pdo); in gss_pipe_get()
951 static void __gss_pipe_free(struct gss_pipe *p) in __gss_pipe_free()
965 struct gss_pipe *p = container_of(kref, struct gss_pipe, kref); in __gss_pipe_release()
970 static void gss_pipe_free(struct gss_pipe *p) in gss_pipe_free()
985 struct gss_pipe *gss_pipe; in gss_create_new() local
1032 gss_pipe = gss_pipe_get(clnt, "gssd", &gss_upcall_ops_v1); in gss_create_new()
1033 if (IS_ERR(gss_pipe)) { in gss_create_new()
1034 err = PTR_ERR(gss_pipe); in gss_create_new()
1037 gss_auth->gss_pipe[1] = gss_pipe; in gss_create_new()
1039 gss_pipe = gss_pipe_get(clnt, gss_auth->mech->gm_name, in gss_create_new()
1041 if (IS_ERR(gss_pipe)) { in gss_create_new()
1042 err = PTR_ERR(gss_pipe); in gss_create_new()
1045 gss_auth->gss_pipe[0] = gss_pipe; in gss_create_new()
1049 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_create_new()
1067 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_free()
1068 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_free()
1106 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_destroy()
1107 gss_auth->gss_pipe[0] = NULL; in gss_destroy()
1108 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_destroy()
1109 gss_auth->gss_pipe[1] = NULL; in gss_destroy()