/linux/drivers/gpu/drm/ |
A D | drm_mode_config.c | 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() 268 dev->mode_config.prop_crtc_y = prop; in drm_mode_create_standard_properties() 286 dev->mode_config.prop_fb_id = prop; in drm_mode_create_standard_properties() 425 dev->mode_config.num_fb = 0; in drmm_mode_config_init() 426 dev->mode_config.num_connector = 0; in drmm_mode_config_init() 427 dev->mode_config.num_crtc = 0; in drmm_mode_config_init() [all …]
|
A D | drm_connector.c | 490 dev->mode_config.num_connector--; in drm_connector_cleanup() 1285 dev->mode_config.edid_property = prop; in drm_connector_create_standard_properties() 1292 dev->mode_config.dpms_property = prop; in drm_connector_create_standard_properties() 1300 dev->mode_config.path_property = prop; in drm_connector_create_standard_properties() 1308 dev->mode_config.tile_property = prop; in drm_connector_create_standard_properties() 1372 struct drm_mode_config *mode_config = &connector->dev->mode_config; in drm_connector_attach_dp_subconnector_property() local 1588 dev->mode_config.tv_mode_property = in drm_mode_create_tv_properties() 1623 dev->mode_config.tv_hue_property = in drm_mode_create_tv_properties() 1969 if (dev->mode_config.suggested_x_property && dev->mode_config.suggested_y_property) in drm_mode_create_suggested_offset_properties() 2492 mutex_lock(&dev->mode_config.mutex); in drm_mode_getconnector() [all …]
|
A D | drm_probe_helper.c | 260 if (dev->mode_config.delayed_event) { in drm_kms_helper_poll_enable() 490 if (dev->mode_config.poll_enabled) in drm_helper_probe_single_connector_modes() 629 if (!dev->mode_config.poll_enabled) in output_poll_execute() 704 mutex_unlock(&dev->mode_config.mutex); in output_poll_execute() 750 if (!dev->mode_config.poll_enabled) in drm_kms_helper_poll_disable() 778 dev->mode_config.poll_enabled = true; in drm_kms_helper_poll_init() 790 if (!dev->mode_config.poll_enabled) in drm_kms_helper_poll_fini() 793 dev->mode_config.poll_enabled = false; in drm_kms_helper_poll_fini() 863 mutex_lock(&dev->mode_config.mutex); in drm_connector_helper_hpd_irq_event() 911 if (!dev->mode_config.poll_enabled) in drm_helper_hpd_irq_event() [all …]
|
A D | drm_lease.c | 224 mutex_lock(&dev->mode_config.idr_mutex); in drm_lease_create() 254 mutex_unlock(&dev->mode_config.idr_mutex); in drm_lease_create() 258 mutex_unlock(&dev->mode_config.idr_mutex); in drm_lease_create() 269 mutex_lock(&dev->mode_config.idr_mutex); in drm_lease_destroy() 287 mutex_unlock(&dev->mode_config.idr_mutex); in drm_lease_destroy() 606 mutex_lock(&dev->mode_config.idr_mutex); in drm_mode_list_lessees_ioctl() 626 mutex_unlock(&dev->mode_config.idr_mutex); in drm_mode_list_lessees_ioctl() 656 mutex_lock(&dev->mode_config.idr_mutex); in drm_mode_get_lease_ioctl() 680 mutex_unlock(&dev->mode_config.idr_mutex); in drm_mode_get_lease_ioctl() 706 mutex_lock(&dev->mode_config.idr_mutex); in drm_mode_revoke_lease_ioctl() [all …]
|
A 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()
|
A D | drm_mode_object.c | 47 mutex_lock(&dev->mode_config.idr_mutex); 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() 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() 143 obj = idr_find(&dev->mode_config.object_idr, id); in __drm_mode_object_find() 157 mutex_unlock(&dev->mode_config.idr_mutex); in __drm_mode_object_find() [all …]
|
/linux/drivers/gpu/drm/nouveau/dispnv04/ |
A 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() 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() 200 list_for_each_entry(nv_crtc, &dev->mode_config.crtc_list, base.head) in nv04_display_destroy() 284 &dev->mode_config.connector_list, head) { in nv04_display_create() 292 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in nv04_display_create() [all …]
|
/linux/drivers/gpu/drm/hyperv/ |
A D | hyperv_drm_modeset.c | 55 connector->dev->mode_config.max_width, in hyperv_connector_get_modes() 56 connector->dev->mode_config.max_height); in hyperv_connector_get_modes() 207 dev->mode_config.min_width = 0; in hyperv_mode_config_init() 208 dev->mode_config.min_height = 0; in hyperv_mode_config_init() 209 dev->mode_config.max_width = hv->screen_width_max; in hyperv_mode_config_init() 210 dev->mode_config.max_height = hv->screen_height_max; in hyperv_mode_config_init() 212 dev->mode_config.preferred_depth = hv->screen_depth; in hyperv_mode_config_init() 213 dev->mode_config.prefer_shadow = 0; in hyperv_mode_config_init() 215 dev->mode_config.funcs = &hyperv_mode_config_funcs; in hyperv_mode_config_init()
|
/linux/drivers/gpu/drm/vkms/ |
A 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/drivers/gpu/drm/fsl-dcu/ |
A 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()
|
/linux/drivers/gpu/drm/exynos/ |
A 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.normalize_zpos = true; in exynos_drm_mode_config_init()
|
/linux/drivers/gpu/drm/sti/ |
A 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()
|
/linux/drivers/gpu/drm/tve200/ |
A 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/drivers/gpu/drm/rockchip/ |
A 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()
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_display.h | 382 list_for_each_entry(crtc, &(dev)->mode_config.crtc_list, head) 386 &(dev)->mode_config.plane_list, \ 391 &(dev)->mode_config.plane_list, \ 398 &(dev)->mode_config.plane_list, \ 404 &(dev)->mode_config.crtc_list, \ 409 &(dev)->mode_config.crtc_list, \ 415 &(dev)->mode_config.encoder_list, \ 420 &(dev)->mode_config.encoder_list, \ 467 (__i) < (__state)->base.dev->mode_config.num_crtc && \ 484 (__i) < (__state)->base.dev->mode_config.num_crtc && \ [all …]
|
/linux/drivers/gpu/drm/nouveau/ |
A D | nouveau_display.c | 490 mutex_lock(&dev->mode_config.mutex); in nouveau_display_hpd_work() 680 dev->mode_config.min_width = 0; in nouveau_display_create() 681 dev->mode_config.min_height = 0; in nouveau_display_create() 683 dev->mode_config.max_width = 2048; in nouveau_display_create() 684 dev->mode_config.max_height = 2048; in nouveau_display_create() 687 dev->mode_config.max_width = 4096; in nouveau_display_create() 688 dev->mode_config.max_height = 4096; in nouveau_display_create() 691 dev->mode_config.max_width = 8192; in nouveau_display_create() 692 dev->mode_config.max_height = 8192; in nouveau_display_create() 699 dev->mode_config.prefer_shadow = 1; in nouveau_display_create() [all …]
|
/linux/drivers/gpu/drm/hisilicon/hibmc/ |
A D | hibmc_drm_drv.c | 102 dev->mode_config.min_width = 0; in hibmc_kms_init() 103 dev->mode_config.min_height = 0; in hibmc_kms_init() 104 dev->mode_config.max_width = 1920; in hibmc_kms_init() 105 dev->mode_config.max_height = 1200; in hibmc_kms_init() 107 dev->mode_config.fb_base = priv->fb_base; in hibmc_kms_init() 108 dev->mode_config.preferred_depth = 32; in hibmc_kms_init() 109 dev->mode_config.prefer_shadow = 1; in hibmc_kms_init() 111 dev->mode_config.funcs = (void *)&hibmc_mode_funcs; in hibmc_kms_init() 283 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()
|
/linux/drivers/gpu/drm/sun4i/ |
A 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()
|
/linux/drivers/gpu/drm/arm/ |
A 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()
|
/linux/drivers/gpu/drm/shmobile/ |
A 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/drivers/gpu/drm/mcde/ |
A 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()
|
/linux/drivers/media/i2c/ |
A 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 …]
|
/linux/drivers/gpu/drm/arm/display/komeda/ |
A D | komeda_wb_connector.c | 93 struct drm_mode_config *mode_config = &dev->mode_config; in komeda_wb_connector_mode_valid() local 96 if ((w < mode_config->min_width) || (w > mode_config->max_width)) in komeda_wb_connector_mode_valid() 99 if ((h < mode_config->min_height) || (h > mode_config->max_height)) in komeda_wb_connector_mode_valid()
|
/linux/drivers/gpu/drm/imx/ |
A D | imx-drm-core.c | 213 drm->mode_config.min_width = 1; in imx_drm_bind() 214 drm->mode_config.min_height = 1; in imx_drm_bind() 215 drm->mode_config.max_width = 4096; in imx_drm_bind() 216 drm->mode_config.max_height = 4096; in imx_drm_bind() 217 drm->mode_config.funcs = &imx_drm_mode_config_funcs; in imx_drm_bind() 218 drm->mode_config.helper_private = &imx_drm_mode_config_helpers; in imx_drm_bind() 219 drm->mode_config.normalize_zpos = true; in imx_drm_bind()
|
/linux/drivers/gpu/drm/pl111/ |
A D | pl111_drv.c | 74 struct drm_mode_config *mode_config; in pl111_modeset_init() local 88 mode_config = &dev->mode_config; in pl111_modeset_init() 89 mode_config->funcs = &mode_config_funcs; in pl111_modeset_init() 90 mode_config->min_width = 1; in pl111_modeset_init() 91 mode_config->max_width = 1024; in pl111_modeset_init() 92 mode_config->min_height = 1; in pl111_modeset_init() 93 mode_config->max_height = 768; in pl111_modeset_init()
|