Lines Matching refs:retcode
363 int retcode; in drm_ioctl() local
367 retcode = devfs_get_cdevpriv((void **)&file_priv); in drm_ioctl()
368 if (retcode != 0) { in drm_ioctl()
373 retcode = -EINVAL; in drm_ioctl()
457 retcode = -EINVAL; in drm_ioctl()
462 retcode = -EACCES; in drm_ioctl()
465 retcode = func(dev, data, file_priv); in drm_ioctl()
468 retcode = func(dev, data, file_priv); in drm_ioctl()
475 if (retcode == -ERESTARTSYS) { in drm_ioctl()
480 DRM_DEBUG("ret = %d -> %d\n", retcode, -EINTR); in drm_ioctl()
481 retcode = -EINTR; in drm_ioctl()
483 if (retcode) in drm_ioctl()
484 DRM_DEBUG("ret = %d\n", retcode); in drm_ioctl()
485 if (retcode != 0 && in drm_ioctl()
490 file_priv->authenticated, -retcode); in drm_ioctl()
493 return -retcode; in drm_ioctl()