Lines Matching refs:gss_pipe

58 struct gss_pipe {  struct
80 struct gss_pipe *gss_pipe[2]; argument
547 gss_msg->pipe = gss_auth->gss_pipe[vers]->pipe; in gss_alloc_msg()
882 struct gss_pipe *gss_pipe = pdo->pdo_data; in gss_pipe_dentry_destroy() local
883 struct rpc_pipe *pipe = gss_pipe->pipe; in gss_pipe_dentry_destroy()
894 struct gss_pipe *p = pdo->pdo_data; in gss_pipe_dentry_create()
909 static struct gss_pipe *gss_pipe_alloc(struct rpc_clnt *clnt, in gss_pipe_alloc()
913 struct gss_pipe *p; in gss_pipe_alloc()
945 struct gss_pipe *gss_pipe; in gss_pipe_match_pdo() local
950 gss_pipe = container_of(pdo, struct gss_pipe, pdo); in gss_pipe_match_pdo()
951 if (strcmp(gss_pipe->name, args->name) != 0) in gss_pipe_match_pdo()
953 if (!kref_get_unless_zero(&gss_pipe->kref)) in gss_pipe_match_pdo()
960 struct gss_pipe *gss_pipe; in gss_pipe_alloc_pdo() local
963 gss_pipe = gss_pipe_alloc(args->clnt, args->name, args->upcall_ops); in gss_pipe_alloc_pdo()
964 if (!IS_ERR(gss_pipe)) in gss_pipe_alloc_pdo()
965 return &gss_pipe->pdo; in gss_pipe_alloc_pdo()
969 static struct gss_pipe *gss_pipe_get(struct rpc_clnt *clnt, in gss_pipe_get()
987 return container_of(pdo, struct gss_pipe, pdo); in gss_pipe_get()
991 static void __gss_pipe_free(struct gss_pipe *p) in __gss_pipe_free()
1005 struct gss_pipe *p = container_of(kref, struct gss_pipe, kref); in __gss_pipe_release()
1010 static void gss_pipe_free(struct gss_pipe *p) in gss_pipe_free()
1025 struct gss_pipe *gss_pipe; in gss_create_new() local
1073 gss_pipe = gss_pipe_get(clnt, "gssd", &gss_upcall_ops_v1); in gss_create_new()
1074 if (IS_ERR(gss_pipe)) { in gss_create_new()
1075 err = PTR_ERR(gss_pipe); in gss_create_new()
1078 gss_auth->gss_pipe[1] = gss_pipe; in gss_create_new()
1080 gss_pipe = gss_pipe_get(clnt, gss_auth->mech->gm_name, in gss_create_new()
1082 if (IS_ERR(gss_pipe)) { in gss_create_new()
1083 err = PTR_ERR(gss_pipe); in gss_create_new()
1086 gss_auth->gss_pipe[0] = gss_pipe; in gss_create_new()
1090 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_create_new()
1109 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_free()
1110 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_free()
1145 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_destroy()
1146 gss_auth->gss_pipe[0] = NULL; in gss_destroy()
1147 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_destroy()
1148 gss_auth->gss_pipe[1] = NULL; in gss_destroy()