Home
last modified time | relevance | path

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

123

/linux-2.6.39/drivers/block/drbd/
Ddrbd_nl.c860 enum drbd_ret_code retcode; in drbd_nl_disk_conf() local
877 retcode = ERR_DISK_CONFIGURED; in drbd_nl_disk_conf()
889 retcode = ERR_NOMEM; in drbd_nl_disk_conf()
899 retcode = ERR_MANDATORY_TAG; in drbd_nl_disk_conf()
904 retcode = ERR_MD_IDX_INVALID; in drbd_nl_disk_conf()
912 retcode = ERR_STONITH_AND_PROT_A; in drbd_nl_disk_conf()
922 retcode = ERR_OPEN_DISK; in drbd_nl_disk_conf()
942 retcode = ERR_OPEN_MD_DISK; in drbd_nl_disk_conf()
950 retcode = ERR_MD_IDX_INVALID; in drbd_nl_disk_conf()
958 retcode = ERR_NOMEM; in drbd_nl_disk_conf()
[all …]
/linux-2.6.39/arch/sh/kernel/
Dsignal_32.c134 u16 retcode[8]; member
141 u16 retcode[8]; member
383 err |= __put_user(MOVW(7), &frame->retcode[0]); in setup_frame()
384 err |= __put_user(TRAP_NOARG, &frame->retcode[1]); in setup_frame()
385 err |= __put_user(OR_R0_R0, &frame->retcode[2]); in setup_frame()
386 err |= __put_user(OR_R0_R0, &frame->retcode[3]); in setup_frame()
387 err |= __put_user(OR_R0_R0, &frame->retcode[4]); in setup_frame()
388 err |= __put_user(OR_R0_R0, &frame->retcode[5]); in setup_frame()
389 err |= __put_user(OR_R0_R0, &frame->retcode[6]); in setup_frame()
390 err |= __put_user((__NR_sigreturn), &frame->retcode[7]); in setup_frame()
[all …]
/linux-2.6.39/arch/mn10300/kernel/
Dsignal.c318 if (__put_user((void (*)(void))frame->retcode, in setup_frame()
322 if (__put_user(0x2c, (char *)(frame->retcode + 0)) || in setup_frame()
323 __put_user(__NR_sigreturn, (char *)(frame->retcode + 1)) || in setup_frame()
324 __put_user(0x00, (char *)(frame->retcode + 2)) || in setup_frame()
325 __put_user(0xf0, (char *)(frame->retcode + 3)) || in setup_frame()
326 __put_user(0xe0, (char *)(frame->retcode + 4))) in setup_frame()
328 flush_icache_range((unsigned long) frame->retcode, in setup_frame()
329 (unsigned long) frame->retcode + 5); in setup_frame()
398 if (__put_user((void(*)(void))frame->retcode, in setup_rt_frame()
401 __put_user(0x2c, (char *)(frame->retcode + 0)) || in setup_rt_frame()
[all …]
Dsigframe.h20 char retcode[8]; member
32 char retcode[8]; member
/linux-2.6.39/arch/frv/kernel/
Dsignal.c105 uint32_t retcode[2]; member
116 uint32_t retcode[2]; member
292 if (__put_user((__sigrestore_t)frame->retcode, &frame->pretcode) || in setup_frame()
293 __put_user(0x8efc0000|__NR_sigreturn, &frame->retcode[0]) || in setup_frame()
294 __put_user(0xc0700000, &frame->retcode[1])) in setup_frame()
297 flush_icache_range((unsigned long) frame->retcode, in setup_frame()
298 (unsigned long) (frame->retcode + 2)); in setup_frame()
316 __frame->lr = (unsigned long) &frame->retcode; in setup_frame()
393 if (__put_user((__sigrestore_t)frame->retcode, &frame->pretcode) || in setup_rt_frame()
394 __put_user(0x8efc0000|__NR_rt_sigreturn, &frame->retcode[0]) || in setup_rt_frame()
[all …]
/linux-2.6.39/arch/cris/arch-v10/kernel/
Dsignal.c109 unsigned char retcode[8]; /* trampoline code */ member
117 unsigned char retcode[8]; /* trampoline code */ member
330 return_ip = (unsigned long)&frame->retcode; in setup_frame()
332 err |= __put_user(0x9c5f, (short __user*)(frame->retcode+0)); in setup_frame()
333 err |= __put_user(__NR_sigreturn, (short __user*)(frame->retcode+2)); in setup_frame()
334 err |= __put_user(0xe93d, (short __user*)(frame->retcode+4)); in setup_frame()
391 return_ip = (unsigned long)&frame->retcode; in setup_rt_frame()
393 err |= __put_user(0x9c5f, (short __user *)(frame->retcode+0)); in setup_rt_frame()
395 (short __user *)(frame->retcode+2)); in setup_rt_frame()
396 err |= __put_user(0xe93d, (short __user *)(frame->retcode+4)); in setup_rt_frame()
/linux-2.6.39/drivers/gpu/drm/i810/
Di810_dma.c128 int retcode = 0; in i810_map_buffer() local
145 retcode = PTR_ERR(buf_priv->virtual); in i810_map_buffer()
150 return retcode; in i810_map_buffer()
156 int retcode = 0; in i810_unmap_buffer() local
162 retcode = do_munmap(current->mm, in i810_unmap_buffer()
170 return retcode; in i810_unmap_buffer()
178 int retcode = 0; in i810_dma_get_buffer() local
182 retcode = -ENOMEM; in i810_dma_get_buffer()
183 DRM_DEBUG("retcode=%d\n", retcode); in i810_dma_get_buffer()
184 return retcode; in i810_dma_get_buffer()
[all …]
/linux-2.6.39/arch/sparc/math-emu/
Dmath_32.c164 int retcode = 0; /* assume all succeed */ in do_mathemu() local
182 retcode = do_one_mathemu(insn, &fpt->thread.fsr, fpt->thread.float_regs); in do_mathemu()
183 if (retcode) { in do_mathemu()
189 return retcode; in do_mathemu()
194 retcode = do_one_mathemu(fpt->thread.fpqueue[i].insn, &(fpt->thread.fsr), fpt->thread.float_regs); in do_mathemu()
195 if (!retcode) /* insn failed, no point doing any more */ in do_mathemu()
199 if (retcode) in do_mathemu()
205 return retcode; in do_mathemu()
/linux-2.6.39/drivers/gpu/drm/
Ddrm_ioctl.c306 int if_version, retcode = 0; in drm_setversion() local
311 retcode = -EINVAL; in drm_setversion()
322 retcode = drm_set_busid(dev, file_priv); in drm_setversion()
323 if (retcode) in drm_setversion()
332 retcode = -EINVAL; in drm_setversion()
346 return retcode; in drm_setversion()
Ddrm_drv.c382 int retcode = -EINVAL; in drm_ioctl() local
424 retcode = -EINVAL; in drm_ioctl()
429 retcode = -EACCES; in drm_ioctl()
437 retcode = -ENOMEM; in drm_ioctl()
446 retcode = -EFAULT; in drm_ioctl()
453 retcode = func(dev, kdata, file_priv); in drm_ioctl()
456 retcode = func(dev, kdata, file_priv); in drm_ioctl()
463 retcode = -EFAULT; in drm_ioctl()
471 if (retcode) in drm_ioctl()
472 DRM_DEBUG("ret = %x\n", retcode); in drm_ioctl()
[all …]
Ddrm_fops.c126 int retcode = 0; in drm_open() local
135 retcode = drm_open_helper(inode, filp, dev); in drm_open()
136 if (!retcode) { in drm_open()
139 retcode = drm_setup(dev); in drm_open()
141 if (!retcode) { in drm_open()
147 retcode = -ENODEV; in drm_open()
152 return retcode; in drm_open()
471 int retcode = 0; in drm_release() local
573 retcode = -EBUSY; in drm_release()
575 retcode = drm_lastclose(dev); in drm_release()
[all …]
Ddrm_stub.c244 int retcode; in drm_fill_in_dev() local
273 retcode = dev->driver->bus->agp_init(dev); in drm_fill_in_dev()
274 if (retcode) in drm_fill_in_dev()
280 retcode = drm_ctxbitmap_init(dev); in drm_fill_in_dev()
281 if (retcode) { in drm_fill_in_dev()
287 retcode = drm_gem_init(dev); in drm_fill_in_dev()
288 if (retcode) { in drm_fill_in_dev()
299 return retcode; in drm_fill_in_dev()
Ddrm_bufs.c453 int retcode; in drm_rmmap_locked() local
454 retcode = mtrr_del(map->mtrr, map->offset, map->size); in drm_rmmap_locked()
455 DRM_DEBUG("mtrr_del=%d\n", retcode); in drm_rmmap_locked()
1520 int retcode = 0; in drm_mapbufs() local
1551 retcode = -EINVAL; in drm_mapbufs()
1569 retcode = (signed long)virtual; in drm_mapbufs()
1578 retcode = -EFAULT; in drm_mapbufs()
1584 retcode = -EFAULT; in drm_mapbufs()
1589 retcode = -EFAULT; in drm_mapbufs()
1595 retcode = -EFAULT; in drm_mapbufs()
[all …]
/linux-2.6.39/arch/um/sys-i386/
Dsignal.c308 char retcode[8]; member
320 char retcode[8]; member
338 restorer = frame->retcode; in setup_signal_stack_sc()
367 err |= __put_user(0xb858, (short __user *)(frame->retcode+0)); in setup_signal_stack_sc()
368 err |= __put_user(__NR_sigreturn, (int __user *)(frame->retcode+2)); in setup_signal_stack_sc()
369 err |= __put_user(0x80cd, (short __user *)(frame->retcode+6)); in setup_signal_stack_sc()
403 restorer = frame->retcode; in setup_signal_stack_si()
425 err |= __put_user(0xb8, (char __user *)(frame->retcode+0)); in setup_signal_stack_si()
426 err |= __put_user(__NR_rt_sigreturn, (int __user *)(frame->retcode+1)); in setup_signal_stack_si()
427 err |= __put_user(0x80cd, (short __user *)(frame->retcode+5)); in setup_signal_stack_si()
/linux-2.6.39/arch/x86/include/asm/
Dsigframe.h41 char retcode[8]; member
56 char retcode[8]; member
/linux-2.6.39/arch/cris/arch-v32/kernel/
Dsignal.c43 unsigned char retcode[8]; /* Trampoline code. */ member
51 unsigned char retcode[8]; /* Trampoline code. */ member
341 err |= __put_user(0x9c5f, (short __user*)(frame->retcode+0)); in setup_frame()
342 err |= __put_user(__NR_sigreturn, (short __user*)(frame->retcode+2)); in setup_frame()
343 err |= __put_user(0xe93d, (short __user*)(frame->retcode+4)); in setup_frame()
421 err |= __put_user(0x9c5f, (short __user*)(frame->retcode+0)); in setup_rt_frame()
424 (short __user*)(frame->retcode+2)); in setup_rt_frame()
426 err |= __put_user(0xe93d, (short __user*)(frame->retcode+4)); in setup_rt_frame()
/linux-2.6.39/drivers/usb/class/
Dusbtmc.c1007 int retcode; in usbtmc_probe() local
1057 retcode = get_capabilities(data); in usbtmc_probe()
1058 if (retcode) in usbtmc_probe()
1061 retcode = sysfs_create_group(&intf->dev.kobj, in usbtmc_probe()
1064 retcode = sysfs_create_group(&intf->dev.kobj, &data_attr_grp); in usbtmc_probe()
1066 retcode = usb_register_dev(intf, &usbtmc_class); in usbtmc_probe()
1067 if (retcode) { in usbtmc_probe()
1070 retcode); in usbtmc_probe()
1081 return retcode; in usbtmc_probe()
1122 int retcode; in usbtmc_init() local
[all …]
/linux-2.6.39/arch/h8300/kernel/
Dsignal.c163 unsigned char retcode[8]; member
180 unsigned char retcode[8]; member
351 ret = frame->retcode; in setup_frame()
357 (unsigned long *)(frame->retcode + 0)); in setup_frame()
358 err |= __put_user(0x5700, (unsigned short *)(frame->retcode + 4)); in setup_frame()
427 ret = frame->retcode; in setup_rt_frame()
433 (unsigned long *)(frame->retcode + 0)); in setup_rt_frame()
434 err |= __put_user(0x5700, (unsigned short *)(frame->retcode + 4)); in setup_rt_frame()
/linux-2.6.39/arch/alpha/kernel/
Dsignal.c153 unsigned int retcode[3]; member
160 unsigned int retcode[3]; member
395 err |= __put_user(INSN_MOV_R30_R16, frame->retcode+0); in setup_frame()
396 err |= __put_user(INSN_LDI_R0+__NR_sigreturn, frame->retcode+1); in setup_frame()
397 err |= __put_user(INSN_CALLSYS, frame->retcode+2); in setup_frame()
399 r26 = (unsigned long) frame->retcode; in setup_frame()
458 err |= __put_user(INSN_MOV_R30_R16, frame->retcode+0); in setup_rt_frame()
460 frame->retcode+1); in setup_rt_frame()
461 err |= __put_user(INSN_CALLSYS, frame->retcode+2); in setup_rt_frame()
463 r26 = (unsigned long) frame->retcode; in setup_rt_frame()
/linux-2.6.39/drivers/gpu/drm/via/
Dvia_dma.c234 int retcode = 0; in via_dma_init() local
239 retcode = -EPERM; in via_dma_init()
241 retcode = via_initialize(dev, dev_priv, init); in via_dma_init()
245 retcode = -EPERM; in via_dma_init()
247 retcode = via_dma_cleanup(dev); in via_dma_init()
250 retcode = (dev_priv->ring.virtual_start != NULL) ? in via_dma_init()
254 retcode = -EINVAL; in via_dma_init()
258 return retcode; in via_dma_init()
/linux-2.6.39/arch/m68k/kernel/
Dsignal_mm.c166 char retcode[8]; member
177 char retcode[8]; member
756 err |= __put_user(frame->retcode, &frame->pretcode); in setup_frame()
759 (long __user *)(frame->retcode)); in setup_frame()
764 push_cache ((unsigned long) &frame->retcode); in setup_frame()
844 err |= __put_user(frame->retcode, &frame->pretcode); in setup_rt_frame()
847 err |= __put_user(0x203c0000, (long __user *)(frame->retcode + 0)); in setup_rt_frame()
849 (long __user *)(frame->retcode + 4)); in setup_rt_frame()
853 (long __user *)(frame->retcode + 0)); in setup_rt_frame()
854 err |= __put_user(0x4e40, (short __user *)(frame->retcode + 4)); in setup_rt_frame()
[all …]
/linux-2.6.39/arch/s390/kernel/
Dsignal.c44 __u8 retcode[S390_SYSCALL_SIZE]; member
50 __u8 retcode[S390_SYSCALL_SIZE]; member
295 frame->retcode | PSW_ADDR_AMODE; in setup_frame()
297 (u16 __user *)(frame->retcode))) in setup_frame()
363 frame->retcode | PSW_ADDR_AMODE; in setup_rt_frame()
365 (u16 __user *)(frame->retcode))) in setup_rt_frame()
/linux-2.6.39/arch/arm/kernel/
Dsignal.c267 unsigned long retcode[2]; member
470 unsigned long retcode; in setup_return() local
502 retcode = (unsigned long)ka->sa.sa_restorer; in setup_return()
518 retcode = KERN_SIGRETURN_CODE + (idx << 2) + thumb; in setup_return()
527 retcode = ((unsigned long)rc) + thumb; in setup_return()
533 regs->ARM_lr = retcode; in setup_return()
556 err = setup_return(regs, ka, frame->retcode, frame, usig); in setup_frame()
585 err = setup_return(regs, ka, frame->sig.retcode, frame, usig); in setup_rt_frame()
/linux-2.6.39/drivers/staging/brcm80211/brcmfmac/
Ddhd_common.c1142 int retcode; in dhd_arp_offload_set() local
1145 retcode = dhdcdc_set_ioctl(dhd, 0, WLC_SET_VAR, iovbuf, sizeof(iovbuf)); in dhd_arp_offload_set()
1146 retcode = retcode >= 0 ? 0 : retcode; in dhd_arp_offload_set()
1147 if (retcode) in dhd_arp_offload_set()
1149 "retcode = %d\n", __func__, arp_mode, retcode)); in dhd_arp_offload_set()
1158 int retcode; in dhd_arp_offload_enable() local
1161 retcode = dhdcdc_set_ioctl(dhd, 0, WLC_SET_VAR, iovbuf, sizeof(iovbuf)); in dhd_arp_offload_enable()
1162 retcode = retcode >= 0 ? 0 : retcode; in dhd_arp_offload_enable()
1163 if (retcode) in dhd_arp_offload_enable()
1165 "retcode = %d\n", __func__, arp_enable, retcode)); in dhd_arp_offload_enable()
/linux-2.6.39/arch/unicore32/kernel/
Dsignal.c50 unsigned long retcode[2]; member
227 unsigned long retcode; in setup_return() local
239 retcode = KERN_SIGRETURN_CODE + (idx << 2); in setup_return()
243 regs->UCreg_lr = retcode; in setup_return()
266 err |= setup_return(regs, ka, frame->retcode, frame, usig); in setup_frame()
295 err |= setup_return(regs, ka, frame->sig.retcode, frame, usig); in setup_rt_frame()

123