Lines Matching defs:modes

447 	list_for_each_entry(mode, struct drm_display_mode, &fb_connector->connector->modes, head) {
475 /* attempt to find a matching mode in the list of modes
481 list_for_each_entry(mode, struct drm_display_mode, &fb_helper_conn->connector->modes, head) {
503 list_add(&mode->head, &fb_helper_conn->connector->modes,
545 struct drm_display_mode **modes,
573 modes[i] = drm_pick_cmdline_mode(fb_helper_conn, width, height);
574 if (!modes[i]) {
581 if (!drm_mode_equal(modes[j], modes[i]))
601 list_for_each_entry(mode, struct drm_display_mode, &fb_helper_conn->connector->modes, head) {
603 modes[i] = mode;
605 if (!modes[i])
618 struct drm_display_mode **modes,
634 modes[i] = drm_pick_cmdline_mode(fb_helper_conn, width, height);
635 if (!modes[i]) {
638 modes[i] = drm_has_preferred_mode(fb_helper_conn, width, height);
640 /* No preferred modes, pick one off the list */
641 if (!modes[i] && !list_empty(&fb_helper_conn->connector->modes)) {
642 list_for_each_entry(modes[i], struct drm_display_mode, &fb_helper_conn->connector->modes, head)
646 DRM_DEBUG_KMS("found mode %s\n", modes[i] ? modes[i]->name :
654 struct drm_display_mode **modes,
676 best_score = drm_pick_crtcs(fb_helper, best_crtcs, modes, n+1, width, height);
677 if (modes[n] == NULL)
715 if (!drm_mode_equal(modes[o], modes[n]))
721 score = my_score + drm_pick_crtcs(fb_helper, crtcs, modes, n + 1,
739 struct drm_display_mode **modes;
755 if ((modes = kcalloc(num_connector,
757 DRM_ERROR("Memory allocation failed for modes\n");
770 fb_helper->funcs->initial_config(fb_helper, crtcs, modes,
772 (void) memset(modes, 0, dev->mode_config.num_connector*sizeof(modes[0]));
776 modes, enabled, width, height) &&
778 modes, enabled, width, height))
779 DRM_ERROR("Unable to find initial modes\n");
784 (void) drm_pick_crtcs(fb_helper, crtcs, modes, 0, width, height);
796 struct drm_display_mode *mode = modes[i];
813 /* Clear out any old modes if there are no more connected outputs. */
827 kfree(modes, num_connector * sizeof(struct drm_display_mode *));
864 * we shouldn't end up with no modes here.
867 DRM_INFO("No connectors reported connected with modes");