Home
last modified time | relevance | path

Searched refs:drm_modeset_lock (Results 1 – 25 of 48) sorted by relevance

12

/kernel/linux/linux-5.10/include/drm/
Ddrm_modeset_lock.h29 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);
Ddrm_mode_config.h379 struct drm_modeset_lock connection_mutex;
Ddrm_crtc.h966 struct drm_modeset_lock mutex;
Ddrm_plane.h600 struct drm_modeset_lock mutex;
Ddrm_atomic.h262 struct drm_modeset_lock lock;
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_modeset_lock.c230 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 …]
Ddrm_atomic.c303 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()
Ddrm_probe_helper.c290 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()
Ddrm_plane.c536 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()
Ddrm_encoder.c229 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in drm_mode_getencoder()
Ddrm_damage_helper.c215 ret = drm_modeset_lock(&plane->mutex, state->acquire_ctx); in drm_atomic_helper_dirtyfb()
Ddrm_crtc.c404 drm_modeset_lock(&plane->mutex, NULL); in drm_mode_getcrtc()
418 drm_modeset_lock(&crtc->mutex, NULL); in drm_mode_getcrtc()
DMakefile14 drm_modeset_lock.o drm_atomic.o drm_bridge.o \
Ddrm_color_mgmt.c337 drm_modeset_lock(&crtc->mutex, NULL); in drm_mode_gamma_get_ioctl()
Ddrm_mode_config.c440 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, in drmm_mode_config_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_global_state.c72 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/
Ddpu_kms.h119 struct drm_modeset_lock global_state_lock;
/kernel/linux/linux-5.10/Documentation/gpu/
Ddrm-kms.rst273 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/
Dvbox_irq.c127 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/
Damdgpu_dm_crc.c158 ret = drm_modeset_lock(&crtc->mutex, NULL); in amdgpu_dm_crtc_set_crc_source()
Damdgpu_dm_debugfs.c776 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/
Dmdp5_kms.h43 struct drm_modeset_lock glob_state_lock;
Dmdp5_smp.c340 drm_modeset_lock(&mdp5_kms->glob_state_lock, NULL); in mdp5_smp_dump()
/kernel/linux/linux-5.10/drivers/gpu/drm/tilcdc/
Dtilcdc_crtc.c579 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/
DTODO70 12. drm_modeset_lock in MST should no longer be needed in recent kernels

12