Lines Matching refs:object_size
128 static inline unsigned int optimal_redzone(unsigned int object_size) in optimal_redzone() argument
131 object_size <= 64 - 16 ? 16 : in optimal_redzone()
132 object_size <= 128 - 32 ? 32 : in optimal_redzone()
133 object_size <= 512 - 64 ? 64 : in optimal_redzone()
134 object_size <= 4096 - 128 ? 128 : in optimal_redzone()
135 object_size <= (1 << 14) - 256 ? 256 : in optimal_redzone()
136 object_size <= (1 << 15) - 512 ? 512 : in optimal_redzone()
137 object_size <= (1 << 16) - 1024 ? 1024 : 2048; in optimal_redzone()
193 cache->object_size < sizeof(struct kasan_free_meta)) { in __kasan_cache_create()
207 optimal_size = cache->object_size + optimal_redzone(cache->object_size); in __kasan_cache_create()
262 kasan_unpoison(object, cache->object_size, false); in __kasan_unpoison_object_data()
267 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in __kasan_poison_object_data()
359 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in ____kasan_slab_free()
463 kasan_unpoison(tagged_object, cache->object_size, init); in __kasan_slab_alloc()
503 redzone_end = round_up((unsigned long)(object + cache->object_size), in ____kasan_kmalloc()