Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 25 of 206) sorted by relevance

123456789

/openbmc/linux/rust/alloc/
H A Dalloc.rs138 unsafe { __rust_realloc(ptr, layout.size(), layout.align(), new_size) } in realloc()
210 let new_size = new_layout.size(); in grow_impl() localVariable
213 intrinsics::assume(new_size >= old_layout.size()); in grow_impl()
215 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size); in grow_impl()
218 raw_ptr.add(old_size).write_bytes(0, new_size - old_size); in grow_impl()
220 Ok(NonNull::slice_from_raw_parts(ptr, new_size)) in grow_impl()
302 new_size if old_layout.align() == new_layout.align() => unsafe { in shrink()
304 intrinsics::assume(new_size <= old_layout.size()); in shrink()
306 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size); in shrink()
308 Ok(NonNull::slice_from_raw_parts(ptr, new_size)) in shrink()
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_inode_fork.c381 size_t new_size; in xfs_iroot_realloc() local
401 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc()
419 (int)new_size); in xfs_iroot_realloc()
420 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc()
439 new_size = 0; in xfs_iroot_realloc()
440 if (new_size > 0) { in xfs_iroot_realloc()
468 (int)new_size); in xfs_iroot_realloc()
473 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc()
505 ASSERT(new_size >= 0); in xfs_idata_realloc()
511 if (new_size == 0) { in xfs_idata_realloc()
[all …]
/openbmc/linux/fs/reiserfs/
H A Dobjectid.c183 int new_size = (s->s_blocksize - SB_SIZE) / sizeof(__u32) / 2 * 2; in reiserfs_convert_objectid_map_v1() local
193 if (cur_size > new_size) { in reiserfs_convert_objectid_map_v1()
198 objectid_map[new_size - 1] = objectid_map[cur_size - 1]; in reiserfs_convert_objectid_map_v1()
199 set_sb_oid_cursize(disk_sb, new_size); in reiserfs_convert_objectid_map_v1()
202 for (i = new_size - 1; i >= 0; i--) { in reiserfs_convert_objectid_map_v1()
203 objectid_map[i + (old_max - new_size)] = objectid_map[i]; in reiserfs_convert_objectid_map_v1()
207 set_sb_oid_maxsize(disk_sb, new_size); in reiserfs_convert_objectid_map_v1()
/openbmc/linux/scripts/kconfig/
H A Dlexer.l57 int new_size = text_size + size + 1; in append_string() local
58 if (new_size > text_asize) { in append_string()
59 new_size += START_STRSIZE - 1; in append_string()
60 new_size &= -START_STRSIZE; in append_string()
61 text = xrealloc(text, new_size); in append_string()
62 text_asize = new_size; in append_string()
/openbmc/linux/drivers/staging/most/dim2/
H A Ddim2.c452 u16 new_size; in configure_channel() local
472 if (new_size == 0) { in configure_channel()
477 if (new_size != buf_size) in configure_channel()
482 is_tx ? new_size * 2 : new_size); in configure_channel()
486 if (new_size == 0) { in configure_channel()
491 if (new_size != buf_size) in configure_channel()
496 is_tx ? new_size * 2 : new_size); in configure_channel()
500 if (new_size == 0) { in configure_channel()
506 if (new_size != buf_size) in configure_channel()
514 if (new_size == 0) { in configure_channel()
[all …]
/openbmc/u-boot/scripts/kconfig/
H A Dzconf.l51 int new_size = text_size + size + 1; in append_string() local
52 if (new_size > text_asize) { in append_string()
53 new_size += START_STRSIZE - 1; in append_string()
54 new_size &= -START_STRSIZE; in append_string()
55 text = xrealloc(text, new_size); in append_string()
56 text_asize = new_size; in append_string()
/openbmc/linux/fs/cachefiles/
H A Dinterface.c233 struct file *file, loff_t new_size) in cachefiles_shorten_object() argument
240 dio_size = round_up(new_size, CACHEFILES_DIO_BLOCK_SIZE); in cachefiles_shorten_object()
256 if (new_size < dio_size) { in cachefiles_shorten_object()
257 trace_cachefiles_trunc(object, inode, dio_size, new_size, in cachefiles_shorten_object()
262 new_size, dio_size - new_size); in cachefiles_shorten_object()
279 loff_t new_size) in cachefiles_resize_cookie() argument
288 _enter("%llu->%llu", old_size, new_size); in cachefiles_resize_cookie()
290 if (new_size < old_size) { in cachefiles_resize_cookie()
292 cachefiles_shorten_object(object, file, new_size); in cachefiles_resize_cookie()
294 object->cookie->object_size = new_size; in cachefiles_resize_cookie()
[all …]
/openbmc/linux/include/trace/events/
H A Dfscache.h463 TP_PROTO(struct fscache_cookie *cookie, loff_t new_size),
465 TP_ARGS(cookie, new_size),
469 __field(loff_t, new_size )
474 __entry->new_size = new_size;
478 __entry->cookie, __entry->new_size)
482 TP_PROTO(struct fscache_cookie *cookie, loff_t new_size),
484 TP_ARGS(cookie, new_size),
489 __field(loff_t, new_size )
495 __entry->new_size = new_size;
501 __entry->new_size)
/openbmc/linux/kernel/module/
H A Ddecompress.c89 size_t new_size = 0; in module_gzip_decompress() local
127 new_size += PAGE_SIZE - s.avail_out; in module_gzip_decompress()
136 retval = new_size; in module_gzip_decompress()
156 size_t new_size = 0; in module_xz_decompress() local
187 new_size += xz_buf.out_pos; in module_xz_decompress()
196 retval = new_size; in module_xz_decompress()
218 size_t new_size = 0; in module_zstd_decompress() local
275 new_size += zstd_dec.pos; in module_zstd_decompress()
284 retval = new_size; in module_zstd_decompress()
/openbmc/linux/arch/sparc/mm/
H A Dtsb.c370 static unsigned long tsb_size_to_rss_limit(unsigned long new_size) in tsb_size_to_rss_limit() argument
372 unsigned long num_ents = (new_size / sizeof(struct tsb)); in tsb_size_to_rss_limit()
399 unsigned long new_size, old_size, flags; in tsb_grow() local
409 for (new_size = 8192; new_size < max_tsb_size; new_size <<= 1UL) { in tsb_grow()
410 new_rss_limit = tsb_size_to_rss_limit(new_size); in tsb_grow()
416 if (new_size == max_tsb_size) in tsb_grow()
421 if (new_size > (PAGE_SIZE * 2)) in tsb_grow()
435 new_size = 8192; in tsb_grow()
449 tsb_init(new_tsb, new_size); in tsb_grow()
509 copy_tsb(old_tsb_base, old_size, new_tsb_base, new_size, in tsb_grow()
[all …]
/openbmc/linux/tools/bootconfig/
H A Dtest-bootconfig.sh57 new_size=$(stat -c %s $INITRD)
66 xpass test $new_size -eq $total_size
72 xpass test $new_size -eq $(stat -c %s $INITRD)
78 new_size=$(stat -c %s $INITRD)
79 xpass test $new_size -eq $initrd_size
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_deps.c81 unsigned int new_size = 2 * deps->fences_size; in i915_deps_grow() local
84 new_size = max(new_size, I915_DEPS_MIN_ALLOC_CHUNK); in i915_deps_grow()
85 new_fences = kmalloc_array(new_size, sizeof(*new_fences), deps->gfp); in i915_deps_grow()
94 deps->fences_size = new_size; in i915_deps_grow()
/openbmc/u-boot/fs/ubifs/
H A Dreplay.c60 loff_t new_size; member
189 min_blk = r->new_size / UBIFS_BLOCK_SIZE; in trun_remove_range()
253 r->new_size); in apply_replay_entry()
352 loff_t new_size) in insert_node() argument
374 r->new_size = new_size; in insert_node()
602 &used, 0, new_size); in replay_bud()
614 &used, 0, new_size); in replay_bud()
636 loff_t new_size = le64_to_cpu(trun->new_size); in replay_bud() local
641 new_size < 0 || new_size > c->max_inode_sz || in replay_bud()
642 old_size <= new_size) { in replay_bud()
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-gembird.c67 size_t new_size = *rsize + delta_size; in gembird_report_fixup() local
72 new_rdesc = devm_kzalloc(&hdev->dev, new_size, GFP_KERNEL); in gembird_report_fixup()
90 *rsize = new_size; in gembird_report_fixup()
/openbmc/linux/fs/jfs/
H A Dxattr.c597 int new_size) in ea_put() argument
603 if (new_size == 0) { in ea_put()
610 DXDsize(&ea_buf->new_ea, new_size); in ea_put()
667 int new_size; in __jfs_setxattr() local
683 new_size = sizeof (struct jfs_ea_list); in __jfs_setxattr()
699 new_size += EA_SIZE(ea); in __jfs_setxattr()
716 if (new_size > ea_buf.max_size) { in __jfs_setxattr()
770 if (xattr_size != new_size) { in __jfs_setxattr()
773 xattr_size, new_size); in __jfs_setxattr()
783 new_size = 0; in __jfs_setxattr()
[all …]
H A Dnamei.c472 s64 new_size = 0; in jfs_unlink() local
533 rc = new_size; in jfs_unlink()
546 if (new_size) in jfs_unlink()
565 new_size = xtTruncate_pmap(tid, ip, new_size); in jfs_unlink()
566 if (new_size < 0) { in jfs_unlink()
568 rc = new_size; in jfs_unlink()
1085 s64 new_size = 0; in jfs_rename() local
1201 rc = new_size; in jfs_rename()
1295 if (new_size) in jfs_rename()
1314 new_size = xtTruncate_pmap(tid, new_ip, new_size); in jfs_rename()
[all …]
/openbmc/linux/arch/s390/appldata/
H A Dappldata_os.c96 unsigned int new_size; in appldata_get_os_data() local
132 new_size = struct_size(os_data, os_cpu, os_data->nr_cpus); in appldata_get_os_data()
133 if (ops.size != new_size) { in appldata_get_os_data()
137 (unsigned long) ops.data, new_size, in appldata_get_os_data()
151 ops.size = new_size; in appldata_get_os_data()
/openbmc/u-boot/tools/
H A Dfit_image.c415 int fit_size, new_size; in fit_extract_data() local
478 new_size = fdt_totalsize(fdt); in fit_extract_data()
479 new_size = (new_size + 3) & ~3; in fit_extract_data()
482 if (ftruncate(fd, new_size)) { in fit_extract_data()
491 if (params->external_offset < new_size) { in fit_extract_data()
493 params->external_offset, new_size); in fit_extract_data()
497 new_size = params->external_offset; in fit_extract_data()
499 if (lseek(fd, new_size, SEEK_SET) < 0) { in fit_extract_data()
527 int fit_size, new_size, size, data_base; in fit_import_data() local
592 new_size = fdt_totalsize(fdt); in fit_import_data()
[all …]
/openbmc/linux/fs/btrfs/
H A Dinode-item.c469 u64 new_size = control->new_size; in btrfs_truncate_inode_items() local
485 control->last_size = new_size; in btrfs_truncate_inode_items()
562 if (item_end < new_size) in btrfs_truncate_inode_items()
564 if (found_key.offset >= new_size) in btrfs_truncate_inode_items()
584 extent_num_bytes = ALIGN(new_size - in btrfs_truncate_inode_items()
616 u32 size = (u32)(new_size - found_key.offset); in btrfs_truncate_inode_items()
637 control->sub_bytes += item_end + 1 - new_size; in btrfs_truncate_inode_items()
669 control->last_size = new_size; in btrfs_truncate_inode_items()
745 ASSERT(control->last_size >= new_size); in btrfs_truncate_inode_items()
746 if (!ret && control->last_size > new_size) in btrfs_truncate_inode_items()
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D175103 for new_size in 4096 1048576; do
107 _block_resize $TEST_IMG $new_size >/dev/null
108 stat -c "size=%s, blocks=%b" $TEST_IMG | _filter_blocks $extra_blocks $min_blocks $new_size
/openbmc/linux/drivers/platform/x86/dell/dell-wmi-sysman/
H A Dpasswordattr-interface.c43 size_t password_type_size, current_password_size, new_size; in set_new_password() local
69 new_size = calculate_string_buffer(new); in set_new_password()
70 buffer_size = security_area_size + password_type_size + current_password_size + new_size; in set_new_password()
92 ret = populate_string_buffer(start, new_size, new); in set_new_password()
/openbmc/linux/fs/xfs/
H A Dxfs_inode.h191 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof() argument
195 if (new_size > i_size || new_size < 0) in xfs_new_eof()
196 new_size = i_size; in xfs_new_eof()
197 return new_size > ip->i_disk_size ? new_size : 0; in xfs_new_eof()
557 xfs_fsize_t new_size) in xfs_itruncate_extents() argument
559 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
/openbmc/linux/fs/ubifs/
H A Dreplay.c58 loff_t new_size; member
187 min_blk = r->new_size / UBIFS_BLOCK_SIZE; in trun_remove_range()
188 if (r->new_size & (UBIFS_BLOCK_SIZE - 1)) in trun_remove_range()
286 r->new_size); in apply_replay_entry()
409 r->new_size = new_size; in insert_node()
747 &used, 0, new_size); in replay_bud()
759 &used, 0, new_size); in replay_bud()
781 loff_t new_size = le64_to_cpu(trun->new_size); in replay_bud() local
786 new_size < 0 || new_size > c->max_inode_sz || in replay_bud()
787 old_size <= new_size) { in replay_bud()
[all …]
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_cotable.c399 static int vmw_cotable_resize(struct vmw_resource *res, size_t new_size) in vmw_cotable_resize() argument
416 .size = new_size, in vmw_cotable_resize()
486 res->guest_memory_size = new_size; in vmw_cotable_resize()
547 size_t new_size = res->guest_memory_size; in vmw_cotable_create() local
553 while (needed_size > new_size) in vmw_cotable_create()
554 new_size *= 2; in vmw_cotable_create()
556 if (likely(new_size <= res->guest_memory_size)) { in vmw_cotable_create()
566 return vmw_cotable_resize(res, new_size); in vmw_cotable_create()
/openbmc/linux/fs/ntfs3/
H A Dattrlist.c296 u64 new_size; in al_add_le() local
304 new_size = old_size + sz; in al_add_le()
306 new_asize = al_aligned(new_size); in al_add_le()
312 if (new_size > asize) { in al_add_le()
328 al->size = new_size; in al_add_le()
339 err = attr_set_size(ni, ATTR_LIST, NULL, 0, &al->run, new_size, in al_add_le()
340 &new_size, true, &attr); in al_add_le()

123456789