/kernel/linux/linux-5.10/include/drm/ |
D | drm_modeset_lock.h | 29 struct drm_modeset_lock; 52 struct drm_modeset_lock *contended; 76 struct drm_modeset_lock { struct 97 void drm_modeset_lock_init(struct drm_modeset_lock *lock); argument 103 static inline void drm_modeset_lock_fini(struct drm_modeset_lock *lock) in drm_modeset_lock_fini() 112 static inline bool drm_modeset_is_locked(struct drm_modeset_lock *lock) in drm_modeset_is_locked() 121 static inline void drm_modeset_lock_assert_held(struct drm_modeset_lock *lock) in drm_modeset_lock_assert_held() 126 int drm_modeset_lock(struct drm_modeset_lock *lock, 128 int __must_check drm_modeset_lock_single_interruptible(struct drm_modeset_lock *lock); 129 void drm_modeset_unlock(struct drm_modeset_lock *lock);
|
D | drm_mode_config.h | 379 struct drm_modeset_lock connection_mutex;
|
D | drm_crtc.h | 966 struct drm_modeset_lock mutex;
|
D | drm_plane.h | 600 struct drm_modeset_lock mutex;
|
D | drm_atomic.h | 262 struct drm_modeset_lock lock;
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_modeset_lock.c | 230 struct drm_modeset_lock *lock; in drm_modeset_drop_locks() 233 struct drm_modeset_lock, head); in drm_modeset_drop_locks() 240 static inline int modeset_lock(struct drm_modeset_lock *lock, in modeset_lock() 296 struct drm_modeset_lock *contended = ctx->contended; in drm_modeset_backoff() 313 void drm_modeset_lock_init(struct drm_modeset_lock *lock) in drm_modeset_lock_init() 338 int drm_modeset_lock(struct drm_modeset_lock *lock, in drm_modeset_lock() function 347 EXPORT_SYMBOL(drm_modeset_lock); 358 int drm_modeset_lock_single_interruptible(struct drm_modeset_lock *lock) in drm_modeset_lock_single_interruptible() 368 void drm_modeset_unlock(struct drm_modeset_lock *lock) in drm_modeset_unlock() 403 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, ctx); in drm_modeset_lock_all_ctx() [all …]
|
D | drm_atomic.c | 303 ret = drm_modeset_lock(&crtc->mutex, state->acquire_ctx); in drm_atomic_get_crtc_state() 481 ret = drm_modeset_lock(&plane->mutex, state->acquire_ctx); in drm_atomic_get_plane_state() 782 ret = drm_modeset_lock(&obj->lock, state->acquire_ctx); in drm_atomic_get_private_obj_state() 953 ret = drm_modeset_lock(&config->connection_mutex, state->acquire_ctx); in drm_atomic_get_connector_state() 1170 ret = drm_modeset_lock(&config->connection_mutex, state->acquire_ctx); in drm_atomic_add_affected_connectors() 1412 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, in update_output_state() 1583 drm_modeset_lock(&plane->mutex, NULL); in __drm_state_dump() 1591 drm_modeset_lock(&crtc->mutex, NULL); in __drm_state_dump() 1599 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in __drm_state_dump()
|
D | drm_probe_helper.c | 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() 437 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, &ctx); in drm_helper_probe_single_connector_modes()
|
D | drm_plane.c | 536 drm_modeset_lock(&plane->mutex, NULL); in drm_mode_getplane() 961 ret = drm_modeset_lock(&crtc->mutex, &ctx); in drm_mode_cursor_common() 969 ret = drm_modeset_lock(&crtc->cursor->mutex, &ctx); in drm_mode_cursor_common() 1124 ret = drm_modeset_lock(&crtc->mutex, &ctx); in drm_mode_page_flip_ioctl() 1127 ret = drm_modeset_lock(&plane->mutex, &ctx); in drm_mode_page_flip_ioctl()
|
D | drm_encoder.c | 229 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in drm_mode_getencoder()
|
D | drm_damage_helper.c | 215 ret = drm_modeset_lock(&plane->mutex, state->acquire_ctx); in drm_atomic_helper_dirtyfb()
|
D | drm_crtc.c | 404 drm_modeset_lock(&plane->mutex, NULL); in drm_mode_getcrtc() 418 drm_modeset_lock(&crtc->mutex, NULL); in drm_mode_getcrtc()
|
D | Makefile | 14 drm_modeset_lock.o drm_atomic.o drm_bridge.o \
|
D | drm_color_mgmt.c | 337 drm_modeset_lock(&crtc->mutex, NULL); in drm_mode_gamma_get_ioctl()
|
D | drm_mode_config.c | 440 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, in drmm_mode_config_init()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_global_state.c | 72 struct drm_modeset_lock *lock) in modeset_lock_is_held() 74 struct drm_modeset_lock *l; in modeset_lock_is_held() 229 ret = drm_modeset_lock(&crtc->base.mutex, in intel_atomic_lock_global_state()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_kms.h | 119 struct drm_modeset_lock global_state_lock;
|
/kernel/linux/linux-5.10/Documentation/gpu/ |
D | drm-kms.rst | 273 drm_modeset_lock <drm_modeset_lock>`. As a general rule the locking shouldn't be 427 .. kernel-doc:: drivers/gpu/drm/drm_modeset_lock.c 430 .. kernel-doc:: include/drm/drm_modeset_lock.h 433 .. kernel-doc:: drivers/gpu/drm/drm_modeset_lock.c
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vboxvideo/ |
D | vbox_irq.c | 127 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in vbox_update_mode_hints()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_crc.c | 158 ret = drm_modeset_lock(&crtc->mutex, NULL); in amdgpu_dm_crtc_set_crc_source()
|
D | amdgpu_dm_debugfs.c | 776 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in output_bpc_show() 785 drm_modeset_lock(&crtc->mutex, NULL); in output_bpc_show() 1011 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, &ctx); in dp_dsc_fec_support_show()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_kms.h | 43 struct drm_modeset_lock glob_state_lock;
|
D | mdp5_smp.c | 340 drm_modeset_lock(&mdp5_kms->glob_state_lock, NULL); in mdp5_smp_dump()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tilcdc/ |
D | tilcdc_crtc.c | 579 drm_modeset_lock(&crtc->mutex, NULL); in tilcdc_crtc_recover_work() 870 drm_modeset_lock(&crtc->mutex, NULL); in tilcdc_crtc_update_clk()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/ |
D | TODO | 70 12. drm_modeset_lock in MST should no longer be needed in recent kernels
|