Lines Matching refs:newmode
3685 struct drm_display_mode *newmode; in drm_dmt_modes_for_range() local
3691 newmode = drm_mode_duplicate(dev, &drm_dmt_modes[i]); in drm_dmt_modes_for_range()
3692 if (newmode) { in drm_dmt_modes_for_range()
3693 drm_mode_probed_add(connector, newmode); in drm_dmt_modes_for_range()
3720 struct drm_display_mode *newmode; in drm_gtf_modes_for_range() local
3726 newmode = drm_gtf_mode(dev, m->w, m->h, m->r, 0, 0); in drm_gtf_modes_for_range()
3727 if (!newmode) in drm_gtf_modes_for_range()
3730 drm_mode_fixup_1366x768(newmode); in drm_gtf_modes_for_range()
3731 if (!mode_in_range(newmode, drm_edid, timing) || in drm_gtf_modes_for_range()
3732 !valid_inferred_mode(connector, newmode)) { in drm_gtf_modes_for_range()
3733 drm_mode_destroy(dev, newmode); in drm_gtf_modes_for_range()
3737 drm_mode_probed_add(connector, newmode); in drm_gtf_modes_for_range()
3749 struct drm_display_mode *newmode; in drm_gtf2_modes_for_range() local
3755 newmode = drm_gtf2_mode(dev, drm_edid, m->w, m->h, m->r); in drm_gtf2_modes_for_range()
3756 if (!newmode) in drm_gtf2_modes_for_range()
3759 drm_mode_fixup_1366x768(newmode); in drm_gtf2_modes_for_range()
3760 if (!mode_in_range(newmode, drm_edid, timing) || in drm_gtf2_modes_for_range()
3761 !valid_inferred_mode(connector, newmode)) { in drm_gtf2_modes_for_range()
3762 drm_mode_destroy(dev, newmode); in drm_gtf2_modes_for_range()
3766 drm_mode_probed_add(connector, newmode); in drm_gtf2_modes_for_range()
3778 struct drm_display_mode *newmode; in drm_cvt_modes_for_range() local
3785 newmode = drm_cvt_mode(dev, m->w, m->h, m->r, rb, 0, 0); in drm_cvt_modes_for_range()
3786 if (!newmode) in drm_cvt_modes_for_range()
3789 drm_mode_fixup_1366x768(newmode); in drm_cvt_modes_for_range()
3790 if (!mode_in_range(newmode, drm_edid, timing) || in drm_cvt_modes_for_range()
3791 !valid_inferred_mode(connector, newmode)) { in drm_cvt_modes_for_range()
3792 drm_mode_destroy(dev, newmode); in drm_cvt_modes_for_range()
3796 drm_mode_probed_add(connector, newmode); in drm_cvt_modes_for_range()
3920 struct drm_display_mode *newmode; in add_established_modes() local
3922 newmode = drm_mode_duplicate(dev, &edid_est_modes[i]); in add_established_modes()
3923 if (newmode) { in add_established_modes()
3924 drm_mode_probed_add(connector, newmode); in add_established_modes()
3950 struct drm_display_mode *newmode; in do_standard_modes() local
3952 newmode = drm_mode_std(connector, closure->drm_edid, std); in do_standard_modes()
3953 if (newmode) { in do_standard_modes()
3954 drm_mode_probed_add(connector, newmode); in do_standard_modes()
3975 struct drm_display_mode *newmode; in add_standard_modes() local
3977 newmode = drm_mode_std(connector, drm_edid, in add_standard_modes()
3979 if (newmode) { in add_standard_modes()
3980 drm_mode_probed_add(connector, newmode); in add_standard_modes()
3998 struct drm_display_mode *newmode; in drm_cvt_modes() local
4032 newmode = drm_cvt_mode(dev, width, height, in drm_cvt_modes()
4035 if (newmode) { in drm_cvt_modes()
4036 drm_mode_probed_add(connector, newmode); in drm_cvt_modes()
4080 struct drm_display_mode *newmode; in do_detailed_mode() local
4085 newmode = drm_mode_detailed(closure->connector, in do_detailed_mode()
4087 if (!newmode) in do_detailed_mode()
4091 newmode->type |= DRM_MODE_TYPE_PREFERRED; in do_detailed_mode()
4098 fixup_detailed_cea_mode_clock(closure->connector, newmode); in do_detailed_mode()
4100 drm_mode_probed_add(closure->connector, newmode); in do_detailed_mode()
4495 struct drm_display_mode *newmode; in add_alternate_cea_modes() local
4521 newmode = drm_mode_duplicate(dev, cea_mode); in add_alternate_cea_modes()
4522 if (!newmode) in add_alternate_cea_modes()
4526 newmode->flags |= mode->flags & DRM_MODE_FLAG_3D_MASK; in add_alternate_cea_modes()
4533 newmode->clock = clock1; in add_alternate_cea_modes()
4535 newmode->clock = clock2; in add_alternate_cea_modes()
4537 list_add_tail(&newmode->head, &list); in add_alternate_cea_modes()
4592 struct drm_display_mode *newmode; in do_y420vdb_modes() local
4597 newmode = drm_mode_duplicate(dev, cea_mode_for_vic(vic)); in do_y420vdb_modes()
4598 if (!newmode) in do_y420vdb_modes()
4600 drm_mode_probed_add(connector, newmode); in do_y420vdb_modes()
4621 struct drm_display_mode *newmode; in drm_display_mode_from_cea_vic() local
4627 newmode = drm_mode_duplicate(dev, cea_mode); in drm_display_mode_from_cea_vic()
4628 if (!newmode) in drm_display_mode_from_cea_vic()
4631 return newmode; in drm_display_mode_from_cea_vic()
4724 struct drm_display_mode *newmode; in add_hdmi_mode() local
4732 newmode = drm_mode_duplicate(dev, &edid_4k_modes[vic]); in add_hdmi_mode()
4733 if (!newmode) in add_hdmi_mode()
4736 drm_mode_probed_add(connector, newmode); in add_hdmi_mode()
4744 struct drm_display_mode *newmode; in add_3d_struct_modes() local
4748 newmode = drm_display_mode_from_vic_index(connector, vic_index); in add_3d_struct_modes()
4749 if (newmode) { in add_3d_struct_modes()
4750 newmode->flags |= DRM_MODE_FLAG_3D_FRAME_PACKING; in add_3d_struct_modes()
4751 drm_mode_probed_add(connector, newmode); in add_3d_struct_modes()
4756 newmode = drm_display_mode_from_vic_index(connector, vic_index); in add_3d_struct_modes()
4757 if (newmode) { in add_3d_struct_modes()
4758 newmode->flags |= DRM_MODE_FLAG_3D_TOP_AND_BOTTOM; in add_3d_struct_modes()
4759 drm_mode_probed_add(connector, newmode); in add_3d_struct_modes()
4764 newmode = drm_display_mode_from_vic_index(connector, vic_index); in add_3d_struct_modes()
4765 if (newmode) { in add_3d_struct_modes()
4766 newmode->flags |= DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF; in add_3d_struct_modes()
4767 drm_mode_probed_add(connector, newmode); in add_3d_struct_modes()
4881 struct drm_display_mode *newmode = NULL; in do_hdmi_vsdb_modes() local
4909 newmode = drm_display_mode_from_vic_index(connector, in do_hdmi_vsdb_modes()
4912 if (newmode) { in do_hdmi_vsdb_modes()
4913 newmode->flags |= newflag; in do_hdmi_vsdb_modes()
4914 drm_mode_probed_add(connector, newmode); in do_hdmi_vsdb_modes()
6809 struct drm_display_mode *newmode; in add_displayid_detailed_1_modes() local
6820 newmode = drm_mode_displayid_detailed(connector->dev, timings, type_7); in add_displayid_detailed_1_modes()
6821 if (!newmode) in add_displayid_detailed_1_modes()
6824 drm_mode_probed_add(connector, newmode); in add_displayid_detailed_1_modes()