Home
last modified time | relevance | path

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

12

/linux-2.4.37.9/drivers/char/drm-4.0/
Dgamma_dma.c176 int retcode = 0; in gamma_do_dma() local
247 retcode = -EBUSY; in gamma_do_dma()
287 return retcode; in gamma_do_dma()
305 int retcode = 0; in gamma_dma_schedule() local
337 if (!(retcode = gamma_do_dma(dev, locked))) { in gamma_dma_schedule()
357 if (!(retcode = gamma_do_dma(dev, locked))) { in gamma_dma_schedule()
381 return retcode; in gamma_dma_schedule()
389 int retcode = 0; in gamma_dma_priority() local
426 retcode = -EINVAL; in gamma_dma_priority()
432 retcode = -EINVAL; in gamma_dma_priority()
[all …]
Di810_drv.c282 int retcode; in i810_takedown() local
283 retcode = mtrr_del(map->mtrr, in i810_takedown()
286 DRM_DEBUG("mtrr_del = %d\n", retcode); in i810_takedown()
343 int retcode; in i810_init() local
356 if ((retcode = misc_register(&i810_misc))) { in i810_init()
358 return retcode; in i810_init()
379 if((retcode = drm_ctxbitmap_init(dev))) { in i810_init()
384 return retcode; in i810_init()
463 int retcode = 0; in i810_open() local
466 if (!(retcode = drm_open_helper(inode, filp, dev))) { in i810_open()
[all …]
Dr128_drv.c292 int retcode; in r128_takedown() local
293 retcode = mtrr_del(map->mtrr, in r128_takedown()
296 DRM_DEBUG("mtrr_del = %d\n", retcode); in r128_takedown()
339 int retcode; in r128_init() local
352 if ((retcode = misc_register(&r128_misc))) { in r128_init()
354 return retcode; in r128_init()
380 if((retcode = drm_ctxbitmap_init(dev))) { in r128_init()
385 return retcode; in r128_init()
466 int retcode = 0; in r128_open() local
469 if (!(retcode = drm_open_helper(inode, filp, dev))) { in r128_open()
[all …]
Dgamma_drv.c254 int retcode; in gamma_takedown() local
255 retcode = mtrr_del(map->mtrr, in gamma_takedown()
258 DRM_DEBUG("mtrr_del = %d\n", retcode); in gamma_takedown()
345 int retcode; in gamma_init() local
360 if ((retcode = misc_register(&gamma_misc))) { in gamma_init()
362 return retcode; in gamma_init()
441 int retcode = 0; in gamma_open() local
444 if (!(retcode = drm_open_helper(inode, filp, dev))) { in gamma_open()
456 return retcode; in gamma_open()
463 int retcode = 0; in gamma_release() local
[all …]
Dtdfx_drv.c260 int retcode; in tdfx_takedown() local
261 retcode = mtrr_del(map->mtrr, in tdfx_takedown()
264 DRM_DEBUG("mtrr_del = %d\n", retcode); in tdfx_takedown()
304 int retcode; in tdfx_init() local
317 if ((retcode = misc_register(&tdfx_misc))) { in tdfx_init()
319 return retcode; in tdfx_init()
329 if((retcode = drm_ctxbitmap_init(dev))) { in tdfx_init()
334 return retcode; in tdfx_init()
415 int retcode = 0; in tdfx_open() local
418 if (!(retcode = drm_open_helper(inode, filp, dev))) { in tdfx_open()
[all …]
Dmga_drv.c282 int retcode; in mga_takedown() local
283 retcode = mtrr_del(map->mtrr, in mga_takedown()
286 DRM_DEBUG("mtrr_del = %d\n", retcode); in mga_takedown()
343 int retcode; in mga_init() local
355 if ((retcode = misc_register(&mga_misc))) { in mga_init()
357 return retcode; in mga_init()
380 if((retcode = drm_ctxbitmap_init(dev))) { in mga_init()
385 return retcode; in mga_init()
474 int retcode = 0; in mga_open() local
477 if (!(retcode = drm_open_helper(inode, filp, dev))) { in mga_open()
[all …]
Dradeon_drv.c290 int retcode; in radeon_takedown() local
291 retcode = mtrr_del(map->mtrr, in radeon_takedown()
294 DRM_DEBUG("mtrr_del = %d\n", retcode); in radeon_takedown()
337 int retcode; in radeon_init() local
350 if ((retcode = misc_register(&radeon_misc))) { in radeon_init()
352 return retcode; in radeon_init()
378 if((retcode = drm_ctxbitmap_init(dev))) { in radeon_init()
383 return retcode; in radeon_init()
464 int retcode = 0; in radeon_open() local
467 if (!(retcode = drm_open_helper(inode, filp, dev))) { in radeon_open()
[all …]
Di810_dma.c191 int retcode = 0; in i810_map_buffer() local
209 retcode = (signed int)buf_priv->virtual; in i810_map_buffer()
217 return retcode; in i810_map_buffer()
223 int retcode = 0; in i810_unmap_buffer() local
229 retcode = do_munmap(current->mm, in i810_unmap_buffer()
237 return retcode; in i810_unmap_buffer()
246 int retcode = 0; in i810_dma_get_buffer() local
250 retcode = -ENOMEM; in i810_dma_get_buffer()
251 DRM_DEBUG("retcode=%d\n", retcode); in i810_dma_get_buffer()
252 return retcode; in i810_dma_get_buffer()
[all …]
Dmemory.c400 int retcode = -EINVAL; in drm_bind_agp() local
405 return retcode; in drm_bind_agp()
408 if (!(retcode = drm_agp_bind_memory(handle, start))) { in drm_bind_agp()
414 return retcode; in drm_bind_agp()
419 return retcode; in drm_bind_agp()
426 int retcode = -EINVAL; in drm_unbind_agp() local
431 return retcode; in drm_unbind_agp()
434 if ((retcode = drm_agp_unbind_memory(handle))) return retcode; in drm_unbind_agp()
446 return retcode; in drm_unbind_agp()
Dr128_bufs.c228 int retcode = 0; in r128_mapbufs() local
258 retcode = -EINVAL; in r128_mapbufs()
276 retcode = (signed long)virtual; in r128_mapbufs()
285 retcode = -EFAULT; in r128_mapbufs()
291 retcode = -EFAULT; in r128_mapbufs()
297 retcode = -EFAULT; in r128_mapbufs()
304 retcode = -EFAULT; in r128_mapbufs()
311 DRM_DEBUG("%d buffers, retcode = %d\n", request.count, retcode); in r128_mapbufs()
318 return retcode; in r128_mapbufs()
Dradeon_bufs.c225 int retcode = 0; in radeon_mapbufs() local
253 retcode = -EINVAL; in radeon_mapbufs()
271 retcode = (signed long)virtual; in radeon_mapbufs()
280 retcode = -EFAULT; in radeon_mapbufs()
286 retcode = -EFAULT; in radeon_mapbufs()
292 retcode = -EFAULT; in radeon_mapbufs()
299 retcode = -EFAULT; in radeon_mapbufs()
306 DRM_DEBUG("%d buffers, retcode = %d\n", request.count, retcode); in radeon_mapbufs()
311 return retcode; in radeon_mapbufs()
Dmga_bufs.c530 int retcode = 0; in mga_mapbufs() local
559 retcode = -EINVAL; in mga_mapbufs()
584 retcode = (signed long)virtual; in mga_mapbufs()
593 retcode = -EFAULT; in mga_mapbufs()
599 retcode = -EFAULT; in mga_mapbufs()
605 retcode = -EFAULT; in mga_mapbufs()
612 retcode = -EFAULT; in mga_mapbufs()
619 DRM_DEBUG("%d buffers, retcode = %d\n", request.count, retcode); in mga_mapbufs()
626 DRM_DEBUG("retcode : %d\n", retcode); in mga_mapbufs()
628 return retcode; in mga_mapbufs()
Dagpsupport.c74 int retcode; in drm_agp_acquire() local
77 if ((retcode = drm_agp->acquire())) return retcode; in drm_agp_acquire()
202 int retcode; in drm_agp_bind() local
212 if ((retcode = drm_bind_agp(entry->memory, page))) return retcode; in drm_agp_bind()
/linux-2.4.37.9/drivers/char/drm/
Dgamma_dma.c141 int retcode = 0; in gamma_do_dma() local
211 retcode = -EBUSY; in gamma_do_dma()
254 return retcode; in gamma_do_dma()
272 int retcode = 0; in gamma_dma_schedule() local
303 if (!(retcode = gamma_do_dma(dev, locked))) ++processed; in gamma_dma_schedule()
319 if (!(retcode = gamma_do_dma(dev, locked))) { in gamma_dma_schedule()
341 return retcode; in gamma_dma_schedule()
349 int retcode = 0; in gamma_dma_priority() local
385 retcode = -EINVAL; in gamma_dma_priority()
391 retcode = -EINVAL; in gamma_dma_priority()
[all …]
Ddrm_drv.h439 int retcode; in DRM() local
440 retcode = mtrr_del( map->mtrr, in DRM()
443 DRM_DEBUG( "mtrr_del=%d\n", retcode ); in DRM()
551 int retcode; in drm_init() local
609 retcode = DRM(ctxbitmap_init)( dev ); in drm_init()
610 if( retcode ) { in drm_init()
614 return retcode; in drm_init()
722 int retcode = 0; in DRM() local
737 retcode = DRM(open_helper)( inode, filp, dev ); in DRM()
738 if ( !retcode ) { in DRM()
[all …]
Ddrm_memory.h418 int retcode = -EINVAL; in DRM() local
423 return retcode; in DRM()
426 if (!(retcode = DRM(agp_bind_memory)(handle, start))) { in DRM()
432 return retcode; in DRM()
437 return retcode; in DRM()
444 int retcode = -EINVAL; in DRM() local
449 return retcode; in DRM()
452 if ((retcode = DRM(agp_unbind_memory)(handle))) return retcode; in DRM()
464 return retcode; in DRM()
Di810_dma.c179 int retcode = 0; in i810_map_buffer() local
200 retcode = (signed int)buf_priv->virtual; in i810_map_buffer()
208 return retcode; in i810_map_buffer()
214 int retcode = 0; in i810_unmap_buffer() local
223 retcode = DO_MUNMAP(current->mm, in i810_unmap_buffer()
234 return retcode; in i810_unmap_buffer()
243 int retcode = 0; in i810_dma_get_buffer() local
247 retcode = -ENOMEM; in i810_dma_get_buffer()
248 DRM_DEBUG("retcode=%d\n", retcode); in i810_dma_get_buffer()
249 return retcode; in i810_dma_get_buffer()
[all …]
Di830_dma.c168 int retcode = 0; in i830_map_buffer() local
185 retcode = (signed int)buf_priv->virtual; in i830_map_buffer()
190 return retcode; in i830_map_buffer()
196 int retcode = 0; in i830_unmap_buffer() local
202 retcode = DO_MUNMAP(current->mm, in i830_unmap_buffer()
210 return retcode; in i830_unmap_buffer()
219 int retcode = 0; in i830_dma_get_buffer() local
223 retcode = -ENOMEM; in i830_dma_get_buffer()
224 DRM_DEBUG("retcode=%d\n", retcode); in i830_dma_get_buffer()
225 return retcode; in i830_dma_get_buffer()
[all …]
Ddrm_agpsupport.h74 int retcode; in DRM() local
82 if ((retcode = drm_agp->acquire())) in DRM()
83 return retcode; in DRM()
211 int retcode; in DRM() local
222 if ((retcode = DRM(bind_agp)(entry->memory, page))) return retcode; in DRM()
Ddrm_fops.h106 int retcode; in DRM() local
109 retcode = fasync_helper(fd, filp, on, &dev->buf_async); in DRM()
110 if (retcode < 0) return retcode; in DRM()
/linux-2.4.37.9/arch/sh/kernel/
Dsignal.c179 u16 retcode[8]; member
186 u16 retcode[8]; member
401 err |= __put_user(MOVW(7), &frame->retcode[0]); in setup_frame()
402 err |= __put_user(TRAP16, &frame->retcode[1]); in setup_frame()
403 err |= __put_user(OR_R0_R0, &frame->retcode[2]); in setup_frame()
404 err |= __put_user(OR_R0_R0, &frame->retcode[3]); in setup_frame()
405 err |= __put_user(OR_R0_R0, &frame->retcode[4]); in setup_frame()
406 err |= __put_user(OR_R0_R0, &frame->retcode[5]); in setup_frame()
407 err |= __put_user(OR_R0_R0, &frame->retcode[6]); in setup_frame()
408 err |= __put_user((__NR_sigreturn), &frame->retcode[7]); in setup_frame()
[all …]
/linux-2.4.37.9/arch/sparc/math-emu/
Dmath.c163 int retcode = 0; /* assume all succeed */ in do_mathemu() local
179 retcode = do_one_mathemu(insn, &fpt->thread.fsr, fpt->thread.float_regs); in do_mathemu()
180 if (retcode) { in do_mathemu()
186 return retcode; in do_mathemu()
191 retcode = do_one_mathemu(fpt->thread.fpqueue[i].insn, &(fpt->thread.fsr), fpt->thread.float_regs); in do_mathemu()
192 if (!retcode) /* insn failed, no point doing any more */ in do_mathemu()
196 if(retcode) in do_mathemu()
202 return retcode; in do_mathemu()
/linux-2.4.37.9/arch/cris/kernel/
Dsignal.c201 unsigned char retcode[8]; /* trampoline code */ member
209 unsigned char retcode[8]; /* trampoline code */ member
422 return_ip = (unsigned long)&frame->retcode; in setup_frame()
424 err |= __put_user(0x9c5f, (short *)(frame->retcode+0)); in setup_frame()
425 err |= __put_user(__NR_sigreturn, (short *)(frame->retcode+2)); in setup_frame()
426 err |= __put_user(0xe93d, (short *)(frame->retcode+4)); in setup_frame()
484 return_ip = (unsigned long)&frame->retcode; in setup_rt_frame()
486 err |= __put_user(0x9c5f, (short *)(frame->retcode+0)); in setup_rt_frame()
487 err |= __put_user(__NR_rt_sigreturn, (short *)(frame->retcode+2)); in setup_rt_frame()
488 err |= __put_user(0xe93d, (short *)(frame->retcode+4)); in setup_rt_frame()
/linux-2.4.37.9/drivers/scsi/
Dfdomain.c877 int retcode; in fdomain_16x0_detect() local
986 retcode = request_irq( interrupt_level, in fdomain_16x0_detect()
989 if (retcode < 0) { in fdomain_16x0_detect()
990 if (retcode == -EINVAL) { in fdomain_16x0_detect()
994 } else if (retcode == -EBUSY) { in fdomain_16x0_detect()
1032 retcode = fdomain_16x0_command(&SCinit); in fdomain_16x0_detect()
1033 if (!retcode) { in fdomain_16x0_detect()
1035 retcode = fdomain_16x0_command(&SCinit); in fdomain_16x0_detect()
1036 if (!retcode) { in fdomain_16x0_detect()
1041 retcode = fdomain_16x0_command(&SCinit); in fdomain_16x0_detect()
[all …]
/linux-2.4.37.9/arch/x86_64/ia32/
Dia32_signal.c154 char retcode[8]; member
166 char retcode[8]; member
428 err |= __put_user((u32)(u64)frame->retcode, &frame->pretcode); in ia32_setup_frame()
430 err |= __put_user((u16)0xb858, (short *)(frame->retcode+0)); in ia32_setup_frame()
431 err |= __put_user((u32)__NR_ia32_sigreturn, (int *)(frame->retcode+2)); in ia32_setup_frame()
432 err |= __put_user((u16)0x80cd, (short *)(frame->retcode+6)); in ia32_setup_frame()
505 err |= __put_user(ptr_to_u32(frame->retcode), &frame->pretcode); in ia32_setup_rt_frame()
507 err |= __put_user(0xb8, (char *)(frame->retcode+0)); in ia32_setup_rt_frame()
508 err |= __put_user((u32)__NR_ia32_rt_sigreturn, (int *)(frame->retcode+1)); in ia32_setup_rt_frame()
509 err |= __put_user(0x80cd, (short *)(frame->retcode+5)); in ia32_setup_rt_frame()

12