Lines Matching refs:cache
378 rpcauth_clear_credcache(struct rpc_cred_cache *cache) in rpcauth_clear_credcache() argument
383 unsigned int hashsize = 1U << cache->hashbits; in rpcauth_clear_credcache()
387 spin_lock(&cache->lock); in rpcauth_clear_credcache()
389 head = &cache->hashtable[i]; in rpcauth_clear_credcache()
398 spin_unlock(&cache->lock); in rpcauth_clear_credcache()
409 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_destroy_credcache() local
411 if (cache) { in rpcauth_destroy_credcache()
413 rpcauth_clear_credcache(cache); in rpcauth_destroy_credcache()
414 kfree(cache->hashtable); in rpcauth_destroy_credcache()
415 kfree(cache); in rpcauth_destroy_credcache()
518 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_lookup_credcache() local
523 nr = auth->au_ops->hash_cred(acred, cache->hashbits); in rpcauth_lookup_credcache()
526 hlist_for_each_entry_rcu(entry, &cache->hashtable[nr], cr_hash) { in rpcauth_lookup_credcache()
544 spin_lock(&cache->lock); in rpcauth_lookup_credcache()
545 hlist_for_each_entry(entry, &cache->hashtable[nr], cr_hash) { in rpcauth_lookup_credcache()
556 hlist_add_head_rcu(&cred->cr_hash, &cache->hashtable[nr]); in rpcauth_lookup_credcache()
559 spin_unlock(&cache->lock); in rpcauth_lookup_credcache()