Lines Matching +full:pre +full:- +full:filled
35 * This helper library contains various one-off functions which don't really fit
40 * drm_helper_move_panel_connectors_to_head() - move panels to the front in the
57 spin_lock_irq(&dev->mode_config.connector_list_lock); in drm_helper_move_panel_connectors_to_head()
59 &dev->mode_config.connector_list, head) { in drm_helper_move_panel_connectors_to_head()
60 if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS || in drm_helper_move_panel_connectors_to_head()
61 connector->connector_type == DRM_MODE_CONNECTOR_eDP || in drm_helper_move_panel_connectors_to_head()
62 connector->connector_type == DRM_MODE_CONNECTOR_DSI) in drm_helper_move_panel_connectors_to_head()
63 list_move_tail(&connector->head, &panel_list); in drm_helper_move_panel_connectors_to_head()
66 list_splice(&panel_list, &dev->mode_config.connector_list); in drm_helper_move_panel_connectors_to_head()
67 spin_unlock_irq(&dev->mode_config.connector_list_lock); in drm_helper_move_panel_connectors_to_head()
72 * drm_helper_mode_fill_fb_struct - fill out framebuffer metadata
77 * This helper can be used in a drivers fb_create callback to pre-fill the fb's
86 fb->dev = dev; in drm_helper_mode_fill_fb_struct()
87 fb->format = drm_get_format_info(dev, mode_cmd); in drm_helper_mode_fill_fb_struct()
88 fb->width = mode_cmd->width; in drm_helper_mode_fill_fb_struct()
89 fb->height = mode_cmd->height; in drm_helper_mode_fill_fb_struct()
91 fb->pitches[i] = mode_cmd->pitches[i]; in drm_helper_mode_fill_fb_struct()
92 fb->offsets[i] = mode_cmd->offsets[i]; in drm_helper_mode_fill_fb_struct()
94 fb->modifier = mode_cmd->modifier[0]; in drm_helper_mode_fill_fb_struct()
95 fb->flags = mode_cmd->flags; in drm_helper_mode_fill_fb_struct()
115 * drm_crtc_init - Legacy CRTC initialization function
120 * Initialize a CRTC object with a default helper-provided primary plane and no
147 /* possible_crtc's will be filled in later by crtc_init */ in drm_crtc_init()
160 primary->format_default = true; in drm_crtc_init()
176 * drm_mode_config_helper_suspend - Modeset suspend helper
182 * If suspending fails, fbdev and polling is re-enabled.
198 drm_fb_helper_set_suspend_unlocked(dev->fb_helper, 1); in drm_mode_config_helper_suspend()
201 drm_fb_helper_set_suspend_unlocked(dev->fb_helper, 0); in drm_mode_config_helper_suspend()
206 dev->mode_config.suspend_state = state; in drm_mode_config_helper_suspend()
213 * drm_mode_config_helper_resume - Modeset resume helper
233 if (WARN_ON(!dev->mode_config.suspend_state)) in drm_mode_config_helper_resume()
234 return -EINVAL; in drm_mode_config_helper_resume()
236 ret = drm_atomic_helper_resume(dev, dev->mode_config.suspend_state); in drm_mode_config_helper_resume()
239 dev->mode_config.suspend_state = NULL; in drm_mode_config_helper_resume()
241 drm_fb_helper_set_suspend_unlocked(dev->fb_helper, 0); in drm_mode_config_helper_resume()