Lines Matching defs:rdev
368 static int axp20x_set_ramp_delay(struct regulator_dev *rdev, int ramp)
370 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev);
371 int id = rdev_get_id(rdev);
435 static int axp20x_regulator_enable_regmap(struct regulator_dev *rdev)
437 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev);
438 int id = rdev_get_id(rdev);
443 rdev->constraints && rdev->constraints->soft_start) {
454 if (regulator_is_enabled_regmap(rdev))
457 v_out = regulator_get_voltage_sel_regmap(rdev);
464 ret = regulator_set_voltage_sel_regmap(rdev, 0x00);
471 ret |= regulator_enable_regmap(rdev);
472 ret |= regulator_set_voltage_sel_regmap(rdev, v_out);
482 return regulator_enable_regmap(rdev);
1096 static int axp20x_set_dcdc_workmode(struct regulator_dev *rdev, int id, u32 workmode)
1098 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev);
1154 return regmap_update_bits(rdev->regmap, reg, mask, workmode);
1208 struct regulator_dev *rdev;
1314 rdev = devm_regulator_register(&pdev->dev, desc, &config);
1315 if (IS_ERR(rdev)) {
1319 return PTR_ERR(rdev);
1322 ret = of_property_read_u32(rdev->dev.of_node,
1326 if (axp20x_set_dcdc_workmode(rdev, i, workmode))
1328 rdev->desc->name);
1336 of_property_read_string(rdev->dev.of_node,
1342 of_property_read_string(rdev->dev.of_node,
1351 rdev = devm_regulator_register(&pdev->dev,
1354 if (IS_ERR(rdev)) {
1356 return PTR_ERR(rdev);