/linux-2.4.37.9/include/asm-cris/ |
D | uaccess.h | 422 #define __asm_copy_user_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 433 : "=r" (to), "=r" (from), "=r" (ret) \ 434 : "0" (to), "1" (from), "2" (ret) \ 437 #define __asm_copy_from_user_1(to, from, ret) \ argument 438 __asm_copy_user_cont(to, from, ret, \ 445 #define __asm_copy_from_user_2x_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 446 __asm_copy_user_cont(to, from, ret, \ 453 #define __asm_copy_from_user_2(to, from, ret) \ argument 454 __asm_copy_from_user_2x_cont(to, from, ret, "", "", "") 456 #define __asm_copy_from_user_3(to, from, ret) \ argument [all …]
|
/linux-2.4.37.9/drivers/usb/ |
D | pwc-ctrl.c | 224 int ret, fps; in set_video_mode_Nala() local 258 ret = send_video_command(pdev->udev, pdev->vendpoint, buf, 3); in set_video_mode_Nala() 259 if (ret < 0) { in set_video_mode_Nala() 260 Debug("Failed to send video command... %d\n", ret); in set_video_mode_Nala() 261 return ret; in set_video_mode_Nala() 292 int ret, fps; in set_video_mode_Timon() local 324 ret = send_video_command(pdev->udev, pdev->vendpoint, buf, 13); in set_video_mode_Timon() 325 if (ret < 0) in set_video_mode_Timon() 326 return ret; in set_video_mode_Timon() 349 int fps, ret; in set_video_mode_Kiara() local [all …]
|
/linux-2.4.37.9/arch/sparc/kernel/ |
D | sunos_ioctl.c | 40 int ret = -EBADF; in sunos_ioctl() local 51 ret = -EFAULT; in sunos_ioctl() 57 ret = sys_ioctl(fd, cmd, (int) &ntty); in sunos_ioctl() 59 ret = (ret == -EINVAL ? -EOPNOTSUPP : ret); in sunos_ioctl() 66 ret = sys_setsid(); in sunos_ioctl() 73 ret = sys_ioctl(fd, SIOCADDRT, arg); in sunos_ioctl() 76 ret = sys_ioctl(fd, SIOCDELRT, arg); in sunos_ioctl() 79 ret = sys_ioctl(fd, SIOCSIFADDR, arg); in sunos_ioctl() 82 ret = sys_ioctl(fd, SIOCGIFADDR, arg); in sunos_ioctl() 85 ret = sys_ioctl(fd, SIOCSIFDSTADDR, arg); in sunos_ioctl() [all …]
|
D | sys_sunos.c | 480 int ret; in sunos_uname() local 482 ret = copy_to_user(&name->sname[0], &system_utsname.sysname[0], sizeof(name->sname) - 1); in sunos_uname() 483 if (!ret) { in sunos_uname() 484 ret |= __copy_to_user(&name->nname[0], &system_utsname.nodename[0], sizeof(name->nname) - 1); in sunos_uname() 485 ret |= __put_user('\0', &name->nname[8]); in sunos_uname() 486 ret |= __copy_to_user(&name->rel[0], &system_utsname.release[0], sizeof(name->rel) - 1); in sunos_uname() 487 ret |= __copy_to_user(&name->ver[0], &system_utsname.version[0], sizeof(name->ver) - 1); in sunos_uname() 488 ret |= __copy_to_user(&name->mach[0], &system_utsname.machine[0], sizeof(name->mach) - 1); in sunos_uname() 492 return (ret ? -EFAULT : 0); in sunos_uname() 523 int ret; in sunos_fpathconf() local [all …]
|
/linux-2.4.37.9/fs/umsdos/ |
D | namei.c | 48 int ret = 0; in umsdos_waitcreate() local 54 ret = 1; in umsdos_waitcreate() 56 return ret; in umsdos_waitcreate() 195 int ret = 0; in umsdos_nevercreat() local 205 ret = errcod; in umsdos_nevercreat() 207 return ret; in umsdos_nevercreat() 244 int ret; in umsdos_create_any() local 247 ret = umsdos_nevercreat (dir, dentry, -EEXIST); in umsdos_create_any() 248 if (ret) in umsdos_create_any() 251 ret = umsdos_parse (dentry->d_name.name, dentry->d_name.len, &info); in umsdos_create_any() [all …]
|
D | ioctl.c | 35 int ret = -EINVAL; in umsdos_ioctl_fill() local 45 ret = 0; in umsdos_ioctl_fill() 47 return ret; in umsdos_ioctl_fill() 78 int ret; in UMSDOS_ioctl_dir() local 107 ret = verify_area (VERIFY_WRITE, (void *) data_ptr, in UMSDOS_ioctl_dir() 109 if (ret < 0) in UMSDOS_ioctl_dir() 112 ret = -EPERM; in UMSDOS_ioctl_dir() 116 ret = -EINVAL; in UMSDOS_ioctl_dir() 130 ret = 0; in UMSDOS_ioctl_dir() 148 ret = bufk.count == 1 ? 1 : 0; in UMSDOS_ioctl_dir() [all …]
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | uaccess.h | 95 #define __get_user_x(size,ret,x,ptr) \ argument 97 :"=a" (ret),"=d" (x) \ 123 #define __put_user_x(size,ret,x,ptr) \ argument 125 :"=a" (ret) \ 245 int ret = 0; in __copy_from_user() local 247 case 1:__get_user_asm(*(u8*)dst,(u8 *)src,ret,"b","b","=q",1); in __copy_from_user() 248 return ret; in __copy_from_user() 249 case 2:__get_user_asm(*(u16*)dst,(u16*)src,ret,"w","w","=r",2); in __copy_from_user() 250 return ret; in __copy_from_user() 251 case 4:__get_user_asm(*(u32*)dst,(u32*)src,ret,"l","k","=r",4); in __copy_from_user() [all …]
|
/linux-2.4.37.9/arch/sparc64/kernel/ |
D | sunos_ioctl32.c | 99 int ret = -EBADF; in sunos_ioctl() local 112 ret = -EFAULT; in sunos_ioctl() 117 ret = sys_ioctl(fd, cmd, (unsigned long) &ntty); in sunos_ioctl() 119 ret = (ret == -EINVAL ? -EOPNOTSUPP : ret); in sunos_ioctl() 124 ret = sys_setsid(); in sunos_ioctl() 129 ret = sys32_ioctl(fd, SIOCADDRT, arg); in sunos_ioctl() 132 ret = sys32_ioctl(fd, SIOCDELRT, arg); in sunos_ioctl() 136 ret = sys32_ioctl(fd, SIOCSIFADDR, arg); in sunos_ioctl() 139 ret = sys32_ioctl(fd, SIOCGIFADDR, arg); in sunos_ioctl() 142 ret = sys32_ioctl(fd, SIOCSIFDSTADDR, arg); in sunos_ioctl() [all …]
|
/linux-2.4.37.9/crypto/ |
D | deflate.c | 74 int ret = 0; in deflate_comp_init() local 81 ret = -ENOMEM; in deflate_comp_init() 85 ret = zlib_deflateInit2(stream, DEFLATE_DEF_LEVEL, Z_DEFLATED, in deflate_comp_init() 88 if (ret != Z_OK) { in deflate_comp_init() 89 ret = -EINVAL; in deflate_comp_init() 94 return ret; in deflate_comp_init() 102 int ret = 0; in deflate_decomp_init() local 108 ret = -ENOMEM; in deflate_decomp_init() 112 ret = zlib_inflateInit2(stream, -DEFLATE_DEF_WINBITS); in deflate_decomp_init() 113 if (ret != Z_OK) { in deflate_decomp_init() [all …]
|
/linux-2.4.37.9/include/asm-mips64/ |
D | pgalloc.h | 70 unsigned long *ret; in get_pgd_fast() local 72 if((ret = pgd_quicklist) != NULL) { in get_pgd_fast() 73 pgd_quicklist = (unsigned long *)(*ret); in get_pgd_fast() 74 ret[0] = ret[1]; in get_pgd_fast() 76 return (pgd_t *)ret; in get_pgd_fast() 79 ret = (unsigned long *) get_pgd_slow(); in get_pgd_fast() 80 return (pgd_t *)ret; in get_pgd_fast() 107 unsigned long *ret; in pte_alloc_one_fast() local 109 if ((ret = (unsigned long *)pte_quicklist) != NULL) { in pte_alloc_one_fast() 110 pte_quicklist = (unsigned long *)(*ret); in pte_alloc_one_fast() [all …]
|
/linux-2.4.37.9/drivers/mtd/ |
D | afs.c | 67 int ret; in afs_read_footer() local 69 ret = mtd->read(mtd, ptr, sizeof(fs), &sz, (u_char *) &fs); in afs_read_footer() 70 if (ret >= 0 && sz != sizeof(fs)) in afs_read_footer() 71 ret = -EINVAL; in afs_read_footer() 73 if (ret < 0) { in afs_read_footer() 75 ptr, ret); in afs_read_footer() 76 return ret; in afs_read_footer() 83 ret = 1; in afs_read_footer() 89 ret = 1; in afs_read_footer() 99 ret = 1; in afs_read_footer() [all …]
|
/linux-2.4.37.9/arch/arm/kernel/ |
D | ptrace.c | 79 int ret = -EINVAL; in put_user_reg() local 86 ret = 0; in put_user_reg() 89 return ret; in put_user_reg() 95 int ret; in read_u32() local 97 ret = access_process_vm(task, addr, res, sizeof(*res), 0); in read_u32() 99 return ret == sizeof(*res) ? 0 : -EIO; in read_u32() 105 int ret; in read_instr() local 109 ret = access_process_vm(task, addr & ~1, &val, sizeof(val), 0); in read_instr() 110 ret = ret == sizeof(val) ? 0 : -EIO; in read_instr() 114 ret = access_process_vm(task, addr & ~3, &val, sizeof(val), 0); in read_instr() [all …]
|
/linux-2.4.37.9/net/irda/ircomm/ |
D | ircomm_tty.c | 167 int ret; in ircomm_tty_cleanup() local 171 ret = tty_unregister_driver(&driver); in ircomm_tty_cleanup() 172 if (ret) { in ircomm_tty_cleanup() 190 int ret; in ircomm_tty_startup() local 227 ret = ircomm_tty_attach_cable(self); in ircomm_tty_startup() 228 if (ret < 0) { in ircomm_tty_startup() 230 return ret; in ircomm_tty_startup() 391 int ret; in ircomm_tty_open() local 480 ret = ircomm_tty_startup(self); in ircomm_tty_open() 481 if (ret) in ircomm_tty_open() [all …]
|
/linux-2.4.37.9/fs/ |
D | read_write.c | 186 ssize_t ret; in sys_read() local 189 ret = -EBADF; in sys_read() 193 ret = rw_verify_area(READ, file, &file->f_pos, count); in sys_read() 195 if (!ret) { in sys_read() 197 ret = -EINVAL; in sys_read() 199 ret = read(file, buf, count, &file->f_pos); in sys_read() 202 if (ret > 0) in sys_read() 206 return ret; in sys_read() 211 ssize_t ret; in sys_write() local 214 ret = -EBADF; in sys_write() [all …]
|
/linux-2.4.37.9/arch/mips64/kernel/ |
D | ptrace.c | 51 int ret; in sys32_ptrace() local 54 ret = -EPERM; in sys32_ptrace() 61 ret = 0; in sys32_ptrace() 64 ret = -ESRCH; in sys32_ptrace() 73 ret = -EPERM; in sys32_ptrace() 78 ret = ptrace_attach(child); in sys32_ptrace() 82 ret = ptrace_check_attach(child, request == PTRACE_KILL); in sys32_ptrace() 83 if (ret < 0) in sys32_ptrace() 94 ret = -EIO; in sys32_ptrace() 97 ret = put_user(tmp, (unsigned int *) (unsigned long) data); in sys32_ptrace() [all …]
|
/linux-2.4.37.9/arch/cris/kernel/ |
D | ptrace.c | 106 int ret; in sys_ptrace() local 109 ret = -EPERM; in sys_ptrace() 116 ret = 0; in sys_ptrace() 119 ret = -ESRCH; in sys_ptrace() 127 ret = -EPERM; in sys_ptrace() 131 ret = ptrace_attach(child); in sys_ptrace() 134 ret = -ESRCH; in sys_ptrace() 152 ret = -EIO; in sys_ptrace() 155 ret = put_user(tmp,(unsigned long *) data); in sys_ptrace() 163 ret = -EIO; in sys_ptrace() [all …]
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | ptrace.c | 154 int i, ret; in sys_ptrace() local 157 ret = -EPERM; in sys_ptrace() 164 ret = 0; in sys_ptrace() 167 ret = -ESRCH; in sys_ptrace() 176 ret = -EPERM; in sys_ptrace() 181 ret = ptrace_attach(child); in sys_ptrace() 185 ret = ptrace_check_attach(child, request == PTRACE_KILL); in sys_ptrace() 186 if (ret < 0) in sys_ptrace() 197 ret = -EIO; in sys_ptrace() 200 ret = put_user(tmp,(unsigned long *) data); in sys_ptrace() [all …]
|
/linux-2.4.37.9/drivers/sbus/char/ |
D | vfc_i2c.c | 163 int ret, raddr; in vfc_i2c_xmit_addr() local 189 ret = vfc_i2c_wait_for_pin(dev,VFC_I2C_ACK_CHECK); /* We wait in vfc_i2c_xmit_addr() 197 if (ret) { in vfc_i2c_xmit_addr() 200 return ret; in vfc_i2c_xmit_addr() 202 if ((ret = sbus_readl(&dev->regs->i2c_reg) & 0xff000000) != raddr) { in vfc_i2c_xmit_addr() 206 dev->instance, raddr, ret); in vfc_i2c_xmit_addr() 214 int ret; in vfc_i2c_xmit_byte() local 219 ret = vfc_i2c_wait_for_pin(dev, VFC_I2C_ACK_CHECK); in vfc_i2c_xmit_byte() 220 switch(ret) { in vfc_i2c_xmit_byte() 226 ret = XMIT_LAST_BYTE; in vfc_i2c_xmit_byte() [all …]
|
/linux-2.4.37.9/include/asm-mips/ |
D | pgalloc.h | 74 pgd_t *ret = (pgd_t *)__get_free_pages(GFP_KERNEL, PGD_ORDER), *init; in get_pgd_slow() local 76 if (ret) { in get_pgd_slow() 78 pgd_init((unsigned long)ret); in get_pgd_slow() 79 memcpy (ret + USER_PTRS_PER_PGD, init + USER_PTRS_PER_PGD, in get_pgd_slow() 82 return ret; in get_pgd_slow() 87 unsigned long *ret; in get_pgd_fast() local 89 if((ret = pgd_quicklist) != NULL) { in get_pgd_fast() 90 pgd_quicklist = (unsigned long *)(*ret); in get_pgd_fast() 91 ret[0] = ret[1]; in get_pgd_fast() 94 ret = (unsigned long *)get_pgd_slow(); in get_pgd_fast() [all …]
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | ptrace32.c | 123 int ret = -EPERM; in sys32_ptrace() local 132 ret = 0; in sys32_ptrace() 135 ret = -ESRCH; in sys32_ptrace() 144 ret = -EPERM; in sys32_ptrace() 149 ret = ptrace_attach(child); in sys32_ptrace() 153 ret = ptrace_check_attach(child, request == PTRACE_KILL); in sys32_ptrace() 154 if (ret < 0) in sys32_ptrace() 167 ret = -EIO; in sys32_ptrace() 170 …ret = put_user(tmp_mem_value, (u32*)data); // copy 4 bytes of data into the user location specifi… in sys32_ptrace() 190 ret = -EIO; in sys32_ptrace() [all …]
|
D | ptrace.c | 122 int ret = -EPERM; in sys_ptrace() local 131 ret = 0; in sys_ptrace() 134 ret = -ESRCH; in sys_ptrace() 143 ret = -EPERM; in sys_ptrace() 148 ret = ptrace_attach(child); in sys_ptrace() 152 ret = ptrace_check_attach(child, request == PTRACE_KILL); in sys_ptrace() 153 if (ret < 0) in sys_ptrace() 164 ret = -EIO; in sys_ptrace() 167 ret = put_user(tmp,(unsigned long *) data); in sys_ptrace() 176 ret = -EIO; in sys_ptrace() [all …]
|
/linux-2.4.37.9/arch/sparc/prom/ |
D | mp.c | 25 int ret; in prom_startcpu() local 33 ret = -1; in prom_startcpu() 36 ret = (*(romvec->v3_cpustart))(cpunode, (int) ctable_reg, ctx, pc); in prom_startcpu() 42 return ret; in prom_startcpu() 51 int ret; in prom_stopcpu() local 59 ret = -1; in prom_stopcpu() 62 ret = (*(romvec->v3_cpustop))(cpunode); in prom_stopcpu() 68 return ret; in prom_stopcpu() 77 int ret; in prom_idlecpu() local 85 ret = -1; in prom_idlecpu() [all …]
|
/linux-2.4.37.9/include/asm-m68k/ |
D | semaphore-helper.h | 28 int ret; in waking_non_zero() local 33 ret = 0; in waking_non_zero() 36 ret = 1; in waking_non_zero() 50 : "=d" (ret), "=d" (tmp1), "=d" (tmp2) in waking_non_zero() 54 return ret; in waking_non_zero() 66 int ret; in waking_non_zero_interruptible() local 71 ret = 0; in waking_non_zero_interruptible() 74 ret = 1; in waking_non_zero_interruptible() 77 ret = -EINTR; in waking_non_zero_interruptible() 92 : "=d" (ret), "=d" (tmp1), "=d" (tmp2) in waking_non_zero_interruptible() [all …]
|
/linux-2.4.37.9/arch/m68k/kernel/ |
D | ptrace.c | 106 int ret; in sys_ptrace() local 109 ret = -EPERM; in sys_ptrace() 116 ret = 0; in sys_ptrace() 119 ret = -ESRCH; in sys_ptrace() 128 ret = -EPERM; in sys_ptrace() 133 ret = ptrace_attach(child); in sys_ptrace() 137 ret = ptrace_check_attach(child, request == PTRACE_KILL); in sys_ptrace() 138 if (ret < 0) in sys_ptrace() 149 ret = -EIO; in sys_ptrace() 152 ret = put_user(tmp,(unsigned long *) data); in sys_ptrace() [all …]
|
/linux-2.4.37.9/include/asm-sparc64/ |
D | io.h | 34 u8 ret; in inb() local 37 : "=r" (ret) in inb() 40 return ret; in inb() 45 u16 ret; in inw() local 48 : "=r" (ret) in inw() 51 return ret; in inw() 56 u32 ret; in inl() local 59 : "=r" (ret) in inl() 62 return ret; in inl() 103 u8 ret; in _readb() local [all …]
|