| /linux/drivers/staging/most/dim2/ |
| H A D | dim2.c | 454 u16 new_size; in configure_channel() local 473 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel() 474 if (new_size == 0) { in configure_channel() 478 ccfg->buffer_size = new_size; in configure_channel() 479 if (new_size != buf_size) in configure_channel() 481 hdm_ch->name, buf_size, new_size); in configure_channel() 484 is_tx ? new_size * 2 : new_size); in configure_channel() 487 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel() 488 if (new_size == 0) { in configure_channel() 492 ccfg->buffer_size = new_size; in configure_channel() [all …]
|
| /linux/scripts/kconfig/ |
| H A D | lexer.l | 67 int new_size = text_size + size + 1; in append_string() local 68 if (new_size > text_asize) { in append_string() 69 new_size += START_STRSIZE - 1; in append_string() 70 new_size &= -START_STRSIZE; in append_string() 71 text = xrealloc(text, new_size); in append_string() 72 text_asize = new_size; in append_string()
|
| /linux/include/trace/events/ |
| H A D | fscache.h | 463 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)
|
| /linux/kernel/module/ |
| H A 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() 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()
|
| /linux/arch/sparc/mm/ |
| H A 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/tools/testing/selftests/filesystems/fuse/ |
| H A D | fuse_mnt.c | 87 size_t new_size; in test_write() local 95 new_size = MAX(offset + size, content_size); in test_write() 97 if (new_size > content_size) in test_write() 98 content = realloc(content, new_size); in test_write() 100 content_size = new_size; in test_write()
|
| /linux/fs/jfs/ |
| H A D | xattr.c | 602 int new_size) in ea_put() argument 608 if (new_size == 0) { in ea_put() 612 assert(new_size <= sizeof (ji->i_inline_ea)); in ea_put() 615 DXDsize(&ea_buf->new_ea, new_size); in ea_put() 619 rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea); in ea_put() 626 rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea); in ea_put() 672 int new_size; in __jfs_setxattr() local 688 new_size = sizeof (struct jfs_ea_list); in __jfs_setxattr() 704 new_size += EA_SIZE(ea); in __jfs_setxattr() 719 new_size += sizeof (struct jfs_ea) + namelen + 1 + value_len; in __jfs_setxattr() [all …]
|
| /linux/tools/include/nolibc/sys/ |
| H A D | mman.h | 47 void *sys_mremap(void *old_address, size_t old_size, size_t new_size, int flags, void *new_address) in sys_mremap() argument 50 new_size, flags, new_address); in sys_mremap() 54 void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, void *new_address) in mremap() argument 56 void *ret = sys_mremap(old_address, old_size, new_size, flags, new_address); in mremap()
|
| /linux/kernel/ |
| H A D | crash_core.c | 367 unsigned long new_size) in __crash_shrink_memory() argument 375 ram_res->start = old_res->start + new_size; in __crash_shrink_memory() 380 if (!new_size) { in __crash_shrink_memory() 394 int crash_shrink_memory(unsigned long new_size) in crash_shrink_memory() argument 409 new_size = roundup(new_size, KEXEC_CRASH_MEM_ALIGN); in crash_shrink_memory() 410 if (new_size >= old_size) { in crash_shrink_memory() 411 ret = (new_size == old_size) ? 0 : -EINVAL; in crash_shrink_memory() 423 if (low_size > new_size) { in crash_shrink_memory() 428 ret = __crash_shrink_memory(&crashk_low_res, new_size); in crash_shrink_memory() 430 ret = __crash_shrink_memory(&crashk_res, new_size - low_size); in crash_shrink_memory()
|
| /linux/mm/kasan/ |
| H A D | common.c | 611 unsigned long new_size) in __kasan_vrealloc() argument 613 if (new_size < old_size) { in __kasan_vrealloc() 614 kasan_poison_last_granule(addr, new_size); in __kasan_vrealloc() 616 new_size = round_up(new_size, KASAN_GRANULE_SIZE); in __kasan_vrealloc() 618 if (new_size < old_size) in __kasan_vrealloc() 619 __kasan_poison_vmalloc(addr + new_size, in __kasan_vrealloc() 620 old_size - new_size); in __kasan_vrealloc() 621 } else if (new_size > old_size) { in __kasan_vrealloc() 624 new_size - old_size, in __kasan_vrealloc()
|
| /linux/tools/bootconfig/ |
| H A D | test-bootconfig.sh | 57 new_size=$(wc -c < $INITRD) 66 xpass test $new_size -eq $total_size 72 xpass test $new_size -eq $(wc -c < $INITRD) 78 new_size=$(wc -c < $INITRD) 79 xpass test $new_size -eq $initrd_size
|
| /linux/drivers/gpu/drm/i915/ |
| H A 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_objs(*new_fences, new_size, deps->gfp); in i915_deps_grow() 94 deps->fences_size = new_size; in i915_deps_grow()
|
| /linux/fs/ubifs/ |
| H A 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() 387 loff_t old_size, loff_t new_size) in insert_node() argument 410 r->new_size = new_size; in insert_node() 743 loff_t new_size = le64_to_cpu(ino->size); in replay_bud() local 749 &used, 0, new_size); in replay_bud() 755 loff_t new_size = le32_to_cpu(dn->size) + in replay_bud() local 761 &used, 0, new_size); in replay_bud() [all …]
|
| H A D | file.c | 1105 loff_t old_size = inode->i_size, new_size = attr->ia_size; in do_truncation() local 1106 int offset = new_size & (UBIFS_BLOCK_SIZE - 1), budgeted = 1; in do_truncation() 1109 dbg_gen("ino %lu, size %lld -> %lld", inode->i_ino, old_size, new_size); in do_truncation() 1117 if (new_size & (UBIFS_BLOCK_SIZE - 1)) in do_truncation() 1129 if (new_size || err != -ENOSPC) in do_truncation() 1134 truncate_setsize(inode, new_size); in do_truncation() 1137 pgoff_t index = new_size >> PAGE_SHIFT; in do_truncation() 1156 new_size); in do_truncation() 1183 err = ubifs_jnl_truncate(c, inode, old_size, new_size); in do_truncation() 1212 loff_t new_size = attr->ia_size; in do_setattr() local [all …]
|
| /linux/drivers/hid/ |
| H A 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/kernel/kcsan/ |
| H A D | debugfs.c | 144 size_t new_size = 0; in insert_report_filterlist() local 158 new_size = (report_filterlist.size ?: 4) * 2; in insert_report_filterlist() 159 delay_free = new_addrs = kmalloc_array(new_size, sizeof(unsigned long), GFP_KERNEL); in insert_report_filterlist() 167 if (report_filterlist.used >= new_size) { in insert_report_filterlist() 178 report_filterlist.size = new_size; in insert_report_filterlist()
|
| /linux/fs/xfs/ |
| H A D | xfs_inode.h | 204 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof() argument 208 if (new_size > i_size || new_size < 0) in xfs_new_eof() 209 new_size = i_size; in xfs_new_eof() 210 return new_size > ip->i_disk_size ? new_size : 0; in xfs_new_eof() 602 xfs_fsize_t new_size) in xfs_itruncate_extents() argument 604 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
|
| H A D | xfs_file.c | 1189 loff_t *new_size) in xfs_falloc_newsize() argument 1195 *new_size = offset + len; in xfs_falloc_newsize() 1196 return inode_newsize_ok(inode, *new_size); in xfs_falloc_newsize() 1202 loff_t new_size) in xfs_falloc_setsize() argument 1206 .ia_size = new_size, in xfs_falloc_setsize() 1209 if (!new_size) in xfs_falloc_setsize() 1223 loff_t new_size = i_size_read(inode) - len; in xfs_falloc_collapse_range() local 1239 return xfs_falloc_setsize(file, new_size); in xfs_falloc_collapse_range() 1330 loff_t new_size = 0; in xfs_falloc_zero_range() local 1335 error = xfs_falloc_newsize(file, mode, offset, len, &new_size); in xfs_falloc_zero_range() [all …]
|
| /linux/include/linux/ |
| H A D | kasan.h | 278 size_t new_size, gfp_t flags); 280 size_t new_size, gfp_t flags) in kasan_krealloc() argument 283 return __kasan_krealloc(object, new_size, flags); in kasan_krealloc() 453 static inline void *kasan_krealloc(const void *object, size_t new_size, in kasan_krealloc() argument 645 unsigned long new_size); 649 unsigned long new_size) in kasan_vrealloc() argument 652 __kasan_vrealloc(start, old_size, new_size); in kasan_vrealloc() 685 unsigned long new_size) { } in kasan_vrealloc() argument
|
| /linux/drivers/platform/x86/dell/dell-wmi-sysman/ |
| H A 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/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_cotable.c | 399 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()
|
| /linux/rust/helpers/ |
| H A D | slab.c | 6 rust_helper_krealloc_node_align(const void *objp, size_t new_size, unsigned long align, in rust_helper_krealloc_node_align() argument 9 return krealloc_node_align(objp, new_size, align, flags, node); in rust_helper_krealloc_node_align()
|
| /linux/drivers/gpu/drm/lima/ |
| H A D | lima_gem.c | 27 size_t new_size = bo->heap_size ? bo->heap_size * 2 : in lima_heap_alloc() local 35 new_size = min(new_size, bo->base.base.size); in lima_heap_alloc() 55 for (i = old_size >> PAGE_SHIFT; i < new_size >> PAGE_SHIFT; i++) { in lima_heap_alloc() 68 new_size, GFP_KERNEL); in lima_heap_alloc() 95 bo->heap_size = new_size; in lima_heap_alloc()
|
| /linux/drivers/comedi/ |
| H A D | comedi_buf.c | 210 unsigned long new_size) in comedi_buf_alloc() argument 217 new_size = (new_size + PAGE_SIZE - 1) & PAGE_MASK; in comedi_buf_alloc() 220 if (async->prealloc_bufsz == new_size) in comedi_buf_alloc() 227 if (new_size) { in comedi_buf_alloc() 228 unsigned int n_pages = new_size >> PAGE_SHIFT; in comedi_buf_alloc()
|
| /linux/fs/ntfs3/ |
| H A D | file.c | 404 static int ntfs_truncate(struct inode *inode, loff_t new_size) in ntfs_truncate() argument 408 u64 new_valid = min_t(u64, ni->i_valid, new_size); in ntfs_truncate() 410 truncate_setsize(inode, new_size); in ntfs_truncate() 415 err = attr_set_size_ex(ni, ATTR_DATA, NULL, 0, &ni->file.run, new_size, in ntfs_truncate() 460 loff_t i_size, new_size; in ntfs_fallocate() local 491 new_size = max(end, i_size); in ntfs_fallocate() 589 err = inode_newsize_ok(inode, new_size); in ntfs_fallocate() 620 loff_t to_alloc = new_size - inode_get_bytes(inode); in ntfs_fallocate() 630 err = inode_newsize_ok(inode, new_size); in ntfs_fallocate() 634 if (new_size > i_size) { in ntfs_fallocate() [all …]
|