Lines Matching refs:cache
198 struct netlbl_lsm_cache *cache; member
280 struct netlbl_lsm_cache *cache; in netlbl_secattr_cache_alloc() local
282 cache = kzalloc(sizeof(*cache), flags); in netlbl_secattr_cache_alloc()
283 if (cache) in netlbl_secattr_cache_alloc()
284 refcount_set(&cache->refcount, 1); in netlbl_secattr_cache_alloc()
285 return cache; in netlbl_secattr_cache_alloc()
296 static inline void netlbl_secattr_cache_free(struct netlbl_lsm_cache *cache) in netlbl_secattr_cache_free() argument
298 if (!refcount_dec_and_test(&cache->refcount)) in netlbl_secattr_cache_free()
301 if (cache->free) in netlbl_secattr_cache_free()
302 cache->free(cache->data); in netlbl_secattr_cache_free()
303 kfree(cache); in netlbl_secattr_cache_free()
366 netlbl_secattr_cache_free(secattr->cache); in netlbl_secattr_destroy()