Lines Matching +defs:error +defs:value
217 * get -EINVAL, hence this is the return value we need to hand back for
272 req->value = 0;
277 req->value = 1;
280 req->value |= dev->driver->prime_fd_to_handle ? DRM_PRIME_CAP_IMPORT : 0;
281 req->value |= dev->driver->prime_handle_to_fd ? DRM_PRIME_CAP_EXPORT : 0;
284 req->value = drm_core_check_feature(dev, DRIVER_SYNCOBJ);
287 req->value = drm_core_check_feature(dev, DRIVER_SYNCOBJ_TIMELINE);
298 req->value = 1;
301 req->value = 1;
304 req->value = dev->mode_config.preferred_depth;
307 req->value = dev->mode_config.prefer_shadow;
310 req->value = dev->mode_config.async_page_flip;
313 req->value = 1;
316 req->value = 0;
321 req->value = dev->mode_config.cursor_width;
323 req->value = 64;
327 req->value = dev->mode_config.cursor_height;
329 req->value = 64;
332 req->value = dev->mode_config.allow_fb_modifiers;
335 req->value = 1;
359 if (req->value > 1)
361 file_priv->stereo_allowed = req->value;
364 if (req->value > 1)
366 file_priv->universal_planes = req->value;
373 if (current->p_comm[0] == 'X' && req->value == 1)
375 if (current->comm[0] == 'X' && req->value == 1)
381 if (req->value > 2)
383 file_priv->atomic = req->value;
384 file_priv->universal_planes = req->value;
388 file_priv->aspect_ratio_allowed = req->value;
391 if (req->value > 1)
393 file_priv->aspect_ratio_allowed = req->value;
398 if (req->value > 1)
400 file_priv->writeback_connectors = req->value;
498 * Always fails with a return value of -EINVAL.
510 static int drm_copy_field(char __user *buf, size_t *buf_len, const char *value)
515 len = strlen(value);
519 /* let userspace know exact length of driver value (which could be
521 *buf_len = strlen(value);
525 if (copy_to_user(buf, value, len))
769 KASSERTMSG(ret == 0, "error=%d", -ret);
905 * Zero on success, negative error code on failure.
917 int error;
957 error = -drm_ioctl_permit(ioctl->flags, file);
958 if (error)
959 return error;
980 error = -(*ioctl->func)(dev, data0, file);
984 error = -(*ioctl->func)(dev, data0, file);
997 return error;