Lines Matching refs:gss_cred

139 	struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base);  in gss_cred_set_ctx()  local
144 rcu_assign_pointer(gss_cred->gc_ctx, ctx); in gss_cred_set_ctx()
182 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_get_ctx() local
186 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_cred_get_ctx()
401 gss_handle_downcall_result(struct gss_cred *gss_cred, struct gss_upcall_msg *gss_msg) in gss_handle_downcall_result() argument
407 clear_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
408 gss_cred_set_ctx(&gss_cred->gc_base, gss_msg->ctx); in gss_handle_downcall_result()
411 set_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
413 gss_cred->gc_upcall_timestamp = jiffies; in gss_handle_downcall_result()
414 gss_cred->gc_upcall = NULL; in gss_handle_downcall_result()
421 struct gss_cred *gss_cred = container_of(task->tk_rqstp->rq_cred, in gss_upcall_callback() local
422 struct gss_cred, gc_base); in gss_upcall_callback()
423 struct gss_upcall_msg *gss_msg = gss_cred->gc_upcall; in gss_upcall_callback()
427 gss_handle_downcall_result(gss_cred, gss_msg); in gss_upcall_callback()
532 struct gss_cred *gss_cred = container_of(cred, in gss_setup_upcall() local
533 struct gss_cred, gc_base); in gss_setup_upcall()
537 gss_new = gss_alloc_msg(gss_auth, uid, gss_cred->gc_principal); in gss_setup_upcall()
563 struct gss_cred *gss_cred = container_of(cred, in gss_refresh_upcall() local
564 struct gss_cred, gc_base); in gss_refresh_upcall()
586 if (gss_cred->gc_upcall != NULL) in gss_refresh_upcall()
587 rpc_sleep_on(&gss_cred->gc_upcall->rpc_waitqueue, task, NULL); in gss_refresh_upcall()
590 gss_cred->gc_upcall = gss_msg; in gss_refresh_upcall()
595 gss_handle_downcall_result(gss_cred, gss_msg); in gss_refresh_upcall()
608 gss_create_upcall(struct gss_auth *gss_auth, struct gss_cred *gss_cred) in gss_create_upcall() argument
613 struct rpc_cred *cred = &gss_cred->gc_base; in gss_create_upcall()
1209 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_destroying_context() local
1211 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_destroying_context()
1260 gss_free_cred(struct gss_cred *gss_cred) in gss_free_cred() argument
1262 dprintk("RPC: %s cred=%p\n", __func__, gss_cred); in gss_free_cred()
1263 kfree(gss_cred); in gss_free_cred()
1269 struct gss_cred *gss_cred = container_of(head, struct gss_cred, gc_base.cr_rcu); in gss_free_cred_callback() local
1270 gss_free_cred(gss_cred); in gss_free_cred_callback()
1276 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_destroy_nullcred() local
1278 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_destroy_nullcred()
1280 RCU_INIT_POINTER(gss_cred->gc_ctx, NULL); in gss_destroy_nullcred()
1309 struct gss_cred *cred = NULL; in gss_create_cred()
1341 struct gss_cred *gss_cred = container_of(cred,struct gss_cred, gc_base); in gss_cred_init() local
1345 err = gss_create_upcall(gss_auth, gss_cred); in gss_cred_init()
1354 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_stringify_acceptor() local
1360 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1376 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1412 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_key_timeout() local
1418 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_key_timeout()
1429 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_match() local
1437 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_match()
1447 if (gss_cred->gc_principal == NULL) in gss_match()
1449 ret = strcmp(acred->principal, gss_cred->gc_principal) == 0; in gss_match()
1452 if (gss_cred->gc_principal != NULL) in gss_match()
1480 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_marshal() local
1501 *p++ = htonl((u32) gss_cred->gc_service); in gss_marshal()
1534 struct gss_cred *gss_cred = container_of(oldcred, in gss_renew_cred() local
1535 struct gss_cred, in gss_renew_cred()
1540 .principal = gss_cred->gc_principal, in gss_renew_cred()
1541 .machine_cred = (gss_cred->gc_principal != NULL ? 1 : 0), in gss_renew_cred()
1558 struct gss_cred *gss_cred; in gss_cred_is_negative_entry() local
1560 gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_is_negative_entry()
1561 begin = gss_cred->gc_upcall_timestamp; in gss_cred_is_negative_entry()
1826 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_wrap_req() local
1840 switch (gss_cred->gc_service) { in gss_wrap_req()
1938 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_unwrap_resp() local
1948 switch (gss_cred->gc_service) { in gss_unwrap_resp()