Lines Matching refs:newmode

3649 	struct drm_display_mode *newmode;  in drm_dmt_modes_for_range()  local
3655 newmode = drm_mode_duplicate(dev, &drm_dmt_modes[i]); in drm_dmt_modes_for_range()
3656 if (newmode) { in drm_dmt_modes_for_range()
3657 drm_mode_probed_add(connector, newmode); in drm_dmt_modes_for_range()
3684 struct drm_display_mode *newmode; in drm_gtf_modes_for_range() local
3690 newmode = drm_gtf_mode(dev, m->w, m->h, m->r, 0, 0); in drm_gtf_modes_for_range()
3691 if (!newmode) in drm_gtf_modes_for_range()
3694 drm_mode_fixup_1366x768(newmode); in drm_gtf_modes_for_range()
3695 if (!mode_in_range(newmode, drm_edid, timing) || in drm_gtf_modes_for_range()
3696 !valid_inferred_mode(connector, newmode)) { in drm_gtf_modes_for_range()
3697 drm_mode_destroy(dev, newmode); in drm_gtf_modes_for_range()
3701 drm_mode_probed_add(connector, newmode); in drm_gtf_modes_for_range()
3713 struct drm_display_mode *newmode; in drm_gtf2_modes_for_range() local
3719 newmode = drm_gtf2_mode(dev, drm_edid, m->w, m->h, m->r); in drm_gtf2_modes_for_range()
3720 if (!newmode) in drm_gtf2_modes_for_range()
3723 drm_mode_fixup_1366x768(newmode); in drm_gtf2_modes_for_range()
3724 if (!mode_in_range(newmode, drm_edid, timing) || in drm_gtf2_modes_for_range()
3725 !valid_inferred_mode(connector, newmode)) { in drm_gtf2_modes_for_range()
3726 drm_mode_destroy(dev, newmode); in drm_gtf2_modes_for_range()
3730 drm_mode_probed_add(connector, newmode); in drm_gtf2_modes_for_range()
3742 struct drm_display_mode *newmode; in drm_cvt_modes_for_range() local
3749 newmode = drm_cvt_mode(dev, m->w, m->h, m->r, rb, 0, 0); in drm_cvt_modes_for_range()
3750 if (!newmode) in drm_cvt_modes_for_range()
3753 drm_mode_fixup_1366x768(newmode); in drm_cvt_modes_for_range()
3754 if (!mode_in_range(newmode, drm_edid, timing) || in drm_cvt_modes_for_range()
3755 !valid_inferred_mode(connector, newmode)) { in drm_cvt_modes_for_range()
3756 drm_mode_destroy(dev, newmode); in drm_cvt_modes_for_range()
3760 drm_mode_probed_add(connector, newmode); in drm_cvt_modes_for_range()
3884 struct drm_display_mode *newmode; in add_established_modes() local
3886 newmode = drm_mode_duplicate(dev, &edid_est_modes[i]); in add_established_modes()
3887 if (newmode) { in add_established_modes()
3888 drm_mode_probed_add(connector, newmode); in add_established_modes()
3914 struct drm_display_mode *newmode; in do_standard_modes() local
3916 newmode = drm_mode_std(connector, closure->drm_edid, std); in do_standard_modes()
3917 if (newmode) { in do_standard_modes()
3918 drm_mode_probed_add(connector, newmode); in do_standard_modes()
3939 struct drm_display_mode *newmode; in add_standard_modes() local
3941 newmode = drm_mode_std(connector, drm_edid, in add_standard_modes()
3943 if (newmode) { in add_standard_modes()
3944 drm_mode_probed_add(connector, newmode); in add_standard_modes()
3962 struct drm_display_mode *newmode; in drm_cvt_modes() local
3996 newmode = drm_cvt_mode(dev, width, height, in drm_cvt_modes()
3999 if (newmode) { in drm_cvt_modes()
4000 drm_mode_probed_add(connector, newmode); in drm_cvt_modes()
4044 struct drm_display_mode *newmode; in do_detailed_mode() local
4049 newmode = drm_mode_detailed(closure->connector, in do_detailed_mode()
4051 if (!newmode) in do_detailed_mode()
4055 newmode->type |= DRM_MODE_TYPE_PREFERRED; in do_detailed_mode()
4062 fixup_detailed_cea_mode_clock(closure->connector, newmode); in do_detailed_mode()
4064 drm_mode_probed_add(closure->connector, newmode); in do_detailed_mode()
4449 struct drm_display_mode *newmode; in add_alternate_cea_modes() local
4475 newmode = drm_mode_duplicate(dev, cea_mode); in add_alternate_cea_modes()
4476 if (!newmode) in add_alternate_cea_modes()
4480 newmode->flags |= mode->flags & DRM_MODE_FLAG_3D_MASK; in add_alternate_cea_modes()
4487 newmode->clock = clock1; in add_alternate_cea_modes()
4489 newmode->clock = clock2; in add_alternate_cea_modes()
4491 list_add_tail(&newmode->head, &list); in add_alternate_cea_modes()
4546 struct drm_display_mode *newmode; in do_y420vdb_modes() local
4551 newmode = drm_mode_duplicate(dev, cea_mode_for_vic(vic)); in do_y420vdb_modes()
4552 if (!newmode) in do_y420vdb_modes()
4554 drm_mode_probed_add(connector, newmode); in do_y420vdb_modes()
4575 struct drm_display_mode *newmode; in drm_display_mode_from_cea_vic() local
4581 newmode = drm_mode_duplicate(dev, cea_mode); in drm_display_mode_from_cea_vic()
4582 if (!newmode) in drm_display_mode_from_cea_vic()
4585 return newmode; in drm_display_mode_from_cea_vic()
4678 struct drm_display_mode *newmode; in add_hdmi_mode() local
4686 newmode = drm_mode_duplicate(dev, &edid_4k_modes[vic]); in add_hdmi_mode()
4687 if (!newmode) in add_hdmi_mode()
4690 drm_mode_probed_add(connector, newmode); in add_hdmi_mode()
4698 struct drm_display_mode *newmode; in add_3d_struct_modes() local
4702 newmode = drm_display_mode_from_vic_index(connector, vic_index); in add_3d_struct_modes()
4703 if (newmode) { in add_3d_struct_modes()
4704 newmode->flags |= DRM_MODE_FLAG_3D_FRAME_PACKING; in add_3d_struct_modes()
4705 drm_mode_probed_add(connector, newmode); in add_3d_struct_modes()
4710 newmode = drm_display_mode_from_vic_index(connector, vic_index); in add_3d_struct_modes()
4711 if (newmode) { in add_3d_struct_modes()
4712 newmode->flags |= DRM_MODE_FLAG_3D_TOP_AND_BOTTOM; in add_3d_struct_modes()
4713 drm_mode_probed_add(connector, newmode); in add_3d_struct_modes()
4718 newmode = drm_display_mode_from_vic_index(connector, vic_index); in add_3d_struct_modes()
4719 if (newmode) { in add_3d_struct_modes()
4720 newmode->flags |= DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF; in add_3d_struct_modes()
4721 drm_mode_probed_add(connector, newmode); in add_3d_struct_modes()
4835 struct drm_display_mode *newmode = NULL; in do_hdmi_vsdb_modes() local
4863 newmode = drm_display_mode_from_vic_index(connector, in do_hdmi_vsdb_modes()
4866 if (newmode) { in do_hdmi_vsdb_modes()
4867 newmode->flags |= newflag; in do_hdmi_vsdb_modes()
4868 drm_mode_probed_add(connector, newmode); in do_hdmi_vsdb_modes()
6677 struct drm_display_mode *newmode; in add_displayid_detailed_1_modes() local
6688 newmode = drm_mode_displayid_detailed(connector->dev, timings, type_7); in add_displayid_detailed_1_modes()
6689 if (!newmode) in add_displayid_detailed_1_modes()
6692 drm_mode_probed_add(connector, newmode); in add_displayid_detailed_1_modes()