Lines Matching refs:walker
489 struct ecryptfs_global_auth_tok *walker; in ecryptfs_find_global_auth_tok_for_sig() local
495 list_for_each_entry(walker, in ecryptfs_find_global_auth_tok_for_sig()
498 if (memcmp(walker->sig, sig, ECRYPTFS_SIG_SIZE_HEX)) in ecryptfs_find_global_auth_tok_for_sig()
501 if (walker->flags & ECRYPTFS_AUTH_TOK_INVALID) { in ecryptfs_find_global_auth_tok_for_sig()
506 rc = key_validate(walker->global_auth_tok_key); in ecryptfs_find_global_auth_tok_for_sig()
513 down_write(&(walker->global_auth_tok_key->sem)); in ecryptfs_find_global_auth_tok_for_sig()
515 walker->global_auth_tok_key, auth_tok); in ecryptfs_find_global_auth_tok_for_sig()
519 (*auth_tok_key) = walker->global_auth_tok_key; in ecryptfs_find_global_auth_tok_for_sig()
526 up_write(&(walker->global_auth_tok_key->sem)); in ecryptfs_find_global_auth_tok_for_sig()
529 walker->flags |= ECRYPTFS_AUTH_TOK_INVALID; in ecryptfs_find_global_auth_tok_for_sig()
530 key_put(walker->global_auth_tok_key); in ecryptfs_find_global_auth_tok_for_sig()
531 walker->global_auth_tok_key = NULL; in ecryptfs_find_global_auth_tok_for_sig()