Lines Matching refs:cache
197 struct netlbl_lsm_cache *cache; member
279 struct netlbl_lsm_cache *cache; in netlbl_secattr_cache_alloc_noprof() local
281 cache = kzalloc_noprof(sizeof(*cache), flags); in netlbl_secattr_cache_alloc_noprof()
282 if (cache) in netlbl_secattr_cache_alloc_noprof()
283 refcount_set(&cache->refcount, 1); in netlbl_secattr_cache_alloc_noprof()
284 return cache; in netlbl_secattr_cache_alloc_noprof()
297 static inline void netlbl_secattr_cache_free(struct netlbl_lsm_cache *cache) in netlbl_secattr_cache_free() argument
299 if (!refcount_dec_and_test(&cache->refcount)) in netlbl_secattr_cache_free()
302 if (cache->free) in netlbl_secattr_cache_free()
303 cache->free(cache->data); in netlbl_secattr_cache_free()
304 kfree(cache); in netlbl_secattr_cache_free()
368 netlbl_secattr_cache_free(secattr->cache); in netlbl_secattr_destroy()