Lines Matching refs:ret
122 int ret = 0;
128 ret = crtc->funcs->late_register(crtc);
129 if (ret)
130 return ret;
260 int ret;
280 ret = drm_mode_object_add(dev, &crtc->base, DRM_MODE_OBJECT_CRTC);
281 if (ret)
282 return ret;
316 ret = drm_crtc_crc_init(crtc);
317 if (ret) {
319 return ret;
451 int ret;
468 ret = crtc->funcs->set_config(set, ctx);
469 if (ret == 0) {
486 return ret;
565 int ret, i, num_connectors = 0;
591 DRM_MODESET_ACQUIRE_INTERRUPTIBLE, ret);
606 ret = -EINVAL;
618 ret = -ENOENT;
625 ret = -ENOMEM;
631 ret = -EINVAL;
636 ret = drm_mode_convert_umode(dev, mode, &crtc_req->mode);
637 if (ret) {
638 DRM_DEBUG_KMS("Invalid mode (ret=%d, status=%s)\n",
639 ret, drm_get_mode_status_name(mode->status));
652 ret = drm_plane_check_pixel_format(plane,
655 if (ret) {
666 ret = drm_crtc_check_viewport(crtc, crtc_req->x, crtc_req->y,
668 if (ret)
675 ret = -EINVAL;
682 ret = -EINVAL;
691 ret = -EINVAL;
699 ret = -ENOMEM;
707 ret = -EFAULT;
715 ret = -ENOENT;
736 ret = crtc->funcs->set_config(&set, &ctx);
738 ret = __drm_mode_set_config_internal(&set, &ctx);
758 DRM_MODESET_LOCK_ALL_END(dev, ctx, ret);
760 return ret;
767 int ret = -EINVAL;
771 ret = crtc->funcs->set_property(crtc, property, value);
772 if (!ret)
775 return ret;