Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 108) sorted by relevance

12345

/arch/parisc/kernel/
Dfirmware.c220 int retval; in pdc_add_valid() local
224 retval = mem_pdc_call(PDC_ADD_VALID, PDC_ADD_VALID_VERIFY, address); in pdc_add_valid()
227 return retval; in pdc_add_valid()
239 int retval; in pdc_instr() local
243 retval = mem_pdc_call(PDC_INSTR, 0UL, __pa(pdc_result)); in pdc_instr()
248 return retval; in pdc_instr()
261 int retval; in pdc_chassis_info() local
267 retval = mem_pdc_call(PDC_CHASSIS, PDC_RETURN_CHASSIS_INFO, in pdc_chassis_info()
273 return retval; in pdc_chassis_info()
285 int retval = 0; in pdc_pat_chassis_send_log() local
[all …]
Dpdc_chassis.c165 int retval = 0; in pdc_chassis_send_status() local
175 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_BSTART, PDC_CHASSIS_LSTATE_RUN_NORMAL); in pdc_chassis_send_status()
179 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_BCOMPLETE, PDC_CHASSIS_LSTATE_RUN_NORMAL); in pdc_chassis_send_status()
183 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_SHUTDOWN, PDC_CHASSIS_LSTATE_NONOS); in pdc_chassis_send_status()
187 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_PANIC, PDC_CHASSIS_LSTATE_RUN_CRASHREC); in pdc_chassis_send_status()
191 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_LPMC, PDC_CHASSIS_LSTATE_RUN_SYSINT); in pdc_chassis_send_status()
195 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_HPMC, PDC_CHASSIS_LSTATE_RUN_NCRIT); in pdc_chassis_send_status()
199 retval = -1; in pdc_chassis_send_status()
201 } else retval = -1; in pdc_chassis_send_status()
206 retval = pdc_chassis_disp(PDC_CHASSIS_DISP_DATA(OSTAT_INIT)); in pdc_chassis_send_status()
[all …]
/arch/sh/include/asm/
Dcmpxchg-grb.h7 unsigned long retval; in xchg_u32() local
18 : "=&r" (retval), in xchg_u32()
24 return retval; in xchg_u32()
29 unsigned long retval; in xchg_u16() local
40 : "=&r" (retval), in xchg_u16()
46 return retval; in xchg_u16()
51 unsigned long retval; in xchg_u8() local
62 : "=&r" (retval), in xchg_u8()
68 return retval; in xchg_u8()
74 unsigned long retval; in __cmpxchg_u32() local
[all …]
Dcmpxchg-irq.h9 unsigned long flags, retval; in xchg_u32() local
12 retval = *m; in xchg_u32()
15 return retval; in xchg_u32()
20 unsigned long flags, retval; in xchg_u16() local
23 retval = *m; in xchg_u16()
26 return retval; in xchg_u16()
31 unsigned long flags, retval; in xchg_u8() local
34 retval = *m; in xchg_u8()
37 return retval; in xchg_u8()
43 __u32 retval; in __cmpxchg_u32() local
[all …]
Duaccess_32.h16 #define __get_user_size(x,ptr,size,retval) \ argument
18 retval = 0; \
21 __get_user_asm(x, ptr, retval, "b"); \
24 __get_user_asm(x, ptr, retval, "w"); \
27 __get_user_asm(x, ptr, retval, "l"); \
30 __get_user_u64(x, ptr, retval); \
122 #define __put_user_size(x,ptr,size,retval) \ argument
124 retval = 0; \
127 __put_user_asm(x, ptr, retval, "b"); \
130 __put_user_asm(x, ptr, retval, "w"); \
[all …]
Dbitops-grb.h77 int mask, retval; in test_and_set_bit() local
98 "=&r" (retval), in test_and_set_bit()
103 return retval; in test_and_set_bit()
108 int mask, retval,not_mask; in test_and_clear_bit() local
131 "=&r" (retval), in test_and_clear_bit()
137 return retval; in test_and_clear_bit()
142 int mask, retval; in test_and_change_bit() local
163 "=&r" (retval), in test_and_change_bit()
168 return retval; in test_and_change_bit()
Dbitops-llsc.h70 int mask, retval; in test_and_set_bit() local
85 : "=&z" (tmp), "=&r" (retval) in test_and_set_bit()
90 return retval != 0; in test_and_set_bit()
95 int mask, retval; in test_and_clear_bit() local
111 : "=&z" (tmp), "=&r" (retval) in test_and_clear_bit()
116 return retval != 0; in test_and_clear_bit()
121 int mask, retval; in test_and_change_bit() local
137 : "=&z" (tmp), "=&r" (retval) in test_and_change_bit()
142 return retval != 0; in test_and_change_bit()
Dcmpxchg-llsc.h7 unsigned long retval; in xchg_u32() local
18 : "=&z"(tmp), "=&r" (retval) in xchg_u32()
23 return retval; in xchg_u32()
29 unsigned long retval; in __cmpxchg_u32() local
43 : "=&z" (tmp), "=&r" (retval) in __cmpxchg_u32()
48 return retval; in __cmpxchg_u32()
/arch/mips/kernel/
Dmips-mt-fpaff.c71 int retval; in mipsmt_sys_sched_setaffinity() local
94 retval = -ENOMEM; in mipsmt_sys_sched_setaffinity()
98 retval = -ENOMEM; in mipsmt_sys_sched_setaffinity()
102 retval = -ENOMEM; in mipsmt_sys_sched_setaffinity()
106 retval = -EPERM; in mipsmt_sys_sched_setaffinity()
110 retval = security_task_setscheduler(p); in mipsmt_sys_sched_setaffinity()
111 if (retval) in mipsmt_sys_sched_setaffinity()
123 retval = set_cpus_allowed_ptr(p, effective_mask); in mipsmt_sys_sched_setaffinity()
127 retval = set_cpus_allowed_ptr(p, new_mask); in mipsmt_sys_sched_setaffinity()
130 if (!retval) { in mipsmt_sys_sched_setaffinity()
[all …]
/arch/powerpc/platforms/pseries/
Dhvcserver.c87 long retval; in hvcs_next_partner() local
88 retval = plpar_hcall_norets(H_VTERM_PARTNER_INFO, unit_address, in hvcs_next_partner()
91 return hvcs_convert(retval); in hvcs_next_partner()
130 int retval; in hvcs_get_partner_info() local
141 retval = hvcs_next_partner(unit_address, last_p_partition_ID, in hvcs_get_partner_info()
143 if (retval) { in hvcs_get_partner_info()
150 return retval; in hvcs_get_partner_info()
216 long retval; in hvcs_register_connection() local
217 retval = plpar_hcall_norets(H_REGISTER_VTERM, unit_address, in hvcs_register_connection()
219 return hvcs_convert(retval); in hvcs_register_connection()
[all …]
/arch/h8300/include/asm/
Dbitops.h95 int retval = 0; \
108 : "=r"(retval), "+WU" (*b_addr), "=&r"(ccrsave) \
109 : "0"(retval), "i"(nr & 7) : "cc"); \
119 : "=r"(retval), "+WU" (*b_addr) \
120 : "0" (retval), "r"(bit) : "cc"); \
122 return retval; \
127 int retval = 0; \
136 : "=r"(retval), "+WU"(*b_addr) \
137 : "0" (retval), "i"(nr & 7)); \
144 : "=r"(retval), "+WU"(*b_addr) \
[all …]
/arch/mips/cobalt/
Dlcd.c21 int retval; in cobalt_lcd_add() local
27 retval = platform_device_add_resources(pdev, &cobalt_lcd_resource, 1); in cobalt_lcd_add()
28 if (retval) in cobalt_lcd_add()
31 retval = platform_device_add(pdev); in cobalt_lcd_add()
32 if (retval) in cobalt_lcd_add()
40 return retval; in cobalt_lcd_add()
Dled.c23 int retval; in cobalt_led_add() local
34 retval = platform_device_add_resources(pdev, &cobalt_led_resource, 1); in cobalt_led_add()
35 if (retval) in cobalt_led_add()
38 retval = platform_device_add(pdev); in cobalt_led_add()
39 if (retval) in cobalt_led_add()
47 return retval; in cobalt_led_add()
Drtc.c29 int retval; in cobalt_rtc_add() local
35 retval = platform_device_add_resources(pdev, cobalt_rtc_resource, in cobalt_rtc_add()
37 if (retval) in cobalt_rtc_add()
40 retval = platform_device_add(pdev); in cobalt_rtc_add()
41 if (retval) in cobalt_rtc_add()
49 return retval; in cobalt_rtc_add()
Dserial.c43 int retval; in cobalt_uart_add() local
58retval = platform_device_add_resources(pdev, cobalt_uart_resource, ARRAY_SIZE(cobalt_uart_resource… in cobalt_uart_add()
59 if (retval) in cobalt_uart_add()
62 retval = platform_device_add(pdev); in cobalt_uart_add()
63 if (retval) in cobalt_uart_add()
71 return retval; in cobalt_uart_add()
/arch/m68k/include/asm/
Dbitops.h161 char retval; in bset_reg_test_and_set_bit() local
164 : "=d" (retval) in bset_reg_test_and_set_bit()
167 return retval; in bset_reg_test_and_set_bit()
174 char retval; in bset_mem_test_and_set_bit() local
177 : "=d" (retval), "+m" (*p) in bset_mem_test_and_set_bit()
179 return retval; in bset_mem_test_and_set_bit()
185 char retval; in bfset_mem_test_and_set_bit() local
188 : "=d" (retval) in bfset_mem_test_and_set_bit()
191 return retval; in bfset_mem_test_and_set_bit()
211 char retval; in bclr_reg_test_and_clear_bit() local
[all …]
/arch/csky/include/asm/
Duaccess.h103 int retval = 0; in __put_user_fn() local
109 __put_user_asm_b(tmp, ptr, retval); in __put_user_fn()
113 __put_user_asm_h(tmp, ptr, retval); in __put_user_fn()
117 __put_user_asm_w(tmp, ptr, retval); in __put_user_fn()
120 __put_user_asm_64(x, (u64 *)ptr, retval); in __put_user_fn()
124 return retval; in __put_user_fn()
180 int retval; in __get_user_fn() local
185 __get_user_asm_common(tmp, ptr, "ldb", retval); in __get_user_fn()
189 __get_user_asm_common(tmp, ptr, "ldh", retval); in __get_user_fn()
193 __get_user_asm_common(tmp, ptr, "ldw", retval); in __get_user_fn()
[all …]
/arch/mips/vr41xx/common/
Drtc.c67 int retval; in vr41xx_rtc_add() local
86 retval = -ENODEV; in vr41xx_rtc_add()
90 retval = platform_device_add_resources(pdev, res, num); in vr41xx_rtc_add()
91 if (retval) in vr41xx_rtc_add()
94 retval = platform_device_add(pdev); in vr41xx_rtc_add()
95 if (retval) in vr41xx_rtc_add()
103 return retval; in vr41xx_rtc_add()
Dgiu.c66 int retval; in vr41xx_giu_add() local
91 retval = -ENODEV; in vr41xx_giu_add()
95 retval = platform_device_add_resources(pdev, res, num); in vr41xx_giu_add()
96 if (retval) in vr41xx_giu_add()
99 retval = platform_device_add(pdev); in vr41xx_giu_add()
100 if (retval) in vr41xx_giu_add()
108 return retval; in vr41xx_giu_add()
Dsiu.c68 int retval; in vr41xx_siu_add() local
89 retval = -ENODEV; in vr41xx_siu_add()
93 retval = platform_device_add_resources(pdev, res, num); in vr41xx_siu_add()
94 if (retval) in vr41xx_siu_add()
97 retval = platform_device_add(pdev); in vr41xx_siu_add()
98 if (retval) in vr41xx_siu_add()
106 return retval; in vr41xx_siu_add()
/arch/powerpc/include/asm/
Dtrace.h100 TP_PROTO(unsigned long opcode, long retval, unsigned long *retbuf),
102 TP_ARGS(opcode, retval, retbuf),
108 __field(long, retval)
113 __entry->retval = retval;
116 TP_printk("opcode=%lu retval=%ld", __entry->opcode, __entry->retval),
147 TP_PROTO(unsigned long opcode, unsigned long retval),
149 TP_ARGS(opcode, retval),
153 __field(unsigned long, retval)
158 __entry->retval = retval;
161 TP_printk("opcode=%lu retval=%lu", __entry->opcode, __entry->retval),
/arch/arm/include/asm/
Dhugetlb-3level.h23 pte_t retval = *ptep; in huge_ptep_get() local
24 if (pte_val(retval)) in huge_ptep_get()
25 pte_val(retval) |= L_PTE_VALID; in huge_ptep_get()
26 return retval; in huge_ptep_get()
/arch/openrisc/include/asm/
Duaccess.h110 #define __put_user_size(x, ptr, size, retval) \ argument
112 retval = 0; \
114 case 1: __put_user_asm(x, ptr, retval, "l.sb"); break; \
115 case 2: __put_user_asm(x, ptr, retval, "l.sh"); break; \
116 case 4: __put_user_asm(x, ptr, retval, "l.sw"); break; \
117 case 8: __put_user_asm2(x, ptr, retval); break; \
186 #define __get_user_size(x, ptr, size, retval) \ argument
188 retval = 0; \
190 case 1: __get_user_asm(x, ptr, retval, "l.lbz"); break; \
191 case 2: __get_user_asm(x, ptr, retval, "l.lhz"); break; \
[all …]
/arch/x86/ia32/
Dia32_aout.c109 int retval; in load_aout_binary() local
133 retval = begin_new_exec(bprm); in load_aout_binary()
134 if (retval) in load_aout_binary()
135 return retval; in load_aout_binary()
154 retval = setup_arg_pages(bprm, IA32_STACK_TOP, EXSTACK_DEFAULT); in load_aout_binary()
155 if (retval < 0) in load_aout_binary()
156 return retval; in load_aout_binary()
246 int retval; in load_aout_library() local
250 retval = -ENOEXEC; in load_aout_library()
282 retval = vm_brk(start_addr, ex.a_text + ex.a_data + ex.a_bss); in load_aout_library()
[all …]
/arch/xtensa/include/asm/
Duaccess.h93 #define __put_user_size(x, ptr, size, retval) \ argument
96 retval = 0; \
98 case 1: __put_user_asm(x, ptr, retval, 1, "s8i", __cb); break; \
99 case 2: __put_user_asm(x, ptr, retval, 2, "s16i", __cb); break; \
100 case 4: __put_user_asm(x, ptr, retval, 4, "s32i", __cb); break; \
103 retval = __copy_to_user(ptr, &__v64, 8) ? -EFAULT : 0; \
193 #define __get_user_size(x, ptr, size, retval) \ argument
196 retval = 0; \
198 case 1: __get_user_asm(x, ptr, retval, 1, "l8ui", __cb); break;\
199 case 2: __get_user_asm(x, ptr, retval, 2, "l16ui", __cb); break;\
[all …]

12345