| /Linux-v6.1/drivers/gpu/drm/ |
| D | drm_mode_config.c | 123 card_res->max_height = dev->mode_config.max_height; in drm_mode_getresources() 124 card_res->min_height = dev->mode_config.min_height; in drm_mode_getresources() 125 card_res->max_width = dev->mode_config.max_width; in drm_mode_getresources() 126 card_res->min_width = dev->mode_config.min_width; in drm_mode_getresources() 233 dev->mode_config.plane_type_property = prop; in drm_mode_create_standard_properties() 239 dev->mode_config.prop_src_x = prop; in drm_mode_create_standard_properties() 245 dev->mode_config.prop_src_y = prop; in drm_mode_create_standard_properties() 251 dev->mode_config.prop_src_w = prop; in drm_mode_create_standard_properties() 257 dev->mode_config.prop_src_h = prop; in drm_mode_create_standard_properties() 263 dev->mode_config.prop_crtc_x = prop; in drm_mode_create_standard_properties() [all …]
|
| D | drm_connector.c | 203 container_of(work, struct drm_device, mode_config.connector_free_work); in drm_connector_free_work_fn() 204 struct drm_mode_config *config = &dev->mode_config; in drm_connector_free_work_fn() 224 struct drm_mode_config *config = &dev->mode_config; in __drm_connector_init() 461 struct drm_mode_config *config = &connector->dev->mode_config; in drm_connector_attach_edid_property() 564 ida_free(&dev->mode_config.connector_ida, connector->index); in drm_connector_cleanup() 572 spin_lock_irq(&dev->mode_config.connector_list_lock); in drm_connector_cleanup() 574 dev->mode_config.num_connector--; in drm_connector_cleanup() 575 spin_unlock_irq(&dev->mode_config.connector_list_lock); in drm_connector_cleanup() 792 struct drm_mode_config *config = &conn->dev->mode_config; in __drm_connector_put_safe() 814 struct drm_mode_config *config = &iter->dev->mode_config; in drm_connector_list_iter_next() [all …]
|
| D | drm_probe_helper.c | 249 if (!dev->mode_config.poll_enabled || !drm_kms_helper_poll) in drm_kms_helper_poll_enable() 260 if (dev->mode_config.delayed_event) { in drm_kms_helper_poll_enable() 276 schedule_delayed_work(&dev->mode_config.output_poll_work, delay); in drm_kms_helper_poll_enable() 290 ret = drm_modeset_lock(&connector->dev->mode_config.connection_mutex, &ctx); in drm_helper_probe_detect_ctx() 339 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, ctx); in drm_helper_probe_detect() 498 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_helper_probe_single_connector_modes() 506 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, &ctx); in drm_helper_probe_single_connector_modes() 558 dev->mode_config.delayed_event = true; in drm_helper_probe_single_connector_modes() 559 if (dev->mode_config.poll_enabled) in drm_helper_probe_single_connector_modes() 560 schedule_delayed_work(&dev->mode_config.output_poll_work, in drm_helper_probe_single_connector_modes() [all …]
|
| D | drm_lease.c | 84 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 …]
|
| D | drm_modeset_helper.c | 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() 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() 206 dev->mode_config.suspend_state = state; in drm_mode_config_helper_suspend() 233 if (WARN_ON(!dev->mode_config.suspend_state)) 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()
|
| D | drm_mode_object.c | 47 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 …]
|
| /Linux-v6.1/drivers/gpu/drm/logicvc/ |
| D | logicvc_mode.c | 37 struct drm_mode_config *mode_config = &drm_dev->mode_config; in logicvc_mode_init() local 42 ret = drm_vblank_init(drm_dev, mode_config->num_crtc); in logicvc_mode_init() 60 mode_config->min_width = 64; in logicvc_mode_init() 61 mode_config->max_width = 2048; in logicvc_mode_init() 62 mode_config->min_height = 1; in logicvc_mode_init() 63 mode_config->max_height = 2048; in logicvc_mode_init() 64 mode_config->preferred_depth = preferred_depth; in logicvc_mode_init() 65 mode_config->funcs = &logicvc_mode_config_funcs; in logicvc_mode_init()
|
| /Linux-v6.1/drivers/gpu/drm/nouveau/dispnv04/ |
| D | disp.c | 78 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 …]
|
| /Linux-v6.1/drivers/gpu/drm/fsl-dcu/ |
| D | fsl_dcu_drm_kms.c | 27 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()
|
| /Linux-v6.1/drivers/gpu/drm/rockchip/ |
| D | rockchip_drm_fb.c | 125 dev->mode_config.min_width = 0; in rockchip_drm_mode_config_init() 126 dev->mode_config.min_height = 0; in rockchip_drm_mode_config_init() 133 dev->mode_config.max_width = 4096; in rockchip_drm_mode_config_init() 134 dev->mode_config.max_height = 4096; in rockchip_drm_mode_config_init() 136 dev->mode_config.funcs = &rockchip_drm_mode_config_funcs; in rockchip_drm_mode_config_init() 137 dev->mode_config.helper_private = &rockchip_mode_config_helpers; in rockchip_drm_mode_config_init() 139 dev->mode_config.normalize_zpos = true; in rockchip_drm_mode_config_init()
|
| /Linux-v6.1/drivers/gpu/drm/exynos/ |
| D | exynos_drm_fb.c | 167 dev->mode_config.min_width = 0; in exynos_drm_mode_config_init() 168 dev->mode_config.min_height = 0; in exynos_drm_mode_config_init() 175 dev->mode_config.max_width = 4096; in exynos_drm_mode_config_init() 176 dev->mode_config.max_height = 4096; in exynos_drm_mode_config_init() 178 dev->mode_config.funcs = &exynos_drm_mode_config_funcs; in exynos_drm_mode_config_init() 179 dev->mode_config.helper_private = &exynos_drm_mode_config_helpers; in exynos_drm_mode_config_init() 181 dev->mode_config.normalize_zpos = true; in exynos_drm_mode_config_init()
|
| /Linux-v6.1/drivers/gpu/drm/sprd/ |
| D | sprd_drm.c | 42 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()
|
| /Linux-v6.1/drivers/gpu/drm/vkms/ |
| D | vkms_drv.c | 145 dev->mode_config.funcs = &vkms_mode_funcs; in vkms_modeset_init() 146 dev->mode_config.min_width = XRES_MIN; in vkms_modeset_init() 147 dev->mode_config.min_height = YRES_MIN; in vkms_modeset_init() 148 dev->mode_config.max_width = XRES_MAX; in vkms_modeset_init() 149 dev->mode_config.max_height = YRES_MAX; in vkms_modeset_init() 150 dev->mode_config.cursor_width = 512; in vkms_modeset_init() 151 dev->mode_config.cursor_height = 512; in vkms_modeset_init() 155 dev->mode_config.preferred_depth = 0; in vkms_modeset_init() 156 dev->mode_config.helper_private = &vkms_mode_config_helpers; in vkms_modeset_init()
|
| /Linux-v6.1/drivers/gpu/drm/nouveau/ |
| D | nouveau_display.c | 487 mutex_lock(&dev->mode_config.mutex); in nouveau_display_hpd_work() 511 mutex_unlock(&dev->mode_config.mutex); in nouveau_display_hpd_work() 674 dev->mode_config.funcs = &nouveau_mode_config_funcs; in nouveau_display_create() 675 dev->mode_config.fb_base = device->func->resource_addr(device, 1); in nouveau_display_create() 677 dev->mode_config.min_width = 0; in nouveau_display_create() 678 dev->mode_config.min_height = 0; in nouveau_display_create() 680 dev->mode_config.max_width = 2048; in nouveau_display_create() 681 dev->mode_config.max_height = 2048; in nouveau_display_create() 684 dev->mode_config.max_width = 4096; in nouveau_display_create() 685 dev->mode_config.max_height = 4096; in nouveau_display_create() [all …]
|
| /Linux-v6.1/drivers/gpu/drm/hyperv/ |
| D | hyperv_drm_modeset.c | 60 connector->dev->mode_config.max_width, in hyperv_connector_get_modes() 61 connector->dev->mode_config.max_height); in hyperv_connector_get_modes() 215 dev->mode_config.min_width = 0; in hyperv_mode_config_init() 216 dev->mode_config.min_height = 0; in hyperv_mode_config_init() 217 dev->mode_config.max_width = hv->screen_width_max; in hyperv_mode_config_init() 218 dev->mode_config.max_height = hv->screen_height_max; in hyperv_mode_config_init() 220 dev->mode_config.preferred_depth = hv->screen_depth; in hyperv_mode_config_init() 221 dev->mode_config.prefer_shadow = 0; in hyperv_mode_config_init() 223 dev->mode_config.funcs = &hyperv_mode_config_funcs; in hyperv_mode_config_init()
|
| /Linux-v6.1/drivers/gpu/drm/sti/ |
| D | sti_drv.c | 42 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_drm_fps_get() 58 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_drm_fps_set() 79 list_for_each_entry(p, &dev->mode_config.plane_list, head) { in sti_drm_fps_dbg_show() 114 dev->mode_config.min_width = 0; in sti_mode_config_init() 115 dev->mode_config.min_height = 0; in sti_mode_config_init() 122 dev->mode_config.max_width = STI_MAX_FB_WIDTH; in sti_mode_config_init() 123 dev->mode_config.max_height = STI_MAX_FB_HEIGHT; in sti_mode_config_init() 125 dev->mode_config.funcs = &sti_mode_config_funcs; in sti_mode_config_init() 127 dev->mode_config.normalize_zpos = true; in sti_mode_config_init()
|
| /Linux-v6.1/drivers/gpu/drm/tve200/ |
| D | tve200_drv.c | 63 struct drm_mode_config *mode_config; in tve200_modeset_init() local 70 mode_config = &dev->mode_config; in tve200_modeset_init() 71 mode_config->funcs = &mode_config_funcs; in tve200_modeset_init() 72 mode_config->min_width = 352; in tve200_modeset_init() 73 mode_config->max_width = 720; in tve200_modeset_init() 74 mode_config->min_height = 240; in tve200_modeset_init() 75 mode_config->max_height = 576; in tve200_modeset_init()
|
| /Linux-v6.1/drivers/gpu/drm/sun4i/ |
| D | sun4i_framebuffer.c | 47 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()
|
| /Linux-v6.1/drivers/gpu/drm/hisilicon/hibmc/ |
| D | hibmc_drm_drv.c | 103 dev->mode_config.min_width = 0; in hibmc_kms_init() 104 dev->mode_config.min_height = 0; in hibmc_kms_init() 105 dev->mode_config.max_width = 1920; in hibmc_kms_init() 106 dev->mode_config.max_height = 1200; in hibmc_kms_init() 108 dev->mode_config.fb_base = priv->fb_base; in hibmc_kms_init() 109 dev->mode_config.preferred_depth = 32; in hibmc_kms_init() 110 dev->mode_config.prefer_shadow = 1; in hibmc_kms_init() 112 dev->mode_config.funcs = (void *)&hibmc_mode_funcs; in hibmc_kms_init() 284 ret = drm_vblank_init(dev, dev->mode_config.num_crtc); in hibmc_load() 352 drm_fbdev_generic_setup(dev, dev->mode_config.preferred_depth); in hibmc_pci_probe()
|
| /Linux-v6.1/drivers/gpu/drm/shmobile/ |
| D | shmob_drm_kms.c | 141 sdev->ddev->mode_config.min_width = 0; in shmob_drm_modeset_init() 142 sdev->ddev->mode_config.min_height = 0; in shmob_drm_modeset_init() 143 sdev->ddev->mode_config.max_width = 4095; in shmob_drm_modeset_init() 144 sdev->ddev->mode_config.max_height = 4095; in shmob_drm_modeset_init() 145 sdev->ddev->mode_config.funcs = &shmob_drm_mode_config_funcs; in shmob_drm_modeset_init()
|
| /Linux-v6.1/drivers/gpu/drm/i915/display/ |
| D | intel_display.h | 409 list_for_each_entry(crtc, &(dev)->mode_config.crtc_list, head) 413 &(dev)->mode_config.plane_list, \ 418 &(dev)->mode_config.plane_list, \ 425 &(dev)->mode_config.plane_list, \ 431 &(dev)->mode_config.crtc_list, \ 436 &(dev)->mode_config.crtc_list, \ 442 &(dev)->mode_config.encoder_list, \ 447 &(dev)->mode_config.encoder_list, \ 453 list_for_each_entry((intel_encoder), &(dev)->mode_config.encoder_list, base.head) \ 469 list_for_each_entry((intel_encoder), &(dev)->mode_config.encoder_list, base.head) \ [all …]
|
| /Linux-v6.1/drivers/gpu/drm/arm/ |
| D | malidp_mw.c | 40 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()
|
| /Linux-v6.1/drivers/gpu/drm/arm/display/komeda/ |
| D | komeda_wb_connector.c | 94 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()
|
| /Linux-v6.1/drivers/gpu/drm/stm/ |
| D | drv.c | 92 ddev->mode_config.min_width = 0; in drv_load() 93 ddev->mode_config.min_height = 0; in drv_load() 94 ddev->mode_config.max_width = STM_MAX_FB_WIDTH; in drv_load() 95 ddev->mode_config.max_height = STM_MAX_FB_HEIGHT; in drv_load() 96 ddev->mode_config.funcs = &drv_mode_config_funcs; in drv_load() 97 ddev->mode_config.normalize_zpos = true; in drv_load()
|
| /Linux-v6.1/drivers/gpu/drm/mcde/ |
| D | mcde_drv.c | 129 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()
|