Searched refs:regl (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/drivers/regulator/
H A Dda9063-regulator.c169 struct da9063_regulator *regl = rdev_get_drvdata(rdev); da9063_set_current_limit() local
170 const struct da9063_regulator_info *rinfo = regl->info; da9063_set_current_limit()
176 return regmap_field_write(regl->ilimit, n); da9063_set_current_limit()
184 struct da9063_regulator *regl = rdev_get_drvdata(rdev); da9063_get_current_limit() local
185 const struct da9063_regulator_info *rinfo = regl->info; da9063_get_current_limit()
189 ret = regmap_field_read(regl->ilimit, &sel); da9063_get_current_limit()
201 struct da9063_regulator *regl = rdev_get_drvdata(rdev); da9063_buck_set_mode() local
218 return regmap_field_write(regl->mode, val); da9063_buck_set_mode()
229 struct da9063_regulator *regl = rdev_get_drvdata(rdev); da9063_buck_get_mode() local
234 ret = regmap_field_read(regl->mode, &val); da9063_buck_get_mode()
253 ret = regmap_field_read(regl->suspend, &val); da9063_buck_get_mode()
259 field = regl->suspend_sleep; da9063_buck_get_mode()
261 field = regl->sleep; da9063_buck_get_mode()
282 struct da9063_regulator *regl = rdev_get_drvdata(rdev); da9063_ldo_set_mode() local
296 return regmap_field_write(regl->sleep, val); da9063_ldo_set_mode()
301 struct da9063_regulator *regl = rdev_get_drvdata(rdev); da9063_ldo_get_mode() local
306 ret = regmap_field_read(regl->suspend, &val); da9063_ldo_get_mode()
312 field = regl->suspend_sleep; da9063_ldo_get_mode()
314 field = regl->sleep; da9063_ldo_get_mode()
362 struct da9063_regulator *regl = rdev_get_drvdata(rdev); da9063_set_suspend_voltage() local
363 const struct da9063_regulator_info *rinfo = regl->info; da9063_set_suspend_voltage()
372 ret = regmap_update_bits(regl->hw->regmap, rinfo->suspend_vsel_reg, da9063_set_suspend_voltage()
380 struct da9063_regulator *regl = rdev_get_drvdata(rdev); da9063_suspend_enable() local
382 return regmap_field_write(regl->suspend, 1); da9063_suspend_enable()
387 struct da9063_regulator *regl = rdev_get_drvdata(rdev); da9063_suspend_disable() local
389 return regmap_field_write(regl->suspend, 0); da9063_suspend_disable()
394 struct da9063_regulator *regl = rdev_get_drvdata(rdev); da9063_buck_set_suspend_mode() local
411 return regmap_field_write(regl->mode, val); da9063_buck_set_suspend_mode()
416 struct da9063_regulator *regl = rdev_get_drvdata(rdev); da9063_ldo_set_suspend_mode() local
430 return regmap_field_write(regl->suspend_sleep, val); da9063_ldo_set_suspend_mode()
601 struct da9063_regulator *regl; da9063_ldo_lim_event() local
609 regl = &regulators->regulator[i]; da9063_ldo_lim_event()
610 if (regl->info->oc_event.reg != DA9063_REG_STATUS_D) da9063_ldo_lim_event()
613 if (BIT(regl->info->oc_event.lsb) & bits) da9063_ldo_lim_event()
614 regulator_notifier_call_chain(regl->rdev, da9063_ldo_lim_event()
727 struct da9063_regulator *regl; da9063_regulator_probe() local
820 regl = &regulators->regulator[n]; da9063_regulator_probe()
821 regl->hw = da9063; da9063_regulator_probe()
822 regl->info = &model->regulator_info[id]; da9063_regulator_probe()
823 regl->desc = regl->info->desc; da9063_regulator_probe()
824 regl->desc.type = REGULATOR_VOLTAGE; da9063_regulator_probe()
825 regl->desc.owner = THIS_MODULE; da9063_regulator_probe()
827 if (regl->info->mode.reg) da9063_regulator_probe()
828 regl->mode = devm_regmap_field_alloc(&pdev->dev, da9063_regulator_probe()
829 da9063->regmap, regl->info->mode); da9063_regulator_probe()
830 if (regl->info->suspend.reg) da9063_regulator_probe()
831 regl->suspend = devm_regmap_field_alloc(&pdev->dev, da9063_regulator_probe()
832 da9063->regmap, regl->info->suspend); da9063_regulator_probe()
833 if (regl->info->sleep.reg) da9063_regulator_probe()
834 regl->sleep = devm_regmap_field_alloc(&pdev->dev, da9063_regulator_probe()
835 da9063->regmap, regl->info->sleep); da9063_regulator_probe()
836 if (regl->info->suspend_sleep.reg) da9063_regulator_probe()
837 regl->suspend_sleep = devm_regmap_field_alloc(&pdev->dev, da9063_regulator_probe()
838 da9063->regmap, regl->info->suspend_sleep); da9063_regulator_probe()
839 if (regl->info->ilimit.reg) da9063_regulator_probe()
840 regl->ilimit = devm_regmap_field_alloc(&pdev->dev, da9063_regulator_probe()
841 da9063->regmap, regl->info->ilimit); da9063_regulator_probe()
847 config.driver_data = regl; da9063_regulator_probe()
851 regl->rdev = devm_regulator_register(&pdev->dev, &regl->desc, da9063_regulator_probe()
853 if (IS_ERR(regl->rdev)) { da9063_regulator_probe()
856 regl->desc.name); da9063_regulator_probe()
857 return PTR_ERR(regl->rdev); da9063_regulator_probe()
/linux-4.1.27/drivers/power/
H A Drt5033_battery.c42 unsigned int regh, regl; rt5033_battery_get_watt_prop() local
49 regl = RT5033_FUEL_REG_VBAT_L; rt5033_battery_get_watt_prop()
53 regl = RT5033_FUEL_REG_AVG_VOLT_L; rt5033_battery_get_watt_prop()
57 regl = RT5033_FUEL_REG_OCV_L; rt5033_battery_get_watt_prop()
64 regmap_read(battery->regmap, regl, &lsb); rt5033_battery_get_watt_prop()
/linux-4.1.27/drivers/scsi/
H A D3w-sas.c529 u32 regh, regl; twl_poll_response() local
539 regl = readl(TWL_HOBQPL_REG_ADDR(tw_dev)); twl_poll_response()
540 mfa = ((u64)regh << 32) | regl; twl_poll_response()
1129 u32 reg, regl, regh, response, request_id = 0; twl_interrupt() local
1160 regl = readl(TWL_HOBQPL_REG_ADDR(tw_dev)); twl_interrupt()
1161 mfa = ((u64)regh << 32) | regl; twl_interrupt()
/linux-4.1.27/drivers/hwmon/
H A Dlm90.c436 static int lm90_read16(struct i2c_client *client, u8 regh, u8 regl, u16 *value) lm90_read16() argument
455 || (err = lm90_read_reg(client, regl, &l)) lm90_read16()
459 err = lm90_read_reg(client, regl, &l); lm90_read16()

Completed in 180 milliseconds