Home
last modified time | relevance | path

Searched refs:mode_config (Results 1 – 25 of 137) sorted by relevance

123456

/drivers/gpu/drm/
Ddrm_probe_helper.c112 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_helper_probe_single_connector_modes_merge_bits()
132 if (drm_kms_helper_poll != dev->mode_config.poll_running) in drm_helper_probe_single_connector_modes_merge_bits()
135 dev->mode_config.poll_running = drm_kms_helper_poll; in drm_helper_probe_single_connector_modes_merge_bits()
266 if (dev->mode_config.funcs->output_poll_changed) in drm_kms_helper_hotplug_event()
267 dev->mode_config.funcs->output_poll_changed(dev); in drm_kms_helper_hotplug_event()
275 …struct drm_device *dev = container_of(delayed_work, struct drm_device, mode_config.output_poll_wor… in output_poll_execute()
283 mutex_lock(&dev->mode_config.mutex); in output_poll_execute()
284 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in output_poll_execute()
321 mutex_unlock(&dev->mode_config.mutex); in output_poll_execute()
342 if (!dev->mode_config.poll_enabled) in drm_kms_helper_poll_disable()
[all …]
Ddrm_crtc.c288 mutex_lock(&dev->mode_config.idr_mutex); in drm_mode_object_get_reg()
289 ret = idr_alloc(&dev->mode_config.crtc_idr, register_obj ? obj : NULL, 1, 0, GFP_KERNEL); in drm_mode_object_get_reg()
298 mutex_unlock(&dev->mode_config.idr_mutex); in drm_mode_object_get_reg()
327 mutex_lock(&dev->mode_config.idr_mutex); in drm_mode_object_register()
328 idr_replace(&dev->mode_config.crtc_idr, obj, obj->id); in drm_mode_object_register()
329 mutex_unlock(&dev->mode_config.idr_mutex); in drm_mode_object_register()
344 mutex_lock(&dev->mode_config.idr_mutex); in drm_mode_object_put()
345 idr_remove(&dev->mode_config.crtc_idr, object->id); in drm_mode_object_put()
346 mutex_unlock(&dev->mode_config.idr_mutex); in drm_mode_object_put()
354 mutex_lock(&dev->mode_config.idr_mutex); in _object_find()
[all …]
Ddrm_crtc_helper.c66 &dev->mode_config.connector_list, head) { in drm_helper_move_panel_connectors_to_head()
72 list_splice(&panel_list, &dev->mode_config.connector_list); in drm_helper_move_panel_connectors_to_head()
97 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_helper_encoder_in_use()
98 WARN_ON(!drm_modeset_is_locked(&dev->mode_config.connection_mutex)); in drm_helper_encoder_in_use()
101 list_for_each_entry(connector, &dev->mode_config.connector_list, head) in drm_helper_encoder_in_use()
129 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_helper_crtc_in_use()
131 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) in drm_helper_crtc_in_use()
162 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in __drm_helper_disable_unused_functions()
170 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in __drm_helper_disable_unused_functions()
212 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in drm_crtc_prepare_encoders()
[all …]
Ddrm_modeset_lock.c73 struct drm_mode_config *config = &dev->mode_config; in __drm_modeset_lock_all()
143 struct drm_mode_config *config = &dev->mode_config; in drm_modeset_unlock_all()
155 mutex_unlock(&dev->mode_config.mutex); in drm_modeset_unlock_all()
215 WARN_ON(!crtc->dev->mode_config.acquire_ctx); in drm_modeset_legacy_acquire_ctx()
217 return crtc->dev->mode_config.acquire_ctx; in drm_modeset_legacy_acquire_ctx()
257 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) in drm_warn_on_modeset_not_all_locked()
260 WARN_ON(!drm_modeset_is_locked(&dev->mode_config.connection_mutex)); in drm_warn_on_modeset_not_all_locked()
261 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_warn_on_modeset_not_all_locked()
447 struct drm_mode_config *config = &dev->mode_config; in drm_modeset_lock_all_crtcs()
Ddrm_fb_helper.c101 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in drm_fb_helper_single_add_all_connectors()
127 WARN_ON(!mutex_is_locked(&fb_helper->dev->mode_config.mutex)); in drm_fb_helper_add_one_connector()
179 WARN_ON(!mutex_is_locked(&fb_helper->dev->mode_config.mutex)); in drm_fb_helper_remove_one_connector()
272 list_for_each_entry(c, &dev->mode_config.crtc_list, head) { in drm_mode_config_fb()
324 list_for_each_entry(plane, &dev->mode_config.plane_list, head) { in restore_fbdev_mode()
328 if (dev->mode_config.rotation_property) { in restore_fbdev_mode()
330 dev->mode_config.rotation_property, in restore_fbdev_mode()
461 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in drm_fb_helper_is_bound()
534 dev->mode_config.dpms_property, dpms_mode); in drm_fb_helper_dpms()
638 …fb_helper->connector_info = kcalloc(dev->mode_config.num_connector, sizeof(struct drm_fb_helper_co… in drm_fb_helper_init()
[all …]
Ddrm_sysfs.c177 ret = mutex_lock_interruptible(&connector->dev->mode_config.mutex); in status_show()
182 mutex_unlock(&connector->dev->mode_config.mutex); in status_show()
198 dev->mode_config.dpms_property, in dpms_show()
273 prop = dev->mode_config.dvi_i_subconnector_property; in subconnector_show()
279 prop = dev->mode_config.tv_subconnector_property; in subconnector_show()
314 prop = dev->mode_config.dvi_i_select_subconnector_property; in select_subconnector_show()
320 prop = dev->mode_config.tv_select_subconnector_property; in select_subconnector_show()
/drivers/gpu/drm/nouveau/
Dnouveau_display.c57 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nouveau_display_vblank_enable()
71 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nouveau_display_vblank_disable()
139 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nouveau_display_scanoutpos()
155 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nouveau_display_vblstamp()
173 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nouveau_display_vblank_fini()
186 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nouveau_display_vblank_init()
203 ret = drm_vblank_init(dev, dev->mode_config.num_crtc); in nouveau_display_vblank_init()
372 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in nouveau_display_init()
388 for (head = 0; head < dev->mode_config.num_crtc; head++) in nouveau_display_fini()
392 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in nouveau_display_fini()
[all …]
/drivers/gpu/drm/nouveau/dispnv04/
Ddisp.c112 &dev->mode_config.connector_list, head) { in nv04_display_create()
120 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in nv04_display_create()
126 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) in nv04_display_create()
129 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in nv04_display_create()
149 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv04_display_destroy()
158 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in nv04_display_destroy()
164 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) in nv04_display_destroy()
189 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in nv04_display_init()
195 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) in nv04_display_init()
/drivers/gpu/drm/sti/
Dsti_drm_drv.c37 dev->mode_config.min_width = 0; in sti_drm_mode_config_init()
38 dev->mode_config.min_height = 0; in sti_drm_mode_config_init()
45 dev->mode_config.max_width = STI_MAX_FB_HEIGHT; in sti_drm_mode_config_init()
46 dev->mode_config.max_height = STI_MAX_FB_WIDTH; in sti_drm_mode_config_init()
48 dev->mode_config.funcs = &sti_drm_mode_config_funcs; in sti_drm_mode_config_init()
77 dev->mode_config.num_crtc, in sti_drm_load()
78 dev->mode_config.num_connector); in sti_drm_load()
/drivers/gpu/drm/shmobile/
Dshmob_drm_kms.c151 sdev->ddev->mode_config.min_width = 0; in shmob_drm_modeset_init()
152 sdev->ddev->mode_config.min_height = 0; in shmob_drm_modeset_init()
153 sdev->ddev->mode_config.max_width = 4095; in shmob_drm_modeset_init()
154 sdev->ddev->mode_config.max_height = 4095; in shmob_drm_modeset_init()
155 sdev->ddev->mode_config.funcs = &shmob_drm_mode_config_funcs; in shmob_drm_modeset_init()
/drivers/media/i2c/
Dadv7343.c230 val = state->pdata->mode_config.sleep_mode << 0 | in adv7343_setoutput()
231 state->pdata->mode_config.pll_control << 1 | in adv7343_setoutput()
232 state->pdata->mode_config.dac[2] << 2 | in adv7343_setoutput()
233 state->pdata->mode_config.dac[1] << 3 | in adv7343_setoutput()
234 state->pdata->mode_config.dac[0] << 4 | in adv7343_setoutput()
235 state->pdata->mode_config.dac[5] << 5 | in adv7343_setoutput()
236 state->pdata->mode_config.dac[4] << 6 | in adv7343_setoutput()
237 state->pdata->mode_config.dac[3] << 7; in adv7343_setoutput()
421 pdata->mode_config.sleep_mode = in adv7343_get_pdata()
424 pdata->mode_config.pll_control = in adv7343_get_pdata()
[all …]
/drivers/gpu/drm/radeon/
Dradeon_encoders.c60 list_for_each_entry(clone_encoder, &dev->mode_config.encoder_list, head) { in radeon_encoder_clones()
80 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in radeon_setup_encoder_clones()
210 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_link_encoder_connector()
212 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in radeon_link_encoder_connector()
229 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_encoder_set_active_device()
248 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_get_connector_for_encoder()
264 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_get_connector_for_encoder_init()
282 list_for_each_entry(other_encoder, &dev->mode_config.encoder_list, head) { in radeon_get_external_encoder()
Dradeon_irq_kms.c79 struct drm_mode_config *mode_config = &dev->mode_config; in radeon_hotplug_work_func() local
87 mutex_lock(&mode_config->mutex); in radeon_hotplug_work_func()
88 if (mode_config->num_connector) { in radeon_hotplug_work_func()
89 list_for_each_entry(connector, &mode_config->connector_list, head) in radeon_hotplug_work_func()
92 mutex_unlock(&mode_config->mutex); in radeon_hotplug_work_func()
/drivers/gpu/drm/gma500/
Doaktrail_lvds.c98 struct drm_mode_config *mode_config = &dev->mode_config; in oaktrail_lvds_mode_set() local
125 list_for_each_entry(connector, &mode_config->connector_list, head) { in oaktrail_lvds_mode_set()
137 dev->mode_config.scaling_mode_property, in oaktrail_lvds_mode_set()
339 dev->mode_config.scaling_mode_property, in oaktrail_lvds_init()
362 mutex_lock(&dev->mode_config.mutex); in oaktrail_lvds_init()
405 mutex_unlock(&dev->mode_config.mutex); in oaktrail_lvds_init()
411 mutex_unlock(&dev->mode_config.mutex); in oaktrail_lvds_init()
/drivers/gpu/drm/rcar-du/
Drcar_du_kms.c408 dev->mode_config.min_width = 0; in rcar_du_modeset_init()
409 dev->mode_config.min_height = 0; in rcar_du_modeset_init()
410 dev->mode_config.max_width = 4095; in rcar_du_modeset_init()
411 dev->mode_config.max_height = 2047; in rcar_du_modeset_init()
412 dev->mode_config.funcs = &rcar_du_mode_config_funcs; in rcar_du_modeset_init()
459 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in rcar_du_modeset_init()
479 fbdev = drm_fbdev_cma_init(dev, 32, dev->mode_config.num_crtc, in rcar_du_modeset_init()
480 dev->mode_config.num_connector); in rcar_du_modeset_init()
/drivers/gpu/drm/bochs/
Dbochs_kms.c262 bochs->dev->mode_config.max_width = 8192; in bochs_kms_init()
263 bochs->dev->mode_config.max_height = 8192; in bochs_kms_init()
265 bochs->dev->mode_config.fb_base = bochs->fb_base; in bochs_kms_init()
266 bochs->dev->mode_config.preferred_depth = 24; in bochs_kms_init()
267 bochs->dev->mode_config.prefer_shadow = 0; in bochs_kms_init()
269 bochs->dev->mode_config.funcs = (void *)&bochs_mode_funcs; in bochs_kms_init()
/drivers/gpu/drm/udl/
Dudl_modeset.c434 dev->mode_config.min_width = 640; in udl_modeset_init()
435 dev->mode_config.min_height = 480; in udl_modeset_init()
437 dev->mode_config.max_width = 2048; in udl_modeset_init()
438 dev->mode_config.max_height = 2048; in udl_modeset_init()
440 dev->mode_config.prefer_shadow = 0; in udl_modeset_init()
441 dev->mode_config.preferred_depth = 24; in udl_modeset_init()
443 dev->mode_config.funcs = &udl_mode_funcs; in udl_modeset_init()
/drivers/gpu/drm/tegra/
Dfb.c257 drm->mode_config.fb_base = (resource_size_t)bo->paddr; in tegra_fbdev_probe()
379 drm->mode_config.min_width = 0; in tegra_drm_fb_prepare()
380 drm->mode_config.min_height = 0; in tegra_drm_fb_prepare()
382 drm->mode_config.max_width = 4096; in tegra_drm_fb_prepare()
383 drm->mode_config.max_height = 4096; in tegra_drm_fb_prepare()
385 drm->mode_config.funcs = &tegra_drm_mode_funcs; in tegra_drm_fb_prepare()
402 err = tegra_fbdev_init(tegra->fbdev, 32, drm->mode_config.num_crtc, in tegra_drm_fb_init()
403 drm->mode_config.num_connector); in tegra_drm_fb_init()
/drivers/gpu/drm/ast/
Dast_main.c449 dev->mode_config.funcs = (void *)&ast_mode_funcs; in ast_driver_load()
450 dev->mode_config.min_width = 0; in ast_driver_load()
451 dev->mode_config.min_height = 0; in ast_driver_load()
452 dev->mode_config.preferred_depth = 24; in ast_driver_load()
453 dev->mode_config.prefer_shadow = 1; in ast_driver_load()
460 dev->mode_config.max_width = 1920; in ast_driver_load()
461 dev->mode_config.max_height = 2048; in ast_driver_load()
463 dev->mode_config.max_width = 1600; in ast_driver_load()
464 dev->mode_config.max_height = 1200; in ast_driver_load()
/drivers/gpu/drm/exynos/
Dexynos_drm_fb.c316 dev->mode_config.min_width = 0; in exynos_drm_mode_config_init()
317 dev->mode_config.min_height = 0; in exynos_drm_mode_config_init()
324 dev->mode_config.max_width = 4096; in exynos_drm_mode_config_init()
325 dev->mode_config.max_height = 4096; in exynos_drm_mode_config_init()
327 dev->mode_config.funcs = &exynos_drm_mode_config_funcs; in exynos_drm_mode_config_init()
Dexynos_drm_fbdev.c238 mutex_lock(&dev->mode_config.mutex); in exynos_drm_fbdev_is_anything_connected()
239 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in exynos_drm_fbdev_is_anything_connected()
246 mutex_unlock(&dev->mode_config.mutex); in exynos_drm_fbdev_is_anything_connected()
259 if (!dev->mode_config.num_crtc || !dev->mode_config.num_connector) in exynos_drm_fbdev_init()
273 num_crtc = dev->mode_config.num_crtc; in exynos_drm_fbdev_init()
Dexynos_drm_encoder.c56 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in exynos_drm_encoder_mode_fixup()
104 drm_for_each_legacy_plane(plane, &dev->mode_config.plane_list) { in exynos_drm_encoder_disable()
140 list_for_each_entry(clone, &dev->mode_config.encoder_list, head) { in exynos_drm_encoder_clones()
159 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) in exynos_drm_encoder_setup()
/drivers/gpu/drm/i915/
Dintel_dp_mst.c60 list_for_each_entry(intel_connector, &dev->mode_config.connector_list, base.head) { in intel_dp_mst_compute_config()
142 list_for_each_entry(intel_connector, &dev->mode_config.connector_list, base.head) { in intel_mst_pre_enable_dp()
424 drm_object_attach_property(&connector->base, dev->mode_config.path_property, 0); in intel_dp_add_mst_connector()
427 mutex_lock(&dev->mode_config.mutex); in intel_dp_add_mst_connector()
429 mutex_unlock(&dev->mode_config.mutex); in intel_dp_add_mst_connector()
440 mutex_lock(&dev->mode_config.mutex); in intel_dp_destroy_mst_connector()
442 mutex_unlock(&dev->mode_config.mutex); in intel_dp_destroy_mst_connector()
446 mutex_lock(&dev->mode_config.mutex); in intel_dp_destroy_mst_connector()
449 mutex_unlock(&dev->mode_config.mutex); in intel_dp_destroy_mst_connector()
/drivers/gpu/drm/armada/
Darmada_drv.c146 dev->mode_config.min_width = 320; in armada_drm_load()
147 dev->mode_config.min_height = 200; in armada_drm_load()
153 dev->mode_config.max_width = 1920; in armada_drm_load()
154 dev->mode_config.max_height = 2048; in armada_drm_load()
156 dev->mode_config.preferred_depth = 24; in armada_drm_load()
157 dev->mode_config.funcs = &armada_drm_mode_config_funcs; in armada_drm_load()
189 ret = drm_vblank_init(dev, dev->mode_config.num_crtc); in armada_drm_load()
/drivers/gpu/drm/omapdrm/
Domap_debugfs.c64 mutex_lock(&dev->mode_config.fb_lock); in fb_show()
65 list_for_each_entry(fb, &dev->mode_config.fb_list, head) { in fb_show()
72 mutex_unlock(&dev->mode_config.fb_lock); in fb_show()

123456