Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 1701) sorted by relevance

12345678910>>...69

/arch/cris/include/arch-v32/arch/
Duaccess.h162 #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/cris/include/arch-v10/arch/
Duaccess.h156 #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/sh/include/asm/
Dfutex-irq.h9 int ret; in atomic_futex_op_xchg_set() local
13 ret = get_user(*oldval, uaddr); in atomic_futex_op_xchg_set()
14 if (!ret) in atomic_futex_op_xchg_set()
15 ret = put_user(oparg, uaddr); in atomic_futex_op_xchg_set()
19 return ret; in atomic_futex_op_xchg_set()
26 int ret; in atomic_futex_op_xchg_add() local
30 ret = get_user(*oldval, uaddr); in atomic_futex_op_xchg_add()
31 if (!ret) in atomic_futex_op_xchg_add()
32 ret = put_user(*oldval + oparg, uaddr); in atomic_futex_op_xchg_add()
36 return ret; in atomic_futex_op_xchg_add()
[all …]
/arch/metag/include/asm/
Dspinlock_lock1.h9 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/metag/lib/
Dusercopy.c27 #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/
Dboard-omapl138-hawk.c45 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 …]
Dboard-da830-evm.c110 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/x86/include/asm/
Duaccess_64.h29 unsigned ret; in copy_user_generic() local
41 ASM_OUTPUT2("=a" (ret), "=D" (to), "=S" (from), in copy_user_generic()
45 return ret; in copy_user_generic()
54 int ret = 0; in __copy_from_user_nocheck() local
63 ret, "b", "b", "=q", 1); in __copy_from_user_nocheck()
65 return ret; in __copy_from_user_nocheck()
69 ret, "w", "w", "=r", 2); in __copy_from_user_nocheck()
71 return ret; in __copy_from_user_nocheck()
75 ret, "l", "k", "=r", 4); in __copy_from_user_nocheck()
77 return ret; in __copy_from_user_nocheck()
[all …]
Duaccess_32.h48 unsigned long ret; in __copy_to_user_inatomic() local
54 1, ret, 1); in __copy_to_user_inatomic()
56 return ret; in __copy_to_user_inatomic()
60 2, ret, 2); in __copy_to_user_inatomic()
62 return ret; in __copy_to_user_inatomic()
66 4, ret, 4); in __copy_to_user_inatomic()
68 return ret; in __copy_to_user_inatomic()
72 8, ret, 8); in __copy_to_user_inatomic()
74 return ret; in __copy_to_user_inatomic()
111 unsigned long ret; in __copy_from_user_inatomic() local
[all …]
Dlinkage.h23 #define asmlinkage_protect(n, ret, args...) \ argument
24 __asmlinkage_protect##n(ret, ##args)
25 #define __asmlinkage_protect_n(ret, args...) \ argument
26 __asm__ __volatile__ ("" : "=r" (ret) : "0" (ret), ##args)
27 #define __asmlinkage_protect0(ret) \ argument
28 __asmlinkage_protect_n(ret)
29 #define __asmlinkage_protect1(ret, arg1) \ argument
30 __asmlinkage_protect_n(ret, "m" (arg1))
31 #define __asmlinkage_protect2(ret, arg1, arg2) \ argument
32 __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2))
[all …]
Dkvm_para.h35 long ret; in kvm_hypercall0() local
37 : "=a"(ret) in kvm_hypercall0()
40 return ret; in kvm_hypercall0()
45 long ret; in kvm_hypercall1() local
47 : "=a"(ret) in kvm_hypercall1()
50 return ret; in kvm_hypercall1()
56 long ret; in kvm_hypercall2() local
58 : "=a"(ret) in kvm_hypercall2()
61 return ret; in kvm_hypercall2()
67 long ret; in kvm_hypercall3() local
[all …]
/arch/arm/mach-bcm/
Dbcm63xx_pmb.c68 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()
97 int ret; in bcm63xx_pmb_get_resources() local
99 ret = of_property_read_u32(dn, "reg", cpu); in bcm63xx_pmb_get_resources()
[all …]
/arch/sparc/kernel/
Dptrace_32.c91 int ret; in genregs32_get() local
96 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs32_get()
99 if (ret || !count) in genregs32_get()
100 return ret; in genregs32_get()
105 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs32_get()
108 if (ret || !count) in genregs32_get()
109 return ret; in genregs32_get()
131 int ret; in genregs32_set() local
136 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set()
139 if (ret || !count) in genregs32_set()
[all …]
/arch/frv/kernel/
Dfutex.c23 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/m68k/include/asm/
Dlinkage.h15 #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/
Dptrace.c57 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/x86/um/shared/sysdep/
Dstub_32.h17 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/mn10300/kernel/
Dkgdb.c161 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/parisc/include/asm/
Dfutex.h39 int oldval = 0, ret; in arch_futex_atomic_op_inuser() local
48 ret = get_user(oldval, uaddr); in arch_futex_atomic_op_inuser()
49 if (!ret) in arch_futex_atomic_op_inuser()
50 ret = put_user(oparg, uaddr); in arch_futex_atomic_op_inuser()
54 ret = get_user(oldval, uaddr); in arch_futex_atomic_op_inuser()
55 if (!ret) { in arch_futex_atomic_op_inuser()
57 ret = put_user(val, uaddr); in arch_futex_atomic_op_inuser()
62 ret = get_user(oldval, uaddr); in arch_futex_atomic_op_inuser()
63 if (!ret) { in arch_futex_atomic_op_inuser()
65 ret = put_user(val, uaddr); in arch_futex_atomic_op_inuser()
[all …]
/arch/powerpc/platforms/cell/spufs/
Drun.c83 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/x86/platform/intel-quark/
Dimr_selftest.c61 int ret; in imr_self_test() local
64 ret = imr_add_range(0, 0, 0, 0, false); in imr_self_test()
65 imr_self_test_result(ret < 0, "zero sized IMR\n"); in imr_self_test()
68 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU, false); in imr_self_test()
69 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test()
73 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU, false); in imr_self_test()
74 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test()
78 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU, false); in imr_self_test()
79 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test()
82 ret = imr_add_range(0, IMR_ALIGN, IMR_READ_ACCESS_ALL, in imr_self_test()
[all …]
/arch/cris/arch-v32/mach-a3/
Dpinmux.c85 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/
Dksysfs.c119 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 …]
/arch/metag/kernel/
Dptrace.c43 int ret; in metag_gp_regs_copyout() local
46 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
48 if (ret) in metag_gp_regs_copyout()
51 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
53 if (ret) in metag_gp_regs_copyout()
60 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
62 if (ret) in metag_gp_regs_copyout()
65 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
67 if (ret) in metag_gp_regs_copyout()
70 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
[all …]
/arch/cris/arch-v32/mach-fs/
Dpinmux.c77 int ret; in crisv32_pinmux_alloc() local
86 ret = __crisv32_pinmux_alloc(port, first_pin, last_pin, mode); in crisv32_pinmux_alloc()
90 return ret; in crisv32_pinmux_alloc()
95 int ret = -EINVAL; in crisv32_pinmux_alloc_fixed() local
111 ret = __crisv32_pinmux_alloc(PORT_C, 4, 7, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
115 ret = __crisv32_pinmux_alloc(PORT_C, 8, 11, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
119 ret = __crisv32_pinmux_alloc(PORT_C, 12, 15, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
123 ret = __crisv32_pinmux_alloc(PORT_C, 0, 3, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
124 ret |= __crisv32_pinmux_alloc(PORT_C, 16, 16, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
128 ret = __crisv32_pinmux_alloc(PORT_D, 0, 4, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
[all …]

12345678910>>...69