Lines Matching refs:lock_data
5979 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()
6019 lock_data.new_contended_rdev = new_contended_rdev; in regulator_summary_lock_all()
6020 lock_data.old_contended_rdev = old_contended_rdev; in regulator_summary_lock_all()
6022 ret = class_for_each_device(®ulator_class, NULL, &lock_data, in regulator_summary_lock_all()
6025 class_for_each_device(®ulator_class, NULL, &lock_data, in regulator_summary_lock_all()