Home
last modified time | relevance | path

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

12345678910

/openbmc/linux/drivers/gpu/drm/
H A Ddrm_mode_config.c125 card_res->max_height = dev->mode_config.max_height; in drm_mode_getresources()
126 card_res->min_height = dev->mode_config.min_height; in drm_mode_getresources()
127 card_res->max_width = dev->mode_config.max_width; in drm_mode_getresources()
128 card_res->min_width = dev->mode_config.min_width; in drm_mode_getresources()
235 dev->mode_config.plane_type_property = prop; in drm_mode_create_standard_properties()
241 dev->mode_config.prop_src_x = prop; in drm_mode_create_standard_properties()
247 dev->mode_config.prop_src_y = prop; in drm_mode_create_standard_properties()
253 dev->mode_config.prop_src_w = prop; in drm_mode_create_standard_properties()
259 dev->mode_config.prop_src_h = prop; in drm_mode_create_standard_properties()
265 dev->mode_config.prop_crtc_x = prop; in drm_mode_create_standard_properties()
[all …]
H A Ddrm_connector.c206 container_of(work, struct drm_device, mode_config.connector_free_work); in drm_connector_free_work_fn()
207 struct drm_mode_config *config = &dev->mode_config; in drm_connector_free_work_fn()
227 struct drm_mode_config *config = &dev->mode_config; in __drm_connector_init()
466 struct drm_mode_config *config = &connector->dev->mode_config; in drm_connector_attach_edid_property()
569 ida_free(&dev->mode_config.connector_ida, connector->index); in drm_connector_cleanup()
578 spin_lock_irq(&dev->mode_config.connector_list_lock); in drm_connector_cleanup()
580 dev->mode_config.num_connector--; in drm_connector_cleanup()
581 spin_unlock_irq(&dev->mode_config.connector_list_lock); in drm_connector_cleanup()
801 struct drm_mode_config *config = &conn->dev->mode_config; in __drm_connector_put_safe()
823 struct drm_mode_config *config = &iter->dev->mode_config; in drm_connector_list_iter_next()
[all …]
H A Ddrm_probe_helper.c269 if (dev->mode_config.delayed_event) in reschedule_output_poll_work()
282 schedule_delayed_work(&dev->mode_config.output_poll_work, delay); in reschedule_output_poll_work()
305 if (drm_WARN_ON_ONCE(dev, !dev->mode_config.poll_enabled) || in drm_kms_helper_poll_enable()
306 !drm_kms_helper_poll || dev->mode_config.poll_running) in drm_kms_helper_poll_enable()
310 dev->mode_config.delayed_event) in drm_kms_helper_poll_enable()
313 dev->mode_config.poll_running = true; in drm_kms_helper_poll_enable()
335 if (dev->mode_config.poll_running) in drm_kms_helper_poll_reschedule()
350 ret = drm_modeset_lock(&connector->dev->mode_config.connection_mutex, &ctx); in drm_helper_probe_detect_ctx()
399 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, ctx); in drm_helper_probe_detect()
565 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_helper_probe_single_connector_modes()
[all …]
H A Ddrm_modeset_helper.c57 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()
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()
199 if (dev->mode_config.poll_enabled) in drm_mode_config_helper_suspend()
209 if (dev->mode_config.poll_enabled) in drm_mode_config_helper_suspend()
215 dev->mode_config.suspend_state = state; in drm_mode_config_helper_suspend()
242 if (WARN_ON(!dev->mode_config.suspend_state)) in drm_mode_config_helper_resume()
245 ret = drm_atomic_helper_resume(dev, dev->mode_config.suspend_state); in drm_mode_config_helper_resume()
248 dev->mode_config.suspend_state = NULL; in drm_mode_config_helper_resume()
[all …]
H A Ddrm_lease.c84 lockdep_assert_held(&master->dev->mode_config.idr_mutex); in _drm_find_lessee()
90 lockdep_assert_held(&master->dev->mode_config.idr_mutex); in _drm_lease_held_master()
101 lockdep_assert_held(&master->dev->mode_config.idr_mutex); in _drm_has_leased()
141 mutex_lock(&master->dev->mode_config.idr_mutex); in drm_lease_held()
143 mutex_unlock(&master->dev->mode_config.idr_mutex); in drm_lease_held()
175 mutex_lock(&master->dev->mode_config.idr_mutex); in drm_lease_filter_crtcs()
176 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in drm_lease_filter_crtcs()
189 mutex_unlock(&master->dev->mode_config.idr_mutex); in drm_lease_filter_crtcs()
224 mutex_lock(&dev->mode_config.idr_mutex); in drm_lease_create()
228 if (!idr_find(&dev->mode_config.object_idr, object)) in drm_lease_create()
[all …]
H A Ddrm_mode_object.c47 mutex_lock(&dev->mode_config.idr_mutex); in __drm_mode_object_add()
48 ret = idr_alloc(&dev->mode_config.object_idr, register_obj ? obj : NULL, in __drm_mode_object_add()
62 mutex_unlock(&dev->mode_config.idr_mutex); in __drm_mode_object_add()
88 mutex_lock(&dev->mode_config.idr_mutex); in drm_mode_object_register()
89 idr_replace(&dev->mode_config.object_idr, obj, obj->id); in drm_mode_object_register()
90 mutex_unlock(&dev->mode_config.idr_mutex); in drm_mode_object_register()
109 mutex_lock(&dev->mode_config.idr_mutex); in drm_mode_object_unregister()
111 idr_remove(&dev->mode_config.object_idr, object->id); in drm_mode_object_unregister()
114 mutex_unlock(&dev->mode_config.idr_mutex); in drm_mode_object_unregister()
142 mutex_lock(&dev->mode_config.idr_mutex); in __drm_mode_object_find()
[all …]
/openbmc/linux/drivers/gpu/drm/logicvc/
H A Dlogicvc_mode.c34 struct drm_mode_config *mode_config = &drm_dev->mode_config; in logicvc_mode_init() local
39 ret = drm_vblank_init(drm_dev, mode_config->num_crtc); in logicvc_mode_init()
57 mode_config->min_width = 64; in logicvc_mode_init()
58 mode_config->max_width = 2048; in logicvc_mode_init()
59 mode_config->min_height = 1; in logicvc_mode_init()
60 mode_config->max_height = 2048; in logicvc_mode_init()
61 mode_config->preferred_depth = preferred_depth; in logicvc_mode_init()
62 mode_config->funcs = &logicvc_mode_config_funcs; in logicvc_mode_init()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_display_driver.c111 struct drm_mode_config *mode_config = &i915->drm.mode_config; in intel_mode_config_init() local
116 mode_config->min_width = 0; in intel_mode_config_init()
117 mode_config->min_height = 0; in intel_mode_config_init()
119 mode_config->preferred_depth = 24; in intel_mode_config_init()
120 mode_config->prefer_shadow = 1; in intel_mode_config_init()
122 mode_config->funcs = &intel_mode_funcs; in intel_mode_config_init()
123 mode_config->helper_private = &intel_mode_config_funcs; in intel_mode_config_init()
125 mode_config->async_page_flip = HAS_ASYNC_FLIPS(i915); in intel_mode_config_init()
132 mode_config->max_width = 16384; in intel_mode_config_init()
133 mode_config->max_height = 16384; in intel_mode_config_init()
[all …]
H A Dintel_display.h255 list_for_each_entry(crtc, &(dev)->mode_config.crtc_list, head)
259 &(dev)->mode_config.plane_list, \
264 &(dev)->mode_config.plane_list, \
271 &(dev)->mode_config.plane_list, \
277 &(dev)->mode_config.crtc_list, \
282 &(dev)->mode_config.crtc_list, \
288 &(dev)->mode_config.encoder_list, \
293 &(dev)->mode_config.encoder_list, \
299 list_for_each_entry((intel_encoder), &(dev)->mode_config.encoder_list, base.head) \
315 list_for_each_entry((intel_encoder), &(dev)->mode_config.encoder_list, base.head) \
[all …]
/openbmc/linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_fb.c80 dev->mode_config.min_width = 0; in rockchip_drm_mode_config_init()
81 dev->mode_config.min_height = 0; in rockchip_drm_mode_config_init()
88 dev->mode_config.max_width = 4096; in rockchip_drm_mode_config_init()
89 dev->mode_config.max_height = 4096; in rockchip_drm_mode_config_init()
91 dev->mode_config.funcs = &rockchip_drm_mode_config_funcs; in rockchip_drm_mode_config_init()
92 dev->mode_config.helper_private = &rockchip_mode_config_helpers; in rockchip_drm_mode_config_init()
94 dev->mode_config.normalize_zpos = true; in rockchip_drm_mode_config_init()
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Ddisp.c78 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv04_display_fini()
88 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv04_display_fini()
115 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv04_display_init()
120 list_for_each_entry(encoder, &dev->mode_config.encoder_list, base.base.head) in nv04_display_init()
130 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv04_display_init()
142 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv04_display_init()
156 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv04_display_init()
172 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv04_display_init()
197 list_for_each_entry(encoder, &dev->mode_config.encoder_list, base.base.head) in nv04_display_destroy()
200 list_for_each_entry(nv_crtc, &dev->mode_config.crtc_list, base.head) in nv04_display_destroy()
[all …]
/openbmc/linux/drivers/gpu/drm/fsl-dcu/
H A Dfsl_dcu_drm_kms.c27 fsl_dev->drm->mode_config.min_width = 0; in fsl_dcu_drm_modeset_init()
28 fsl_dev->drm->mode_config.min_height = 0; in fsl_dcu_drm_modeset_init()
29 fsl_dev->drm->mode_config.max_width = 2031; in fsl_dcu_drm_modeset_init()
30 fsl_dev->drm->mode_config.max_height = 2047; in fsl_dcu_drm_modeset_init()
31 fsl_dev->drm->mode_config.funcs = &fsl_dcu_drm_mode_config_funcs; in fsl_dcu_drm_modeset_init()
/openbmc/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_fb.c165 dev->mode_config.min_width = 0; in exynos_drm_mode_config_init()
166 dev->mode_config.min_height = 0; in exynos_drm_mode_config_init()
173 dev->mode_config.max_width = 4096; in exynos_drm_mode_config_init()
174 dev->mode_config.max_height = 4096; in exynos_drm_mode_config_init()
176 dev->mode_config.funcs = &exynos_drm_mode_config_funcs; in exynos_drm_mode_config_init()
177 dev->mode_config.helper_private = &exynos_drm_mode_config_helpers; in exynos_drm_mode_config_init()
179 dev->mode_config.normalize_zpos = true; in exynos_drm_mode_config_init()
/openbmc/linux/drivers/gpu/drm/sprd/
H A Dsprd_drm.c42 drm->mode_config.min_width = 0; in sprd_drm_mode_config_init()
43 drm->mode_config.min_height = 0; in sprd_drm_mode_config_init()
44 drm->mode_config.max_width = 8192; in sprd_drm_mode_config_init()
45 drm->mode_config.max_height = 8192; in sprd_drm_mode_config_init()
47 drm->mode_config.funcs = &sprd_drm_mode_config_funcs; in sprd_drm_mode_config_init()
48 drm->mode_config.helper_private = &sprd_drm_mode_config_helper; in sprd_drm_mode_config_init()
95 ret = drm_vblank_init(drm, drm->mode_config.num_crtc); in sprd_drm_bind()
/openbmc/linux/drivers/gpu/drm/hyperv/
H A Dhyperv_drm_modeset.c59 connector->dev->mode_config.max_width, in hyperv_connector_get_modes()
60 connector->dev->mode_config.max_height); in hyperv_connector_get_modes()
214 dev->mode_config.min_width = 0; in hyperv_mode_config_init()
215 dev->mode_config.min_height = 0; in hyperv_mode_config_init()
216 dev->mode_config.max_width = hv->screen_width_max; in hyperv_mode_config_init()
217 dev->mode_config.max_height = hv->screen_height_max; in hyperv_mode_config_init()
219 dev->mode_config.preferred_depth = hv->screen_depth; in hyperv_mode_config_init()
220 dev->mode_config.prefer_shadow = 0; in hyperv_mode_config_init()
222 dev->mode_config.funcs = &hyperv_mode_config_funcs; in hyperv_mode_config_init()
/openbmc/linux/drivers/gpu/drm/vkms/
H A Dvkms_drv.c160 dev->mode_config.funcs = &vkms_mode_funcs; in vkms_modeset_init()
161 dev->mode_config.min_width = XRES_MIN; in vkms_modeset_init()
162 dev->mode_config.min_height = YRES_MIN; in vkms_modeset_init()
163 dev->mode_config.max_width = XRES_MAX; in vkms_modeset_init()
164 dev->mode_config.max_height = YRES_MAX; in vkms_modeset_init()
165 dev->mode_config.cursor_width = 512; in vkms_modeset_init()
166 dev->mode_config.cursor_height = 512; in vkms_modeset_init()
170 dev->mode_config.preferred_depth = 0; in vkms_modeset_init()
171 dev->mode_config.helper_private = &vkms_mode_config_helpers; in vkms_modeset_init()
/openbmc/linux/drivers/gpu/drm/sti/
H A Dsti_drv.c44 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_drm_fps_get()
60 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_drm_fps_set()
81 list_for_each_entry(p, &dev->mode_config.plane_list, head) { in sti_drm_fps_dbg_show()
116 dev->mode_config.min_width = 0; in sti_mode_config_init()
117 dev->mode_config.min_height = 0; in sti_mode_config_init()
124 dev->mode_config.max_width = STI_MAX_FB_WIDTH; in sti_mode_config_init()
125 dev->mode_config.max_height = STI_MAX_FB_HEIGHT; in sti_mode_config_init()
127 dev->mode_config.funcs = &sti_mode_config_funcs; in sti_mode_config_init()
129 dev->mode_config.normalize_zpos = true; in sti_mode_config_init()
/openbmc/linux/drivers/gpu/drm/tve200/
H A Dtve200_drv.c64 struct drm_mode_config *mode_config; in tve200_modeset_init() local
71 mode_config = &dev->mode_config; in tve200_modeset_init()
72 mode_config->funcs = &mode_config_funcs; in tve200_modeset_init()
73 mode_config->min_width = 352; in tve200_modeset_init()
74 mode_config->max_width = 720; in tve200_modeset_init()
75 mode_config->min_height = 240; in tve200_modeset_init()
76 mode_config->max_height = 576; in tve200_modeset_init()
/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_framebuffer.c47 drm->mode_config.max_width = 8192; in sun4i_framebuffer_init()
48 drm->mode_config.max_height = 8192; in sun4i_framebuffer_init()
50 drm->mode_config.funcs = &sun4i_de_mode_config_funcs; in sun4i_framebuffer_init()
51 drm->mode_config.helper_private = &sun4i_de_mode_config_helpers; in sun4i_framebuffer_init()
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_display.c482 mutex_lock(&dev->mode_config.mutex); in nouveau_display_hpd_work()
527 mutex_unlock(&dev->mode_config.mutex); in nouveau_display_hpd_work()
696 dev->mode_config.funcs = &nouveau_mode_config_funcs; in nouveau_display_create()
698 dev->mode_config.min_width = 0; in nouveau_display_create()
699 dev->mode_config.min_height = 0; in nouveau_display_create()
701 dev->mode_config.max_width = 2048; in nouveau_display_create()
702 dev->mode_config.max_height = 2048; in nouveau_display_create()
705 dev->mode_config.max_width = 4096; in nouveau_display_create()
706 dev->mode_config.max_height = 4096; in nouveau_display_create()
709 dev->mode_config.max_width = 8192; in nouveau_display_create()
[all …]
/openbmc/linux/drivers/gpu/drm/renesas/shmobile/
H A Dshmob_drm_kms.c146 sdev->ddev->mode_config.min_width = 0; in shmob_drm_modeset_init()
147 sdev->ddev->mode_config.min_height = 0; in shmob_drm_modeset_init()
148 sdev->ddev->mode_config.max_width = 4095; in shmob_drm_modeset_init()
149 sdev->ddev->mode_config.max_height = 4095; in shmob_drm_modeset_init()
150 sdev->ddev->mode_config.funcs = &shmob_drm_mode_config_funcs; in shmob_drm_modeset_init()
/openbmc/linux/drivers/gpu/drm/arm/
H A Dmalidp_mw.c40 return drm_add_modes_noedid(connector, dev->mode_config.max_width, in malidp_mw_connector_get_modes()
41 dev->mode_config.max_height); in malidp_mw_connector_get_modes()
49 struct drm_mode_config *mode_config = &dev->mode_config; in malidp_mw_connector_mode_valid() local
52 if ((w < mode_config->min_width) || (w > mode_config->max_width)) in malidp_mw_connector_mode_valid()
55 if ((h < mode_config->min_height) || (h > mode_config->max_height)) in malidp_mw_connector_mode_valid()
/openbmc/linux/drivers/gpu/drm/mcde/
H A Dmcde_drv.c129 struct drm_mode_config *mode_config; in mcde_modeset_init() local
166 mode_config = &drm->mode_config; in mcde_modeset_init()
167 mode_config->funcs = &mcde_mode_config_funcs; in mcde_modeset_init()
168 mode_config->helper_private = &mcde_mode_config_helpers; in mcde_modeset_init()
170 mode_config->min_width = 1; in mcde_modeset_init()
171 mode_config->max_width = 1920; in mcde_modeset_init()
172 mode_config->min_height = 1; in mcde_modeset_init()
173 mode_config->max_height = 1080; in mcde_modeset_init()
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_wb_connector.c94 struct drm_mode_config *mode_config = &dev->mode_config; in komeda_wb_connector_mode_valid() local
97 if ((w < mode_config->min_width) || (w > mode_config->max_width)) in komeda_wb_connector_mode_valid()
100 if ((h < mode_config->min_height) || (h > mode_config->max_height)) in komeda_wb_connector_mode_valid()
/openbmc/linux/drivers/gpu/drm/imx/ipuv3/
H A Dimx-drm-core.c211 drm->mode_config.min_width = 1; in imx_drm_bind()
212 drm->mode_config.min_height = 1; in imx_drm_bind()
213 drm->mode_config.max_width = 4096; in imx_drm_bind()
214 drm->mode_config.max_height = 4096; in imx_drm_bind()
215 drm->mode_config.funcs = &imx_drm_mode_config_funcs; in imx_drm_bind()
216 drm->mode_config.helper_private = &imx_drm_mode_config_helpers; in imx_drm_bind()
217 drm->mode_config.normalize_zpos = true; in imx_drm_bind()

12345678910