Home
last modified time | relevance | path

Searched refs:retcode (Results 1 – 25 of 51) sorted by relevance

123

/kernel/liteos_a/testsuites/unittest/common/include/
DiCunit.h80 #define ICUNIT_TRACK_EQUAL(param, value, retcode) \ argument
90 #define ICUNIT_TRACK_NOT_EQUAL(param, value, retcode) \ argument
98 #define ICUNIT_ASSERT_NOT_EQUAL_NULL(param, value, retcode) \ argument
107 #define ICUNIT_ASSERT_EQUAL_NULL(param, value, retcode) \ argument
119 #define ICUNIT_ASSERT_EQUAL_VOID(param, value, retcode) \ argument
131 #define ICUNIT_ASSERT_NOT_EQUAL_VOID(param, value, retcode) \ argument
139 #define ICUNIT_ASSERT_EQUAL(param, value, retcode) \ argument
148 #define ICUNIT_ASSERT_TWO_EQUAL(param, value1, value2, retcode) \ argument
160 #define ICUNIT_GOTO_TWO_EQUAL(param, value1, value2, retcode, label) \ argument
163 EXPECT_NE((long)(retcode), (long)(retcode)); \
[all …]
/kernel/liteos_a/testsuites/kernel/include/
DiCunit.h240 #define ICUNIT_TRACK_EQUAL(param, g_value, retcode) \ argument
243 ICunitSaveErr(__LINE__, (iiUINT32)retcode); \
248 #define ICUNIT_TRACK_NOT_EQUAL(param, g_value, retcode) \ argument
251 ICunitSaveErr(__LINE__, (iiUINT32)retcode); \
255 #define ICUNIT_ASSERT_NOT_EQUAL_NULL(param, g_value, retcode) \ argument
258 ICunitSaveErr(__LINE__, (iiUINT32)retcode); \
263 #define ICUNIT_ASSERT_EQUAL_NULL(param, g_value, retcode) \ argument
266 ICunitSaveErr(__LINE__, (iiUINT32)retcode); \
271 #define ICUNIT_ASSERT_EQUAL_VOID(param, g_value, retcode) \ argument
274 ICunitSaveErr(__LINE__, (iiUINT32)retcode); \
[all …]
/kernel/liteos_m/testsuites/include/
DiCunit.h215 #define ICUNIT_TRACK_EQUAL(param, value, retcode) \ argument
218 ICunitSaveErr(__LINE__, (iiUINT32)retcode); \
222 #define ICUNIT_TRACK_NOT_EQUAL(param, value, retcode) \ argument
225 ICunitSaveErr(__LINE__, (iiUINT32)retcode); \
229 #define ICUNIT_ASSERT_EQUAL_VOID(param, value, retcode) \ argument
232 ICunitSaveErr(__LINE__, (iiUINT32)retcode); \
237 #define ICUNIT_ASSERT_NOT_EQUAL_VOID(param, value, retcode) \ argument
240 ICunitSaveErr(__LINE__, (iiUINT32)retcode); \
244 #define ICUNIT_ASSERT_EQUAL(param, value, retcode) \ argument
247 ICunitSaveErr(__LINE__, (iiUINT32)retcode); \
[all …]
/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_nl.c304 struct genl_info *info, int retcode) in drbd_adm_finish() argument
322 adm_ctx->reply_dh->ret_code = retcode; in drbd_adm_finish()
772 enum drbd_ret_code retcode; in drbd_adm_set_role() local
774 retcode = drbd_adm_prepare(&adm_ctx, skb, info, DRBD_ADM_NEED_MINOR); in drbd_adm_set_role()
776 return retcode; in drbd_adm_set_role()
777 if (retcode != NO_ERROR) in drbd_adm_set_role()
784 retcode = ERR_MANDATORY_TAG; in drbd_adm_set_role()
793 retcode = (enum drbd_ret_code)drbd_set_role(adm_ctx.device, in drbd_adm_set_role()
796 retcode = (enum drbd_ret_code)drbd_set_role(adm_ctx.device, in drbd_adm_set_role()
802 drbd_adm_finish(&adm_ctx, info, retcode); in drbd_adm_set_role()
[all …]
/kernel/linux/linux-5.10/arch/sh/kernel/
Dsignal_32.c66 u16 retcode[8]; member
73 u16 retcode[8]; member
296 err |= __put_user(MOVW(7), &frame->retcode[0]); in setup_frame()
297 err |= __put_user(TRAP_NOARG, &frame->retcode[1]); in setup_frame()
298 err |= __put_user(OR_R0_R0, &frame->retcode[2]); in setup_frame()
299 err |= __put_user(OR_R0_R0, &frame->retcode[3]); in setup_frame()
300 err |= __put_user(OR_R0_R0, &frame->retcode[4]); in setup_frame()
301 err |= __put_user(OR_R0_R0, &frame->retcode[5]); in setup_frame()
302 err |= __put_user(OR_R0_R0, &frame->retcode[6]); in setup_frame()
303 err |= __put_user((__NR_sigreturn), &frame->retcode[7]); in setup_frame()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_ioctl.c387 int if_version, retcode = 0; in drm_setversion() local
393 retcode = -EINVAL; in drm_setversion()
404 retcode = drm_set_busid(dev, file_priv); in drm_setversion()
405 if (retcode) in drm_setversion()
414 retcode = -EINVAL; in drm_setversion()
426 return retcode; in drm_setversion()
782 int retcode; in drm_ioctl_kernel() local
787 retcode = drm_ioctl_permit(flags, file_priv); in drm_ioctl_kernel()
788 if (unlikely(retcode)) in drm_ioctl_kernel()
789 return retcode; in drm_ioctl_kernel()
[all …]
Ddrm_agpsupport.c320 int retcode; in drm_agp_bind() local
329 retcode = drm_bind_agp(entry->memory, page); in drm_agp_bind()
330 if (retcode) in drm_agp_bind()
331 return retcode; in drm_agp_bind()
Ddrm_file.c414 int retcode; in drm_open() local
431 retcode = drm_open_helper(filp, minor); in drm_open()
432 if (retcode) in drm_open()
435 retcode = drm_legacy_setup(dev); in drm_open()
436 if (retcode) { in drm_open()
452 return retcode; in drm_open()
/kernel/linux/linux-5.10/arch/c6x/kernel/
Dsignal.c32 unsigned long retcode[RETCODE_SIZE >> 2]; member
145 unsigned long __user *retcode; in setup_rt_frame() local
164 retcode = (unsigned long __user *) &frame->retcode; in setup_rt_frame()
167 #define COPY(x) (err |= __put_user(x, retcode++)) in setup_rt_frame()
185 flush_icache_range((unsigned long) &frame->retcode, in setup_rt_frame()
186 (unsigned long) &frame->retcode + RETCODE_SIZE); in setup_rt_frame()
188 retcode = (unsigned long __user *) &frame->retcode; in setup_rt_frame()
192 regs->b3 = (unsigned long) retcode; in setup_rt_frame()
/kernel/linux/linux-5.10/arch/openrisc/kernel/
Dsignal.c36 unsigned char retcode[16]; /* trampoline code */ member
179 return_ip = (unsigned long)&frame->retcode; in setup_rt_frame()
184 err |= __put_user(0xa960, (short __user *)(frame->retcode + 0)); in setup_rt_frame()
185 err |= __put_user(__NR_rt_sigreturn, (short __user *)(frame->retcode + 2)); in setup_rt_frame()
186 err |= __put_user(0x20000001, (unsigned long __user *)(frame->retcode + 4)); in setup_rt_frame()
187 err |= __put_user(0x15000000, (unsigned long __user *)(frame->retcode + 8)); in setup_rt_frame()
/kernel/linux/linux-5.10/drivers/gpu/drm/i810/
Di810_dma.c133 int retcode = 0; in i810_map_buffer() local
150 retcode = PTR_ERR(buf_priv->virtual); in i810_map_buffer()
154 return retcode; in i810_map_buffer()
160 int retcode = 0; in i810_unmap_buffer() local
165 retcode = vm_munmap((unsigned long)buf_priv->virtual, in i810_unmap_buffer()
171 return retcode; in i810_unmap_buffer()
179 int retcode = 0; in i810_dma_get_buffer() local
183 retcode = -ENOMEM; in i810_dma_get_buffer()
184 DRM_DEBUG("retcode=%d\n", retcode); in i810_dma_get_buffer()
185 return retcode; in i810_dma_get_buffer()
[all …]
/kernel/linux/linux-5.10/arch/sparc/math-emu/
Dmath_32.c165 int retcode = 0; /* assume all succeed */ in do_mathemu() local
183 retcode = do_one_mathemu(insn, &fpt->thread.fsr, fpt->thread.float_regs); in do_mathemu()
184 if (retcode) { in do_mathemu()
190 return retcode; in do_mathemu()
195 retcode = do_one_mathemu(fpt->thread.fpqueue[i].insn, &(fpt->thread.fsr), fpt->thread.float_regs); in do_mathemu()
196 if (!retcode) /* insn failed, no point doing any more */ in do_mathemu()
200 if (retcode) in do_mathemu()
206 return retcode; in do_mathemu()
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dsignal.c128 unsigned int retcode[3]; member
135 unsigned int retcode[3]; member
346 err |= __put_user(INSN_MOV_R30_R16, frame->retcode+0); in setup_frame()
347 err |= __put_user(INSN_LDI_R0+__NR_sigreturn, frame->retcode+1); in setup_frame()
348 err |= __put_user(INSN_CALLSYS, frame->retcode+2); in setup_frame()
350 r26 = (unsigned long) frame->retcode; in setup_frame()
400 err |= __put_user(INSN_MOV_R30_R16, frame->retcode+0); in setup_rt_frame()
402 frame->retcode+1); in setup_rt_frame()
403 err |= __put_user(INSN_CALLSYS, frame->retcode+2); in setup_rt_frame()
405 r26 = (unsigned long) frame->retcode; in setup_rt_frame()
/kernel/linux/linux-5.10/arch/x86/um/
Dsignal.c345 char retcode[8]; member
357 char retcode[8]; member
373 restorer = frame->retcode; in setup_signal_stack_sc()
391 err |= __put_user(0xb858, (short __user *)(frame->retcode+0)); in setup_signal_stack_sc()
392 err |= __put_user(__NR_sigreturn, (int __user *)(frame->retcode+2)); in setup_signal_stack_sc()
393 err |= __put_user(0x80cd, (short __user *)(frame->retcode+6)); in setup_signal_stack_sc()
418 restorer = frame->retcode; in setup_signal_stack_si()
437 err |= __put_user(0xb8, (char __user *)(frame->retcode+0)); in setup_signal_stack_si()
438 err |= __put_user(__NR_rt_sigreturn, (int __user *)(frame->retcode+1)); in setup_signal_stack_si()
439 err |= __put_user(0x80cd, (short __user *)(frame->retcode+5)); in setup_signal_stack_si()
/kernel/linux/linux-5.10/scripts/kconfig/tests/
Dconftest.py82 self.retcode = ps.returncode
89 if self.retcode == 0 and out_file:
102 print("[retcode]\n{}\n".format(self.retcode))
114 return self.retcode
/kernel/linux/linux-5.10/tools/time/
Dudelay_test.sh56 retcode=1
59 exit $retcode
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dsigframe.h37 char retcode[8]; member
52 char retcode[8]; member
/kernel/linux/linux-5.10/arch/arm/kernel/
Dsignal.c367 unsigned long retcode; in setup_return() local
418 retcode = (unsigned long)ksig->ka.sa.sa_restorer; in setup_return()
433 __put_user(retcode, rc+3)) in setup_return()
460 retcode = mm->context.sigpage + signal_return_offset + in setup_return()
472 retcode = ((unsigned long)rc) + thumb; in setup_return()
478 regs->ARM_lr = retcode; in setup_return()
503 err = setup_return(regs, ksig, frame->retcode, frame); in setup_frame()
525 err = setup_return(regs, ksig, frame->sig.retcode, frame); in setup_rt_frame()
/kernel/linux/linux-5.10/arch/h8300/kernel/
Dsignal.c66 unsigned char retcode[8]; member
183 ret = (unsigned char *)&frame->retcode; in setup_rt_frame()
189 (unsigned long *)(frame->retcode + 0)); in setup_rt_frame()
191 (unsigned short *)(frame->retcode + 4)); in setup_rt_frame()
/kernel/linux/linux-5.10/drivers/gpu/drm/via/
Dvia_dma.c240 int retcode = 0; in via_dma_init() local
245 retcode = -EPERM; in via_dma_init()
247 retcode = via_initialize(dev, dev_priv, init); in via_dma_init()
251 retcode = -EPERM; in via_dma_init()
253 retcode = via_dma_cleanup(dev); in via_dma_init()
256 retcode = (dev_priv->ring.virtual_start != NULL) ? in via_dma_init()
260 retcode = -EINVAL; in via_dma_init()
264 return retcode; in via_dma_init()
/kernel/linux/linux-5.10/arch/m68k/kernel/
Dsignal.c230 char retcode[8]; member
241 char retcode[8]; member
932 err |= __put_user(frame->retcode, &frame->pretcode); in setup_frame()
935 (long __user *)(frame->retcode)); in setup_frame()
944 push_cache ((unsigned long) &frame->retcode); in setup_frame()
1004 err |= __put_user(frame->retcode, &frame->pretcode); in setup_rt_frame()
1007 err |= __put_user(0x203c0000, (long __user *)(frame->retcode + 0)); in setup_rt_frame()
1009 (long __user *)(frame->retcode + 4)); in setup_rt_frame()
1013 (long __user *)(frame->retcode + 0)); in setup_rt_frame()
1014 err |= __put_user(0x4e40, (short __user *)(frame->retcode + 4)); in setup_rt_frame()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/
Dqca_uart.c83 s32 retcode; in qca_tty_receive() local
85 retcode = qcafrm_fsm_decode(&qca->frm_handle, in qca_tty_receive()
90 switch (retcode) { in qca_tty_receive()
106 n_stats->rx_bytes += retcode; in qca_tty_receive()
107 skb_put(qca->rx_skb, retcode); in qca_tty_receive()
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/
Dhabanalabs_ioctl.c546 int retcode; in _hl_ioctl() local
559 retcode = -ENOTTY; in _hl_ioctl()
576 retcode = -ENOMEM; in _hl_ioctl()
584 retcode = -EFAULT; in _hl_ioctl()
591 retcode = func(hpriv, kdata); in _hl_ioctl()
594 retcode = -EFAULT; in _hl_ioctl()
597 if (retcode) in _hl_ioctl()
604 return retcode; in _hl_ioctl()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dsignal32.c323 compat_ulong_t retcode; in compat_setup_return() local
342 retcode = ptr_to_compat(ka->sa.sa_restorer); in compat_setup_return()
350 retcode = (unsigned long)current->mm->context.sigpage + in compat_setup_return()
356 regs->compat_lr = retcode; in compat_setup_return()
428 compat_setup_return(regs, &ksig->ka, frame->sig.retcode, frame, usig); in compat_setup_rt_frame()
451 compat_setup_return(regs, &ksig->ka, frame->retcode, frame, usig); in compat_setup_frame()
/kernel/linux/linux-5.10/drivers/usb/class/
Dusbtmc.c2324 int retcode; in usbtmc_probe() local
2355 retcode = usb_find_common_endpoints(iface_desc, in usbtmc_probe()
2357 if (retcode) { in usbtmc_probe()
2362 retcode = -EINVAL; in usbtmc_probe()
2373 retcode = usb_find_int_in_endpoint(iface_desc, &int_in); in usbtmc_probe()
2374 if (!retcode) { in usbtmc_probe()
2383 retcode = get_capabilities(data); in usbtmc_probe()
2384 if (retcode) in usbtmc_probe()
2391 retcode = -ENOMEM; in usbtmc_probe()
2402 retcode = -ENOMEM; in usbtmc_probe()
[all …]

123