/Linux-v6.1/rust/alloc/ |
D | alloc.rs | 38 fn __rust_realloc(ptr: *mut u8, old_size: usize, align: usize, new_size: usize) -> *mut u8; in __rust_realloc() 127 pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc() 128 unsafe { __rust_realloc(ptr, layout.size(), layout.align(), new_size) } in realloc() 200 let new_size = new_layout.size(); in grow_impl() localVariable 203 intrinsics::assume(new_size >= old_layout.size()); in grow_impl() 205 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size); in grow_impl() 208 raw_ptr.add(old_size).write_bytes(0, new_size - old_size); in grow_impl() 210 Ok(NonNull::slice_from_raw_parts(ptr, new_size)) in grow_impl() 292 new_size if old_layout.align() == new_layout.align() => unsafe { in shrink() 294 intrinsics::assume(new_size <= old_layout.size()); in shrink() [all …]
|
/Linux-v6.1/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 366 size_t new_size; in xfs_iroot_realloc() local 384 new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, rec_diff); in xfs_iroot_realloc() 385 ifp->if_broot = kmem_alloc(new_size, KM_NOFS); in xfs_iroot_realloc() 386 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc() 398 new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, new_max); in xfs_iroot_realloc() 399 ifp->if_broot = krealloc(ifp->if_broot, new_size, in xfs_iroot_realloc() 404 (int)new_size); in xfs_iroot_realloc() 405 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc() 422 new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, new_max); in xfs_iroot_realloc() 424 new_size = 0; in xfs_iroot_realloc() [all …]
|
/Linux-v6.1/fs/reiserfs/ |
D | objectid.c | 183 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()
|
/Linux-v6.1/scripts/kconfig/ |
D | lexer.l | 57 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()
|
/Linux-v6.1/drivers/staging/most/dim2/ |
D | dim2.c | 449 u16 new_size; in configure_channel() local 468 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel() 469 if (new_size == 0) { in configure_channel() 473 ccfg->buffer_size = new_size; in configure_channel() 474 if (new_size != buf_size) in configure_channel() 476 hdm_ch->name, buf_size, new_size); in configure_channel() 479 is_tx ? new_size * 2 : new_size); in configure_channel() 482 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel() 483 if (new_size == 0) { in configure_channel() 487 ccfg->buffer_size = new_size; in configure_channel() [all …]
|
/Linux-v6.1/fs/cachefiles/ |
D | interface.c | 228 struct file *file, loff_t new_size) in cachefiles_shorten_object() argument 235 dio_size = round_up(new_size, CACHEFILES_DIO_BLOCK_SIZE); in cachefiles_shorten_object() 251 if (new_size < dio_size) { in cachefiles_shorten_object() 252 trace_cachefiles_trunc(object, inode, dio_size, new_size, in cachefiles_shorten_object() 257 new_size, dio_size - new_size); in cachefiles_shorten_object() 274 loff_t new_size) in cachefiles_resize_cookie() argument 283 _enter("%llu->%llu", old_size, new_size); in cachefiles_resize_cookie() 285 if (new_size < old_size) { in cachefiles_resize_cookie() 287 cachefiles_shorten_object(object, file, new_size); in cachefiles_resize_cookie() 289 object->cookie->object_size = new_size; in cachefiles_resize_cookie() [all …]
|
/Linux-v6.1/include/trace/events/ |
D | fscache.h | 459 TP_PROTO(struct fscache_cookie *cookie, loff_t new_size), 461 TP_ARGS(cookie, new_size), 465 __field(loff_t, new_size ) 470 __entry->new_size = new_size; 474 __entry->cookie, __entry->new_size) 478 TP_PROTO(struct fscache_cookie *cookie, loff_t new_size), 480 TP_ARGS(cookie, new_size), 485 __field(loff_t, new_size ) 491 __entry->new_size = new_size; 497 __entry->new_size)
|
/Linux-v6.1/arch/sparc/mm/ |
D | tsb.c | 370 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 …]
|
/Linux-v6.1/tools/bootconfig/ |
D | test-bootconfig.sh | 57 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
|
/Linux-v6.1/drivers/gpu/drm/i915/ |
D | i915_deps.c | 81 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()
|
/Linux-v6.1/fs/jfs/ |
D | xattr.c | 593 int new_size) in ea_put() argument 599 if (new_size == 0) { in ea_put() 603 assert(new_size <= sizeof (ji->i_inline_ea)); in ea_put() 606 DXDsize(&ea_buf->new_ea, new_size); in ea_put() 610 rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea); in ea_put() 617 rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea); in ea_put() 663 int new_size; in __jfs_setxattr() local 679 new_size = sizeof (struct jfs_ea_list); in __jfs_setxattr() 695 new_size += EA_SIZE(ea); in __jfs_setxattr() 710 new_size += sizeof (struct jfs_ea) + namelen + 1 + value_len; in __jfs_setxattr() [all …]
|
D | namei.c | 472 s64 new_size = 0; in jfs_unlink() local 527 if ((new_size = commitZeroLink(tid, ip)) < 0) { in jfs_unlink() 533 rc = new_size; in jfs_unlink() 546 if (new_size) in jfs_unlink() 562 while (new_size && (rc == 0)) { 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() 1080 s64 new_size = 0; in jfs_rename() local 1194 if ((new_size = commitZeroLink(tid, new_ip)) < 0) { in jfs_rename() [all …]
|
/Linux-v6.1/fs/btrfs/ |
D | inode-item.c | 464 u64 new_size = control->new_size; in btrfs_truncate_inode_items() local 478 ASSERT(new_size == 0 || control->min_type == BTRFS_EXTENT_DATA_KEY); in btrfs_truncate_inode_items() 480 control->last_size = new_size; in btrfs_truncate_inode_items() 557 if (item_end < new_size) in btrfs_truncate_inode_items() 559 if (found_key.offset >= new_size) in btrfs_truncate_inode_items() 579 extent_num_bytes = ALIGN(new_size - in btrfs_truncate_inode_items() 582 clear_start = ALIGN(new_size, fs_info->sectorsize); in btrfs_truncate_inode_items() 611 u32 size = (u32)(new_size - found_key.offset); in btrfs_truncate_inode_items() 632 control->sub_bytes += item_end + 1 - new_size; in btrfs_truncate_inode_items() 665 control->last_size = new_size; in btrfs_truncate_inode_items() [all …]
|
/Linux-v6.1/kernel/module/ |
D | decompress.c | 89 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()
|
/Linux-v6.1/drivers/hid/ |
D | hid-gembird.c | 67 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()
|
/Linux-v6.1/arch/s390/appldata/ |
D | appldata_os.c | 96 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()
|
/Linux-v6.1/fs/xfs/ |
D | xfs_inode.h | 173 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof() argument 177 if (new_size > i_size || new_size < 0) in xfs_new_eof() 178 new_size = i_size; in xfs_new_eof() 179 return new_size > ip->i_disk_size ? new_size : 0; in xfs_new_eof() 528 xfs_fsize_t new_size) in xfs_itruncate_extents() argument 530 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
|
/Linux-v6.1/fs/ubifs/ |
D | replay.c | 58 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() 386 loff_t old_size, loff_t new_size) in insert_node() argument 409 r->new_size = new_size; in insert_node() 741 loff_t new_size = le64_to_cpu(ino->size); in replay_bud() local 747 &used, 0, new_size); in replay_bud() 753 loff_t new_size = le32_to_cpu(dn->size) + in replay_bud() local 759 &used, 0, new_size); in replay_bud() [all …]
|
/Linux-v6.1/drivers/platform/x86/dell/dell-wmi-sysman/ |
D | passwordattr-interface.c | 43 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()
|
/Linux-v6.1/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cotable.c | 384 static int vmw_cotable_resize(struct vmw_resource *res, size_t new_size) in vmw_cotable_resize() argument 410 ret = vmw_bo_create(dev_priv, new_size, &vmw_mob_placement, in vmw_cotable_resize() 459 res->backup_size = new_size; in vmw_cotable_resize() 515 size_t new_size = res->backup_size; in vmw_cotable_create() local 521 while (needed_size > new_size) in vmw_cotable_create() 522 new_size *= 2; in vmw_cotable_create() 524 if (likely(new_size <= res->backup_size)) { in vmw_cotable_create() 534 return vmw_cotable_resize(res, new_size); in vmw_cotable_create()
|
/Linux-v6.1/fs/ntfs3/ |
D | attrlist.c | 280 u64 new_size; in al_add_le() local 288 new_size = old_size + sz; in al_add_le() 290 new_asize = al_aligned(new_size); in al_add_le() 296 if (new_size > asize) { in al_add_le() 312 al->size = new_size; in al_add_le() 323 err = attr_set_size(ni, ATTR_LIST, NULL, 0, &al->run, new_size, in al_add_le() 324 &new_size, true, &attr); in al_add_le()
|
/Linux-v6.1/drivers/comedi/ |
D | comedi_buf.c | 257 unsigned long new_size) in comedi_buf_alloc() argument 264 new_size = (new_size + PAGE_SIZE - 1) & PAGE_MASK; in comedi_buf_alloc() 267 if (async->prealloc_buf && async->prealloc_bufsz == new_size) in comedi_buf_alloc() 274 if (new_size) { in comedi_buf_alloc() 275 unsigned int n_pages = new_size >> PAGE_SHIFT; in comedi_buf_alloc() 285 async->prealloc_bufsz = new_size; in comedi_buf_alloc()
|
/Linux-v6.1/drivers/scsi/cxlflash/ |
D | vlun.c | 505 u64 *new_size) in grow_lxt() argument 516 u64 delta = *new_size - rhte->lxt_cnt; in grow_lxt() 601 *new_size = my_new_size; in grow_lxt() 623 u64 *new_size) in shrink_lxt() argument 636 u64 delta = rhte->lxt_cnt - *new_size; in shrink_lxt() 709 *new_size = my_new_size; in shrink_lxt() 741 u64 new_size; in _cxlflash_vlun_resize() local 755 new_size = DIV_ROUND_UP(nsectors, MC_CHUNK_SIZE); in _cxlflash_vlun_resize() 759 new_size); in _cxlflash_vlun_resize() 789 if (new_size > rhte->lxt_cnt) in _cxlflash_vlun_resize() [all …]
|
/Linux-v6.1/fs/ntfs/ |
D | attrib.c | 1445 int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size) in ntfs_attr_record_resize() argument 1447 ntfs_debug("Entering for new_size %u.", new_size); in ntfs_attr_record_resize() 1449 if (new_size & 7) in ntfs_attr_record_resize() 1450 new_size = (new_size + 7) & ~7; in ntfs_attr_record_resize() 1452 if (new_size != le32_to_cpu(a->length)) { in ntfs_attr_record_resize() 1454 le32_to_cpu(a->length) + new_size; in ntfs_attr_record_resize() 1459 memmove((u8*)a + new_size, (u8*)a + le32_to_cpu(a->length), in ntfs_attr_record_resize() 1465 if (new_size >= offsetof(ATTR_REC, length) + sizeof(a->length)) in ntfs_attr_record_resize() 1466 a->length = cpu_to_le32(new_size); in ntfs_attr_record_resize() 1490 const u32 new_size) in ntfs_resident_attr_value_resize() argument [all …]
|
/Linux-v6.1/tools/include/nolibc/ |
D | stdlib.h | 146 void *realloc(void *old_ptr, size_t new_size) in realloc() argument 153 return malloc(new_size); in realloc() 162 if (user_p_len >= new_size) in realloc() 165 ret = malloc(new_size); in realloc()
|