/linux/include/drm/ |
A D | drm_modeset_lock.h | 31 struct drm_modeset_lock; 54 struct drm_modeset_lock *contended; 84 struct drm_modeset_lock { struct 105 void drm_modeset_lock_init(struct drm_modeset_lock *lock); argument 111 static inline void drm_modeset_lock_fini(struct drm_modeset_lock *lock) in drm_modeset_lock_fini() 120 static inline bool drm_modeset_is_locked(struct drm_modeset_lock *lock) in drm_modeset_is_locked() 129 static inline void drm_modeset_lock_assert_held(struct drm_modeset_lock *lock) in drm_modeset_lock_assert_held() 134 int drm_modeset_lock(struct drm_modeset_lock *lock, 136 int __must_check drm_modeset_lock_single_interruptible(struct drm_modeset_lock *lock); 137 void drm_modeset_unlock(struct drm_modeset_lock *lock);
|
A D | drm_mode_config.h | 384 struct drm_modeset_lock connection_mutex;
|
A D | drm_crtc.h | 973 struct drm_modeset_lock mutex;
|
A D | drm_plane.h | 620 struct drm_modeset_lock mutex;
|
/linux/drivers/gpu/drm/ |
A D | drm_modeset_lock.c | 272 struct drm_modeset_lock *lock; in drm_modeset_drop_locks() 275 struct drm_modeset_lock, head); in drm_modeset_drop_locks() 282 static inline int modeset_lock(struct drm_modeset_lock *lock, in modeset_lock() 340 struct drm_modeset_lock *contended = ctx->contended; in drm_modeset_backoff() 358 void drm_modeset_lock_init(struct drm_modeset_lock *lock) in drm_modeset_lock_init() 383 int drm_modeset_lock(struct drm_modeset_lock *lock, in drm_modeset_lock() function 392 EXPORT_SYMBOL(drm_modeset_lock); 413 void drm_modeset_unlock(struct drm_modeset_lock *lock) in drm_modeset_unlock() 453 ret = drm_modeset_lock(&crtc->mutex, ctx); in drm_modeset_lock_all_ctx() 459 ret = drm_modeset_lock(&plane->mutex, ctx); in drm_modeset_lock_all_ctx() [all …]
|
A D | drm_atomic.c | 347 ret = drm_modeset_lock(&crtc->mutex, state->acquire_ctx); in drm_atomic_get_crtc_state() 526 ret = drm_modeset_lock(&plane->mutex, state->acquire_ctx); in drm_atomic_get_plane_state() 823 ret = drm_modeset_lock(&obj->lock, state->acquire_ctx); in drm_atomic_get_private_obj_state() 994 ret = drm_modeset_lock(&config->connection_mutex, state->acquire_ctx); in drm_atomic_get_connector_state() 1212 ret = drm_modeset_lock(&config->connection_mutex, state->acquire_ctx); in drm_atomic_add_affected_connectors() 1479 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, in update_output_state() 1667 drm_modeset_lock(&plane->mutex, NULL); in __drm_state_dump() 1675 drm_modeset_lock(&crtc->mutex, NULL); in __drm_state_dump() 1683 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in __drm_state_dump()
|
A 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()
|
A D | drm_plane.c | 698 drm_modeset_lock(&plane->mutex, NULL); in drm_mode_getplane() 1119 ret = drm_modeset_lock(&crtc->mutex, &ctx); in drm_mode_cursor_common() 1127 ret = drm_modeset_lock(&crtc->cursor->mutex, &ctx); in drm_mode_cursor_common() 1282 ret = drm_modeset_lock(&crtc->mutex, &ctx); in drm_mode_page_flip_ioctl() 1285 ret = drm_modeset_lock(&plane->mutex, &ctx); in drm_mode_page_flip_ioctl()
|
A D | drm_damage_helper.c | 161 ret = drm_modeset_lock(&plane->mutex, state->acquire_ctx); in drm_atomic_helper_dirtyfb()
|
A D | drm_encoder.c | 292 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in drm_mode_getencoder()
|
A D | drm_crtc.c | 485 drm_modeset_lock(&plane->mutex, NULL); in drm_mode_getcrtc() 499 drm_modeset_lock(&crtc->mutex, NULL); in drm_mode_getcrtc()
|
A D | Makefile | 14 drm_modeset_lock.o drm_atomic.o drm_bridge.o \
|
A D | drm_color_mgmt.c | 444 drm_modeset_lock(&crtc->mutex, NULL); in drm_mode_gamma_get_ioctl()
|
/linux/drivers/gpu/drm/i915/display/ |
A 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()
|
/linux/drivers/gpu/drm/nouveau/ |
A D | nouveau_backlight.c | 162 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, &ctx); in nv50_edp_get_brightness() 172 ret = drm_modeset_lock(&crtc->mutex, &ctx); in nv50_edp_get_brightness() 205 ret = drm_modeset_lock(&dev->mode_config.connection_mutex, &ctx); in nv50_edp_set_brightness() 215 ret = drm_modeset_lock(&crtc->mutex, &ctx); in nv50_edp_set_brightness()
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm_debugfs.c | 841 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in output_bpc_show() 850 drm_modeset_lock(&crtc->mutex, NULL); in output_bpc_show() 1427 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in dp_dsc_clock_en_write() 1436 drm_modeset_lock(&crtc->mutex, NULL); in dp_dsc_clock_en_write() 1612 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in dp_dsc_slice_width_write() 1621 drm_modeset_lock(&crtc->mutex, NULL); in dp_dsc_slice_width_write() 1797 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in dp_dsc_slice_height_write() 1806 drm_modeset_lock(&crtc->mutex, NULL); in dp_dsc_slice_height_write() 1975 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in dp_dsc_bits_per_pixel_write() 1984 drm_modeset_lock(&crtc->mutex, NULL); in dp_dsc_bits_per_pixel_write() [all …]
|
A D | amdgpu_dm_crc.c | 243 ret = drm_modeset_lock(&crtc->mutex, NULL); in amdgpu_dm_crtc_set_crc_source()
|
/linux/Documentation/gpu/ |
A D | drm-kms.rst | 275 drm_modeset_lock <drm_modeset_lock>`. As a general rule the locking shouldn't be 453 .. kernel-doc:: drivers/gpu/drm/drm_modeset_lock.c 456 .. kernel-doc:: include/drm/drm_modeset_lock.h 459 .. kernel-doc:: drivers/gpu/drm/drm_modeset_lock.c
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
A D | dpu_kms.h | 102 struct drm_modeset_lock global_state_lock;
|
/linux/drivers/gpu/drm/vboxvideo/ |
A D | vbox_irq.c | 128 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in vbox_update_mode_hints()
|
/linux/drivers/gpu/drm/msm/disp/mdp5/ |
A D | mdp5_kms.h | 43 struct drm_modeset_lock glob_state_lock;
|
A D | mdp5_smp.c | 340 drm_modeset_lock(&mdp5_kms->glob_state_lock, NULL); in mdp5_smp_dump()
|
/linux/drivers/gpu/drm/tilcdc/ |
A D | tilcdc_crtc.c | 577 drm_modeset_lock(&crtc->mutex, NULL); in tilcdc_crtc_recover_work() 889 drm_modeset_lock(&crtc->mutex, NULL); in tilcdc_crtc_update_clk()
|
/linux/drivers/gpu/drm/amd/display/ |
A D | TODO | 70 12. drm_modeset_lock in MST should no longer be needed in recent kernels
|
/linux/drivers/gpu/drm/bridge/cadence/ |
A D | cdns-mhdp8546-hdcp.c | 492 drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); in cdns_mhdp_hdcp_prop_work()
|