/drivers/gpu/drm/ |
D | drm_mode_config.c | 122 card_res->max_height = dev->mode_config.max_height; in drm_mode_getresources() 123 card_res->min_height = dev->mode_config.min_height; in drm_mode_getresources() 124 card_res->max_width = dev->mode_config.max_width; in drm_mode_getresources() 125 card_res->min_width = dev->mode_config.min_width; in drm_mode_getresources() 232 dev->mode_config.plane_type_property = prop; in drm_mode_create_standard_properties() 238 dev->mode_config.prop_src_x = prop; in drm_mode_create_standard_properties() 244 dev->mode_config.prop_src_y = prop; in drm_mode_create_standard_properties() 250 dev->mode_config.prop_src_w = prop; in drm_mode_create_standard_properties() 256 dev->mode_config.prop_src_h = prop; in drm_mode_create_standard_properties() 262 dev->mode_config.prop_crtc_x = prop; in drm_mode_create_standard_properties() [all …]
|
D | drm_connector.c | 189 container_of(work, struct drm_device, mode_config.connector_free_work); in drm_connector_free_work_fn() 190 struct drm_mode_config *config = &dev->mode_config; in drm_connector_free_work_fn() 222 struct drm_mode_config *config = &dev->mode_config; in drm_connector_init() 369 struct drm_mode_config *config = &connector->dev->mode_config; in drm_connector_attach_edid_property() 467 ida_simple_remove(&dev->mode_config.connector_ida, in drm_connector_cleanup() 474 spin_lock_irq(&dev->mode_config.connector_list_lock); in drm_connector_cleanup() 476 dev->mode_config.num_connector--; in drm_connector_cleanup() 477 spin_unlock_irq(&dev->mode_config.connector_list_lock); in drm_connector_cleanup() 677 struct drm_mode_config *config = &conn->dev->mode_config; in __drm_connector_put_safe() 699 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() 429 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_helper_probe_single_connector_modes() 437 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, &ctx); in drm_helper_probe_single_connector_modes() 489 dev->mode_config.delayed_event = true; in drm_helper_probe_single_connector_modes() 490 if (dev->mode_config.poll_enabled) in drm_helper_probe_single_connector_modes() 492 &dev->mode_config.output_poll_work, in drm_helper_probe_single_connector_modes() [all …]
|
D | drm_lease.c | 52 lockdep_assert_held(&master->dev->mode_config.idr_mutex); in _drm_find_lessee() 69 lockdep_assert_held(&master->dev->mode_config.idr_mutex); in _drm_lease_held_master() 90 lockdep_assert_held(&master->dev->mode_config.idr_mutex); in _drm_has_leased() 136 mutex_lock(&master->dev->mode_config.idr_mutex); in drm_lease_held() 138 mutex_unlock(&master->dev->mode_config.idr_mutex); in drm_lease_held() 165 mutex_lock(&master->dev->mode_config.idr_mutex); in drm_lease_filter_crtcs() 166 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in drm_lease_filter_crtcs() 179 mutex_unlock(&master->dev->mode_config.idr_mutex); in drm_lease_filter_crtcs() 215 mutex_lock(&dev->mode_config.idr_mutex); in drm_lease_create() 219 if (!idr_find(&dev->mode_config.object_idr, object)) in drm_lease_create() [all …]
|
D | drm_modeset_helper.c | 56 spin_lock_irq(&dev->mode_config.connector_list_lock); in drm_helper_move_panel_connectors_to_head() 58 &dev->mode_config.connector_list, head) { in drm_helper_move_panel_connectors_to_head() 65 list_splice(&panel_list, &dev->mode_config.connector_list); in drm_helper_move_panel_connectors_to_head() 66 spin_unlock_irq(&dev->mode_config.connector_list_lock); in drm_helper_move_panel_connectors_to_head() 211 dev->mode_config.suspend_state = state; in drm_mode_config_helper_suspend() 238 if (WARN_ON(!dev->mode_config.suspend_state)) in drm_mode_config_helper_resume() 241 ret = drm_atomic_helper_resume(dev, dev->mode_config.suspend_state); in drm_mode_config_helper_resume() 244 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 …]
|
D | drm_encoder.c | 117 if (WARN_ON(dev->mode_config.num_encoder >= 32)) in drm_encoder_init() 144 list_add_tail(&encoder->head, &dev->mode_config.encoder_list); in drm_encoder_init() 145 encoder->index = dev->mode_config.num_encoder++; in drm_encoder_init() 178 dev->mode_config.num_encoder--; in drm_encoder_cleanup() 229 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in drm_mode_getencoder() 235 drm_modeset_unlock(&dev->mode_config.connection_mutex); in drm_mode_getencoder()
|
/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 …]
|
/drivers/gpu/drm/bochs/ |
D | bochs_kms.c | 147 bochs->dev->mode_config.max_width = 8192; in bochs_kms_init() 148 bochs->dev->mode_config.max_height = 8192; in bochs_kms_init() 150 bochs->dev->mode_config.fb_base = bochs->fb_base; in bochs_kms_init() 151 bochs->dev->mode_config.preferred_depth = 24; in bochs_kms_init() 152 bochs->dev->mode_config.prefer_shadow = 0; in bochs_kms_init() 153 bochs->dev->mode_config.prefer_shadow_fbdev = 1; in bochs_kms_init() 154 bochs->dev->mode_config.fbdev_use_iomem = true; in bochs_kms_init() 155 bochs->dev->mode_config.quirk_addfb_prefer_host_byte_order = true; in bochs_kms_init() 157 bochs->dev->mode_config.funcs = &bochs_mode_funcs; in bochs_kms_init()
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_fb.c | 166 dev->mode_config.min_width = 0; in exynos_drm_mode_config_init() 167 dev->mode_config.min_height = 0; in exynos_drm_mode_config_init() 174 dev->mode_config.max_width = 4096; in exynos_drm_mode_config_init() 175 dev->mode_config.max_height = 4096; in exynos_drm_mode_config_init() 177 dev->mode_config.funcs = &exynos_drm_mode_config_funcs; in exynos_drm_mode_config_init() 178 dev->mode_config.helper_private = &exynos_drm_mode_config_helpers; in exynos_drm_mode_config_init() 180 dev->mode_config.allow_fb_modifiers = true; in exynos_drm_mode_config_init() 182 dev->mode_config.normalize_zpos = true; in exynos_drm_mode_config_init()
|
/drivers/gpu/drm/vkms/ |
D | vkms_drv.c | 129 dev->mode_config.funcs = &vkms_mode_funcs; in vkms_modeset_init() 130 dev->mode_config.min_width = XRES_MIN; in vkms_modeset_init() 131 dev->mode_config.min_height = YRES_MIN; in vkms_modeset_init() 132 dev->mode_config.max_width = XRES_MAX; in vkms_modeset_init() 133 dev->mode_config.max_height = YRES_MAX; in vkms_modeset_init() 134 dev->mode_config.cursor_width = 512; in vkms_modeset_init() 135 dev->mode_config.cursor_height = 512; in vkms_modeset_init() 136 dev->mode_config.preferred_depth = 24; in vkms_modeset_init() 137 dev->mode_config.helper_private = &vkms_mode_config_helpers; in vkms_modeset_init()
|
/drivers/gpu/drm/fsl-dcu/ |
D | fsl_dcu_drm_kms.c | 28 fsl_dev->drm->mode_config.min_width = 0; in fsl_dcu_drm_modeset_init() 29 fsl_dev->drm->mode_config.min_height = 0; in fsl_dcu_drm_modeset_init() 30 fsl_dev->drm->mode_config.max_width = 2031; in fsl_dcu_drm_modeset_init() 31 fsl_dev->drm->mode_config.max_height = 2047; in fsl_dcu_drm_modeset_init() 32 fsl_dev->drm->mode_config.funcs = &fsl_dcu_drm_mode_config_funcs; in fsl_dcu_drm_modeset_init()
|
/drivers/gpu/drm/sti/ |
D | sti_drv.c | 43 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_drm_fps_get() 59 list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) { in sti_drm_fps_set() 80 list_for_each_entry(p, &dev->mode_config.plane_list, head) { in sti_drm_fps_dbg_show() 115 dev->mode_config.min_width = 0; in sti_mode_config_init() 116 dev->mode_config.min_height = 0; in sti_mode_config_init() 123 dev->mode_config.max_width = STI_MAX_FB_WIDTH; in sti_mode_config_init() 124 dev->mode_config.max_height = STI_MAX_FB_HEIGHT; in sti_mode_config_init() 126 dev->mode_config.funcs = &sti_mode_config_funcs; in sti_mode_config_init() 128 dev->mode_config.normalize_zpos = true; in sti_mode_config_init()
|
/drivers/gpu/drm/tve200/ |
D | tve200_drv.c | 64 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()
|
/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_fb.c | 124 dev->mode_config.min_width = 0; in rockchip_drm_mode_config_init() 125 dev->mode_config.min_height = 0; in rockchip_drm_mode_config_init() 132 dev->mode_config.max_width = 4096; in rockchip_drm_mode_config_init() 133 dev->mode_config.max_height = 4096; in rockchip_drm_mode_config_init() 135 dev->mode_config.funcs = &rockchip_drm_mode_config_funcs; in rockchip_drm_mode_config_init() 136 dev->mode_config.helper_private = &rockchip_mode_config_helpers; in rockchip_drm_mode_config_init()
|
/drivers/gpu/drm/imx/ |
D | imx-drm-core.c | 207 drm->mode_config.min_width = 1; in imx_drm_bind() 208 drm->mode_config.min_height = 1; in imx_drm_bind() 209 drm->mode_config.max_width = 4096; in imx_drm_bind() 210 drm->mode_config.max_height = 4096; in imx_drm_bind() 211 drm->mode_config.funcs = &imx_drm_mode_config_funcs; in imx_drm_bind() 212 drm->mode_config.helper_private = &imx_drm_mode_config_helpers; in imx_drm_bind() 213 drm->mode_config.allow_fb_modifiers = true; in imx_drm_bind() 214 drm->mode_config.normalize_zpos = true; in imx_drm_bind()
|
/drivers/gpu/drm/hisilicon/hibmc/ |
D | hibmc_drm_drv.c | 88 priv->dev->mode_config.min_width = 0; in hibmc_kms_init() 89 priv->dev->mode_config.min_height = 0; in hibmc_kms_init() 90 priv->dev->mode_config.max_width = 1920; in hibmc_kms_init() 91 priv->dev->mode_config.max_height = 1200; in hibmc_kms_init() 93 priv->dev->mode_config.fb_base = priv->fb_base; in hibmc_kms_init() 94 priv->dev->mode_config.preferred_depth = 32; in hibmc_kms_init() 95 priv->dev->mode_config.prefer_shadow = 1; in hibmc_kms_init() 97 priv->dev->mode_config.funcs = (void *)&hibmc_mode_funcs; in hibmc_kms_init() 286 ret = drm_vblank_init(dev, dev->mode_config.num_crtc); in hibmc_load() 351 drm_fbdev_generic_setup(dev, dev->mode_config.preferred_depth); in hibmc_pci_probe()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_display.c | 493 mutex_lock(&dev->mode_config.mutex); in nouveau_display_hpd_work() 517 mutex_unlock(&dev->mode_config.mutex); in nouveau_display_hpd_work() 680 dev->mode_config.funcs = &nouveau_mode_config_funcs; in nouveau_display_create() 681 dev->mode_config.fb_base = device->func->resource_addr(device, 1); in nouveau_display_create() 683 dev->mode_config.min_width = 0; in nouveau_display_create() 684 dev->mode_config.min_height = 0; in nouveau_display_create() 686 dev->mode_config.max_width = 2048; in nouveau_display_create() 687 dev->mode_config.max_height = 2048; in nouveau_display_create() 690 dev->mode_config.max_width = 4096; in nouveau_display_create() 691 dev->mode_config.max_height = 4096; in nouveau_display_create() [all …]
|
/drivers/gpu/drm/zte/ |
D | zx_drm_drv.c | 60 drm->mode_config.min_width = 16; in zx_drm_bind() 61 drm->mode_config.min_height = 16; in zx_drm_bind() 62 drm->mode_config.max_width = 4096; in zx_drm_bind() 63 drm->mode_config.max_height = 4096; in zx_drm_bind() 64 drm->mode_config.funcs = &zx_drm_mode_config_funcs; in zx_drm_bind() 72 ret = drm_vblank_init(drm, drm->mode_config.num_crtc); in zx_drm_bind()
|
/drivers/gpu/drm/sun4i/ |
D | sun4i_framebuffer.c | 46 drm->mode_config.max_width = 8192; in sun4i_framebuffer_init() 47 drm->mode_config.max_height = 8192; in sun4i_framebuffer_init() 49 drm->mode_config.funcs = &sun4i_de_mode_config_funcs; in sun4i_framebuffer_init() 50 drm->mode_config.helper_private = &sun4i_de_mode_config_helpers; in sun4i_framebuffer_init()
|
/drivers/gpu/drm/arm/ |
D | malidp_mw.c | 38 return drm_add_modes_noedid(connector, dev->mode_config.max_width, in malidp_mw_connector_get_modes() 39 dev->mode_config.max_height); in malidp_mw_connector_get_modes() 47 struct drm_mode_config *mode_config = &dev->mode_config; in malidp_mw_connector_mode_valid() local 50 if ((w < mode_config->min_width) || (w > mode_config->max_width)) in malidp_mw_connector_mode_valid() 53 if ((h < mode_config->min_height) || (h > mode_config->max_height)) in malidp_mw_connector_mode_valid()
|
/drivers/gpu/drm/i915/display/ |
D | intel_display.h | 360 list_for_each_entry(crtc, &(dev)->mode_config.crtc_list, head) 364 &(dev)->mode_config.plane_list, \ 369 &(dev)->mode_config.plane_list, \ 376 &(dev)->mode_config.plane_list, \ 382 &(dev)->mode_config.crtc_list, \ 387 &(dev)->mode_config.crtc_list, \ 393 &(dev)->mode_config.encoder_list, \ 398 &(dev)->mode_config.encoder_list, \ 411 list_for_each_entry((intel_encoder), &(dev)->mode_config.encoder_list, base.head) \ 415 list_for_each_entry((intel_connector), &(dev)->mode_config.connector_list, base.head) \ [all …]
|
/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()
|
/drivers/gpu/drm/mcde/ |
D | mcde_drv.c | 129 struct drm_mode_config *mode_config; in mcde_modeset_init() local 138 mode_config = &drm->mode_config; in mcde_modeset_init() 139 mode_config->funcs = &mcde_mode_config_funcs; in mcde_modeset_init() 140 mode_config->helper_private = &mcde_mode_config_helpers; in mcde_modeset_init() 142 mode_config->min_width = 1; in mcde_modeset_init() 143 mode_config->max_width = 1920; in mcde_modeset_init() 144 mode_config->min_height = 1; in mcde_modeset_init() 145 mode_config->max_height = 1080; in mcde_modeset_init()
|
/drivers/media/i2c/ |
D | adv7343.c | 230 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() 414 pdata->mode_config.sleep_mode = in adv7343_get_pdata() 417 pdata->mode_config.pll_control = in adv7343_get_pdata() [all …]
|