Home
last modified time | relevance | path

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

/linux-3.4.99/mm/
Dmremap.c184 unsigned long old_addr, unsigned long old_len, in move_vma() argument
211 err = ksm_madvise(vma, old_addr, old_addr + old_len, in move_vma()
221 moved_len = move_page_tables(vma, old_addr, new_vma, new_addr, old_len); in move_vma()
222 if (moved_len < old_len) { in move_vma()
239 old_len = new_len; in move_vma()
247 excess = vma->vm_end - vma->vm_start - old_len; in move_vma()
249 old_addr + old_len < vma->vm_end) in move_vma()
266 if (do_munmap(mm, old_addr, old_len) < 0) { in move_vma()
282 if (new_len > old_len) in move_vma()
283 mlock_vma_pages_range(new_vma, new_addr + old_len, in move_vma()
[all …]
Dnommu.c1794 unsigned long old_len, unsigned long new_len, in do_mremap() argument
1800 old_len = PAGE_ALIGN(old_len); in do_mremap()
1802 if (old_len == 0 || new_len == 0) in do_mremap()
1811 vma = find_vma_exact(current->mm, addr, old_len); in do_mremap()
1815 if (vma->vm_end != vma->vm_start + old_len) in do_mremap()
1830 SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len, in SYSCALL_DEFINE5() argument
1837 ret = do_mremap(addr, old_len, new_len, flags, new_addr); in SYSCALL_DEFINE5()
/linux-3.4.99/arch/powerpc/platforms/pseries/
Dnvram.c72 const char *old_msgs, unsigned long old_len,
510 static size_t capture_last_msgs(const char *old_msgs, size_t old_len, in capture_last_msgs() argument
520 size_t old_tail_len = min(old_len, capture_len - new_len); in capture_last_msgs()
521 memcpy(captured, old_msgs + (old_len - old_tail_len), in capture_last_msgs()
623 const char *old_msgs, unsigned long old_len, in oops_to_nvram() argument
663 text_len = capture_last_msgs(old_msgs, old_len, in oops_to_nvram()
669 text_len = capture_last_msgs(old_msgs, old_len, in oops_to_nvram()
/linux-3.4.99/arch/ia64/kernel/
Dsys_ia64.c171 ia64_mremap (unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, in ia64_mremap() argument
175 unsigned long old_len, in ia64_mremap()
182 addr = do_mremap(addr, old_len, new_len, flags, new_addr); in ia64_mremap()
/linux-3.4.99/fs/reiserfs/
Ddo_balan.c751 loff_t old_key_comp, old_len, in balance_leaf() local
763 old_len = ih_item_len(ih); in balance_leaf()
768 ((old_len - in balance_leaf()
778 if ((old_len - tb->rbytes) > zeros_num) { in balance_leaf()
781 body + (old_len - in balance_leaf()
787 zeros_num - (old_len - in balance_leaf()
802 old_len - tb->rbytes); in balance_leaf()
1180 int old_key_comp, old_len, in balance_leaf() local
1192 old_len = ih_item_len(ih); in balance_leaf()
1197 ((old_len - in balance_leaf()
[all …]
/linux-3.4.99/arch/sparc/kernel/
Dsystbls.h18 unsigned long old_len,
Dsys_sparc_64.c576 unsigned long old_len, unsigned long new_len,
579 SYSCALL_DEFINE5(64_mremap, unsigned long, addr, unsigned long, old_len,
589 ret = do_mremap(addr, old_len, new_len, flags, new_addr);
/linux-3.4.99/arch/arm/mach-pnx4008/
Ddma.c697 int old_len = new_len; in pnx4008_dma_split_head_entry() local
808 ll->ch_ctrl |= old_len - new_len * (count - 1); in pnx4008_dma_split_head_entry()
819 int old_len = new_len; in pnx4008_dma_split_ll_entry() local
930 ll->ch_ctrl |= old_len - new_len * (count - 1); in pnx4008_dma_split_ll_entry()
/linux-3.4.99/fs/logfs/
Djournal.c477 super->s_free_bytes += shadow->old_len; in account_shadow()
478 super->s_used_bytes -= shadow->old_len; in account_shadow()
479 super->s_dirty_free_bytes -= shadow->old_len; in account_shadow()
481 logfs_set_segment_used(sb, shadow->old_ofs, -shadow->old_len); in account_shadow()
487 shadow->old_len, shadow->new_len); in account_shadow()
Dsegment.c393 shadow->old_len, shadow->new_len); in logfs_segment_write()
695 shadow->old_len, shadow->new_len); in logfs_segment_delete()
706 shadow->old_len = len + sizeof(h); in logfs_segment_delete()
Dlogfs.h254 int old_len; member
Dreadwrite.c1297 super->s_dirty_free_bytes += shadow->old_len; in fill_shadow_tree()
1330 if (shadow->new_len == shadow->old_len) in set_iused()
1334 li->li_used_bytes += shadow->new_len - shadow->old_len; in set_iused()
/linux-3.4.99/fs/hpfs/
Dnamei.c522 unsigned old_len = old_dentry->d_name.len; in hpfs_rename() local
538 hpfs_adjust_length(old_name, &old_len); in hpfs_rename()
549 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename()
586 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename()
/linux-3.4.99/kernel/events/
Dhw_breakpoint.c452 u64 old_len = bp->attr.bp_len; in modify_user_hw_breakpoint() local
472 bp->attr.bp_len = old_len; in modify_user_hw_breakpoint()
/linux-3.4.99/fs/ocfs2/
Docfs2_trace.h2233 TP_PROTO(unsigned long long ino, int old_len, const char *old_name,
2235 TP_ARGS(ino, old_len, old_name, name_len, name),
2238 __field(int, old_len)
2245 __entry->old_len = old_len;
2251 __entry->old_len, __get_str(old_name),
2264 int old_len, const char *old_name,
2267 old_len, old_name, new_len, new_name),
2273 __field(int, old_len)
2283 __entry->old_len = old_len;
2291 __entry->old_len, __get_str(old_name),
/linux-3.4.99/drivers/atm/
Dsolos-pci.c928 int old_len; in fpga_queue() local
934 old_len = skb_queue_len(&card->tx_queue[port]); in fpga_queue()
936 if (!old_len) in fpga_queue()
942 if (!old_len) in fpga_queue()
/linux-3.4.99/drivers/staging/comedi/drivers/
Dcomedi_bond.c150 static void *Realloc(const void *ptr, size_t len, size_t old_len);
/linux-3.4.99/fs/ncpfs/
Ddir.c1131 int old_len, new_len; in ncp_rename() local
1152 old_len = sizeof(__old_name); in ncp_rename()
1153 error = ncp_io2vol(server, __old_name, &old_len, in ncp_rename()
/linux-3.4.99/fs/xfs/
Dxfs_log_recover.c1476 int old_len; in xlog_recover_add_to_cont_trans() local
1490 old_len = item->ri_buf[item->ri_cnt-1].i_len; in xlog_recover_add_to_cont_trans()
1492 ptr = kmem_realloc(old_ptr, len+old_len, old_len, KM_SLEEP); in xlog_recover_add_to_cont_trans()
1493 memcpy(&ptr[old_len], dp, len); /* d, s, l */ in xlog_recover_add_to_cont_trans()
/linux-3.4.99/drivers/video/
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()
1316 memcpy(new_fb, old_fb, old_len); in ufx_realloc_framebuffer()
Dudlfb.c1162 int old_len = info->fix.smem_len; in dlfb_realloc_framebuffer() local
1172 if (PAGE_ALIGN(new_len) > old_len) { in dlfb_realloc_framebuffer()
1183 memcpy(new_fb, old_fb, old_len); in dlfb_realloc_framebuffer()
/linux-3.4.99/include/linux/
Dmm.h1052 unsigned long old_len, unsigned long new_len,
Dsyscalls.h459 unsigned long old_len, unsigned long new_len,
/linux-3.4.99/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c2370 int old_len = le16_to_cpu(h_tx_bd->nbytes); in bnx2x_tx_split() local
2389 d_tx_bd->nbytes = cpu_to_le16(old_len - hlen); in bnx2x_tx_split()