| /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/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/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/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/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/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/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/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/fs/xfs/libxfs/ |
| H A D | xfs_rtrefcount_btree.c | 291 size_t new_size, in xfs_rtrefcountbt_move_ptrs() argument 298 dptr = xfs_rtrefcount_broot_ptr_addr(mp, broot, 1, new_size); in xfs_rtrefcountbt_move_ptrs() 310 unsigned int new_size; in xfs_rtrefcountbt_broot_realloc() local 314 new_size = xfs_rtrefcount_broot_space_calc(mp, level, new_numrecs); in xfs_rtrefcountbt_broot_realloc() 317 if (new_size == old_size) in xfs_rtrefcountbt_broot_realloc() 320 if (new_size > old_size) { in xfs_rtrefcountbt_broot_realloc() 328 return xfs_broot_realloc(ifp, new_size); in xfs_rtrefcountbt_broot_realloc() 336 broot = xfs_broot_realloc(ifp, new_size); in xfs_rtrefcountbt_broot_realloc() 339 new_size, old_numrecs); in xfs_rtrefcountbt_broot_realloc() 348 if (new_size == 0) in xfs_rtrefcountbt_broot_realloc() [all …]
|
| /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/ntfs3/ |
| H A D | attrlist.c | 310 u64 new_size; in al_add_le() local 319 new_size = old_size + sz; in al_add_le() 321 new_asize = al_aligned(new_size); in al_add_le() 327 if (new_size > asize) { in al_add_le() 343 al->size = new_size; in al_add_le() 354 err = attr_set_size_ex(ni, ATTR_LIST, NULL, 0, &al->run, new_size, in al_add_le() 355 &new_size, true, &attr, false); in al_add_le()
|
| /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/tools/testing/selftests/ublk/ |
| H A D | test_generic_10.sh | 23 new_size=$(_get_disk_size /dev/ublkb"${dev_id}") 24 if [ "$new_size" != "$size" ]; then
|
| H A D | test_common.sh | 54 local new_size=$2 61 new_file=$(mktemp ${UBLK_TEST_DIR}/ublk_file_"${new_size}"_XXXXX) 62 truncate -s "${new_size}" "${new_file}"
|
| /linux/fs/xfs/ |
| H A D | xfs_file.c | 1240 loff_t *new_size) in xfs_falloc_newsize() argument 1246 *new_size = offset + len; in xfs_falloc_newsize() 1247 return inode_newsize_ok(inode, *new_size); in xfs_falloc_newsize() 1253 loff_t new_size) in xfs_falloc_setsize() argument 1257 .ia_size = new_size, in xfs_falloc_setsize() 1260 if (!new_size) in xfs_falloc_setsize() 1274 loff_t new_size = i_size_read(inode) - len; in xfs_falloc_collapse_range() local 1290 return xfs_falloc_setsize(file, new_size); in xfs_falloc_collapse_range() 1389 loff_t new_size = 0; in xfs_falloc_write_zeroes() local 1401 error = xfs_falloc_newsize(file, mode, offset, len, &new_size); in xfs_falloc_write_zeroes() [all …]
|
| /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/include/linux/ |
| H A D | slab.h | 545 DECL_TOKEN_PARAMS(new_size, token), 588 void *krealloc_node_align(const void *p, size_t new_size, unsigned long align, gfp_t flags, int nid… 590 #define krealloc_node_align(p, new_size, align, flags, nid) \ argument 591 …alloc_hooks(krealloc_node_align_noprof(p, PASS_TOKEN_PARAMS(new_size, __kmalloc_token(new_size)), … 1227 size_t new_size, in _krealloc_array_noprof() argument 1232 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in _krealloc_array_noprof() 1256 void *krealloc_array(void *p, size_t new_n, size_t new_size, gfp_t flags); 1258 #define krealloc_array(p, new_n, new_size, flags) alloc_hooks(krealloc_array_noprof(p, new_n, new_s… argument
|
| /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/tools/include/nolibc/ |
| H A D | stdlib.h | 163 void *realloc(void *old_ptr, size_t new_size) in realloc() argument 170 return malloc(new_size); in realloc() 175 * Don't realloc() if @user_p_len >= @new_size, this block of in realloc() 176 * memory is still enough to handle the @new_size. Just return in realloc() 179 if (user_p_len >= new_size) in realloc() 182 ret = malloc(new_size); in realloc()
|
| /linux/fs/netfs/ |
| H A D | fscache_io.c | 270 void __fscache_resize_cookie(struct fscache_cookie *cookie, loff_t new_size) in __fscache_resize_cookie() argument 274 trace_fscache_resize(cookie, new_size); in __fscache_resize_cookie() 284 cookie->volume->cache->ops->resize_cookie(&cres, new_size); in __fscache_resize_cookie()
|
| /linux/drivers/misc/vmw_vmci/ |
| H A D | vmci_handle_array.c | 48 size_t new_size = struct_size(array, entries, in vmci_handle_arr_append_entry() local 54 new_array = krealloc(array, new_size, GFP_ATOMIC); in vmci_handle_arr_append_entry()
|
| /linux/tools/virtio/linux/ |
| H A D | kernel.h | 125 static inline void *krealloc_array(void *p, size_t new_n, size_t new_size, gfp_t gfp) in krealloc_array() 129 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) 119 krealloc_array(void * p,size_t new_n,size_t new_size,gfp_t gfp) krealloc_array() argument
|