Lines Matching refs:current_mode
477 src_aspect = output->base.current_mode->aspect_ratio; in drm_output_choose_mode()
478 if (output->base.current_mode->width == target_mode->width && in drm_output_choose_mode()
479 output->base.current_mode->height == target_mode->height && in drm_output_choose_mode()
480 (output->base.current_mode->refresh == target_mode->refresh || in drm_output_choose_mode()
483 return to_drm_mode(output->base.current_mode); in drm_output_choose_mode()
554 const drmModeModeInfo *current_mode) in drm_output_choose_initial_mode() argument
612 if (memcmp(current_mode, &drm_mode->mode_info, in drm_output_choose_initial_mode()
613 sizeof *current_mode) == 0) in drm_output_choose_initial_mode()
622 if (current == NULL && current_mode->clock != 0) { in drm_output_choose_initial_mode()
623 current = drm_output_add_mode(output, current_mode); in drm_output_choose_initial_mode()
804 output->base.current_mode = ¤t->base; in drm_output_set_mode()
805 output->base.current_mode->flags |= WL_OUTPUT_MODE_CURRENT; in drm_output_set_mode()
808 output->base.native_mode = output->base.current_mode; in drm_output_set_mode()