• Home
  • Raw
  • Download

Lines Matching refs:mode

71 drm_mode_validate_flag(const struct drm_display_mode *mode,  in drm_mode_validate_flag()  argument
74 if ((mode->flags & DRM_MODE_FLAG_INTERLACE) && in drm_mode_validate_flag()
78 if ((mode->flags & DRM_MODE_FLAG_DBLSCAN) && in drm_mode_validate_flag()
82 if ((mode->flags & DRM_MODE_FLAG_3D_MASK) && in drm_mode_validate_flag()
90 drm_mode_validate_pipeline(struct drm_display_mode *mode, in drm_mode_validate_pipeline() argument
100 ret = drm_connector_mode_valid(connector, mode, ctx, status); in drm_mode_validate_pipeline()
109 *status = drm_encoder_mode_valid(encoder, mode); in drm_mode_validate_pipeline()
121 mode); in drm_mode_validate_pipeline()
132 *status = drm_crtc_mode_valid(crtc, mode); in drm_mode_validate_pipeline()
148 struct drm_display_mode *mode; in drm_helper_probe_add_cmdline_mode() local
155 list_for_each_entry(mode, &connector->probed_modes, head) { in drm_helper_probe_add_cmdline_mode()
156 if (mode->hdisplay != cmdline_mode->xres || in drm_helper_probe_add_cmdline_mode()
157 mode->vdisplay != cmdline_mode->yres) in drm_helper_probe_add_cmdline_mode()
162 if (drm_mode_vrefresh(mode) != cmdline_mode->refresh) in drm_helper_probe_add_cmdline_mode()
167 mode->type |= DRM_MODE_TYPE_USERDEF; in drm_helper_probe_add_cmdline_mode()
171 mode = drm_mode_create_from_cmdline_mode(connector->dev, in drm_helper_probe_add_cmdline_mode()
173 if (mode == NULL) in drm_helper_probe_add_cmdline_mode()
176 drm_mode_probed_add(connector, mode); in drm_helper_probe_add_cmdline_mode()
181 const struct drm_display_mode *mode) in drm_crtc_mode_valid() argument
188 return crtc_funcs->mode_valid(crtc, mode); in drm_crtc_mode_valid()
192 const struct drm_display_mode *mode) in drm_encoder_mode_valid() argument
200 return encoder_funcs->mode_valid(encoder, mode); in drm_encoder_mode_valid()
205 struct drm_display_mode *mode, in drm_connector_mode_valid() argument
216 ret = connector_funcs->mode_valid_ctx(connector, mode, ctx, in drm_connector_mode_valid()
219 *status = connector_funcs->mode_valid(connector, mode); in drm_connector_mode_valid()
380 struct drm_display_mode *mode; in __drm_helper_update_and_validate() local
393 list_for_each_entry(mode, &connector->modes, head) { in __drm_helper_update_and_validate()
394 if (mode->status != MODE_OK) in __drm_helper_update_and_validate()
397 mode->status = drm_mode_validate_driver(dev, mode); in __drm_helper_update_and_validate()
398 if (mode->status != MODE_OK) in __drm_helper_update_and_validate()
401 mode->status = drm_mode_validate_size(mode, maxX, maxY); in __drm_helper_update_and_validate()
402 if (mode->status != MODE_OK) in __drm_helper_update_and_validate()
405 mode->status = drm_mode_validate_flag(mode, mode_flags); in __drm_helper_update_and_validate()
406 if (mode->status != MODE_OK) in __drm_helper_update_and_validate()
409 ret = drm_mode_validate_pipeline(mode, connector, ctx, in __drm_helper_update_and_validate()
410 &mode->status); in __drm_helper_update_and_validate()
417 mode->status = MODE_ERROR; in __drm_helper_update_and_validate()
422 if (mode->status != MODE_OK) in __drm_helper_update_and_validate()
424 mode->status = drm_mode_validate_ycbcr420(mode, connector); in __drm_helper_update_and_validate()
493 struct drm_display_mode *mode; in drm_helper_probe_single_connector_modes() local
514 list_for_each_entry(mode, &connector->modes, head) in drm_helper_probe_single_connector_modes()
515 mode->status = MODE_STALE; in drm_helper_probe_single_connector_modes()
633 list_for_each_entry(mode, &connector->modes, head) { in drm_helper_probe_single_connector_modes()
634 drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V); in drm_helper_probe_single_connector_modes()
635 drm_mode_debug_printmodeline(mode); in drm_helper_probe_single_connector_modes()
1028 const struct drm_display_mode *mode, in drm_crtc_helper_mode_valid_fixed() argument
1031 if (mode->hdisplay != fixed_mode->hdisplay && mode->vdisplay != fixed_mode->vdisplay) in drm_crtc_helper_mode_valid_fixed()
1033 else if (mode->hdisplay != fixed_mode->hdisplay) in drm_crtc_helper_mode_valid_fixed()
1035 else if (mode->vdisplay != fixed_mode->vdisplay) in drm_crtc_helper_mode_valid_fixed()
1094 struct drm_display_mode *mode; in drm_connector_helper_get_modes_fixed() local
1096 mode = drm_mode_duplicate(dev, fixed_mode); in drm_connector_helper_get_modes_fixed()
1097 if (!mode) { in drm_connector_helper_get_modes_fixed()
1103 if (mode->name[0] == '\0') in drm_connector_helper_get_modes_fixed()
1104 drm_mode_set_name(mode); in drm_connector_helper_get_modes_fixed()
1106 mode->type |= DRM_MODE_TYPE_PREFERRED; in drm_connector_helper_get_modes_fixed()
1107 drm_mode_probed_add(connector, mode); in drm_connector_helper_get_modes_fixed()
1109 if (mode->width_mm) in drm_connector_helper_get_modes_fixed()
1110 connector->display_info.width_mm = mode->width_mm; in drm_connector_helper_get_modes_fixed()
1111 if (mode->height_mm) in drm_connector_helper_get_modes_fixed()
1112 connector->display_info.height_mm = mode->height_mm; in drm_connector_helper_get_modes_fixed()