Lines Matching defs:helper
10 * DRM framebuffer helper functions
44 * The fb helper functions are useful to provide an fbdev on top of a drm kernel
46 * helper functions used by many drivers to implement the kernel mode setting
56 * should also notify the fb helper code from updates to the output
61 * All other functions exported by the fb helper library can be used to
65 /* simple single crtc case helper function
67 * emulation helper
129 static void drm_fb_helper_save_lut_atomic(struct drm_crtc *crtc, struct drm_fb_helper *helper)
134 if (helper->funcs->gamma_get == NULL)
142 helper->funcs->gamma_get(crtc, &r_base[i], &g_base[i], &b_base[i], i);
159 /* Find the real fb for a given fb helper CRTC */
209 struct drm_fb_helper *helper;
214 list_for_each_entry(helper, struct drm_fb_helper, &kernel_fb_helper_list, kernel_fb_list) {
215 if (helper->dev->switch_power_state == DRM_SWITCH_POWER_OFF)
218 ret = drm_fb_helper_restore_fbdev_mode(helper);
246 static void drm_fb_helper_crtc_free(struct drm_fb_helper *helper)
249 struct drm_device *dev = helper->dev;
251 kfree(helper->connector_info, dev->mode_config.num_connector * sizeof(struct drm_fb_helper_connector *));
252 for (i = 0; i < helper->crtc_count; i++) {
253 kfree(helper->crtc_info[i].mode_set.connectors, INTELFB_CONN_LIMIT * sizeof(struct drm_connector *));
254 if (helper->crtc_info[i].mode_set.mode)
255 drm_mode_destroy(helper->dev, helper->crtc_info[i].mode_set.mode);
257 kfree(helper->crtc_info, helper->crtc_count * sizeof(struct drm_fb_helper_crtc));