Home
last modified time | relevance | path

Searched refs:old_size (Results 1 – 25 of 72) sorted by relevance

123

/openbmc/linux/fs/ntfs/
H A Drunlist.c65 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc()
76 old_size = new_size; in ntfs_rl_realloc()
111 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc_nofail()
1489 int old_size; in ntfs_rl_truncate_nolock() local
1636 int old_size; in ntfs_rl_punch_nolock() local
1758 trl = ntfs_rl_realloc(runlist->rl, old_size, old_size + 1); in ntfs_rl_punch_nolock()
1761 old_size++; in ntfs_rl_punch_nolock()
1828 trl = ntfs_rl_realloc(runlist->rl, old_size, old_size + 1); in ntfs_rl_punch_nolock()
1831 old_size++; in ntfs_rl_punch_nolock()
1863 trl = ntfs_rl_realloc(runlist->rl, old_size, old_size + 2); in ntfs_rl_punch_nolock()
[all …]
H A Dinode.c2357 s64 new_size, old_size, nr_freed, new_alloc_size, old_alloc_size; in ntfs_truncate() local
2421 old_size = ntfs_attr_size(a); in ntfs_truncate()
2437 if (new_size - old_size >= 0) { in ntfs_truncate()
2439 if (new_size == old_size) in ntfs_truncate()
2465 new_size > old_size ? "exceed " in ntfs_truncate()
2478 i_size_write(vi, old_size); in ntfs_truncate()
2553 err = ntfs_attr_make_non_resident(ni, old_size); in ntfs_truncate()
2826 old_size = -1; in ntfs_truncate()
2832 else if (old_size >= 0) in ntfs_truncate()
2833 i_size_write(vi, old_size); in ntfs_truncate()
[all …]
/openbmc/linux/tools/perf/util/
H A Dgenelf_debug.c413 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()
/openbmc/linux/fs/ntfs3/
H A Dattrlist.c295 size_t asize, new_asize, old_size; in al_add_le() local
303 old_size = al->size; in al_add_le()
304 new_size = old_size + sz; in al_add_le()
305 asize = al_aligned(old_size); in al_add_le()
319 memcpy(Add2Ptr(ptr, off + sz), le, old_size - off); in al_add_le()
324 memmove(Add2Ptr(le, sz), le, old_size - off); in al_add_le()
343 memmove(le, Add2Ptr(le, sz), old_size - off); in al_add_le()
344 al->size = old_size; in al_add_le()
/openbmc/linux/rust/alloc/
H A Dalloc.rs36 fn __rust_realloc(ptr: *mut u8, old_size: usize, align: usize, new_size: usize) -> *mut u8; in __rust_realloc()
209 old_size if old_layout.align() == new_layout.align() => unsafe { in grow_impl()
218 raw_ptr.add(old_size).write_bytes(0, new_size - old_size); in grow_impl()
228 old_size => unsafe { in grow_impl()
230 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), old_size); in grow_impl()
/openbmc/u-boot/fs/ubifs/
H A Dreplay.c59 loff_t old_size; member
193 max_blk = r->old_size / UBIFS_BLOCK_SIZE; in trun_remove_range()
194 if ((r->old_size & (UBIFS_BLOCK_SIZE - 1)) == 0) in trun_remove_range()
351 int deletion, int *used, loff_t old_size, in insert_node() argument
373 r->old_size = old_size; in insert_node()
635 loff_t old_size = le64_to_cpu(trun->old_size); in replay_bud() local
640 if (old_size < 0 || old_size > c->max_inode_sz || in replay_bud()
642 old_size <= new_size) { in replay_bud()
654 old_size, new_size); in replay_bud()
/openbmc/qemu/linux-user/
H A Dmmap.c1101 abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, in target_mremap() argument
1108 if (!guest_range_valid_untagged(old_addr, old_size) || in target_mremap()
1128 mmap_reserve_or_unmap(old_addr, old_size); in target_mremap()
1143 mmap_reserve_or_unmap(old_addr, old_size); in target_mremap()
1148 if (reserved_va && old_size < new_size) { in target_mremap()
1150 for (addr = old_addr + old_size; in target_mremap()
1158 old_size, new_size, flags); in target_mremap()
1168 } else if (reserved_va && old_size > new_size) { in target_mremap()
1169 mmap_reserve_or_unmap(old_addr + old_size, in target_mremap()
1170 old_size - new_size); in target_mremap()
[all …]
H A Duser-mmap.h53 abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size,
/openbmc/qemu/include/exec/
H A Dramlist.h73 void (*ram_block_resized)(RAMBlockNotifier *n, void *host, size_t old_size,
82 void ram_block_notify_resize(void *host, size_t old_size, size_t new_size);
/openbmc/linux/fs/ubifs/
H A Dreplay.c57 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()
386 loff_t old_size, loff_t new_size) in insert_node() argument
408 r->old_size = old_size; in insert_node()
780 loff_t old_size = le64_to_cpu(trun->old_size); in replay_bud() local
785 if (old_size < 0 || old_size > c->max_inode_sz || in replay_bud()
787 old_size <= new_size) { in replay_bud()
799 old_size, new_size); in replay_bud()
H A Dxattr.c197 int old_size; in change_xattr() local
214 old_size = ui->data_len; in change_xattr()
219 host_ui->xattr_size -= CALC_XATTR_BYTES(old_size); in change_xattr()
238 host_ui->xattr_size += CALC_XATTR_BYTES(old_size); in change_xattr()
/openbmc/openbmc/poky/meta/recipes-devtools/qemu/qemu/
H A D0006-qemu-Add-some-user-space-mmap-tweaks-to-address-musl.patch34 - if (!guest_range_valid_untagged(old_addr, old_size) ||
36 + if (!guest_range_valid_untagged(old_addr, old_size)) {
/openbmc/openbmc/poky/scripts/
H A Drelocate_sdk.py247 old_size = os.path.getsize(e) variable
248 if old_size >= 64:
262 if old_size != os.path.getsize(e):
/openbmc/linux/drivers/md/persistent-data/
H A Ddm-array.c664 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 Ddm-array.h111 uint32_t old_size, uint32_t new_size,
/openbmc/linux/fs/cachefiles/
H A Dinterface.c286 loff_t old_size = cookie->object_size; in cachefiles_resize_cookie() local
288 _enter("%llu->%llu", old_size, new_size); in cachefiles_resize_cookie()
290 if (new_size < old_size) { in cachefiles_resize_cookie()
/openbmc/linux/drivers/gpu/drm/lima/
H A Dlima_gem.c26 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()
/openbmc/linux/include/trace/events/
H A Dfscache.h488 __field(loff_t, old_size )
494 __entry->old_size = cookie->object_size;
500 __entry->old_size,
/openbmc/linux/fs/gfs2/
H A Dlock_dlm.c1077 uint32_t old_size, new_size; in set_recover_size() local
1092 old_size = ls->ls_recover_size; in set_recover_size()
1093 new_size = old_size; in set_recover_size()
1096 if (new_size == old_size) in set_recover_size()
1108 memcpy(submit, ls->ls_recover_submit, old_size * sizeof(uint32_t)); in set_recover_size()
1109 memcpy(result, ls->ls_recover_result, old_size * sizeof(uint32_t)); in set_recover_size()
/openbmc/linux/arch/sparc/mm/
H A Dtsb.c399 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()
/openbmc/qemu/tests/unit/
H A Dtest-hbitmap.c27 size_t old_size; member
107 data->old_size = data->size; in hbitmap_test_truncate_impl()
110 if (data->size == data->old_size) { in hbitmap_test_truncate_impl()
115 m = hbitmap_test_array_size(data->old_size); in hbitmap_test_truncate_impl()
123 if (data->size < data->old_size) { in hbitmap_test_truncate_impl()
469 size_t size = MIN(data->size, data->old_size); in hbitmap_test_check_boundary_bits()
/openbmc/linux/drivers/pci/
H A Dsetup-bus.c790 resource_size_t old_size, in calculate_iosize() argument
795 if (old_size == 1) in calculate_iosize()
796 old_size = 0; in calculate_iosize()
805 if (size < old_size) in calculate_iosize()
806 size = old_size; in calculate_iosize()
816 resource_size_t old_size, in calculate_memsize() argument
821 if (old_size == 1) in calculate_memsize()
822 old_size = 0; in calculate_memsize()
825 return ALIGN(max(size, old_size), align); in calculate_memsize()
/openbmc/linux/kernel/
H A Dkexec_core.c1147 unsigned long old_size, low_size; in crash_shrink_memory() local
1158 old_size = crash_resource_size(&crashk_res) + low_size; in crash_shrink_memory()
1160 if (new_size >= old_size) { in crash_shrink_memory()
1161 ret = (new_size == old_size) ? 0 : -EINVAL; in crash_shrink_memory()
/openbmc/linux/drivers/md/bcache/
H A Dextents.c331 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()
/openbmc/linux/include/linux/ceph/
H A Dceph_fs.h418 __le64 size, old_size; /* old_size needed by truncate */ member
443 __le64 old_size; member
477 __le64 size, old_size; /* old_size needed by truncate */ member

123