Home
last modified time | relevance | path

Searched refs:old_len (Results 1 – 23 of 23) sorted by relevance

/Linux-v4.19/mm/
Dmremap.c256 unsigned long old_addr, unsigned long old_len, in move_vma() argument
286 err = ksm_madvise(vma, old_addr, old_addr + old_len, in move_vma()
297 moved_len = move_page_tables(vma, old_addr, new_vma, new_addr, old_len, in move_vma()
299 if (moved_len < old_len) { in move_vma()
314 old_len = new_len; in move_vma()
319 arch_remap(mm, old_addr, old_addr + old_len, in move_vma()
326 excess = vma->vm_end - vma->vm_start - old_len; in move_vma()
328 old_addr + old_len < vma->vm_end) in move_vma()
348 if (do_munmap(mm, old_addr, old_len, uf_unmap) < 0) { in move_vma()
371 unsigned long old_len, unsigned long new_len, unsigned long *p) in vma_to_resize() argument
[all …]
Dnommu.c1665 unsigned long old_len, unsigned long new_len, in do_mremap() argument
1671 old_len = PAGE_ALIGN(old_len); in do_mremap()
1673 if (old_len == 0 || new_len == 0) in do_mremap()
1682 vma = find_vma_exact(current->mm, addr, old_len); in do_mremap()
1686 if (vma->vm_end != vma->vm_start + old_len) in do_mremap()
1700 SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len, in SYSCALL_DEFINE5() argument
1707 ret = do_mremap(addr, old_len, new_len, flags, new_addr); in SYSCALL_DEFINE5()
/Linux-v4.19/arch/x86/include/asm/
Dalternative-asm.h61 #define old_len 141b-140b macro
83 .skip -((alt_max_short(new_len1, new_len2) - (old_len)) > 0) * \
84 (alt_max_short(new_len1, new_len2) - (old_len)),0x90
/Linux-v4.19/arch/ia64/kernel/
Dsys_ia64.c161 ia64_mremap (unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, in ia64_mremap() argument
164 addr = sys_mremap(addr, old_len, new_len, flags, new_addr); in ia64_mremap()
/Linux-v4.19/fs/reiserfs/
Ddo_balan.c647 loff_t old_key_comp, old_len, r_zeroes_number; in balance_leaf_insert_right() local
658 old_len = ih_item_len(ih); in balance_leaf_insert_right()
667 offset = le_ih_k_offset(ih) + ((old_len - tb->rbytes) << shift); in balance_leaf_insert_right()
673 if ((old_len - tb->rbytes) > tb->zeroes_num) { in balance_leaf_insert_right()
675 r_body = body + (old_len - tb->rbytes) - tb->zeroes_num; in balance_leaf_insert_right()
679 (old_len - tb->rbytes); in balance_leaf_insert_right()
693 put_ih_item_len(ih, old_len - tb->rbytes); in balance_leaf_insert_right()
951 int old_key_comp, old_len, r_zeroes_number; in balance_leaf_new_nodes_insert() local
962 old_len = ih_item_len(ih); in balance_leaf_new_nodes_insert()
973 ((old_len - tb->sbytes[i]) << shift)); in balance_leaf_new_nodes_insert()
[all …]
/Linux-v4.19/drivers/md/persistent-data/
Ddm-space-map-metadata.c698 dm_block_t old_len = smm->ll.nr_blocks; in sm_metadata_extend() local
703 smm->begin = old_len; in sm_metadata_extend()
718 for (i = old_len; !r && i < smm->begin; i++) in sm_metadata_extend()
724 old_len = smm->begin; in sm_metadata_extend()
736 } while (old_len != smm->begin); in sm_metadata_extend()
/Linux-v4.19/fs/btrfs/
Droot-tree.c128 u32 old_len; in btrfs_update_root() local
150 old_len = btrfs_item_size_nr(l, slot); in btrfs_update_root()
157 if (old_len < sizeof(*item)) { in btrfs_update_root()
/Linux-v4.19/arch/sparc/kernel/
Dsystbls.h40 unsigned long old_len,
Dsys_sparc_64.c474 SYSCALL_DEFINE5(64_mremap, unsigned long, addr, unsigned long, old_len,
480 return sys_mremap(addr, old_len, new_len, flags, new_addr);
/Linux-v4.19/fs/hpfs/
Dnamei.c515 unsigned old_len = old_dentry->d_name.len; in hpfs_rename() local
534 hpfs_adjust_length(old_name, &old_len); in hpfs_rename()
545 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename()
582 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename()
/Linux-v4.19/fs/ocfs2/
Docfs2_trace.h2230 TP_PROTO(unsigned long long ino, int old_len, const char *old_name,
2232 TP_ARGS(ino, old_len, old_name, name_len, name),
2235 __field(int, old_len)
2242 __entry->old_len = old_len;
2248 __entry->old_len, __get_str(old_name),
2261 int old_len, const char *old_name,
2264 old_len, old_name, new_len, new_name),
2270 __field(int, old_len)
2280 __entry->old_len = old_len;
2288 __entry->old_len, __get_str(old_name),
/Linux-v4.19/arch/mips/cavium-octeon/
Docteon-platform.c547 int old_len; in octeon_fdt_set_mac_addr() local
553 &old_len); in octeon_fdt_set_mac_addr()
554 if (!old_mac || old_len != 6 || is_valid_ether_addr(old_mac)) in octeon_fdt_set_mac_addr()
/Linux-v4.19/tools/perf/util/intel-pt-decoder/
Dintel-pt-decoder.c530 size_t old_len, len, n; in intel_pt_get_split_packet() local
533 old_len = decoder->len; in intel_pt_get_split_packet()
539 decoder->pos += old_len; in intel_pt_get_split_packet()
550 if (ret < (int)old_len) { in intel_pt_get_split_packet()
554 decoder->len = old_len; in intel_pt_get_split_packet()
558 decoder->next_buf = decoder->buf + (ret - old_len); in intel_pt_get_split_packet()
559 decoder->next_len = decoder->len - (ret - old_len); in intel_pt_get_split_packet()
/Linux-v4.19/drivers/atm/
Dsolos-pci.c1043 int old_len; in fpga_queue() local
1049 old_len = skb_queue_len(&card->tx_queue[port]); in fpga_queue()
1051 if (!old_len) in fpga_queue()
1057 if (!old_len) in fpga_queue()
/Linux-v4.19/drivers/video/fbdev/
Dudlfb.c1193 u32 old_len = info->fix.smem_len; in dlfb_realloc_framebuffer() local
1200 if (new_len > old_len) { in dlfb_realloc_framebuffer()
1212 memcpy(new_fb, old_fb, old_len); in dlfb_realloc_framebuffer()
Dsmscufx.c1296 int old_len = info->fix.smem_len; in ufx_realloc_framebuffer() local
1305 if (PAGE_ALIGN(new_len) > old_len) { in ufx_realloc_framebuffer()
1314 memcpy(new_fb, old_fb, old_len); in ufx_realloc_framebuffer()
/Linux-v4.19/arch/s390/kernel/
Dcompat_wrapper.c105 COMPAT_SYSCALL_WRAP5(mremap, unsigned long, addr, unsigned long, old_len, unsigned long, new_len, u…
/Linux-v4.19/net/core/
Dfilter.c1220 int err, new_len, old_len = fp->len; in bpf_migrate_filter() local
1235 old_prog = kmemdup(fp->insns, old_len * sizeof(struct sock_filter), in bpf_migrate_filter()
1243 err = bpf_convert_filter(old_prog, old_len, NULL, &new_len, in bpf_migrate_filter()
1263 err = bpf_convert_filter(old_prog, old_len, fp, &new_len, in bpf_migrate_filter()
2912 unsigned int old_len = skb->len; in bpf_skb_grow_rcsum() local
2917 memset(skb->data + old_len, 0, new_len - old_len); in bpf_skb_grow_rcsum()
/Linux-v4.19/fs/xfs/
Dxfs_log_recover.c4257 int old_len; in xlog_recover_add_to_cont_trans() local
4281 old_len = item->ri_buf[item->ri_cnt-1].i_len; in xlog_recover_add_to_cont_trans()
4283 ptr = kmem_realloc(old_ptr, len + old_len, KM_SLEEP); in xlog_recover_add_to_cont_trans()
4284 memcpy(&ptr[old_len], dp, len); in xlog_recover_add_to_cont_trans()
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
Di40e_adminq_cmd.h2415 __le16 old_len; member
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_adminq_cmd.h2487 __le16 old_len; member
/Linux-v4.19/include/linux/
Dsyscalls.h752 unsigned long old_len, unsigned long new_len,
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3285 int old_len = le16_to_cpu(h_tx_bd->nbytes); in bnx2x_tx_split() local
3303 d_tx_bd->nbytes = cpu_to_le16(old_len - hlen); in bnx2x_tx_split()