Lines Matching refs:cache
134 static void *qlink_to_object(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_to_object() argument
140 return ((void *)free_info) - cache->kasan_info.free_meta_offset; in qlink_to_object()
143 static void qlink_free(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_free() argument
145 void *object = qlink_to_object(qlink, cache); in qlink_free()
146 struct kasan_free_meta *meta = kasan_get_free_meta(cache, object); in qlink_free()
158 if (slab_want_init_on_free(cache) && in qlink_free()
159 cache->kasan_info.free_meta_offset == 0) in qlink_free()
168 ___cache_free(cache, object, _THIS_IP_); in qlink_free()
174 static void qlist_free_all(struct qlist_head *q, struct kmem_cache *cache) in qlist_free_all() argument
184 cache ? cache : qlink_to_cache(qlink); in qlist_free_all()
193 bool kasan_quarantine_put(struct kmem_cache *cache, void *object) in kasan_quarantine_put() argument
198 struct kasan_free_meta *meta = kasan_get_free_meta(cache, object); in kasan_quarantine_put()
222 qlist_put(q, &meta->quarantine_link, cache->size); in kasan_quarantine_put()
300 struct kmem_cache *cache) in qlist_move_cache() argument
313 if (obj_cache == cache) in qlist_move_cache()
325 struct kmem_cache *cache = arg; in __per_cpu_remove_cache() local
328 qlist_move_cache(q, &to_free, cache); in __per_cpu_remove_cache()
329 qlist_free_all(&to_free, cache); in __per_cpu_remove_cache()
334 struct kmem_cache *cache = arg; in __per_cpu_remove_cache() local
340 qlist_move_cache(q, &sq->qlist, cache); in __per_cpu_remove_cache()
361 void kasan_quarantine_remove_cache(struct kmem_cache *cache) in kasan_quarantine_remove_cache() argument
373 on_each_cpu(per_cpu_remove_cache, cache, 1); in kasan_quarantine_remove_cache()
383 qlist_move_cache(&sq->qlist, &to_free, cache); in kasan_quarantine_remove_cache()
386 qlist_free_all(&to_free, cache); in kasan_quarantine_remove_cache()
394 qlist_move_cache(&global_quarantine[i], &to_free, cache); in kasan_quarantine_remove_cache()
402 qlist_free_all(&to_free, cache); in kasan_quarantine_remove_cache()