Lines Matching refs:cache
197 struct netlbl_lsm_cache *cache; member
280 struct netlbl_lsm_cache *cache; in netlbl_secattr_cache_alloc_noprof() local
282 cache = kzalloc_noprof(sizeof(*cache), flags); in netlbl_secattr_cache_alloc_noprof()
283 if (cache) in netlbl_secattr_cache_alloc_noprof()
284 refcount_set(&cache->refcount, 1); in netlbl_secattr_cache_alloc_noprof()
285 return cache; in netlbl_secattr_cache_alloc_noprof()
298 static inline void netlbl_secattr_cache_free(struct netlbl_lsm_cache *cache) in netlbl_secattr_cache_free() argument
300 if (!refcount_dec_and_test(&cache->refcount)) in netlbl_secattr_cache_free()
303 if (cache->free) in netlbl_secattr_cache_free()
304 cache->free(cache->data); in netlbl_secattr_cache_free()
305 kfree(cache); in netlbl_secattr_cache_free()
369 netlbl_secattr_cache_free(secattr->cache); in netlbl_secattr_destroy()