Lines Matching refs:rdev
111 static int wm8350_isink_set_current(struct regulator_dev *rdev, int min_uA, in wm8350_isink_set_current() argument
114 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_set_current()
115 int isink = rdev_get_id(rdev); in wm8350_isink_set_current()
143 static int wm8350_isink_get_current(struct regulator_dev *rdev) in wm8350_isink_get_current() argument
145 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_get_current()
146 int isink = rdev_get_id(rdev); in wm8350_isink_get_current()
166 static int wm8350_isink_enable(struct regulator_dev *rdev) in wm8350_isink_enable() argument
168 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_enable()
169 int isink = rdev_get_id(rdev); in wm8350_isink_enable()
210 static int wm8350_isink_disable(struct regulator_dev *rdev) in wm8350_isink_disable() argument
212 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_disable()
213 int isink = rdev_get_id(rdev); in wm8350_isink_disable()
250 static int wm8350_isink_is_enabled(struct regulator_dev *rdev) in wm8350_isink_is_enabled() argument
252 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_is_enabled()
253 int isink = rdev_get_id(rdev); in wm8350_isink_is_enabled()
266 static int wm8350_isink_enable_time(struct regulator_dev *rdev) in wm8350_isink_enable_time() argument
268 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_enable_time()
269 int isink = rdev_get_id(rdev); in wm8350_isink_enable_time()
335 static int wm8350_dcdc_set_suspend_voltage(struct regulator_dev *rdev, int uV) in wm8350_dcdc_set_suspend_voltage() argument
337 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc_set_suspend_voltage()
338 int sel, volt_reg, dcdc = rdev_get_id(rdev); in wm8350_dcdc_set_suspend_voltage()
362 sel = regulator_map_voltage_linear(rdev, uV, uV); in wm8350_dcdc_set_suspend_voltage()
372 static int wm8350_dcdc_set_suspend_enable(struct regulator_dev *rdev) in wm8350_dcdc_set_suspend_enable() argument
374 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc_set_suspend_enable()
375 int dcdc = rdev_get_id(rdev); in wm8350_dcdc_set_suspend_enable()
412 static int wm8350_dcdc_set_suspend_disable(struct regulator_dev *rdev) in wm8350_dcdc_set_suspend_disable() argument
414 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc_set_suspend_disable()
415 int dcdc = rdev_get_id(rdev); in wm8350_dcdc_set_suspend_disable()
452 static int wm8350_dcdc25_set_suspend_enable(struct regulator_dev *rdev) in wm8350_dcdc25_set_suspend_enable() argument
454 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc25_set_suspend_enable()
455 int dcdc = rdev_get_id(rdev); in wm8350_dcdc25_set_suspend_enable()
477 static int wm8350_dcdc25_set_suspend_disable(struct regulator_dev *rdev) in wm8350_dcdc25_set_suspend_disable() argument
479 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc25_set_suspend_disable()
480 int dcdc = rdev_get_id(rdev); in wm8350_dcdc25_set_suspend_disable()
502 static int wm8350_dcdc_set_suspend_mode(struct regulator_dev *rdev, in wm8350_dcdc_set_suspend_mode() argument
505 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc_set_suspend_mode()
506 int dcdc = rdev_get_id(rdev); in wm8350_dcdc_set_suspend_mode()
550 static int wm8350_ldo_set_suspend_voltage(struct regulator_dev *rdev, int uV) in wm8350_ldo_set_suspend_voltage() argument
552 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_ldo_set_suspend_voltage()
553 int sel, volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_voltage()
575 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm8350_ldo_set_suspend_voltage()
585 static int wm8350_ldo_set_suspend_enable(struct regulator_dev *rdev) in wm8350_ldo_set_suspend_enable() argument
587 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_ldo_set_suspend_enable()
588 int volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_enable()
614 static int wm8350_ldo_set_suspend_disable(struct regulator_dev *rdev) in wm8350_ldo_set_suspend_disable() argument
616 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_ldo_set_suspend_disable()
617 int volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_disable()
793 static int wm8350_dcdc_set_mode(struct regulator_dev *rdev, unsigned int mode) in wm8350_dcdc_set_mode() argument
795 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc_set_mode()
796 int dcdc = rdev_get_id(rdev); in wm8350_dcdc_set_mode()
836 static unsigned int wm8350_dcdc_get_mode(struct regulator_dev *rdev) in wm8350_dcdc_get_mode() argument
838 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc_get_mode()
839 int dcdc = rdev_get_id(rdev); in wm8350_dcdc_get_mode()
882 static unsigned int wm8350_ldo_get_mode(struct regulator_dev *rdev) in wm8350_ldo_get_mode() argument
923 static unsigned int wm8350_dcdc_get_optimum_mode(struct regulator_dev *rdev, in wm8350_dcdc_get_optimum_mode() argument
927 int dcdc = rdev_get_id(rdev), mode; in wm8350_dcdc_get_optimum_mode()
1154 struct regulator_dev *rdev = (struct regulator_dev *)data; in pmic_uv_handler() local
1156 mutex_lock(&rdev->mutex); in pmic_uv_handler()
1158 regulator_notifier_call_chain(rdev, in pmic_uv_handler()
1162 regulator_notifier_call_chain(rdev, in pmic_uv_handler()
1165 mutex_unlock(&rdev->mutex); in pmic_uv_handler()
1174 struct regulator_dev *rdev; in wm8350_regulator_probe() local
1207 rdev = devm_regulator_register(&pdev->dev, &wm8350_reg[pdev->id], in wm8350_regulator_probe()
1209 if (IS_ERR(rdev)) { in wm8350_regulator_probe()
1212 return PTR_ERR(rdev); in wm8350_regulator_probe()
1217 pmic_uv_handler, 0, "UV", rdev); in wm8350_regulator_probe()
1229 struct regulator_dev *rdev = platform_get_drvdata(pdev); in wm8350_regulator_remove() local
1230 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_regulator_remove()
1232 wm8350_free_irq(wm8350, wm8350_reg[pdev->id].irq, rdev); in wm8350_regulator_remove()