Lines Matching defs:rdev
35 static void rdev_flag_err(struct regulator_dev *rdev, int err)
37 spin_lock(&rdev->err_lock);
38 rdev->cached_err |= err;
39 spin_unlock(&rdev->err_lock);
42 static void rdev_clear_err(struct regulator_dev *rdev, int err)
44 spin_lock(&rdev->err_lock);
45 rdev->cached_err &= ~err;
46 spin_unlock(&rdev->err_lock);
105 struct regulator_dev *rdev;
108 rdev = stat->rdev;
109 rdev_clear_err(rdev, (~stat->errors) &
130 struct regulator_dev *rdev;
133 rdev = stat->rdev;
134 rdev_clear_err(rdev, stat->possible_errs);
211 struct regulator_dev *rdev;
214 rdev = rid->states[i].rdev;
215 ops = rdev->desc->ops;
221 if (ops->is_enabled(rdev))
238 struct regulator_dev *rdev;
241 rdev = stat->rdev;
243 rdev_dbg(rdev, "Sending regulator notification EVT 0x%lx\n",
246 regulator_notifier_call_chain(rdev, stat->notifs, NULL);
247 rdev_flag_err(rdev, stat->errors);
281 struct regulator_dev **rdev, int common_err,
298 h->rdata.states[i].rdev = *rdev++;
310 h->rdata.states[i].rdev->use_cached_err = true;
332 * @rdev: Array of pointers to regulators associated with this
341 struct regulator_dev **rdev, int rdev_amount)
356 ret = init_rdev_state(dev, h, rdev, common_errs, per_rdev_errs,
411 * notification helperk. Exactly one rdev and exactly one error (in
423 * can indicate only one type of problem for one specific rdev.