Home
last modified time | relevance | path

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

/linux-6.1.9/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 …]
/linux-6.1.9/drivers/hwmon/
Dasus-ec-sensors.c477 struct lock_data { struct
483 bool (*lock)(struct lock_data *data); argument
484 bool (*unlock)(struct lock_data *data); argument
491 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; member
646 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 …]
/linux-6.1.9/drivers/regulator/
Dcore.c5979 struct summary_lock_data *lock_data = data; in regulator_summary_lock_one() local
5982 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() local
6001 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() local
6018 lock_data.ww_ctx = ww_ctx; in regulator_summary_lock_all()
[all …]
/linux-6.1.9/drivers/firewire/
Dohci.c1545 u32 lock_arg, lock_data; in handle_local_lock() local
1555 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()