Home
last modified time | relevance | path

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

12345678910>>...69

/arch/cris/include/arch-v32/arch/
Duaccess.h163 #define __asm_copy_user_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument
173 : "=b" (to), "=b" (from), "=r" (ret) \
174 : "0" (to), "1" (from), "2" (ret) \
177 #define __asm_copy_from_user_1(to, from, ret) \ argument
178 __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, \
196 #define __asm_copy_from_user_2(to, from, ret) \ argument
197 __asm_copy_from_user_2x_cont(to, from, ret, "", "", "")
199 #define __asm_copy_from_user_3(to, from, ret) \ argument
[all …]
/arch/cris/include/arch-v10/arch/
Duaccess.h157 #define __asm_copy_user_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument
168 : "=r" (to), "=r" (from), "=r" (ret) \
169 : "0" (to), "1" (from), "2" (ret) \
172 #define __asm_copy_from_user_1(to, from, ret) \ argument
173 __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, \
186 #define __asm_copy_from_user_2(to, from, ret) \ argument
187 __asm_copy_from_user_2x_cont(to, from, ret, "", "", "")
189 #define __asm_copy_from_user_3(to, from, ret) \ argument
[all …]
/arch/powerpc/kernel/
Dmachine_kexec_file_64.c41 int i, ret = -ENOEXEC; in arch_kexec_kernel_image_probe() local
53 ret = fops->probe(buf, buf_len); in arch_kexec_kernel_image_probe()
54 if (!ret) { in arch_kexec_kernel_image_probe()
56 return ret; in arch_kexec_kernel_image_probe()
60 return ret; in arch_kexec_kernel_image_probe()
96 int ret = 0; in arch_kexec_walk_mem() local
108 ret = func(mstart, mend - 1, kbuf); in arch_kexec_walk_mem()
109 if (ret) in arch_kexec_walk_mem()
120 ret = func(mstart, mend - 1, kbuf); in arch_kexec_walk_mem()
121 if (ret) in arch_kexec_walk_mem()
[all …]
Dima_kexec.c38 int ret, addr_cells, size_cells; in do_get_kexec_buffer() local
40 ret = get_addr_size_cells(&addr_cells, &size_cells); in do_get_kexec_buffer()
41 if (ret) in do_get_kexec_buffer()
42 return ret; in do_get_kexec_buffer()
62 int ret, len; in ima_get_kexec_buffer() local
71 ret = do_get_kexec_buffer(prop, len, &tmp_addr, &tmp_size); in ima_get_kexec_buffer()
72 if (ret) in ima_get_kexec_buffer()
73 return ret; in ima_get_kexec_buffer()
86 int ret; in ima_free_kexec_buffer() local
95 ret = do_get_kexec_buffer(prop->value, prop->length, &addr, &size); in ima_free_kexec_buffer()
[all …]
/arch/arm/mach-davinci/
Dboard-omapl138-hawk.c46 int ret; in omapl138_hawk_config_emac() local
52 ret = davinci_cfg_reg_list(omapl138_hawk_mii_pins); in omapl138_hawk_config_emac()
53 if (ret) { in omapl138_hawk_config_emac()
54 pr_warn("%s: CPGMAC/MII mux setup failed: %d\n", __func__, ret); in omapl138_hawk_config_emac()
64 ret = da8xx_register_emac(); in omapl138_hawk_config_emac()
65 if (ret) in omapl138_hawk_config_emac()
66 pr_warn("%s: EMAC registration failed: %d\n", __func__, ret); in omapl138_hawk_config_emac()
147 int ret; in omapl138_hawk_mmc_init() local
149 ret = davinci_cfg_reg_list(hawk_mmcsd0_pins); in omapl138_hawk_mmc_init()
150 if (ret) { in omapl138_hawk_mmc_init()
[all …]
Dboard-da830-evm.c111 int ret; in da830_evm_usb_init() local
114 ret = da8xx_register_usb20_phy_clk(false); in da830_evm_usb_init()
115 if (ret) in da830_evm_usb_init()
117 __func__, ret); in da830_evm_usb_init()
119 ret = da8xx_register_usb11_phy_clk(false); in da830_evm_usb_init()
120 if (ret) in da830_evm_usb_init()
122 __func__, ret); in da830_evm_usb_init()
124 ret = da8xx_register_usb_phy(); in da830_evm_usb_init()
125 if (ret) in da830_evm_usb_init()
127 __func__, ret); in da830_evm_usb_init()
[all …]
Dboard-da850-evm.c328 int ret = 0; in da850_evm_setup_nor_nand() local
331 ret = davinci_cfg_reg_list(da850_evm_nand_pins); in da850_evm_setup_nor_nand()
332 if (ret) in da850_evm_setup_nor_nand()
334 __func__, ret); in da850_evm_setup_nor_nand()
336 ret = davinci_cfg_reg_list(da850_evm_nor_pins); in da850_evm_setup_nor_nand()
337 if (ret) in da850_evm_setup_nor_nand()
339 __func__, ret); in da850_evm_setup_nor_nand()
455 int sel_a, sel_b, sel_c, ret; in da850_evm_ui_expander_setup() local
461 ret = gpio_request(sel_a, da850_evm_ui_exp[DA850_EVM_UI_EXP_SEL_A]); in da850_evm_ui_expander_setup()
462 if (ret) { in da850_evm_ui_expander_setup()
[all …]
/arch/metag/include/asm/
Dspinlock_lock1.h10 int ret; in arch_spin_is_locked() local
13 ret = lock->lock; in arch_spin_is_locked()
14 WARN_ON(ret != 0 && ret != 1); in arch_spin_is_locked()
15 return ret; in arch_spin_is_locked()
40 unsigned int ret; in arch_spin_trylock() local
43 ret = lock->lock; in arch_spin_trylock()
44 if (ret == 0) { in arch_spin_trylock()
49 return (ret == 0); in arch_spin_trylock()
88 unsigned int ret; in arch_write_trylock() local
91 ret = rw->lock; in arch_write_trylock()
[all …]
/arch/metag/lib/
Dusercopy.c28 #define __asm_copy_user_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument
40 : "=r" (to), "=r" (from), "=r" (ret) \
41 : "0" (to), "1" (from), "2" (ret) \
45 #define __asm_copy_to_user_1(to, from, ret) \ argument
46 __asm_copy_user_cont(to, from, ret, \
53 #define __asm_copy_to_user_2x_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument
54 __asm_copy_user_cont(to, from, ret, \
61 #define __asm_copy_to_user_2(to, from, ret) \ argument
62 __asm_copy_to_user_2x_cont(to, from, ret, "", "", "")
64 #define __asm_copy_to_user_3(to, from, ret) \ argument
[all …]
/arch/powerpc/platforms/powernv/
Dopal-psr.c34 int psr, ret, token; in psr_show() local
42 ret = mutex_lock_interruptible(&psr_mutex); in psr_show()
43 if (ret) in psr_show()
46 ret = opal_get_power_shift_ratio(psr_attr->handle, token, in psr_show()
48 switch (ret) { in psr_show()
50 ret = opal_async_wait_response(token, &msg); in psr_show()
51 if (ret) { in psr_show()
53 ret = -EIO; in psr_show()
56 ret = opal_error_code(opal_get_async_rc(msg)); in psr_show()
57 if (!ret) { in psr_show()
[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()
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/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/x86/include/asm/
Duaccess_64.h30 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()
52 int ret = 0; in raw_copy_from_user() local
60 ret, "b", "b", "=q", 1); in raw_copy_from_user()
62 return ret; in raw_copy_from_user()
66 ret, "w", "w", "=r", 2); in raw_copy_from_user()
68 return ret; in raw_copy_from_user()
72 ret, "l", "k", "=r", 4); in raw_copy_from_user()
74 return ret; in raw_copy_from_user()
[all …]
/arch/m68k/include/asm/
Dlinkage.h16 #define asmlinkage_protect(n, ret, args...) \ argument
17 __asmlinkage_protect##n(ret, ##args)
18 #define __asmlinkage_protect_n(ret, args...) \ argument
19 __asm__ __volatile__ ("" : "=r" (ret) : "0" (ret), ##args)
20 #define __asmlinkage_protect0(ret) \ argument
21 __asmlinkage_protect_n(ret)
22 #define __asmlinkage_protect1(ret, arg1) \ argument
23 __asmlinkage_protect_n(ret, "m" (arg1))
24 #define __asmlinkage_protect2(ret, arg1, arg2) \ argument
25 __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2))
[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/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/x86/platform/intel-quark/
Dimr_selftest.c62 int ret; in imr_self_test() local
65 ret = imr_add_range(0, 0, 0, 0); in imr_self_test()
66 imr_self_test_result(ret < 0, "zero sized IMR\n"); in imr_self_test()
69 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU); in imr_self_test()
70 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test()
74 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU); in imr_self_test()
75 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test()
79 ret = imr_add_range(base, size, IMR_CPU, IMR_CPU); in imr_self_test()
80 imr_self_test_result(ret < 0, fmt_over, __va(base), __va(base + size)); in imr_self_test()
83 ret = imr_add_range(0, IMR_ALIGN, IMR_READ_ACCESS_ALL, in imr_self_test()
[all …]
Dimr.c111 int ret; in imr_read() local
113 ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->addr_lo); in imr_read()
114 if (ret) in imr_read()
115 return ret; in imr_read()
117 ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->addr_hi); in imr_read()
118 if (ret) in imr_read()
119 return ret; in imr_read()
121 ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->rmask); in imr_read()
122 if (ret) in imr_read()
123 return ret; in imr_read()
[all …]
/arch/cris/include/asm/
Duaccess.h193 unsigned long ret = 0; in __constant_copy_from_user() local
198 __asm_copy_from_user_1(to, from, ret); in __constant_copy_from_user()
200 __asm_copy_from_user_2(to, from, ret); in __constant_copy_from_user()
202 __asm_copy_from_user_3(to, from, ret); in __constant_copy_from_user()
204 __asm_copy_from_user_4(to, from, ret); in __constant_copy_from_user()
206 __asm_copy_from_user_5(to, from, ret); in __constant_copy_from_user()
208 __asm_copy_from_user_6(to, from, ret); in __constant_copy_from_user()
210 __asm_copy_from_user_7(to, from, ret); in __constant_copy_from_user()
212 __asm_copy_from_user_8(to, from, ret); in __constant_copy_from_user()
214 __asm_copy_from_user_9(to, from, ret); in __constant_copy_from_user()
[all …]
/arch/powerpc/platforms/cell/spufs/
Drun.c84 int ret; in spu_setup_isolated() local
92 ret = -ENODEV; in spu_setup_isolated()
115 ret = -EIO; in spu_setup_isolated()
137 ret = 0; in spu_setup_isolated()
144 ret = -EIO; in spu_setup_isolated()
155 ret = -EACCES; in spu_setup_isolated()
163 ret = -EINVAL; in spu_setup_isolated()
173 return ret; in spu_setup_isolated()
179 int ret; in spu_run_init() local
189 ret = spu_activate(ctx, 0); in spu_run_init()
[all …]
/arch/cris/arch-v32/mach-a3/
Dpinmux.c86 int ret = -EINVAL; in crisv32_pinmux_alloc_fixed() local
106 ret = crisv32_pinmux_alloc(PORT_B, 8, 23, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
107 ret |= crisv32_pinmux_alloc(PORT_B, 24, 25, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
111 ret = crisv32_pinmux_alloc(PORT_B, 0, 7, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
116 ret = crisv32_pinmux_alloc(PORT_B, 27, 29, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
121 ret = crisv32_pinmux_alloc(PORT_B, 27, 31, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
122 ret |= crisv32_pinmux_alloc(PORT_C, 0, 15, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
127 ret = crisv32_pinmux_alloc(PORT_A, 8, 18, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
132 ret = crisv32_pinmux_alloc(PORT_A, 24, 25, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
137 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.c45 int ret; in metag_gp_regs_copyout() local
48 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
50 if (ret) in metag_gp_regs_copyout()
53 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
55 if (ret) in metag_gp_regs_copyout()
62 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
64 if (ret) in metag_gp_regs_copyout()
67 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
69 if (ret) in metag_gp_regs_copyout()
72 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout()
[all …]
/arch/cris/arch-v32/mach-fs/
Dpinmux.c78 int ret; in crisv32_pinmux_alloc() local
87 ret = __crisv32_pinmux_alloc(port, first_pin, last_pin, mode); in crisv32_pinmux_alloc()
91 return ret; in crisv32_pinmux_alloc()
96 int ret = -EINVAL; in crisv32_pinmux_alloc_fixed() local
112 ret = __crisv32_pinmux_alloc(PORT_C, 4, 7, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
116 ret = __crisv32_pinmux_alloc(PORT_C, 8, 11, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
120 ret = __crisv32_pinmux_alloc(PORT_C, 12, 15, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
124 ret = __crisv32_pinmux_alloc(PORT_C, 0, 3, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
125 ret |= __crisv32_pinmux_alloc(PORT_C, 16, 16, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
129 ret = __crisv32_pinmux_alloc(PORT_D, 0, 4, pinmux_fixed); in crisv32_pinmux_alloc_fixed()
[all …]

12345678910>>...69