Home
last modified time | relevance | path

Searched refs:object_size (Results 1 – 25 of 45) sorted by relevance

12

/linux/drivers/acpi/acpica/
H A Dutcache.c33 u16 object_size, in acpi_os_create_cache() argument
40 if (!cache_name || !return_cache || !object_size) { in acpi_os_create_cache()
55 cache->object_size = object_size; in acpi_os_create_cache()
180 memset(object, 0xCA, cache->object_size); in acpi_os_release_object()
250 memset(object, 0, cache->object_size); in acpi_os_acquire_object()
271 object = ACPI_ALLOCATE_ZEROED(cache->object_size); in acpi_os_acquire_object()
H A Ddbstats.c80 (list->current_depth * list->object_size)); in acpi_db_list_info()
87 list->requests - list->hits, list->object_size); in acpi_db_list_info()
92 if (list->object_size) { in acpi_db_list_info()
97 outstanding * list->object_size, outstanding); in acpi_db_list_info()
H A Duttrack.c60 u16 object_size, struct acpi_memory_list **return_cache) in acpi_ut_create_list() argument
70 cache->object_size = object_size; in acpi_ut_create_list()
/linux/fs/ceph/
H A Dioctl.c28 l.object_size = ci->i_layout.object_size; in ceph_ioctl_get_layout()
44 if ((l->object_size & ~PAGE_MASK) || in __validate_layout()
47 ((unsigned)l->object_size % (unsigned)l->stripe_unit))) in __validate_layout()
92 if (l.object_size) in ceph_ioctl_set_layout()
93 nl.object_size = l.object_size; in ceph_ioctl_set_layout()
95 nl.object_size = ci->i_layout.object_size; in ceph_ioctl_set_layout()
123 cpu_to_le32(l.object_size); in ceph_ioctl_set_layout()
167 cpu_to_le32(l.object_size); in ceph_ioctl_set_layout_policy()
202 dl.object_size = ci->i_layout.object_size; in ceph_ioctl_get_dataloc()
H A Dutil.c15 __u32 os = layout->object_size; in ceph_file_layout_is_valid()
36 fl->object_size = le32_to_cpu(legacy->fl_object_size); in ceph_file_layout_from_legacy()
39 fl->stripe_count == 0 && fl->object_size == 0) in ceph_file_layout_from_legacy()
48 legacy->fl_object_size = cpu_to_le32(fl->object_size); in ceph_file_layout_to_legacy()
H A Dioctl.h36 __u64 stripe_unit, stripe_count, object_size; member
60 __u64 object_size; /* out: object size */ member
H A Dfile.c2613 s32 object_size = ci->i_layout.object_size; in ceph_zero_objects() local
2614 u64 object_set_size = (u64) object_size * stripe_count; in ceph_zero_objects()
2884 u32 object_size = src_ci->i_layout.object_size; in ceph_do_objects_copy() local
2894 while (len >= object_size) { in ceph_do_objects_copy()
2896 object_size, &src_objnum, in ceph_do_objects_copy()
2899 object_size, &dst_objnum, in ceph_do_objects_copy()
2921 object_size, ret); in ceph_do_objects_copy()
2935 len -= object_size; in ceph_do_objects_copy()
2936 bytes += object_size; in ceph_do_objects_copy()
2937 *src_off += object_size; in ceph_do_objects_copy()
[all …]
/linux/mm/kasan/
H A Dgeneric.c352 static inline unsigned int optimal_redzone(unsigned int object_size) in optimal_redzone() argument
355 object_size <= 64 - 16 ? 16 : in optimal_redzone()
356 object_size <= 128 - 32 ? 32 : in optimal_redzone()
357 object_size <= 512 - 64 ? 64 : in optimal_redzone()
358 object_size <= 4096 - 128 ? 128 : in optimal_redzone()
359 object_size <= (1 << 14) - 256 ? 256 : in optimal_redzone()
360 object_size <= (1 << 15) - 512 ? 512 : in optimal_redzone()
361 object_size <= (1 << 16) - 1024 ? 1024 : 2048; in optimal_redzone()
421 if (sizeof(struct kasan_free_meta) <= cache->object_size) { in kasan_cache_create()
435 cache->object_size; in kasan_cache_create()
[all …]
H A Dreport_hw_tags.c45 while (size < cache->object_size) { in kasan_get_alloc_size()
54 return cache->object_size; in kasan_get_alloc_size()
H A Dreport_sw_tags.c63 while (size < cache->object_size) { in kasan_get_alloc_size()
71 return cache->object_size; in kasan_get_alloc_size()
H A Dcommon.c168 kasan_unpoison(object, cache->object_size, false); in __kasan_unpoison_new_object()
173 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in __kasan_poison_new_object()
249 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in poison_slab_object()
336 kasan_unpoison(object, cache->object_size, init); in unpoison_slab_object()
388 redzone_end = round_up((unsigned long)(object + cache->object_size), in poison_kmalloc_redzone()
H A Dreport_generic.c61 while (size < cache->object_size) { in kasan_get_alloc_size()
71 return cache->object_size; in kasan_get_alloc_size()
H A Dreport_tags.c63 info->cache->object_size != entry->size) in kasan_complete_mode_report_info()
H A Dtags.c128 entry->size = cache->object_size; in save_stack_info()
H A Dreport.c302 info->object, info->cache->name, info->cache->object_size); in describe_object_addr()
509 info->alloc_size = info->cache->object_size; in complete_report_info()
/linux/lib/
H A Dobjpool.c118 int objpool_init(struct objpool_head *pool, int nr_objs, int object_size, in objpool_init() argument
126 object_size <= 0 || object_size > OBJPOOL_OBJECT_SIZE_MAX) in objpool_init()
130 object_size = ALIGN(object_size, sizeof(long)); in objpool_init()
140 pool->obj_size = object_size; in objpool_init()
/linux/fs/cachefiles/
H A Dxattr.c21 __be64 object_size; /* Actual size of the object */ member
57 buf->object_size = cpu_to_be64(object->cookie->object_size); in cachefiles_set_object_xattr()
138 } else if (be64_to_cpu(buf->object_size) != object->cookie->object_size) { in cachefiles_check_auxdata()
/linux/tools/mm/
H A Dslabinfo.c33 unsigned int hwcache_align, object_size, objs_per_slab; member
383 return slab_size(s) - s->objects * s->object_size; in slab_waste()
576 s->object_size, s->slabs, onoff(s->sanity_checks), in report()
580 onoff(s->red_zone), s->objects * s->object_size); in report()
583 s->slabs * (page_size << s->order) - s->objects * s->object_size); in report()
585 s->slab_size - s->object_size, s->cpu_slabs, onoff(s->store_user), in report()
586 (s->slab_size - s->object_size) * s->objects); in report()
668 s->name, s->objects, s->object_size, size_str, dist_str, in slabcache()
671 s->slabs ? (s->objects * s->object_size * 100) / in slabcache()
874 used = s->objects * s->object_size; in totals()
[all …]
/linux/mm/
H A Dslab_common.c83 return s->object_size; in kmem_cache_size()
223 unsigned int object_size, in create_cache() argument
233 (args->freeptr_offset >= object_size || in create_cache()
242 err = do_kmem_cache_create(s, name, object_size, args, flags); in create_cache()
284 unsigned int object_size, in __kmem_cache_create_args() argument
310 err = kmem_cache_sanity_check(name, object_size); in __kmem_cache_create_args()
323 WARN_ON(object_size < args->usersize || in __kmem_cache_create_args()
324 object_size - args->usersize < args->useroffset)) in __kmem_cache_create_args()
328 s = __kmem_cache_alias(name, object_size, args->align, flags, in __kmem_cache_create_args()
339 args->align = calculate_alignment(flags, args->align, object_size); in __kmem_cache_create_args()
[all …]
H A Dslub.c881 return s->object_size; in get_orig_size()
1129 set_orig_size(s, (void *)object, s->object_size); in skip_orig_size_check()
1190 min_t(unsigned int, s->object_size, PAGE_SIZE)); in print_trailer()
1192 print_section(KERN_ERR, "Redzone ", p + s->object_size, in print_trailer()
1193 s->inuse - s->object_size); in print_trailer()
1272 unsigned int poison_size = s->object_size; in init_object()
1360 * object + s->object_size
1363 * object_size == inuse.
1383 * If slabcaches are merged then the object_size and inuse boundaries are mostly
1451 u8 *endobject = object + s->object_size; in check_object()
[all...]
H A Dslab.h228 unsigned int object_size; /* Object size without metadata */ member
568 return s->object_size; in slab_ksize()
571 return s->object_size; in slab_ksize()
H A Dfailslab.c46 return should_fail_ex(&failslab.attr, s->object_size, flags) ? -ENOMEM : 0; in should_failslab()
/linux/fs/netfs/
H A Dfscache_cookie.c330 loff_t object_size) in fscache_alloc_cookie() argument
344 cookie->object_size = object_size; in fscache_alloc_cookie()
345 if (object_size == 0) in fscache_alloc_cookie()
455 loff_t object_size) in __fscache_acquire_cookie() argument
473 object_size); in __fscache_acquire_cookie()
666 const void *aux_data, const loff_t *object_size) in __fscache_unuse_cookie() argument
673 if (aux_data || object_size) in __fscache_unuse_cookie()
674 __fscache_update_cookie(cookie, aux_data, object_size); in __fscache_unuse_cookie()
/linux/net/ceph/
H A Dstriper.c28 u32 stripes_per_object = l->object_size / l->stripe_unit; in ceph_calc_file_object_mapping()
216 u32 stripes_per_object = l->object_size / l->stripe_unit; in ceph_extent_to_file()
265 u64 period = (u64)l->stripe_count * l->object_size; in ceph_get_num_objects()
/linux/mm/kmsan/
H A Dhooks.c63 kmsan_internal_unpoison_memory(object, s->object_size, in kmsan_slab_alloc()
66 kmsan_internal_poison_memory(object, s->object_size, flags, in kmsan_slab_alloc()
87 kmsan_internal_poison_memory(object, s->object_size, in kmsan_slab_free()

12