Lines Matching refs:lock_data
5867 struct summary_lock_data *lock_data = data; in regulator_summary_lock_one() local
5870 if (rdev != *lock_data->old_contended_rdev) { in regulator_summary_lock_one()
5871 ret = regulator_lock_nested(rdev, lock_data->ww_ctx); in regulator_summary_lock_one()
5874 *lock_data->new_contended_rdev = rdev; in regulator_summary_lock_one()
5878 *lock_data->old_contended_rdev = NULL; in regulator_summary_lock_one()
5887 struct summary_lock_data *lock_data = data; in regulator_summary_unlock_one() local
5889 if (lock_data) { in regulator_summary_unlock_one()
5890 if (rdev == *lock_data->new_contended_rdev) in regulator_summary_unlock_one()
5903 struct summary_lock_data lock_data; in regulator_summary_lock_all() local
5906 lock_data.ww_ctx = ww_ctx; in regulator_summary_lock_all()
5907 lock_data.new_contended_rdev = new_contended_rdev; in regulator_summary_lock_all()
5908 lock_data.old_contended_rdev = old_contended_rdev; in regulator_summary_lock_all()
5910 ret = class_for_each_device(®ulator_class, NULL, &lock_data, in regulator_summary_lock_all()
5913 class_for_each_device(®ulator_class, NULL, &lock_data, in regulator_summary_lock_all()