Lines Matching refs:cache
209 struct netlbl_lsm_cache *cache; member
234 struct netlbl_lsm_cache *cache; in netlbl_secattr_cache_alloc() local
236 cache = kzalloc(sizeof(*cache), flags); in netlbl_secattr_cache_alloc()
237 if (cache) in netlbl_secattr_cache_alloc()
238 atomic_set(&cache->refcount, 1); in netlbl_secattr_cache_alloc()
239 return cache; in netlbl_secattr_cache_alloc()
250 static inline void netlbl_secattr_cache_free(struct netlbl_lsm_cache *cache) in netlbl_secattr_cache_free() argument
252 if (!atomic_dec_and_test(&cache->refcount)) in netlbl_secattr_cache_free()
255 if (cache->free) in netlbl_secattr_cache_free()
256 cache->free(cache->data); in netlbl_secattr_cache_free()
257 kfree(cache); in netlbl_secattr_cache_free()
320 netlbl_secattr_cache_free(secattr->cache); in netlbl_secattr_destroy()