Home
last modified time | relevance | path

Searched refs:new_len (Results 1 – 12 of 12) sorted by relevance

/linux-2.4.37.9/mm/
Dmremap.c130 unsigned long addr, unsigned long old_len, unsigned long new_len, in move_vma() argument
143 prev->vm_end = new_addr + new_len; in move_vma()
157 } else if (next->vm_start == new_addr + new_len && in move_vma()
169 prev->vm_end = new_addr + new_len; in move_vma()
189 new_vma->vm_end = new_addr+new_len; in move_vma()
202 current->mm->total_vm += new_len >> PAGE_SHIFT; in move_vma()
204 current->mm->locked_vm += new_len >> PAGE_SHIFT; in move_vma()
205 if (new_len > old_len) in move_vma()
207 new_addr + new_len); in move_vma()
225 unsigned long old_len, unsigned long new_len, in do_mremap() argument
[all …]
/linux-2.4.37.9/arch/sparc/kernel/
Dsys_sparc.c275 unsigned long old_len, unsigned long new_len,
279 unsigned long old_len, unsigned long new_len, in sparc_mremap() argument
285 if (old_len > 0x20000000 || new_len > 0x20000000) in sparc_mremap()
291 new_len > TASK_SIZE - PAGE_SIZE) in sparc_mremap()
297 new_addr + new_len > 0x20000000) in sparc_mremap()
299 if (new_addr + new_len > TASK_SIZE - PAGE_SIZE) in sparc_mremap()
302 addr + new_len > 0x20000000) || in sparc_mremap()
303 addr + new_len > TASK_SIZE - PAGE_SIZE) { in sparc_mremap()
318 new_addr = get_unmapped_area(file, addr, new_len, in sparc_mremap()
326 ret = do_mremap(addr, old_len, new_len, flags, new_addr); in sparc_mremap()
/linux-2.4.37.9/fs/hpfs/
Dnamei.c438 int new_len = new_dentry->d_name.len; in hpfs_rename() local
449 if ((err = hpfs_chk_name((char *)new_name, &new_len))) return err; in hpfs_rename()
472 if ((nde = map_dirent(new_dir, new_dir->i_hpfs_dno, (char *)new_name, new_len, NULL, &qbh1))) { in hpfs_rename()
475 memcpy(nde->name, new_name, new_len); in hpfs_rename()
491 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de, 1))) { in hpfs_rename()
523 fnode->len = new_len; in hpfs_rename()
524 memcpy(fnode->name, new_name, new_len>15?15:new_len); in hpfs_rename()
525 if (new_len < 15) memset(&fnode->name[new_len], 0, 15 - new_len); in hpfs_rename()
530 hpfs_decide_conv(i, (char *)new_name, new_len); in hpfs_rename()
/linux-2.4.37.9/arch/sparc64/kernel/
Dsys_sparc.c336 unsigned long old_len, unsigned long new_len,
340 unsigned long old_len, unsigned long new_len, in sys64_mremap() argument
347 if (old_len > -PAGE_OFFSET || new_len > -PAGE_OFFSET) in sys64_mremap()
354 new_addr + new_len > -PAGE_OFFSET) in sys64_mremap()
356 } else if (addr < PAGE_OFFSET && addr + new_len > -PAGE_OFFSET) { in sys64_mremap()
372 new_addr = get_unmapped_area(file, addr, new_len, in sys64_mremap()
380 ret = do_mremap(addr, old_len, new_len, flags, new_addr); in sys64_mremap()
Dsys_sparc32.c4427 unsigned long old_len, unsigned long new_len,
4431 unsigned long old_len, unsigned long new_len, in sys32_mremap() argument
4438 if (old_len > 0xf0000000UL || new_len > 0xf0000000UL) in sys32_mremap()
4444 if (new_addr > 0xf0000000UL - new_len) in sys32_mremap()
4446 } else if (addr > 0xf0000000UL - new_len) { in sys32_mremap()
4462 new_addr = get_unmapped_area(file, addr, new_len, in sys32_mremap()
4470 ret = do_mremap(addr, old_len, new_len, flags, new_addr); in sys32_mremap()
/linux-2.4.37.9/arch/arm/kernel/
Dsys_arm.c32 unsigned long new_len, unsigned long flags,
115 unsigned long new_len, unsigned long flags, in sys_arm_mremap() argument
129 ret = do_mremap(addr, old_len, new_len, flags, new_addr); in sys_arm_mremap()
/linux-2.4.37.9/arch/ia64/kernel/
Dsys_ia64.c250 ia64_mremap (unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, in ia64_mremap() argument
255 unsigned long new_len, in ia64_mremap()
261 addr = do_mremap(addr, old_len, new_len, flags, new_addr); in ia64_mremap()
/linux-2.4.37.9/drivers/usb/serial/
Ddigi_acceleport.c1252 int ret,data_len,new_len; in digi_write() local
1282 new_len = 1; in digi_write()
1284 new_len = 0; in digi_write()
1289 return( new_len ); in digi_write()
1295 new_len = min(count, port->bulk_out_size-2-priv->dp_out_buf_len); in digi_write()
1296 data_len = new_len + priv->dp_out_buf_len; in digi_write()
1314 memcpy( data, from_user ? user_buf : buf, new_len ); in digi_write()
1318 ret = new_len; in digi_write()
/linux-2.4.37.9/fs/smbfs/
Dsock.c489 int new_len = smb_round_length(len + 4); in smb_receive() local
492 packet = smb_vmalloc(new_len); in smb_receive()
497 server->packet_size = new_len; in smb_receive()
/linux-2.4.37.9/drivers/scsi/
Dide-scsi.c210 unsigned short new_len; in idescsi_transform_pc1() local
220 new_len = sc[4] + 4; in idescsi_transform_pc1()
221 c[8] = new_len; in idescsi_transform_pc1()
222 c[7] = new_len >> 8; in idescsi_transform_pc1()
/linux-2.4.37.9/fs/ncpfs/
Ddir.c1033 int old_len, new_len; in ncp_rename() local
1054 new_len = sizeof(__new_name); in ncp_rename()
1055 error = ncp_io2vol(server, __new_name, &new_len, in ncp_rename()
/linux-2.4.37.9/arch/ppc64/kernel/
Dsys_ppc32.c1111 unsigned long old_len, unsigned long new_len,
1114 …inkage unsigned long sys32_mremap(unsigned long addr, unsigned long old_len, unsigned long new_len, in sys32_mremap() argument
1124 if (old_len > 0xf0000000UL || new_len > 0xf0000000UL) in sys32_mremap()
1130 if (new_addr > 0xf0000000UL - new_len) in sys32_mremap()
1132 } else if (addr > 0xf0000000UL - new_len) { in sys32_mremap()
1136 new_addr = get_unmapped_area (NULL, addr, new_len, 0, 0); in sys32_mremap()
1141 ret = do_mremap(addr, old_len, new_len, flags, new_addr); in sys32_mremap()