Lines Matching full:modes

997 	list_for_each_entry(mode, &fb_connector->connector->modes, head) {  in drm_has_preferred_mode()
1024 /* attempt to find a matching mode in the list of modes in drm_pick_cmdline_mode()
1030 list_for_each_entry(mode, &fb_helper_conn->connector->modes, head) { in drm_pick_cmdline_mode()
1051 list_add(&mode->head, &fb_helper_conn->connector->modes); in drm_pick_cmdline_mode()
1092 struct drm_display_mode **modes, in drm_target_cloned() argument
1120 modes[i] = drm_pick_cmdline_mode(fb_helper_conn, width, height); in drm_target_cloned()
1121 if (!modes[i]) { in drm_target_cloned()
1128 if (!drm_mode_equal(modes[j], modes[i])) in drm_target_cloned()
1148 list_for_each_entry(mode, &fb_helper_conn->connector->modes, head) { in drm_target_cloned()
1150 modes[i] = mode; in drm_target_cloned()
1152 if (!modes[i]) in drm_target_cloned()
1165 struct drm_display_mode **modes, in drm_target_preferred() argument
1181 modes[i] = drm_pick_cmdline_mode(fb_helper_conn, width, height); in drm_target_preferred()
1182 if (!modes[i]) { in drm_target_preferred()
1185 modes[i] = drm_has_preferred_mode(fb_helper_conn, width, height); in drm_target_preferred()
1187 /* No preferred modes, pick one off the list */ in drm_target_preferred()
1188 if (!modes[i] && !list_empty(&fb_helper_conn->connector->modes)) { in drm_target_preferred()
1189 list_for_each_entry(modes[i], &fb_helper_conn->connector->modes, head) in drm_target_preferred()
1192 DRM_DEBUG_KMS("found mode %s\n", modes[i] ? modes[i]->name : in drm_target_preferred()
1200 struct drm_display_mode **modes, in drm_pick_crtcs() argument
1221 best_score = drm_pick_crtcs(fb_helper, best_crtcs, modes, n+1, width, height); in drm_pick_crtcs()
1222 if (modes[n] == NULL) in drm_pick_crtcs()
1261 if (!drm_mode_equal(modes[o], modes[n])) in drm_pick_crtcs()
1267 score = my_score + drm_pick_crtcs(fb_helper, crtcs, modes, n + 1, in drm_pick_crtcs()
1286 struct drm_display_mode **modes; in drm_setup_crtcs() local
1305 modes = kcalloc(dev->mode_config.num_connector, in drm_setup_crtcs()
1312 ret = drm_target_cloned(fb_helper, modes, enabled, width, height); in drm_setup_crtcs()
1314 ret = drm_target_preferred(fb_helper, modes, enabled, width, height); in drm_setup_crtcs()
1316 DRM_ERROR("Unable to find initial modes\n"); in drm_setup_crtcs()
1321 drm_pick_crtcs(fb_helper, crtcs, modes, 0, width, height); in drm_setup_crtcs()
1331 struct drm_display_mode *mode = modes[i]; in drm_setup_crtcs()
1348 kfree(modes); in drm_setup_crtcs()
1380 * we shouldn't end up with no modes here. in drm_fb_helper_initial_config()
1383 printk(KERN_INFO "No connectors reported connected with modes\n"); in drm_fb_helper_initial_config()