• Home
  • Raw
  • Download

Lines Matching refs:mode_config

288 	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()
355 obj = idr_find(&dev->mode_config.crtc_idr, id); in _object_find()
363 mutex_unlock(&dev->mode_config.idr_mutex); in _object_find()
415 mutex_lock(&dev->mode_config.fb_lock); in drm_framebuffer_init()
425 dev->mode_config.num_fb++; in drm_framebuffer_init()
426 list_add(&fb->head, &dev->mode_config.fb_list); in drm_framebuffer_init()
428 mutex_unlock(&dev->mode_config.fb_lock); in drm_framebuffer_init()
438 mutex_lock(&dev->mode_config.idr_mutex); in __drm_framebuffer_unregister()
439 idr_remove(&dev->mode_config.crtc_idr, fb->base.id); in __drm_framebuffer_unregister()
440 mutex_unlock(&dev->mode_config.idr_mutex); in __drm_framebuffer_unregister()
455 mutex_lock(&dev->mode_config.fb_lock); in drm_framebuffer_free()
460 mutex_unlock(&dev->mode_config.fb_lock); in drm_framebuffer_free()
471 mutex_lock(&dev->mode_config.idr_mutex); in __drm_framebuffer_lookup()
472 obj = idr_find(&dev->mode_config.crtc_idr, id); in __drm_framebuffer_lookup()
477 mutex_unlock(&dev->mode_config.idr_mutex); in __drm_framebuffer_lookup()
496 mutex_lock(&dev->mode_config.fb_lock); in drm_framebuffer_lookup()
502 mutex_unlock(&dev->mode_config.fb_lock); in drm_framebuffer_lookup()
547 mutex_lock(&dev->mode_config.fb_lock); in drm_framebuffer_unregister_private()
550 mutex_unlock(&dev->mode_config.fb_lock); in drm_framebuffer_unregister_private()
575 mutex_lock(&dev->mode_config.fb_lock); in drm_framebuffer_cleanup()
577 dev->mode_config.num_fb--; in drm_framebuffer_cleanup()
578 mutex_unlock(&dev->mode_config.fb_lock); in drm_framebuffer_cleanup()
622 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in drm_framebuffer_remove()
634 list_for_each_entry(plane, &dev->mode_config.plane_list, head) { in drm_framebuffer_remove()
666 struct drm_mode_config *config = &dev->mode_config; in drm_crtc_init_with_planes()
715 dev->mode_config.num_crtc--; in drm_crtc_cleanup()
731 list_for_each_entry(tmp, &crtc->dev->mode_config.crtc_list, head) { in drm_crtc_index()
863 list_add_tail(&connector->head, &dev->mode_config.connector_list); in drm_connector_init()
864 dev->mode_config.num_connector++; in drm_connector_init()
868 dev->mode_config.edid_property, in drm_connector_init()
872 dev->mode_config.dpms_property, 0); in drm_connector_init()
911 dev->mode_config.num_connector--; in drm_connector_cleanup()
927 list_for_each_entry(tmp, &connector->dev->mode_config.connector_list, head) { in drm_connector_index()
994 list_for_each_entry(connector, &dev->mode_config.connector_list, head) in drm_connector_unplug_all()
1026 list_add_tail(&bridge->head, &dev->mode_config.bridge_list); in drm_bridge_init()
1027 dev->mode_config.num_bridge++; in drm_bridge_init()
1048 dev->mode_config.num_bridge--; in drm_bridge_cleanup()
1090 list_add_tail(&encoder->head, &dev->mode_config.encoder_list); in drm_encoder_init()
1091 dev->mode_config.num_encoder++; in drm_encoder_init()
1118 dev->mode_config.num_encoder--; in drm_encoder_cleanup()
1169 list_add_tail(&plane->head, &dev->mode_config.plane_list); in drm_universal_plane_init()
1170 dev->mode_config.num_total_plane++; in drm_universal_plane_init()
1172 dev->mode_config.num_overlay_plane++; in drm_universal_plane_init()
1175 dev->mode_config.plane_type_property, in drm_universal_plane_init()
1235 dev->mode_config.num_total_plane--; in drm_plane_cleanup()
1237 dev->mode_config.num_overlay_plane--; in drm_plane_cleanup()
1254 list_for_each_entry(tmp, &plane->dev->mode_config.plane_list, head) { in drm_plane_index()
1308 dev->mode_config.edid_property = edid; in drm_mode_create_standard_connector_properties()
1313 dev->mode_config.dpms_property = dpms; in drm_mode_create_standard_connector_properties()
1319 dev->mode_config.path_property = dev_path; in drm_mode_create_standard_connector_properties()
1334 dev->mode_config.plane_type_property = type; in drm_mode_create_standard_plane_properties()
1350 if (dev->mode_config.dvi_i_select_subconnector_property) in drm_mode_create_dvi_i_properties()
1358 dev->mode_config.dvi_i_select_subconnector_property = dvi_i_selector; in drm_mode_create_dvi_i_properties()
1364 dev->mode_config.dvi_i_subconnector_property = dvi_i_subconnector; in drm_mode_create_dvi_i_properties()
1388 if (dev->mode_config.tv_select_subconnector_property) in drm_mode_create_tv_properties()
1398 dev->mode_config.tv_select_subconnector_property = tv_selector; in drm_mode_create_tv_properties()
1405 dev->mode_config.tv_subconnector_property = tv_subconnector; in drm_mode_create_tv_properties()
1410 dev->mode_config.tv_left_margin_property = in drm_mode_create_tv_properties()
1413 dev->mode_config.tv_right_margin_property = in drm_mode_create_tv_properties()
1416 dev->mode_config.tv_top_margin_property = in drm_mode_create_tv_properties()
1419 dev->mode_config.tv_bottom_margin_property = in drm_mode_create_tv_properties()
1422 dev->mode_config.tv_mode_property = in drm_mode_create_tv_properties()
1426 drm_property_add_enum(dev->mode_config.tv_mode_property, i, in drm_mode_create_tv_properties()
1429 dev->mode_config.tv_brightness_property = in drm_mode_create_tv_properties()
1432 dev->mode_config.tv_contrast_property = in drm_mode_create_tv_properties()
1435 dev->mode_config.tv_flicker_reduction_property = in drm_mode_create_tv_properties()
1438 dev->mode_config.tv_overscan_property = in drm_mode_create_tv_properties()
1441 dev->mode_config.tv_saturation_property = in drm_mode_create_tv_properties()
1444 dev->mode_config.tv_hue_property = in drm_mode_create_tv_properties()
1462 if (dev->mode_config.scaling_mode_property) in drm_mode_create_scaling_mode_property()
1470 dev->mode_config.scaling_mode_property = scaling_mode; in drm_mode_create_scaling_mode_property()
1488 if (dev->mode_config.aspect_ratio_property) in drm_mode_create_aspect_ratio_property()
1491 dev->mode_config.aspect_ratio_property = in drm_mode_create_aspect_ratio_property()
1496 if (dev->mode_config.aspect_ratio_property == NULL) in drm_mode_create_aspect_ratio_property()
1514 if (dev->mode_config.dirty_info_property) in drm_mode_create_dirty_info_property()
1522 dev->mode_config.dirty_info_property = dirty_info; in drm_mode_create_dirty_info_property()
1532 total_objects += dev->mode_config.num_crtc; in drm_mode_group_init()
1533 total_objects += dev->mode_config.num_connector; in drm_mode_group_init()
1534 total_objects += dev->mode_config.num_encoder; in drm_mode_group_init()
1535 total_objects += dev->mode_config.num_bridge; in drm_mode_group_init()
1570 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) in drm_mode_group_init_legacy_group()
1573 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) in drm_mode_group_init_legacy_group()
1577 list_for_each_entry(connector, &dev->mode_config.connector_list, head) in drm_mode_group_init_legacy_group()
1581 list_for_each_entry(bridge, &dev->mode_config.bridge_list, head) in drm_mode_group_init_legacy_group()
1742 list_for_each(lh, &dev->mode_config.crtc_list) in drm_mode_getresources()
1745 list_for_each(lh, &dev->mode_config.connector_list) in drm_mode_getresources()
1748 list_for_each(lh, &dev->mode_config.encoder_list) in drm_mode_getresources()
1758 card_res->max_height = dev->mode_config.max_height; in drm_mode_getresources()
1759 card_res->min_height = dev->mode_config.min_height; in drm_mode_getresources()
1760 card_res->max_width = dev->mode_config.max_width; in drm_mode_getresources()
1761 card_res->min_width = dev->mode_config.min_width; in drm_mode_getresources()
1768 list_for_each_entry(crtc, &dev->mode_config.crtc_list, in drm_mode_getresources()
1796 &dev->mode_config.encoder_list, in drm_mode_getresources()
1827 &dev->mode_config.connector_list, in drm_mode_getresources()
1966 mutex_lock(&dev->mode_config.mutex); in drm_mode_getconnector()
1984 dev->mode_config.max_width, in drm_mode_getconnector()
1985 dev->mode_config.max_height); in drm_mode_getconnector()
2000 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in drm_mode_getconnector()
2005 drm_modeset_unlock(&dev->mode_config.connection_mutex); in drm_mode_getconnector()
2067 mutex_unlock(&dev->mode_config.mutex); in drm_mode_getconnector()
2143 config = &dev->mode_config; in drm_mode_getplane_res()
2460 list_for_each_entry(tmp, &crtc->dev->mode_config.crtc_list, head) in drm_mode_set_config_internal()
2471 list_for_each_entry(tmp, &crtc->dev->mode_config.crtc_list, head) { in drm_mode_set_config_internal()
2544 struct drm_mode_config *config = &dev->mode_config; in drm_mode_setcrtc()
2949 struct drm_mode_config *config = &dev->mode_config; in drm_mode_addfb()
2970 fb = dev->mode_config.funcs->fb_create(dev, file_priv, &r); in drm_mode_addfb()
3113 struct drm_mode_config *config = &dev->mode_config; in internal_framebuffer_create()
3137 fb = dev->mode_config.funcs->fb_create(dev, file_priv, r); in internal_framebuffer_create()
3210 mutex_lock(&dev->mode_config.fb_lock); in drm_mode_rmfb()
3225 mutex_unlock(&dev->mode_config.fb_lock); in drm_mode_rmfb()
3233 mutex_unlock(&dev->mode_config.fb_lock); in drm_mode_rmfb()
3410 mutex_lock(&dev->mode_config.fb_lock); in drm_fb_release()
3413 mutex_unlock(&dev->mode_config.fb_lock); in drm_fb_release()
3467 list_add_tail(&property->head, &dev->mode_config.property_list); in drm_property_create()
3959 list_add_tail(&blob->head, &dev->mode_config.property_blob_list); in drm_property_create_blob()
4030 dev->mode_config.path_property, in drm_mode_connector_set_path_property()
4063 ret = drm_object_property_set_value(&connector->base, dev->mode_config.edid_property, 0); in drm_mode_connector_update_edid_property()
4074 dev->mode_config.edid_property, in drm_mode_connector_update_edid_property()
4166 if (property == connector->dev->mode_config.dpms_property) { in drm_mode_connector_set_obj_prop()
4593 if ((page_flip->flags & DRM_MODE_PAGE_FLIP_ASYNC) && !dev->mode_config.async_page_flip) in drm_mode_page_flip_ioctl()
4705 list_for_each_entry(plane, &dev->mode_config.plane_list, head) in drm_mode_config_reset()
4709 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) in drm_mode_config_reset()
4713 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) in drm_mode_config_reset()
4717 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in drm_mode_config_reset()
5085 mutex_init(&dev->mode_config.mutex); in drm_mode_config_init()
5086 drm_modeset_lock_init(&dev->mode_config.connection_mutex); in drm_mode_config_init()
5087 mutex_init(&dev->mode_config.idr_mutex); in drm_mode_config_init()
5088 mutex_init(&dev->mode_config.fb_lock); in drm_mode_config_init()
5089 INIT_LIST_HEAD(&dev->mode_config.fb_list); in drm_mode_config_init()
5090 INIT_LIST_HEAD(&dev->mode_config.crtc_list); in drm_mode_config_init()
5091 INIT_LIST_HEAD(&dev->mode_config.connector_list); in drm_mode_config_init()
5092 INIT_LIST_HEAD(&dev->mode_config.bridge_list); in drm_mode_config_init()
5093 INIT_LIST_HEAD(&dev->mode_config.encoder_list); in drm_mode_config_init()
5094 INIT_LIST_HEAD(&dev->mode_config.property_list); in drm_mode_config_init()
5095 INIT_LIST_HEAD(&dev->mode_config.property_blob_list); in drm_mode_config_init()
5096 INIT_LIST_HEAD(&dev->mode_config.plane_list); in drm_mode_config_init()
5097 idr_init(&dev->mode_config.crtc_idr); in drm_mode_config_init()
5105 dev->mode_config.num_fb = 0; in drm_mode_config_init()
5106 dev->mode_config.num_connector = 0; in drm_mode_config_init()
5107 dev->mode_config.num_crtc = 0; in drm_mode_config_init()
5108 dev->mode_config.num_encoder = 0; in drm_mode_config_init()
5109 dev->mode_config.num_overlay_plane = 0; in drm_mode_config_init()
5110 dev->mode_config.num_total_plane = 0; in drm_mode_config_init()
5138 list_for_each_entry_safe(encoder, enct, &dev->mode_config.encoder_list, in drm_mode_config_cleanup()
5144 &dev->mode_config.bridge_list, head) { in drm_mode_config_cleanup()
5149 &dev->mode_config.connector_list, head) { in drm_mode_config_cleanup()
5153 list_for_each_entry_safe(property, pt, &dev->mode_config.property_list, in drm_mode_config_cleanup()
5158 list_for_each_entry_safe(blob, bt, &dev->mode_config.property_blob_list, in drm_mode_config_cleanup()
5171 WARN_ON(!list_empty(&dev->mode_config.fb_list)); in drm_mode_config_cleanup()
5172 list_for_each_entry_safe(fb, fbt, &dev->mode_config.fb_list, head) { in drm_mode_config_cleanup()
5176 list_for_each_entry_safe(plane, plt, &dev->mode_config.plane_list, in drm_mode_config_cleanup()
5181 list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) { in drm_mode_config_cleanup()
5185 idr_destroy(&dev->mode_config.crtc_idr); in drm_mode_config_cleanup()
5186 drm_modeset_lock_fini(&dev->mode_config.connection_mutex); in drm_mode_config_cleanup()