Lines Matching refs:gss_cred

135 	struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base);  in gss_cred_set_ctx()  local
140 rcu_assign_pointer(gss_cred->gc_ctx, ctx); in gss_cred_set_ctx()
149 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_get_ctx() local
153 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_cred_get_ctx()
373 gss_handle_downcall_result(struct gss_cred *gss_cred, struct gss_upcall_msg *gss_msg) in gss_handle_downcall_result() argument
379 clear_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
380 gss_cred_set_ctx(&gss_cred->gc_base, gss_msg->ctx); in gss_handle_downcall_result()
383 set_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
385 gss_cred->gc_upcall_timestamp = jiffies; in gss_handle_downcall_result()
386 gss_cred->gc_upcall = NULL; in gss_handle_downcall_result()
393 struct gss_cred *gss_cred = container_of(task->tk_rqstp->rq_cred, in gss_upcall_callback() local
394 struct gss_cred, gc_base); in gss_upcall_callback()
395 struct gss_upcall_msg *gss_msg = gss_cred->gc_upcall; in gss_upcall_callback()
399 gss_handle_downcall_result(gss_cred, gss_msg); in gss_upcall_callback()
564 struct gss_cred *gss_cred = container_of(cred, in gss_setup_upcall() local
565 struct gss_cred, gc_base); in gss_setup_upcall()
569 gss_new = gss_alloc_msg(gss_auth, uid, gss_cred->gc_principal); in gss_setup_upcall()
599 struct gss_cred *gss_cred = container_of(cred, in gss_refresh_upcall() local
600 struct gss_cred, gc_base); in gss_refresh_upcall()
621 if (gss_cred->gc_upcall != NULL) in gss_refresh_upcall()
622 rpc_sleep_on(&gss_cred->gc_upcall->rpc_waitqueue, task, NULL); in gss_refresh_upcall()
624 gss_cred->gc_upcall = gss_msg; in gss_refresh_upcall()
629 gss_handle_downcall_result(gss_cred, gss_msg); in gss_refresh_upcall()
641 gss_create_upcall(struct gss_auth *gss_auth, struct gss_cred *gss_cred) in gss_create_upcall() argument
646 struct rpc_cred *cred = &gss_cred->gc_base; in gss_create_upcall()
690 trace_rpcgss_ctx_init(gss_cred); in gss_create_upcall()
1249 static struct gss_cred *
1250 gss_dup_cred(struct gss_auth *gss_auth, struct gss_cred *gss_cred) in gss_dup_cred() argument
1252 struct gss_cred *new; in gss_dup_cred()
1255 new = kzalloc(sizeof(*gss_cred), GFP_KERNEL); in gss_dup_cred()
1258 .cred = gss_cred->gc_base.cr_cred, in gss_dup_cred()
1261 rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_dup_cred()
1267 new->gc_service = gss_cred->gc_service; in gss_dup_cred()
1268 new->gc_principal = gss_cred->gc_principal; in gss_dup_cred()
1285 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_send_destroy_context() local
1287 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_send_destroy_context()
1288 struct gss_cred *new; in gss_send_destroy_context()
1291 new = gss_dup_cred(gss_auth, gss_cred); in gss_send_destroy_context()
1295 trace_rpcgss_ctx_destroy(gss_cred); in gss_send_destroy_context()
1331 gss_free_cred(struct gss_cred *gss_cred) in gss_free_cred() argument
1333 kfree(gss_cred); in gss_free_cred()
1339 struct gss_cred *gss_cred = container_of(head, struct gss_cred, gc_base.cr_rcu); in gss_free_cred_callback() local
1340 gss_free_cred(gss_cred); in gss_free_cred_callback()
1346 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_destroy_nullcred() local
1348 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_destroy_nullcred()
1350 RCU_INIT_POINTER(gss_cred->gc_ctx, NULL); in gss_destroy_nullcred()
1386 struct gss_cred *cred = NULL; in gss_create_cred()
1411 struct gss_cred *gss_cred = container_of(cred,struct gss_cred, gc_base); in gss_cred_init() local
1415 err = gss_create_upcall(gss_auth, gss_cred); in gss_cred_init()
1424 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_stringify_acceptor() local
1430 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1446 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1482 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_key_timeout() local
1488 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_key_timeout()
1499 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_match() local
1507 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_match()
1517 if (gss_cred->gc_principal == NULL) in gss_match()
1519 ret = strcmp(acred->principal, gss_cred->gc_principal) == 0; in gss_match()
1521 if (gss_cred->gc_principal != NULL) in gss_match()
1539 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_marshal() local
1568 *p++ = cpu_to_be32(gss_cred->gc_service); in gss_marshal()
1612 struct gss_cred *gss_cred = container_of(oldcred, in gss_renew_cred() local
1613 struct gss_cred, in gss_renew_cred()
1618 .principal = gss_cred->gc_principal, in gss_renew_cred()
1636 struct gss_cred *gss_cred; in gss_cred_is_negative_entry() local
1638 gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_is_negative_entry()
1639 begin = gss_cred->gc_upcall_timestamp; in gss_cred_is_negative_entry()
1912 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_wrap_req() local
1925 switch (gss_cred->gc_service) { in gss_wrap_req()
2151 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_unwrap_resp() local
2158 switch (gss_cred->gc_service) { in gss_unwrap_resp()