Lines Matching refs:gss_cred

117 	struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base);  in gss_cred_set_ctx()  local
122 rcu_assign_pointer(gss_cred->gc_ctx, ctx); in gss_cred_set_ctx()
160 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_get_ctx() local
164 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_cred_get_ctx()
384 gss_handle_downcall_result(struct gss_cred *gss_cred, struct gss_upcall_msg *gss_msg) in gss_handle_downcall_result() argument
390 clear_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
391 gss_cred_set_ctx(&gss_cred->gc_base, gss_msg->ctx); in gss_handle_downcall_result()
394 set_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
396 gss_cred->gc_upcall_timestamp = jiffies; in gss_handle_downcall_result()
397 gss_cred->gc_upcall = NULL; in gss_handle_downcall_result()
404 struct gss_cred *gss_cred = container_of(task->tk_rqstp->rq_cred, in gss_upcall_callback() local
405 struct gss_cred, gc_base); in gss_upcall_callback()
406 struct gss_upcall_msg *gss_msg = gss_cred->gc_upcall; in gss_upcall_callback()
410 gss_handle_downcall_result(gss_cred, gss_msg); in gss_upcall_callback()
575 struct gss_cred *gss_cred = container_of(cred, in gss_setup_upcall() local
576 struct gss_cred, gc_base); in gss_setup_upcall()
580 gss_new = gss_alloc_msg(gss_auth, uid, gss_cred->gc_principal); in gss_setup_upcall()
610 struct gss_cred *gss_cred = container_of(cred, in gss_refresh_upcall() local
611 struct gss_cred, gc_base); in gss_refresh_upcall()
632 if (gss_cred->gc_upcall != NULL) in gss_refresh_upcall()
633 rpc_sleep_on(&gss_cred->gc_upcall->rpc_waitqueue, task, NULL); in gss_refresh_upcall()
635 gss_cred->gc_upcall = gss_msg; in gss_refresh_upcall()
640 gss_handle_downcall_result(gss_cred, gss_msg); in gss_refresh_upcall()
652 gss_create_upcall(struct gss_auth *gss_auth, struct gss_cred *gss_cred) in gss_create_upcall() argument
657 struct rpc_cred *cred = &gss_cred->gc_base; in gss_create_upcall()
701 trace_rpcgss_ctx_init(gss_cred); in gss_create_upcall()
1243 static struct gss_cred *
1244 gss_dup_cred(struct gss_auth *gss_auth, struct gss_cred *gss_cred) in gss_dup_cred() argument
1246 struct gss_cred *new; in gss_dup_cred()
1249 new = kzalloc(sizeof(*gss_cred), GFP_NOFS); in gss_dup_cred()
1252 .cred = gss_cred->gc_base.cr_cred, in gss_dup_cred()
1255 rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_dup_cred()
1261 new->gc_service = gss_cred->gc_service; in gss_dup_cred()
1262 new->gc_principal = gss_cred->gc_principal; in gss_dup_cred()
1279 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_send_destroy_context() local
1281 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_send_destroy_context()
1282 struct gss_cred *new; in gss_send_destroy_context()
1285 new = gss_dup_cred(gss_auth, gss_cred); in gss_send_destroy_context()
1289 trace_rpcgss_ctx_destroy(gss_cred); in gss_send_destroy_context()
1325 gss_free_cred(struct gss_cred *gss_cred) in gss_free_cred() argument
1327 kfree(gss_cred); in gss_free_cred()
1333 struct gss_cred *gss_cred = container_of(head, struct gss_cred, gc_base.cr_rcu); in gss_free_cred_callback() local
1334 gss_free_cred(gss_cred); in gss_free_cred_callback()
1340 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_destroy_nullcred() local
1342 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_destroy_nullcred()
1344 RCU_INIT_POINTER(gss_cred->gc_ctx, NULL); in gss_destroy_nullcred()
1379 struct gss_cred *cred = NULL; in gss_create_cred()
1404 struct gss_cred *gss_cred = container_of(cred,struct gss_cred, gc_base); in gss_cred_init() local
1408 err = gss_create_upcall(gss_auth, gss_cred); in gss_cred_init()
1417 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_stringify_acceptor() local
1423 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1439 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1475 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_key_timeout() local
1481 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_key_timeout()
1492 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_match() local
1500 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_match()
1510 if (gss_cred->gc_principal == NULL) in gss_match()
1512 ret = strcmp(acred->principal, gss_cred->gc_principal) == 0; in gss_match()
1514 if (gss_cred->gc_principal != NULL) in gss_match()
1532 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_marshal() local
1561 *p++ = cpu_to_be32(gss_cred->gc_service); in gss_marshal()
1605 struct gss_cred *gss_cred = container_of(oldcred, in gss_renew_cred() local
1606 struct gss_cred, in gss_renew_cred()
1611 .principal = gss_cred->gc_principal, in gss_renew_cred()
1629 struct gss_cred *gss_cred; in gss_cred_is_negative_entry() local
1631 gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_is_negative_entry()
1632 begin = gss_cred->gc_upcall_timestamp; in gss_cred_is_negative_entry()
1903 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_wrap_req() local
1916 switch (gss_cred->gc_service) { in gss_wrap_req()
2142 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_unwrap_resp() local
2149 switch (gss_cred->gc_service) { in gss_unwrap_resp()