Lines Matching refs:retcode
282 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()
489 return retcode; in mga_open()
496 int retcode = 0; in mga_release() local
529 retcode = -EINTR; in mga_release()
543 retcode = -ERESTARTSYS; in mga_release()
549 if(!retcode) { in mga_release()
595 return retcode; in mga_release()
607 int retcode = 0; in mga_ioctl() local
616 retcode = -EINVAL; in mga_ioctl()
626 retcode = -EINVAL; in mga_ioctl()
629 retcode = -EACCES; in mga_ioctl()
631 retcode = (func)(inode, filp, cmd, arg); in mga_ioctl()
636 return retcode; in mga_ioctl()