Lines Matching refs:gss_pipe
60 struct gss_pipe { struct
82 struct gss_pipe *gss_pipe[2]; argument
520 gss_msg->pipe = gss_auth->gss_pipe[vers]->pipe; in gss_alloc_msg()
857 struct gss_pipe *gss_pipe = pdo->pdo_data; in gss_pipe_dentry_destroy() local
858 struct rpc_pipe *pipe = gss_pipe->pipe; in gss_pipe_dentry_destroy()
869 struct gss_pipe *p = pdo->pdo_data; in gss_pipe_dentry_create()
884 static struct gss_pipe *gss_pipe_alloc(struct rpc_clnt *clnt, in gss_pipe_alloc()
888 struct gss_pipe *p; in gss_pipe_alloc()
920 struct gss_pipe *gss_pipe; in gss_pipe_match_pdo() local
925 gss_pipe = container_of(pdo, struct gss_pipe, pdo); in gss_pipe_match_pdo()
926 if (strcmp(gss_pipe->name, args->name) != 0) in gss_pipe_match_pdo()
928 if (!kref_get_unless_zero(&gss_pipe->kref)) in gss_pipe_match_pdo()
935 struct gss_pipe *gss_pipe; in gss_pipe_alloc_pdo() local
938 gss_pipe = gss_pipe_alloc(args->clnt, args->name, args->upcall_ops); in gss_pipe_alloc_pdo()
939 if (!IS_ERR(gss_pipe)) in gss_pipe_alloc_pdo()
940 return &gss_pipe->pdo; in gss_pipe_alloc_pdo()
944 static struct gss_pipe *gss_pipe_get(struct rpc_clnt *clnt, in gss_pipe_get()
962 return container_of(pdo, struct gss_pipe, pdo); in gss_pipe_get()
966 static void __gss_pipe_free(struct gss_pipe *p) in __gss_pipe_free()
980 struct gss_pipe *p = container_of(kref, struct gss_pipe, kref); in __gss_pipe_release()
985 static void gss_pipe_free(struct gss_pipe *p) in gss_pipe_free()
1000 struct gss_pipe *gss_pipe; in gss_create_new() local
1048 gss_pipe = gss_pipe_get(clnt, "gssd", &gss_upcall_ops_v1); in gss_create_new()
1049 if (IS_ERR(gss_pipe)) { in gss_create_new()
1050 err = PTR_ERR(gss_pipe); in gss_create_new()
1053 gss_auth->gss_pipe[1] = gss_pipe; in gss_create_new()
1055 gss_pipe = gss_pipe_get(clnt, gss_auth->mech->gm_name, in gss_create_new()
1057 if (IS_ERR(gss_pipe)) { in gss_create_new()
1058 err = PTR_ERR(gss_pipe); in gss_create_new()
1061 gss_auth->gss_pipe[0] = gss_pipe; in gss_create_new()
1065 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_create_new()
1084 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_free()
1085 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_free()
1120 gss_pipe_free(gss_auth->gss_pipe[0]); in gss_destroy()
1121 gss_auth->gss_pipe[0] = NULL; in gss_destroy()
1122 gss_pipe_free(gss_auth->gss_pipe[1]); in gss_destroy()
1123 gss_auth->gss_pipe[1] = NULL; in gss_destroy()