Lines Matching defs:ret
54 int ret;
83 ret = idr_get_new_above(&drm_minors_idr, NULL,
87 if (ret) {
88 return ret;
179 int ret = 0;
199 ret = dev->driver->master_set(dev, file, false);
200 if (unlikely(ret != 0)) {
311 int ret;
322 ret = -ENOMEM;
346 ret = drm_sysfs_device_add(new_minor);
347 if (ret)
361 return ret;
376 int ret;
380 if ((ret = drm_fill_in_dev(dev, pdev, driver))) {
385 if ((ret = drm_get_minor(dev, &dev->vgatext, DRM_MINOR_VGATEXT))) {
393 if ((ret = drm_get_minor(dev, &dev->agpmaster, DRM_MINOR_AGPMASTER)))
398 ret = drm_get_minor(dev, &dev->control, DRM_MINOR_CONTROL);
399 if (ret)
403 if ((ret = drm_get_minor(dev, &dev->primary, DRM_MINOR_LEGACY)))
407 ret = dev->driver->load(dev, driver_data);
408 if (ret)
414 ret = EFAULT;
435 return ret;