Lines Matching refs:object_size

295 		return s->object_size;  in slab_ksize()
634 print_section("Object ", p, min_t(unsigned long, s->object_size, in print_trailer()
637 print_section("Redzone ", p + s->object_size, in print_trailer()
638 s->inuse - s->object_size); in print_trailer()
681 memset(p, POISON_FREE, s->object_size - 1); in init_object()
682 p[s->object_size - 1] = POISON_END; in init_object()
686 memset(p + s->object_size, val, s->inuse - s->object_size); in init_object()
817 u8 *endobject = object + s->object_size; in check_object()
821 endobject, val, s->inuse - s->object_size)) in check_object()
824 if ((s->flags & SLAB_POISON) && s->object_size < s->inuse) { in check_object()
827 s->inuse - s->object_size); in check_object()
834 POISON_FREE, s->object_size - 1) || in check_object()
836 p + s->object_size - 1, POISON_END, 1))) in check_object()
957 s->object_size); in trace()
1212 unsigned long kmem_cache_flags(unsigned long object_size, in kmem_cache_flags() argument
1245 unsigned long kmem_cache_flags(unsigned long object_size, in kmem_cache_flags() argument
1289 if (should_failslab(s->object_size, flags, s->flags)) in slab_pre_alloc_hook()
1305 kmemleak_alloc_recursive(object, s->object_size, 1, in slab_post_alloc_hook()
1326 kmemcheck_slab_free(s, x, s->object_size); in slab_free_hook()
1327 debug_check_no_locks_freed(x, s->object_size); in slab_free_hook()
1332 debug_check_no_obj_freed(x, s->object_size); in slab_free_hook()
2234 s->name, s->object_size, s->size, oo_order(s->oo), in slab_out_of_memory()
2237 if (oo_order(s->min) > get_order(s->object_size)) in slab_out_of_memory()
2562 memset(object, 0, s->object_size); in slab_alloc_node()
2579 trace_kmem_cache_alloc(_RET_IP_, ret, s->object_size, in kmem_cache_alloc()
2603 s->object_size, s->size, gfpflags, node); in kmem_cache_alloc_node()
2957 memset(p[j], 0, s->object_size); in kmem_cache_alloc_bulk()
3226 unsigned long size = s->object_size; in calculate_sizes()
3254 if ((flags & SLAB_RED_ZONE) && size == s->object_size) in calculate_sizes()
3348 if (get_order(s->size) > get_order(s->object_size)) { in kmem_cache_open()
3859 memcpy(s, static_cache, kmem_cache->object_size); in bootstrap()
3948 s->object_size = max(s->object_size, (int)size); in __kmem_cache_alias()
3952 c->object_size = s->object_size; in __kmem_cache_alias()
4616 return sprintf(buf, "%d\n", s->object_size); in object_size_show()
4618 SLAB_ATTR_RO(object_size);