/arch/cris/include/arch-v10/arch/ |
D | uaccess.h | 156 #define __asm_copy_user_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 167 : "=r" (to), "=r" (from), "=r" (ret) \ 168 : "0" (to), "1" (from), "2" (ret) \ 171 #define __asm_copy_from_user_1(to, from, ret) \ argument 172 __asm_copy_user_cont(to, from, ret, \ 179 #define __asm_copy_from_user_2x_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 180 __asm_copy_user_cont(to, from, ret, \ 187 #define __asm_copy_from_user_2(to, from, ret) \ argument 188 __asm_copy_from_user_2x_cont(to, from, ret, "", "", "") 190 #define __asm_copy_from_user_3(to, from, ret) \ argument [all …]
|
/arch/cris/include/arch-v32/arch/ |
D | uaccess.h | 162 #define __asm_copy_user_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 172 : "=b" (to), "=b" (from), "=r" (ret) \ 173 : "0" (to), "1" (from), "2" (ret) \ 176 #define __asm_copy_from_user_1(to, from, ret) \ argument 177 __asm_copy_user_cont(to, from, ret, \ 185 #define __asm_copy_from_user_2x_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 186 __asm_copy_user_cont(to, from, ret, \ 197 #define __asm_copy_from_user_2(to, from, ret) \ argument 198 __asm_copy_from_user_2x_cont(to, from, ret, "", "", "") 200 #define __asm_copy_from_user_3(to, from, ret) \ argument [all …]
|
/arch/metag/include/asm/ |
D | spinlock_lock1.h | 9 int ret; in arch_spin_is_locked() local 12 ret = lock->lock; in arch_spin_is_locked() 13 WARN_ON(ret != 0 && ret != 1); in arch_spin_is_locked() 14 return ret; in arch_spin_is_locked() 39 unsigned int ret; in arch_spin_trylock() local 42 ret = lock->lock; in arch_spin_trylock() 43 if (ret == 0) { in arch_spin_trylock() 48 return (ret == 0); in arch_spin_trylock() 87 unsigned int ret; in arch_write_trylock() local 90 ret = rw->lock; in arch_write_trylock() [all …]
|
/arch/frv/kernel/ |
D | futex.c | 23 int oldval, ret; in atomic_futex_op_xchg_set() local 44 : "+U"(*uaddr), "=&r"(oldval), "=&r"(ret), "=r"(oparg) in atomic_futex_op_xchg_set() 50 return ret; in atomic_futex_op_xchg_set() 55 int oldval, ret; in atomic_futex_op_xchg_add() local 77 : "+U"(*uaddr), "=&r"(oldval), "=&r"(ret), "=r"(oparg) in atomic_futex_op_xchg_add() 83 return ret; in atomic_futex_op_xchg_add() 88 int oldval, ret; in atomic_futex_op_xchg_or() local 110 : "+U"(*uaddr), "=&r"(oldval), "=&r"(ret), "=r"(oparg) in atomic_futex_op_xchg_or() 116 return ret; in atomic_futex_op_xchg_or() 121 int oldval, ret; in atomic_futex_op_xchg_and() local [all …]
|
/arch/metag/lib/ |
D | usercopy.c | 27 #define __asm_copy_user_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 39 : "=r" (to), "=r" (from), "=r" (ret) \ 40 : "0" (to), "1" (from), "2" (ret) \ 44 #define __asm_copy_to_user_1(to, from, ret) \ argument 45 __asm_copy_user_cont(to, from, ret, \ 52 #define __asm_copy_to_user_2x_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 53 __asm_copy_user_cont(to, from, ret, \ 60 #define __asm_copy_to_user_2(to, from, ret) \ argument 61 __asm_copy_to_user_2x_cont(to, from, ret, "", "", "") 63 #define __asm_copy_to_user_3(to, from, ret) \ argument [all …]
|
/arch/arm/mach-davinci/ |
D | board-omapl138-hawk.c | 45 int ret; in omapl138_hawk_config_emac() local 51 ret = davinci_cfg_reg_list(omapl138_hawk_mii_pins); in omapl138_hawk_config_emac() 52 if (ret) { in omapl138_hawk_config_emac() 53 pr_warn("%s: CPGMAC/MII mux setup failed: %d\n", __func__, ret); in omapl138_hawk_config_emac() 63 ret = da8xx_register_emac(); in omapl138_hawk_config_emac() 64 if (ret) in omapl138_hawk_config_emac() 65 pr_warn("%s: EMAC registration failed: %d\n", __func__, ret); in omapl138_hawk_config_emac() 145 int ret; in omapl138_hawk_mmc_init() local 147 ret = davinci_cfg_reg_list(hawk_mmcsd0_pins); in omapl138_hawk_mmc_init() 148 if (ret) { in omapl138_hawk_mmc_init() [all …]
|
D | board-da830-evm.c | 110 int ret; in da830_evm_usb_init() local 146 ret = davinci_cfg_reg(DA830_USB0_DRVVBUS); in da830_evm_usb_init() 147 if (ret) in da830_evm_usb_init() 148 pr_warn("%s: USB 2.0 PinMux setup failed: %d\n", __func__, ret); in da830_evm_usb_init() 154 ret = da8xx_register_usb20(1000, 3); in da830_evm_usb_init() 155 if (ret) in da830_evm_usb_init() 157 __func__, ret); in da830_evm_usb_init() 160 ret = davinci_cfg_reg_list(da830_evm_usb11_pins); in da830_evm_usb_init() 161 if (ret) { in da830_evm_usb_init() 162 pr_warn("%s: USB 1.1 PinMux setup failed: %d\n", __func__, ret); in da830_evm_usb_init() [all …]
|
/arch/arm/mach-bcm/ |
D | bcm63xx_pmb.c | 68 int ret; in bpcm_wr_rd_mask() local 70 ret = bpcm_wr(master, addr, off, *val); in bpcm_wr_rd_mask() 71 if (ret) in bpcm_wr_rd_mask() 72 return ret; in bpcm_wr_rd_mask() 75 ret = bpcm_rd(master, addr, off, val); in bpcm_wr_rd_mask() 76 if (ret) in bpcm_wr_rd_mask() 77 return ret; in bpcm_wr_rd_mask() 82 return ret; in bpcm_wr_rd_mask() 96 int ret; in bcm63xx_pmb_get_resources() local 98 ret = of_property_read_u32(dn, "reg", cpu); in bcm63xx_pmb_get_resources() [all …]
|
/arch/x86/include/asm/ |
D | uaccess_64.h | 30 unsigned ret; in copy_user_generic() local 42 ASM_OUTPUT2("=a" (ret), "=D" (to), "=S" (from), in copy_user_generic() 46 return ret; in copy_user_generic() 55 int ret = 0; in __copy_from_user_nocheck() local 64 ret, "b", "b", "=q", 1); in __copy_from_user_nocheck() 66 return ret; in __copy_from_user_nocheck() 70 ret, "w", "w", "=r", 2); in __copy_from_user_nocheck() 72 return ret; in __copy_from_user_nocheck() 76 ret, "l", "k", "=r", 4); in __copy_from_user_nocheck() 78 return ret; in __copy_from_user_nocheck() [all …]
|
/arch/m68k/include/asm/ |
D | linkage.h | 15 #define asmlinkage_protect(n, ret, args...) \ argument 16 __asmlinkage_protect##n(ret, ##args) 17 #define __asmlinkage_protect_n(ret, args...) \ argument 18 __asm__ __volatile__ ("" : "=r" (ret) : "0" (ret), ##args) 19 #define __asmlinkage_protect0(ret) \ argument 20 __asmlinkage_protect_n(ret) 21 #define __asmlinkage_protect1(ret, arg1) \ argument 22 __asmlinkage_protect_n(ret, "m" (arg1)) 23 #define __asmlinkage_protect2(ret, arg1, arg2) \ argument 24 __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2)) [all …]
|
/arch/openrisc/kernel/ |
D | ptrace.c | 57 int ret; in genregs_get() local 60 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_get() 62 if (!ret) in genregs_get() 63 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 65 if (!ret) in genregs_get() 66 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 68 if (!ret) in genregs_get() 69 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 71 if (!ret) in genregs_get() 72 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() [all …]
|
/arch/sparc/include/asm/ |
D | futex_64.h | 8 #define __futex_cas_op(insn, ret, oldval, uaddr, oparg) \ argument 28 : "=&r" (ret), "=&r" (oldval), "=&r" (tem) \ 38 int oldval = 0, ret, tem; in futex_atomic_op_inuser() local 52 __futex_cas_op("mov\t%4, %1", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 55 __futex_cas_op("add\t%2, %4, %1", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 58 __futex_cas_op("or\t%2, %4, %1", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 61 __futex_cas_op("andn\t%2, %4, %1", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 64 __futex_cas_op("xor\t%2, %4, %1", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 67 ret = -ENOSYS; in futex_atomic_op_inuser() 72 if (!ret) { in futex_atomic_op_inuser() [all …]
|
/arch/hexagon/include/asm/ |
D | futex.h | 12 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument 28 : "=&r" (oldval), "=&r" (ret), "+m" (*uaddr) \ 40 int oldval = 0, ret; in futex_atomic_op_inuser() local 51 __futex_atomic_op("%1 = %4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 54 __futex_atomic_op("%1 = add(%0,%4)\n", ret, oldval, uaddr, in futex_atomic_op_inuser() 58 __futex_atomic_op("%1 = or(%0,%4)\n", ret, oldval, uaddr, in futex_atomic_op_inuser() 62 __futex_atomic_op("%1 = not(%4); %1 = and(%0,%1)\n", ret, in futex_atomic_op_inuser() 66 __futex_atomic_op("%1 = xor(%0,%4)\n", ret, oldval, uaddr, in futex_atomic_op_inuser() 70 ret = -ENOSYS; in futex_atomic_op_inuser() 75 if (!ret) { in futex_atomic_op_inuser() [all …]
|
/arch/mn10300/kernel/ |
D | kgdb.c | 161 int ret; in kgdb_arch_do_singlestep() local 163 ret = probe_kernel_read(&cur, pc, 1); in kgdb_arch_do_singlestep() 164 if (ret < 0) in kgdb_arch_do_singlestep() 165 return ret; in kgdb_arch_do_singlestep() 176 ret = probe_kernel_read(&arg, pc + 1, 1); in kgdb_arch_do_singlestep() 177 if (ret < 0) in kgdb_arch_do_singlestep() 178 return ret; in kgdb_arch_do_singlestep() 202 ret = probe_kernel_read(&arg, pc + 1, 2); in kgdb_arch_do_singlestep() 203 if (ret < 0) in kgdb_arch_do_singlestep() 204 return ret; in kgdb_arch_do_singlestep() [all …]
|
/arch/arc/include/asm/ |
D | futex.h | 21 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg)\ argument 42 : "=&r" (ret), "=&r" (oldval) \ 49 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg)\ argument 69 : "=&r" (ret), "=&r" (oldval) \ 82 int oldval = 0, ret; in futex_atomic_op_inuser() local 97 __futex_atomic_op("mov %0, %3", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 101 __futex_atomic_op("add %0, %1, %3", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 104 __futex_atomic_op("or %0, %1, %3", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 107 __futex_atomic_op("bic %0, %1, %3", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 110 __futex_atomic_op("xor %0, %1, %3", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() [all …]
|
/arch/x86/um/shared/sysdep/ |
D | stub_32.h | 17 long ret; in stub_syscall0() local 19 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall)); in stub_syscall0() 21 return ret; in stub_syscall0() 26 long ret; in stub_syscall1() local 28 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1)); in stub_syscall1() 30 return ret; in stub_syscall1() 35 long ret; in stub_syscall2() local 37 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1), in stub_syscall2() 40 return ret; in stub_syscall2() 45 long ret; in stub_syscall3() local [all …]
|
/arch/x86/platform/intel-quark/ |
D | imr_selftest.c | 60 int ret; in imr_self_test() local 63 ret = imr_add_range(0, 0, 0, 0); in imr_self_test() 64 imr_self_test_result(ret < 0, "zero sized IMR\n"); in imr_self_test() 67 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU); in imr_self_test() 68 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test() 72 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU); in imr_self_test() 73 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test() 77 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU); in imr_self_test() 78 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test() 81 ret = imr_add_range(0, IMR_ALIGN, IMR_READ_ACCESS_ALL, in imr_self_test() [all …]
|
/arch/microblaze/include/asm/ |
D | futex.h | 10 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument 26 : "=&r" (oldval), "=&r" (ret) \ 38 int oldval = 0, ret; in futex_atomic_op_inuser() local 49 __futex_atomic_op("or %1,%4,%4;", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 52 __futex_atomic_op("add %1,%0,%4;", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 55 __futex_atomic_op("or %1,%0,%4;", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 58 __futex_atomic_op("andn %1,%0,%4;", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 61 __futex_atomic_op("xor %1,%0,%4;", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 64 ret = -ENOSYS; in futex_atomic_op_inuser() 69 if (!ret) { in futex_atomic_op_inuser() [all …]
|
/arch/powerpc/include/asm/ |
D | futex.h | 12 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument 30 : "=&r" (oldval), "=&r" (ret) \ 40 int oldval = 0, ret; in futex_atomic_op_inuser() local 51 __futex_atomic_op("mr %1,%4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 54 __futex_atomic_op("add %1,%0,%4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 57 __futex_atomic_op("or %1,%0,%4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 60 __futex_atomic_op("andc %1,%0,%4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 63 __futex_atomic_op("xor %1,%0,%4\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 66 ret = -ENOSYS; in futex_atomic_op_inuser() 71 if (!ret) { in futex_atomic_op_inuser() [all …]
|
/arch/alpha/include/asm/ |
D | futex.h | 11 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument 28 : "=&r" (oldval), "=&r"(ret) \ 38 int oldval = 0, ret; in futex_atomic_op_inuser() local 49 __futex_atomic_op("mov %3,%1\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 52 __futex_atomic_op("addl %0,%3,%1\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 55 __futex_atomic_op("or %0,%3,%1\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 58 __futex_atomic_op("andnot %0,%3,%1\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 61 __futex_atomic_op("xor %0,%3,%1\n", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 64 ret = -ENOSYS; in futex_atomic_op_inuser() 69 if (!ret) { in futex_atomic_op_inuser() [all …]
|
/arch/powerpc/platforms/cell/spufs/ |
D | run.c | 83 int ret; in spu_setup_isolated() local 91 ret = -ENODEV; in spu_setup_isolated() 114 ret = -EIO; in spu_setup_isolated() 136 ret = 0; in spu_setup_isolated() 143 ret = -EIO; in spu_setup_isolated() 154 ret = -EACCES; in spu_setup_isolated() 162 ret = -EINVAL; in spu_setup_isolated() 172 return ret; in spu_setup_isolated() 178 int ret; in spu_run_init() local 188 ret = spu_activate(ctx, 0); in spu_run_init() [all …]
|
/arch/s390/include/asm/ |
D | futex.h | 9 #define __futex_atomic_op(insn, ret, oldval, newval, uaddr, oparg) \ argument 19 : "=d" (ret), "=&d" (oldval), "=&d" (newval), \ 30 int oldval = 0, newval, ret; in futex_atomic_op_inuser() local 40 ret, oldval, newval, uaddr, oparg); in futex_atomic_op_inuser() 44 ret, oldval, newval, uaddr, oparg); in futex_atomic_op_inuser() 48 ret, oldval, newval, uaddr, oparg); in futex_atomic_op_inuser() 52 ret, oldval, newval, uaddr, oparg); in futex_atomic_op_inuser() 56 ret, oldval, newval, uaddr, oparg); in futex_atomic_op_inuser() 59 ret = -ENOSYS; in futex_atomic_op_inuser() 63 if (!ret) { in futex_atomic_op_inuser() [all …]
|
/arch/mips/include/asm/ |
D | futex.h | 21 #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ argument 47 : "=r" (ret), "=&r" (oldval), \ 76 : "=r" (ret), "=&r" (oldval), \ 82 ret = -ENOSYS; \ 92 int oldval = 0, ret; in futex_atomic_op_inuser() local 103 __futex_atomic_op("move $1, %z5", ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 108 ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 112 ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() 116 ret, oldval, uaddr, ~oparg); in futex_atomic_op_inuser() 120 ret, oldval, uaddr, oparg); in futex_atomic_op_inuser() [all …]
|
/arch/cris/arch-v32/mach-a3/ |
D | pinmux.c | 85 int ret = -EINVAL; in crisv32_pinmux_alloc_fixed() local 105 ret = crisv32_pinmux_alloc(PORT_B, 8, 23, pinmux_fixed); in crisv32_pinmux_alloc_fixed() 106 ret |= crisv32_pinmux_alloc(PORT_B, 24, 25, pinmux_fixed); in crisv32_pinmux_alloc_fixed() 110 ret = crisv32_pinmux_alloc(PORT_B, 0, 7, pinmux_fixed); in crisv32_pinmux_alloc_fixed() 115 ret = crisv32_pinmux_alloc(PORT_B, 27, 29, pinmux_fixed); in crisv32_pinmux_alloc_fixed() 120 ret = crisv32_pinmux_alloc(PORT_B, 27, 31, pinmux_fixed); in crisv32_pinmux_alloc_fixed() 121 ret |= crisv32_pinmux_alloc(PORT_C, 0, 15, pinmux_fixed); in crisv32_pinmux_alloc_fixed() 126 ret = crisv32_pinmux_alloc(PORT_A, 8, 18, pinmux_fixed); in crisv32_pinmux_alloc_fixed() 131 ret = crisv32_pinmux_alloc(PORT_A, 24, 25, pinmux_fixed); in crisv32_pinmux_alloc_fixed() 136 ret = crisv32_pinmux_alloc(PORT_A, 26, 27, pinmux_fixed); in crisv32_pinmux_alloc_fixed() [all …]
|
/arch/x86/kernel/ |
D | ksysfs.c | 119 int nr, ret; in type_show() local 123 ret = kobj_to_setup_data_nr(kobj, &nr); in type_show() 124 if (ret) in type_show() 125 return ret; in type_show() 127 ret = get_setup_data_paddr(nr, &paddr); in type_show() 128 if (ret) in type_show() 129 return ret; in type_show() 134 ret = sprintf(buf, "0x%x\n", data->type); in type_show() 136 return ret; in type_show() 145 int nr, ret = 0; in setup_data_data_read() local [all …]
|