Home
last modified time | relevance | path

Searched refs:lock_data (Results 1 – 4 of 4) sorted by relevance

/drivers/gpu/drm/
Ddrm_lock.c47 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() argument
63 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() argument
112 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 …]
/drivers/hwmon/
Dasus-ec-sensors.c478 struct lock_data { struct
484 bool (*lock)(struct lock_data *data); argument
485 bool (*unlock)(struct lock_data *data); argument
492 static bool lock_via_acpi_mutex(struct lock_data *data) in lock_via_acpi_mutex()
502 static bool unlock_acpi_mutex(struct lock_data *data) in unlock_acpi_mutex()
507 static bool lock_via_global_acpi_lock(struct lock_data *data) in lock_via_global_acpi_lock()
513 static bool unlock_global_acpi_lock(struct lock_data *data) in unlock_global_acpi_lock()
529 struct lock_data lock_data; member
647 state->lock_data.mutex.glk = 0; in setup_lock_data()
648 state->lock_data.lock = lock_via_global_acpi_lock; in setup_lock_data()
[all …]
/drivers/regulator/
Dcore.c6050 struct summary_lock_data *lock_data = data; in regulator_summary_lock_one() local
6053 if (rdev != *lock_data->old_contended_rdev) { in regulator_summary_lock_one()
6054 ret = regulator_lock_nested(rdev, lock_data->ww_ctx); in regulator_summary_lock_one()
6057 *lock_data->new_contended_rdev = rdev; in regulator_summary_lock_one()
6061 *lock_data->old_contended_rdev = NULL; in regulator_summary_lock_one()
6070 struct summary_lock_data *lock_data = data; in regulator_summary_unlock_one() local
6072 if (lock_data) { in regulator_summary_unlock_one()
6073 if (rdev == *lock_data->new_contended_rdev) in regulator_summary_unlock_one()
6086 struct summary_lock_data lock_data; in regulator_summary_lock_all() local
6089 lock_data.ww_ctx = ww_ctx; in regulator_summary_lock_all()
[all …]
/drivers/firewire/
Dohci.c1590 u32 lock_arg, lock_data; in handle_local_lock() local
1600 lock_data = be32_to_cpu(payload[1]); in handle_local_lock()
1603 lock_data = 0; in handle_local_lock()
1611 reg_write(ohci, OHCI1394_CSRData, lock_data); in handle_local_lock()