Lines Matching refs:cache
208 struct netlbl_lsm_cache *cache; member
233 struct netlbl_lsm_cache *cache; in netlbl_secattr_cache_alloc() local
235 cache = kzalloc(sizeof(*cache), flags); in netlbl_secattr_cache_alloc()
236 if (cache) in netlbl_secattr_cache_alloc()
237 atomic_set(&cache->refcount, 1); in netlbl_secattr_cache_alloc()
238 return cache; in netlbl_secattr_cache_alloc()
249 static inline void netlbl_secattr_cache_free(struct netlbl_lsm_cache *cache) in netlbl_secattr_cache_free() argument
251 if (!atomic_dec_and_test(&cache->refcount)) in netlbl_secattr_cache_free()
254 if (cache->free) in netlbl_secattr_cache_free()
255 cache->free(cache->data); in netlbl_secattr_cache_free()
256 kfree(cache); in netlbl_secattr_cache_free()
321 netlbl_secattr_cache_free(secattr->cache); in netlbl_secattr_destroy()