Searched refs:lock_data (Results 1 – 4 of 4) sorted by relevance
47 static int drm_lock_take(struct drm_lock_data *lock_data, unsigned int context);59 int drm_lock_take(struct drm_lock_data *lock_data, in drm_lock_take() argument63 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_lock_take()65 spin_lock_bh(&lock_data->spinlock); in drm_lock_take()72 ((lock_data->user_waiters + lock_data->kernel_waiters > 1) ? in drm_lock_take()77 spin_unlock_bh(&lock_data->spinlock); in drm_lock_take()108 static int drm_lock_transfer(struct drm_lock_data *lock_data, in drm_lock_transfer() argument112 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_lock_transfer()114 lock_data->file_priv = NULL; in drm_lock_transfer()123 static int drm_legacy_lock_free(struct drm_lock_data *lock_data, in drm_legacy_lock_free() argument[all …]
477 struct lock_data { struct483 bool (*lock)(struct lock_data *data); argument484 bool (*unlock)(struct lock_data *data); argument491 static bool lock_via_acpi_mutex(struct lock_data *data) in lock_via_acpi_mutex()501 static bool unlock_acpi_mutex(struct lock_data *data) in unlock_acpi_mutex()506 static bool lock_via_global_acpi_lock(struct lock_data *data) in lock_via_global_acpi_lock()512 static bool unlock_global_acpi_lock(struct lock_data *data) in unlock_global_acpi_lock()528 struct lock_data lock_data; member646 state->lock_data.mutex.glk = 0; in setup_lock_data()647 state->lock_data.lock = lock_via_global_acpi_lock; in setup_lock_data()[all …]
5979 struct summary_lock_data *lock_data = data; in regulator_summary_lock_one() local5982 if (rdev != *lock_data->old_contended_rdev) { in regulator_summary_lock_one()5983 ret = regulator_lock_nested(rdev, lock_data->ww_ctx); in regulator_summary_lock_one()5986 *lock_data->new_contended_rdev = rdev; in regulator_summary_lock_one()5990 *lock_data->old_contended_rdev = NULL; in regulator_summary_lock_one()5999 struct summary_lock_data *lock_data = data; in regulator_summary_unlock_one() local6001 if (lock_data) { in regulator_summary_unlock_one()6002 if (rdev == *lock_data->new_contended_rdev) in regulator_summary_unlock_one()6015 struct summary_lock_data lock_data; in regulator_summary_lock_all() local6018 lock_data.ww_ctx = ww_ctx; in regulator_summary_lock_all()[all …]
1545 u32 lock_arg, lock_data; in handle_local_lock() local1555 lock_data = be32_to_cpu(payload[1]); in handle_local_lock()1558 lock_data = 0; in handle_local_lock()1566 reg_write(ohci, OHCI1394_CSRData, lock_data); in handle_local_lock()