Home
last modified time | relevance | path

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

1234567

/arch/sparc/include/asm/
Dstring_32.h143 register int retval; in __constant_strncmp() local
147 case 2: retval = (src[0] - dest[0]); in __constant_strncmp()
148 if(!retval && src[0]) in __constant_strncmp()
149 retval = (src[1] - dest[1]); in __constant_strncmp()
150 return retval; in __constant_strncmp()
151 case 3: retval = (src[0] - dest[0]); in __constant_strncmp()
152 if(!retval && src[0]) { in __constant_strncmp()
153 retval = (src[1] - dest[1]); in __constant_strncmp()
154 if(!retval && src[1]) in __constant_strncmp()
155 retval = (src[2] - dest[2]); in __constant_strncmp()
[all …]
Dpgtsrmmu.h153 unsigned int retval; in srmmu_get_mmureg() local
155 "=r" (retval) : in srmmu_get_mmureg()
157 return retval; in srmmu_get_mmureg()
178 unsigned int retval; in srmmu_get_ctable_ptr() local
181 "=r" (retval) : in srmmu_get_ctable_ptr()
184 return (retval & SRMMU_CTX_PMASK) << 4; in srmmu_get_ctable_ptr()
196 register int retval; in srmmu_get_context() local
198 "=r" (retval) : in srmmu_get_context()
201 return retval; in srmmu_get_context()
206 unsigned int retval; in srmmu_get_fstatus() local
[all …]
/arch/parisc/kernel/
Dfirmware.c213 int retval; in pdc_add_valid() local
217 retval = mem_pdc_call(PDC_ADD_VALID, PDC_ADD_VALID_VERIFY, address); in pdc_add_valid()
220 return retval; in pdc_add_valid()
234 int retval; in pdc_chassis_info() local
240 retval = mem_pdc_call(PDC_CHASSIS, PDC_RETURN_CHASSIS_INFO, in pdc_chassis_info()
246 return retval; in pdc_chassis_info()
258 int retval = 0; in pdc_pat_chassis_send_log() local
265 retval = mem_pdc_call(PDC_PAT_CHASSIS_LOG, PDC_PAT_CHASSIS_WRITE_LOG, __pa(&state), __pa(&data)); in pdc_pat_chassis_send_log()
268 return retval; in pdc_pat_chassis_send_log()
278 int retval = 0; in pdc_chassis_disp() local
[all …]
Dpdc_chassis.c174 int retval = 0; in pdc_chassis_send_status() local
184 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_BSTART, PDC_CHASSIS_LSTATE_RUN_NORMAL); in pdc_chassis_send_status()
188 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_BCOMPLETE, PDC_CHASSIS_LSTATE_RUN_NORMAL); in pdc_chassis_send_status()
192 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_SHUTDOWN, PDC_CHASSIS_LSTATE_NONOS); in pdc_chassis_send_status()
196 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_PANIC, PDC_CHASSIS_LSTATE_RUN_CRASHREC); in pdc_chassis_send_status()
200 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_LPMC, PDC_CHASSIS_LSTATE_RUN_SYSINT); in pdc_chassis_send_status()
204 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_HPMC, PDC_CHASSIS_LSTATE_RUN_NCRIT); in pdc_chassis_send_status()
208 retval = -1; in pdc_chassis_send_status()
210 } else retval = -1; in pdc_chassis_send_status()
215 retval = pdc_chassis_disp(PDC_CHASSIS_DISP_DATA(OSTAT_INIT)); in pdc_chassis_send_status()
[all …]
/arch/sh/include/asm/
Duaccess_64.h24 #define __get_user_size(x,ptr,size,retval) \ argument
26 retval = 0; \
29 retval = __get_user_asm_b((void *)&x, \
33 retval = __get_user_asm_w((void *)&x, \
37 retval = __get_user_asm_l((void *)&x, \
41 retval = __get_user_asm_q((void *)&x, \
56 #define __put_user_size(x,ptr,size,retval) \ argument
58 retval = 0; \
61 retval = __put_user_asm_b((void *)&x, \
65 retval = __put_user_asm_w((void *)&x, \
[all …]
Duaccess_32.h15 #define __get_user_size(x,ptr,size,retval) \ argument
17 retval = 0; \
20 __get_user_asm(x, ptr, retval, "b"); \
23 __get_user_asm(x, ptr, retval, "w"); \
26 __get_user_asm(x, ptr, retval, "l"); \
68 #define __put_user_size(x,ptr,size,retval) \ argument
70 retval = 0; \
73 __put_user_asm(x, ptr, retval, "b"); \
76 __put_user_asm(x, ptr, retval, "w"); \
79 __put_user_asm(x, ptr, retval, "l"); \
[all …]
Dcmpxchg-irq.h6 unsigned long flags, retval; in xchg_u32() local
9 retval = *m; in xchg_u32()
12 return retval; in xchg_u32()
17 unsigned long flags, retval; in xchg_u8() local
20 retval = *m; in xchg_u8()
23 return retval; in xchg_u8()
29 __u32 retval; in __cmpxchg_u32() local
33 retval = *m; in __cmpxchg_u32()
34 if (retval == old) in __cmpxchg_u32()
37 return retval; in __cmpxchg_u32()
Dcmpxchg-grb.h6 unsigned long retval; in xchg_u32() local
17 : "=&r" (retval), in xchg_u32()
22 return retval; in xchg_u32()
27 unsigned long retval; in xchg_u8() local
38 : "=&r" (retval), in xchg_u8()
43 return retval; in xchg_u8()
49 unsigned long retval; in __cmpxchg_u32() local
62 : "=&r" (retval), in __cmpxchg_u32()
67 return retval; in __cmpxchg_u32()
Dcmpxchg-llsc.h6 unsigned long retval; in xchg_u32() local
17 : "=&z"(tmp), "=r" (m), "=&r" (retval) in xchg_u32()
22 return retval; in xchg_u32()
27 unsigned long retval; in xchg_u8() local
38 : "=&z"(tmp), "=r" (m), "=&r" (retval) in xchg_u8()
43 return retval; in xchg_u8()
49 unsigned long retval; in __cmpxchg_u32() local
63 : "=&z" (tmp), "=r" (m), "=&r" (retval) in __cmpxchg_u32()
68 return retval; in __cmpxchg_u32()
Dbitops-grb.h76 int mask, retval; in test_and_set_bit() local
97 "=&r" (retval), in test_and_set_bit()
102 return retval; in test_and_set_bit()
107 int mask, retval,not_mask; in test_and_clear_bit() local
130 "=&r" (retval), in test_and_clear_bit()
136 return retval; in test_and_clear_bit()
141 int mask, retval; in test_and_change_bit() local
162 "=&r" (retval), in test_and_change_bit()
167 return retval; in test_and_change_bit()
Dbitops-llsc.h69 int mask, retval; in test_and_set_bit() local
84 : "=&z" (tmp), "=r" (a), "=&r" (retval) in test_and_set_bit()
89 return retval != 0; in test_and_set_bit()
94 int mask, retval; in test_and_clear_bit() local
110 : "=&z" (tmp), "=r" (a), "=&r" (retval) in test_and_clear_bit()
115 return retval != 0; in test_and_clear_bit()
120 int mask, retval; in test_and_change_bit() local
136 : "=&z" (tmp), "=r" (a), "=&r" (retval) in test_and_change_bit()
141 return retval != 0; in test_and_change_bit()
/arch/cris/include/asm/
Datomic.h42 int retval; in atomic_add_return() local
44 retval = (v->counter += i); in atomic_add_return()
46 return retval; in atomic_add_return()
54 int retval; in atomic_sub_return() local
56 retval = (v->counter -= i); in atomic_sub_return()
58 return retval; in atomic_sub_return()
63 int retval; in atomic_sub_and_test() local
66 retval = (v->counter -= i) == 0; in atomic_sub_and_test()
68 return retval; in atomic_sub_and_test()
90 int retval; in atomic_inc_return() local
[all …]
Dbitops.h75 unsigned int mask, retval; in test_and_set_bit() local
82 retval = (mask & *adr) != 0; in test_and_set_bit()
85 return retval; in test_and_set_bit()
105 unsigned int mask, retval; in test_and_clear_bit() local
112 retval = (mask & *adr) != 0; in test_and_clear_bit()
115 return retval; in test_and_clear_bit()
129 unsigned int mask, retval; in test_and_change_bit() local
135 retval = (mask & *adr) != 0; in test_and_change_bit()
138 return retval; in test_and_change_bit()
/arch/m68k/include/asm/
Dbitops_no.h111 char retval; in test_and_set_bit() local
115 : "=d" (retval), "+m" (((volatile char *)addr)[(nr^31) >> 3]) in test_and_set_bit()
120 : "=d" (retval), "+m" (((volatile char *)addr)[(nr^31) >> 3]) in test_and_set_bit()
125 return retval; in test_and_set_bit()
132 char retval; in test_and_clear_bit() local
136 : "=d" (retval), "+m" (((volatile char *)addr)[(nr^31) >> 3]) in test_and_clear_bit()
141 : "=d" (retval), "+m" (((volatile char *)addr)[(nr^31) >> 3]) in test_and_clear_bit()
146 return retval; in test_and_clear_bit()
153 char retval; in test_and_change_bit() local
157 : "=d" (retval), "+m" (((volatile char *)addr)[(nr^31) >> 3]) in test_and_change_bit()
[all …]
/arch/cris/arch-v32/drivers/
Diop_fw_load.c67 int retval, i; in iop_fw_load_spu() local
73 retval = request_firmware(&fw_entry, in iop_fw_load_spu()
76 if (retval != 0) in iop_fw_load_spu()
81 return retval; in iop_fw_load_spu()
103 retval = -EBUSY; in iop_fw_load_spu()
126 return retval; in iop_fw_load_spu()
135 int retval, i; in iop_fw_load_mpu() local
138 retval = request_firmware(&fw_entry, fw_name, &iop_mpu_device); in iop_fw_load_mpu()
139 if (retval != 0) in iop_fw_load_mpu()
144 return retval; in iop_fw_load_mpu()
[all …]
/arch/x86/include/asm/
Dtime.h12 unsigned long retval; in native_get_wallclock() local
15 retval = efi_get_time(); in native_get_wallclock()
17 retval = mach_get_cmos_time(); in native_get_wallclock()
19 return retval; in native_get_wallclock()
24 int retval; in native_set_wallclock() local
27 retval = efi_set_rtc_mmss(nowtime); in native_set_wallclock()
29 retval = mach_set_rtc_mmss(nowtime); in native_set_wallclock()
31 return retval; in native_set_wallclock()
/arch/arm/mach-iop13xx/
Dio.c46 void __iomem * retval; in __iop13xx_ioremap() local
51 retval = NULL; in __iop13xx_ioremap()
53 retval = (void *)(iop13xx_atux_mem_base + in __iop13xx_ioremap()
58 retval = NULL; in __iop13xx_ioremap()
60 retval = (void *)(iop13xx_atue_mem_base + in __iop13xx_ioremap()
64 retval = __arm_ioremap(IOP13XX_PBI_LOWER_MEM_PA + in __iop13xx_ioremap()
69 retval = (void *) IOP13XX_PCIE_IO_PHYS_TO_VIRT(cookie); in __iop13xx_ioremap()
72 retval = (void *) IOP13XX_PCIX_IO_PHYS_TO_VIRT(cookie); in __iop13xx_ioremap()
75 retval = (void *) IOP13XX_PMMR_PHYS_TO_VIRT(cookie); in __iop13xx_ioremap()
78 retval = __arm_ioremap(cookie, size, mtype); in __iop13xx_ioremap()
[all …]
/arch/um/sys-ppc/shared/sysdep/
Dsigcontext.h13 long retval = -1; \
17 retval = _sc->regs->dar; \
21 retval = _sc->regs->nip; \
26 retval; \
31 long retval = -1; \
35 retval = !!(_sc->regs->dsisr & DSISR_WRITE); \
39 retval = 0; \
44 retval; \
/arch/powerpc/platforms/pseries/
Dhvcserver.c99 long retval; in hvcs_next_partner() local
100 retval = plpar_hcall_norets(H_VTERM_PARTNER_INFO, unit_address, in hvcs_next_partner()
103 return hvcs_convert(retval); in hvcs_next_partner()
142 int retval; in hvcs_get_partner_info() local
153 retval = hvcs_next_partner(unit_address, last_p_partition_ID, in hvcs_get_partner_info()
155 if (retval) { in hvcs_get_partner_info()
162 return retval; in hvcs_get_partner_info()
228 long retval; in hvcs_register_connection() local
229 retval = plpar_hcall_norets(H_REGISTER_VTERM, unit_address, in hvcs_register_connection()
231 return hvcs_convert(retval); in hvcs_register_connection()
[all …]
/arch/mips/kernel/
Dmips-mt-fpaff.c51 int retval; in mipsmt_sys_sched_setaffinity() local
81 retval = -EPERM; in mipsmt_sys_sched_setaffinity()
88 retval = security_task_setscheduler(p, 0, NULL); in mipsmt_sys_sched_setaffinity()
89 if (retval) in mipsmt_sys_sched_setaffinity()
103 retval = set_cpus_allowed(p, effective_mask); in mipsmt_sys_sched_setaffinity()
106 retval = set_cpus_allowed(p, new_mask); in mipsmt_sys_sched_setaffinity()
112 return retval; in mipsmt_sys_sched_setaffinity()
123 int retval; in mipsmt_sys_sched_getaffinity() local
133 retval = -ESRCH; in mipsmt_sys_sched_getaffinity()
137 retval = security_task_getscheduler(p); in mipsmt_sys_sched_getaffinity()
[all …]
/arch/blackfin/include/asm/
Dbitops.h124 int mask, retval; in test_and_set_bit() local
131 retval = (mask & *a) != 0; in test_and_set_bit()
135 return retval; in test_and_set_bit()
140 int mask, retval; in test_and_clear_bit() local
147 retval = (mask & *a) != 0; in test_and_clear_bit()
151 return retval; in test_and_clear_bit()
156 int mask, retval; in test_and_change_bit() local
163 retval = (mask & *a) != 0; in test_and_change_bit()
166 return retval; in test_and_change_bit()
209 int mask, retval; in __test_and_set_bit() local
[all …]
/arch/arm/mach-pnx4008/
Di2c.c25 int retval = 0; in set_clock_run() local
33 retval = -ENOENT; in set_clock_run()
35 return retval; in set_clock_run()
42 int retval = 0; in set_clock_stop() local
50 retval = -ENOENT; in set_clock_stop()
52 return retval; in set_clock_stop()
57 int retval = 0; in i2c_pnx_suspend() local
59 retval = set_clock_run(pdev); in i2c_pnx_suspend()
61 return retval; in i2c_pnx_suspend()
66 int retval = 0; in i2c_pnx_resume() local
[all …]
/arch/mips/cobalt/
Dlcd.c34 int retval; in cobalt_lcd_add() local
40 retval = platform_device_add_resources(pdev, &cobalt_lcd_resource, 1); in cobalt_lcd_add()
41 if (retval) in cobalt_lcd_add()
44 retval = platform_device_add(pdev); in cobalt_lcd_add()
45 if (retval) in cobalt_lcd_add()
53 return retval; in cobalt_lcd_add()
Dled.c36 int retval; in cobalt_led_add() local
47 retval = platform_device_add_resources(pdev, &cobalt_led_resource, 1); in cobalt_led_add()
48 if (retval) in cobalt_led_add()
51 retval = platform_device_add(pdev); in cobalt_led_add()
52 if (retval) in cobalt_led_add()
60 return retval; in cobalt_led_add()
Drtc.c42 int retval; in cobalt_rtc_add() local
48 retval = platform_device_add_resources(pdev, cobalt_rtc_resource, in cobalt_rtc_add()
50 if (retval) in cobalt_rtc_add()
53 retval = platform_device_add(pdev); in cobalt_rtc_add()
54 if (retval) in cobalt_rtc_add()
62 return retval; in cobalt_rtc_add()

1234567