Home
last modified time | relevance | path

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

/Linux-v5.4/mm/
Dmremap.c319 unsigned long old_addr, unsigned long old_len, in move_vma() argument
349 err = ksm_madvise(vma, old_addr, old_addr + old_len, in move_vma()
360 moved_len = move_page_tables(vma, old_addr, new_vma, new_addr, old_len, in move_vma()
362 if (moved_len < old_len) { in move_vma()
377 old_len = new_len; in move_vma()
382 arch_remap(mm, old_addr, old_addr + old_len, in move_vma()
389 excess = vma->vm_end - vma->vm_start - old_len; in move_vma()
391 old_addr + old_len < vma->vm_end) in move_vma()
411 if (do_munmap(mm, old_addr, old_len, uf_unmap) < 0) { in move_vma()
434 unsigned long old_len, unsigned long new_len, unsigned long *p) in vma_to_resize() argument
[all …]
Dnommu.c1594 unsigned long old_len, unsigned long new_len, in do_mremap() argument
1600 old_len = PAGE_ALIGN(old_len); in do_mremap()
1602 if (old_len == 0 || new_len == 0) in do_mremap()
1611 vma = find_vma_exact(current->mm, addr, old_len); in do_mremap()
1615 if (vma->vm_end != vma->vm_start + old_len) in do_mremap()
1629 SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len, in SYSCALL_DEFINE5() argument
1636 ret = do_mremap(addr, old_len, new_len, flags, new_addr); in SYSCALL_DEFINE5()
/Linux-v5.4/arch/x86/include/asm/
Dalternative-asm.h72 #define old_len 141b-140b macro
94 .skip -((alt_max_short(new_len1, new_len2) - (old_len)) > 0) * \
95 (alt_max_short(new_len1, new_len2) - (old_len)),0x90
/Linux-v5.4/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-v5.4/fs/reiserfs/
Ddo_balan.c640 loff_t old_key_comp, old_len, r_zeroes_number; in balance_leaf_insert_right() local
649 old_len = ih_item_len(ih); in balance_leaf_insert_right()
658 offset = le_ih_k_offset(ih) + ((old_len - tb->rbytes) << shift); in balance_leaf_insert_right()
664 if ((old_len - tb->rbytes) > tb->zeroes_num) { in balance_leaf_insert_right()
666 r_body = body + (old_len - tb->rbytes) - tb->zeroes_num; in balance_leaf_insert_right()
670 (old_len - tb->rbytes); in balance_leaf_insert_right()
684 put_ih_item_len(ih, old_len - tb->rbytes); in balance_leaf_insert_right()
942 int old_key_comp, old_len, r_zeroes_number; in balance_leaf_new_nodes_insert() local
951 old_len = ih_item_len(ih); in balance_leaf_new_nodes_insert()
962 ((old_len - tb->sbytes[i]) << shift)); in balance_leaf_new_nodes_insert()
[all …]
/Linux-v5.4/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-v5.4/fs/btrfs/
Droot-tree.c130 u32 old_len; in btrfs_update_root() local
153 old_len = btrfs_item_size_nr(l, slot); in btrfs_update_root()
160 if (old_len < sizeof(*item)) { in btrfs_update_root()
/Linux-v5.4/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-v5.4/arch/sparc/kernel/
Dsystbls.h40 unsigned long old_len,
Dsys_sparc_64.c478 SYSCALL_DEFINE5(64_mremap, unsigned long, addr, unsigned long, old_len,
484 return sys_mremap(addr, old_len, new_len, flags, new_addr);
/Linux-v5.4/fs/ocfs2/
Docfs2_trace.h2232 TP_PROTO(unsigned long long ino, int old_len, const char *old_name,
2234 TP_ARGS(ino, old_len, old_name, name_len, name),
2237 __field(int, old_len)
2244 __entry->old_len = old_len;
2250 __entry->old_len, __get_str(old_name),
2263 int old_len, const char *old_name,
2266 old_len, old_name, new_len, new_name),
2272 __field(int, old_len)
2282 __entry->old_len = old_len;
2290 __entry->old_len, __get_str(old_name),
/Linux-v5.4/arch/mips/cavium-octeon/
Docteon-platform.c564 int old_len; in octeon_fdt_set_mac_addr() local
570 &old_len); in octeon_fdt_set_mac_addr()
571 if (!old_mac || old_len != 6 || is_valid_ether_addr(old_mac)) in octeon_fdt_set_mac_addr()
/Linux-v5.4/tools/perf/util/intel-pt-decoder/
Dintel-pt-decoder.c548 size_t old_len, len, n; in intel_pt_get_split_packet() local
551 old_len = decoder->len; in intel_pt_get_split_packet()
557 decoder->pos += old_len; in intel_pt_get_split_packet()
569 if (ret < (int)old_len) { in intel_pt_get_split_packet()
573 decoder->len = old_len; in intel_pt_get_split_packet()
577 decoder->next_buf = decoder->buf + (ret - old_len); in intel_pt_get_split_packet()
578 decoder->next_len = decoder->len - (ret - old_len); in intel_pt_get_split_packet()
/Linux-v5.4/drivers/atm/
Dsolos-pci.c1031 int old_len; in fpga_queue() local
1037 old_len = skb_queue_len(&card->tx_queue[port]); in fpga_queue()
1039 if (!old_len) in fpga_queue()
1045 if (!old_len) in fpga_queue()
/Linux-v5.4/drivers/video/fbdev/
Dudlfb.c1220 u32 old_len = info->fix.smem_len; in dlfb_realloc_framebuffer() local
1227 if (new_len > old_len) { in dlfb_realloc_framebuffer()
1239 memcpy(new_fb, old_fb, old_len); in dlfb_realloc_framebuffer()
Dsmscufx.c1293 int old_len = info->fix.smem_len; in ufx_realloc_framebuffer() local
1302 if (PAGE_ALIGN(new_len) > old_len) { in ufx_realloc_framebuffer()
1311 memcpy(new_fb, old_fb, old_len); in ufx_realloc_framebuffer()
/Linux-v5.4/fs/xfs/
Dxfs_log_recover.c4180 int old_len; in xlog_recover_add_to_cont_trans() local
4204 old_len = item->ri_buf[item->ri_cnt-1].i_len; in xlog_recover_add_to_cont_trans()
4206 ptr = kmem_realloc(old_ptr, len + old_len, 0); in xlog_recover_add_to_cont_trans()
4207 memcpy(&ptr[old_len], dp, len); in xlog_recover_add_to_cont_trans()
/Linux-v5.4/net/core/
Dfilter.c1222 int err, new_len, old_len = fp->len; in bpf_migrate_filter() local
1237 old_prog = kmemdup(fp->insns, old_len * sizeof(struct sock_filter), in bpf_migrate_filter()
1245 err = bpf_convert_filter(old_prog, old_len, NULL, &new_len, in bpf_migrate_filter()
1265 err = bpf_convert_filter(old_prog, old_len, fp, &new_len, in bpf_migrate_filter()
3219 unsigned int old_len = skb->len; in bpf_skb_grow_rcsum() local
3224 memset(skb->data + old_len, 0, new_len - old_len); in bpf_skb_grow_rcsum()
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_adminq_cmd.h2506 __le16 old_len; member
/Linux-v5.4/include/linux/
Dsyscalls.h825 unsigned long old_len, unsigned long new_len,
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3287 int old_len = le16_to_cpu(h_tx_bd->nbytes); in bnx2x_tx_split() local
3305 d_tx_bd->nbytes = cpu_to_le16(old_len - hlen); in bnx2x_tx_split()