• Home
  • Raw
  • Download

Lines Matching refs:newmode

2086 	struct drm_display_mode *newmode;  in drm_dmt_modes_for_range()  local
2092 newmode = drm_mode_duplicate(dev, &drm_dmt_modes[i]); in drm_dmt_modes_for_range()
2093 if (newmode) { in drm_dmt_modes_for_range()
2094 drm_mode_probed_add(connector, newmode); in drm_dmt_modes_for_range()
2121 struct drm_display_mode *newmode; in drm_gtf_modes_for_range() local
2126 newmode = drm_gtf_mode(dev, m->w, m->h, m->r, 0, 0); in drm_gtf_modes_for_range()
2127 if (!newmode) in drm_gtf_modes_for_range()
2130 fixup_mode_1366x768(newmode); in drm_gtf_modes_for_range()
2131 if (!mode_in_range(newmode, edid, timing) || in drm_gtf_modes_for_range()
2132 !valid_inferred_mode(connector, newmode)) { in drm_gtf_modes_for_range()
2133 drm_mode_destroy(dev, newmode); in drm_gtf_modes_for_range()
2137 drm_mode_probed_add(connector, newmode); in drm_gtf_modes_for_range()
2149 struct drm_display_mode *newmode; in drm_cvt_modes_for_range() local
2155 newmode = drm_cvt_mode(dev, m->w, m->h, m->r, rb, 0, 0); in drm_cvt_modes_for_range()
2156 if (!newmode) in drm_cvt_modes_for_range()
2159 fixup_mode_1366x768(newmode); in drm_cvt_modes_for_range()
2160 if (!mode_in_range(newmode, edid, timing) || in drm_cvt_modes_for_range()
2161 !valid_inferred_mode(connector, newmode)) { in drm_cvt_modes_for_range()
2162 drm_mode_destroy(dev, newmode); in drm_cvt_modes_for_range()
2166 drm_mode_probed_add(connector, newmode); in drm_cvt_modes_for_range()
2288 struct drm_display_mode *newmode; in add_established_modes() local
2289 newmode = drm_mode_duplicate(dev, &edid_est_modes[i]); in add_established_modes()
2290 if (newmode) { in add_established_modes()
2291 drm_mode_probed_add(connector, newmode); in add_established_modes()
2316 struct drm_display_mode *newmode; in do_standard_modes() local
2319 newmode = drm_mode_std(connector, edid, std); in do_standard_modes()
2320 if (newmode) { in do_standard_modes()
2321 drm_mode_probed_add(connector, newmode); in do_standard_modes()
2346 struct drm_display_mode *newmode; in add_standard_modes() local
2348 newmode = drm_mode_std(connector, edid, in add_standard_modes()
2350 if (newmode) { in add_standard_modes()
2351 drm_mode_probed_add(connector, newmode); in add_standard_modes()
2369 struct drm_display_mode *newmode; in drm_cvt_modes() local
2400 newmode = drm_cvt_mode(dev, width, height, in drm_cvt_modes()
2403 if (newmode) { in drm_cvt_modes()
2404 drm_mode_probed_add(connector, newmode); in drm_cvt_modes()
2446 struct drm_display_mode *newmode; in do_detailed_mode() local
2449 newmode = drm_mode_detailed(closure->connector->dev, in do_detailed_mode()
2452 if (!newmode) in do_detailed_mode()
2456 newmode->type |= DRM_MODE_TYPE_PREFERRED; in do_detailed_mode()
2463 fixup_detailed_cea_mode_clock(newmode); in do_detailed_mode()
2465 drm_mode_probed_add(closure->connector, newmode); in do_detailed_mode()
2680 struct drm_display_mode *newmode; in add_alternate_cea_modes() local
2706 newmode = drm_mode_duplicate(dev, cea_mode); in add_alternate_cea_modes()
2707 if (!newmode) in add_alternate_cea_modes()
2711 newmode->flags |= mode->flags & DRM_MODE_FLAG_3D_MASK; in add_alternate_cea_modes()
2718 newmode->clock = clock1; in add_alternate_cea_modes()
2720 newmode->clock = clock2; in add_alternate_cea_modes()
2722 list_add_tail(&newmode->head, &list); in add_alternate_cea_modes()
2740 struct drm_display_mode *newmode; in drm_display_mode_from_vic_index() local
2751 newmode = drm_mode_duplicate(dev, &edid_cea_modes[cea_mode]); in drm_display_mode_from_vic_index()
2752 if (!newmode) in drm_display_mode_from_vic_index()
2755 newmode->vrefresh = 0; in drm_display_mode_from_vic_index()
2757 return newmode; in drm_display_mode_from_vic_index()
2844 struct drm_display_mode *newmode; in add_hdmi_mode() local
2852 newmode = drm_mode_duplicate(dev, &edid_4k_modes[vic]); in add_hdmi_mode()
2853 if (!newmode) in add_hdmi_mode()
2856 drm_mode_probed_add(connector, newmode); in add_hdmi_mode()
2864 struct drm_display_mode *newmode; in add_3d_struct_modes() local
2868 newmode = drm_display_mode_from_vic_index(connector, video_db, in add_3d_struct_modes()
2871 if (newmode) { in add_3d_struct_modes()
2872 newmode->flags |= DRM_MODE_FLAG_3D_FRAME_PACKING; in add_3d_struct_modes()
2873 drm_mode_probed_add(connector, newmode); in add_3d_struct_modes()
2878 newmode = drm_display_mode_from_vic_index(connector, video_db, in add_3d_struct_modes()
2881 if (newmode) { in add_3d_struct_modes()
2882 newmode->flags |= DRM_MODE_FLAG_3D_TOP_AND_BOTTOM; in add_3d_struct_modes()
2883 drm_mode_probed_add(connector, newmode); in add_3d_struct_modes()
2888 newmode = drm_display_mode_from_vic_index(connector, video_db, in add_3d_struct_modes()
2891 if (newmode) { in add_3d_struct_modes()
2892 newmode->flags |= DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF; in add_3d_struct_modes()
2893 drm_mode_probed_add(connector, newmode); in add_3d_struct_modes()
2996 struct drm_display_mode *newmode = NULL; in do_hdmi_vsdb_modes() local
3024 newmode = drm_display_mode_from_vic_index(connector, in do_hdmi_vsdb_modes()
3029 if (newmode) { in do_hdmi_vsdb_modes()
3030 newmode->flags |= newflag; in do_hdmi_vsdb_modes()
3031 drm_mode_probed_add(connector, newmode); in do_hdmi_vsdb_modes()