Lines Matching refs:drm_mode
101 drm_mode_ensure_blob(struct drm_backend *backend, struct drm_mode *mode) in drm_mode_ensure_blob()
379 static struct drm_mode *
382 struct drm_mode *mode; in drm_output_add_mode()
410 drm_output_destroy_mode(struct drm_backend *backend, struct drm_mode *mode) in drm_output_destroy_mode()
426 struct drm_mode *mode, *next; in drm_mode_list_destroy()
436 struct drm_mode *dm; in drm_output_print_modes()
466 struct drm_mode *
470 struct drm_mode *tmp_mode = NULL, *mode_fall_back = NULL, *mode; in drm_output_choose_mode()
549 static struct drm_mode *
556 struct drm_mode *preferred = NULL; in drm_output_choose_initial_mode()
557 struct drm_mode *current = NULL; in drm_output_choose_initial_mode()
558 struct drm_mode *configured = NULL; in drm_output_choose_initial_mode()
559 struct drm_mode *config_fall_back = NULL; in drm_output_choose_initial_mode()
560 struct drm_mode *best = NULL; in drm_output_choose_initial_mode()
561 struct drm_mode *drm_mode; in drm_output_choose_initial_mode() local
601 wl_list_for_each_reverse(drm_mode, &output->base.mode_list, base.link) { in drm_output_choose_initial_mode()
602 if (width == drm_mode->base.width && in drm_output_choose_initial_mode()
603 height == drm_mode->base.height && in drm_output_choose_initial_mode()
604 (refresh == 0 || refresh == drm_mode->mode_info.vrefresh)) { in drm_output_choose_initial_mode()
606 aspect_ratio == drm_mode->base.aspect_ratio) in drm_output_choose_initial_mode()
607 configured = drm_mode; in drm_output_choose_initial_mode()
609 config_fall_back = drm_mode; in drm_output_choose_initial_mode()
612 if (memcmp(current_mode, &drm_mode->mode_info, in drm_output_choose_initial_mode()
614 current = drm_mode; in drm_output_choose_initial_mode()
616 if (drm_mode->base.flags & WL_OUTPUT_MODE_PREFERRED) in drm_output_choose_initial_mode()
617 preferred = drm_mode; in drm_output_choose_initial_mode()
619 best = drm_mode; in drm_output_choose_initial_mode()
716 struct drm_mode *mode = NULL; in drm_output_try_add_mode()
791 struct drm_mode *current; in drm_output_set_mode()