Lines Matching +full:pre +full:- +full:filled
37 * This helper library contains various one-off functions which don't really fit
42 * drm_helper_move_panel_connectors_to_head() - move panels to the front in the
59 spin_lock_irq(&dev->mode_config.connector_list_lock); in drm_helper_move_panel_connectors_to_head()
61 &dev->mode_config.connector_list, head) { in drm_helper_move_panel_connectors_to_head()
62 if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS || in drm_helper_move_panel_connectors_to_head()
63 connector->connector_type == DRM_MODE_CONNECTOR_eDP || in drm_helper_move_panel_connectors_to_head()
64 connector->connector_type == DRM_MODE_CONNECTOR_DSI) in drm_helper_move_panel_connectors_to_head()
65 list_move_tail(&connector->head, &panel_list); in drm_helper_move_panel_connectors_to_head()
68 list_splice(&panel_list, &dev->mode_config.connector_list); in drm_helper_move_panel_connectors_to_head()
69 spin_unlock_irq(&dev->mode_config.connector_list_lock); in drm_helper_move_panel_connectors_to_head()
74 * drm_helper_mode_fill_fb_struct - fill out framebuffer metadata
80 * This helper can be used in a drivers fb_create callback to pre-fill the fb's
90 fb->dev = dev; in drm_helper_mode_fill_fb_struct()
91 fb->format = info; in drm_helper_mode_fill_fb_struct()
92 fb->width = mode_cmd->width; in drm_helper_mode_fill_fb_struct()
93 fb->height = mode_cmd->height; in drm_helper_mode_fill_fb_struct()
95 fb->pitches[i] = mode_cmd->pitches[i]; in drm_helper_mode_fill_fb_struct()
96 fb->offsets[i] = mode_cmd->offsets[i]; in drm_helper_mode_fill_fb_struct()
98 fb->modifier = mode_cmd->modifier[0]; in drm_helper_mode_fill_fb_struct()
99 fb->flags = mode_cmd->flags; in drm_helper_mode_fill_fb_struct()
119 * drm_crtc_init - Legacy CRTC initialization function
124 * Initialize a CRTC object with a default helper-provided primary plane and no
151 /* possible_crtc's will be filled in later by crtc_init */ in drm_crtc_init()
164 primary->format_default = true; in drm_crtc_init()
180 * drm_mode_config_helper_suspend - Modeset suspend helper
186 * If suspending fails, fbdev and polling is re-enabled.
203 if (dev->mode_config.poll_enabled) in drm_mode_config_helper_suspend()
214 if (dev->mode_config.poll_enabled) in drm_mode_config_helper_suspend()
220 dev->mode_config.suspend_state = state; in drm_mode_config_helper_suspend()
227 * drm_mode_config_helper_resume - Modeset resume helper
247 if (WARN_ON(!dev->mode_config.suspend_state)) in drm_mode_config_helper_resume()
248 return -EINVAL; in drm_mode_config_helper_resume()
250 ret = drm_atomic_helper_resume(dev, dev->mode_config.suspend_state); in drm_mode_config_helper_resume()
253 dev->mode_config.suspend_state = NULL; in drm_mode_config_helper_resume()
260 if (dev->mode_config.poll_enabled) in drm_mode_config_helper_resume()