Lines Matching refs:gss_pipe

76 struct gss_pipe {  struct
99 struct gss_pipe *gss_pipe[2]; argument
537 gss_msg->pipe = gss_auth->gss_pipe[vers]->pipe; in gss_alloc_msg()
889 struct gss_pipe *gss_pipe = pdo->pdo_data; in gss_pipe_dentry_destroy() local
890 struct rpc_pipe *pipe = gss_pipe->pipe; in gss_pipe_dentry_destroy()
901 struct gss_pipe *p = pdo->pdo_data; in gss_pipe_dentry_create()
916 static struct gss_pipe *gss_pipe_alloc(struct rpc_clnt *clnt, in gss_pipe_alloc()
920 struct gss_pipe *p; in gss_pipe_alloc()
952 struct gss_pipe *gss_pipe; in gss_pipe_match_pdo() local
957 gss_pipe = container_of(pdo, struct gss_pipe, pdo); in gss_pipe_match_pdo()
958 if (strcmp(gss_pipe->name, args->name) != 0) in gss_pipe_match_pdo()
960 if (!kref_get_unless_zero(&gss_pipe->kref)) in gss_pipe_match_pdo()
967 struct gss_pipe *gss_pipe; in gss_pipe_alloc_pdo() local
970 gss_pipe = gss_pipe_alloc(args->clnt, args->name, args->upcall_ops); in gss_pipe_alloc_pdo()
971 if (!IS_ERR(gss_pipe)) in gss_pipe_alloc_pdo()
972 return &gss_pipe->pdo; in gss_pipe_alloc_pdo()
976 static struct gss_pipe *gss_pipe_get(struct rpc_clnt *clnt, in gss_pipe_get()
994 return container_of(pdo, struct gss_pipe, pdo); in gss_pipe_get()
998 static void __gss_pipe_free(struct gss_pipe *p) in __gss_pipe_free()
1012 struct gss_pipe *p = container_of(kref, struct gss_pipe, kref); in __gss_pipe_release()
1017 static void gss_pipe_free(struct gss_pipe *p) in gss_pipe_free()
1032 struct gss_pipe *gss_pipe; in gss_create_new() local
1082 gss_pipe = gss_pipe_get(clnt, "gssd", &gss_upcall_ops_v1); in gss_create_new()
1083 if (IS_ERR(gss_pipe)) { in gss_create_new()
1084 err = PTR_ERR(gss_pipe); in gss_create_new()
1087 gss_auth->gss_pipe[1] = gss_pipe; in gss_create_new()
1089 gss_pipe = gss_pipe_get(clnt, gss_auth->mech->gm_name, in gss_create_new()
1091 if (IS_ERR(gss_pipe)) { in gss_create_new()
1092 err = PTR_ERR(gss_pipe); in gss_create_new()
1095 gss_auth->gss_pipe[0] = gss_pipe; in gss_create_new()
1099 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_create_new()
1118 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_free()
1119 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_free()
1154 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_destroy()
1155 gss_auth->gss_pipe[0] = NULL; in gss_destroy()
1156 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_destroy()
1157 gss_auth->gss_pipe[1] = NULL; in gss_destroy()