| /linux/mm/kasan/ |
| H A D | common.c | 610 void __kasan_vrealloc(const void *addr, unsigned long old_size, in __kasan_vrealloc() argument 613 if (new_size < old_size) { in __kasan_vrealloc() 617 old_size = round_up(old_size, KASAN_GRANULE_SIZE); in __kasan_vrealloc() 618 if (new_size < old_size) in __kasan_vrealloc() 620 old_size - new_size); in __kasan_vrealloc() 621 } else if (new_size > old_size) { in __kasan_vrealloc() 622 old_size = round_down(old_size, KASAN_GRANULE_SIZE); in __kasan_vrealloc() 623 __kasan_unpoison_vmalloc(addr + old_size, in __kasan_vrealloc() 624 new_size - old_size, in __kasan_vrealloc()
|
| /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 49 return (void *)my_syscall5(__NR_mremap, old_address, old_size, 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/perf/util/ |
| H A D | genelf_debug.c | 413 size_t old_size; in add_debug_line() local 415 old_size = buffer_ext_size(be); in add_debug_line() 428 dbg_header = buffer_ext_addr(be) + old_size; in add_debug_line() 429 dbg_header->prolog_length = (buffer_ext_size(be) - old_size) - in add_debug_line() 436 dbg_header = buffer_ext_addr(be) + old_size; in add_debug_line() 437 dbg_header->total_length = (buffer_ext_size(be) - old_size) - in add_debug_line() 459 size_t old_size = buffer_ext_size(be); in add_compilation_unit() local 467 comp_unit_header = buffer_ext_addr(be) + old_size; in add_compilation_unit() 468 comp_unit_header->total_length = (buffer_ext_size(be) - old_size) - in add_compilation_unit()
|
| /linux/fs/ubifs/ |
| H A D | replay.c | 57 loff_t old_size; member 191 max_blk = r->old_size / UBIFS_BLOCK_SIZE; in trun_remove_range() 192 if ((r->old_size & (UBIFS_BLOCK_SIZE - 1)) == 0) in trun_remove_range() 387 loff_t old_size, loff_t new_size) in insert_node() argument 409 r->old_size = old_size; in insert_node() 782 loff_t old_size = le64_to_cpu(trun->old_size); in replay_bud() local 787 if (old_size < 0 || old_size > c->max_inode_sz || in replay_bud() 789 old_size <= new_size) { in replay_bud() 801 old_size, new_size); in replay_bud()
|
| H A D | xattr.c | 184 int old_size; in change_xattr() local 201 old_size = ui->data_len; in change_xattr() 206 host_ui->xattr_size -= CALC_XATTR_BYTES(old_size); in change_xattr() 225 host_ui->xattr_size += CALC_XATTR_BYTES(old_size); in change_xattr()
|
| /linux/include/trace/events/ |
| H A D | hugetlbfs.h | 96 __field(loff_t, old_size) 107 __entry->old_size = inode->i_size; 114 __entry->old_size, __entry->ia_size)
|
| H A D | fscache.h | 488 __field(loff_t, old_size ) 494 __entry->old_size = cookie->object_size; 500 __entry->old_size,
|
| /linux/fs/btrfs/ |
| H A D | lzo.c | 202 const u32 old_size = out_bio->bi_iter.bi_size; in copy_compressed_data_to_bio() local 211 ASSERT(old_size); in copy_compressed_data_to_bio() 212 ASSERT(old_size == *total_out); in copy_compressed_data_to_bio() 218 ASSERT((old_size >> sectorsize_bits) == (old_size + LZO_LEN - 1) >> sectorsize_bits); in copy_compressed_data_to_bio()
|
| /linux/drivers/md/dm-vdo/ |
| H A D | memory-alloc.c | 340 int vdo_reallocate_memory(void *ptr, size_t old_size, size_t size, const char *what, in vdo_reallocate_memory() argument 356 if (old_size < size) in vdo_reallocate_memory() 357 size = old_size; in vdo_reallocate_memory()
|
| H A D | memory-alloc.h | 126 int __must_check vdo_reallocate_memory(void *ptr, size_t old_size, size_t size,
|
| /linux/include/linux/ |
| H A D | kasan.h | 644 void __kasan_vrealloc(const void *start, unsigned long old_size, 648 unsigned long old_size, in kasan_vrealloc() argument 652 __kasan_vrealloc(start, old_size, new_size); in kasan_vrealloc() 684 static inline void kasan_vrealloc(const void *start, unsigned long old_size, in kasan_vrealloc() argument
|
| H A D | livepatch.h | 75 unsigned long old_size, new_size; member
|
| /linux/mm/ |
| H A D | shrinker.c | 114 int old_size, int new_nr_max) in expand_one_shrinker_info() argument 137 memcpy(new->unit, old->unit, old_size); in expand_one_shrinker_info() 154 int new_size, old_size = 0; in expand_shrinker_info() local 163 old_size = shrinker_unit_size(shrinker_nr_max); in expand_shrinker_info() 167 ret = expand_one_shrinker_info(memcg, new_size, old_size, in expand_shrinker_info()
|
| H A D | memblock.c | 434 phys_addr_t old_size, new_size, addr, new_end; in memblock_double_array() 445 old_size = type->max * sizeof(struct memblock_region); in memblock_double_array() 446 new_size = old_size << 1; in memblock_double_array() 451 old_alloc_size = PAGE_ALIGN(old_size); in memblock_double_array() 501 memcpy(new_array, type->regions, old_size); in memblock_double_array() 502 memset(new_array + type->max, 0, old_size); in memblock_double_array() 433 phys_addr_t old_size, new_size, addr, new_end; memblock_double_array() local
|
| /linux/drivers/md/persistent-data/ |
| H A D | dm-array.c | 664 uint32_t old_size, uint32_t new_size, in array_resize() argument 670 if (old_size == new_size) { in array_resize() 681 resize.old_nr_full_blocks = old_size / resize.max_entries; in array_resize() 682 resize.old_nr_entries_in_last_block = old_size % resize.max_entries; in array_resize() 687 r = ((new_size > old_size) ? grow : shrink)(&resize); in array_resize() 696 uint32_t old_size, uint32_t new_size, in dm_array_resize() argument 700 int r = array_resize(info, root, old_size, new_size, value, new_root); in dm_array_resize()
|
| H A D | dm-array.h | 111 uint32_t old_size, uint32_t new_size,
|
| /linux/kernel/ |
| H A D | crash_core.c | 397 unsigned long old_size, low_size; in crash_shrink_memory() local 408 old_size = crash_resource_size(&crashk_res) + low_size; 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()
|
| /linux/drivers/gpu/drm/lima/ |
| H A D | lima_gem.c | 26 size_t old_size = bo->heap_size; in lima_heap_alloc() local 55 for (i = old_size >> PAGE_SHIFT; i < new_size >> PAGE_SHIFT; i++) { in lima_heap_alloc() 90 ret = lima_vm_map_bo(vm, bo, old_size >> PAGE_SHIFT); in lima_heap_alloc()
|
| /linux/arch/sparc/mm/ |
| H A D | tsb.c | 399 unsigned long new_size, old_size, flags; in tsb_grow() local 478 old_size = (mm->context.tsb_block[tsb_index].tsb_nentries * in tsb_grow() 509 copy_tsb(old_tsb_base, old_size, new_tsb_base, new_size, in tsb_grow()
|
| /linux/drivers/md/bcache/ |
| H A D | extents.c | 331 unsigned int old_size, sectors_found = 0; in bch_extent_insert_fixup() local 353 old_size = KEY_SIZE(k); in bch_extent_insert_fixup() 458 bch_subtract_dirty(k, c, old_offset, old_size - KEY_SIZE(k)); in bch_extent_insert_fixup()
|
| /linux/include/linux/ceph/ |
| H A D | ceph_fs.h | 430 __le64 size, old_size; /* old_size needed by truncate */ member 455 __le64 old_size; member 489 __le64 size, old_size; /* old_size needed by truncate */ member
|
| /linux/arch/x86/pci/ |
| H A D | mmconfig-shared.c | 477 u64 old_size = size; in is_mmconf_reserved() local 486 if (size < (16UL<<20) && size != old_size) in is_mmconf_reserved() 495 if (old_size != size) { in is_mmconf_reserved()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | vm_util.h | 149 void *sys_mremap(void *old_address, unsigned long old_size,
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_cotable.c | 406 size_t old_size = res->guest_memory_size; in vmw_cotable_resize() local 497 res->guest_memory_size = old_size; in vmw_cotable_resize()
|
| /linux/arch/um/os-Linux/ |
| H A D | file.c | 716 void *os_mremap_rw_shared(void *old_addr, size_t old_size, size_t new_size) in os_mremap_rw_shared() argument 720 res = mremap(old_addr, old_size, new_size, MREMAP_MAYMOVE, NULL); in os_mremap_rw_shared()
|