• Home
  • Raw
  • Download

Lines Matching refs:regmap

82 	struct regmap *regmap;  member
90 static int act8945a_get_charger_state(struct regmap *regmap, int *val) in act8945a_get_charger_state() argument
95 ret = regmap_read(regmap, ACT8945A_APCH_STATUS, &status); in act8945a_get_charger_state()
99 ret = regmap_read(regmap, ACT8945A_APCH_STATE, &state); in act8945a_get_charger_state()
129 static int act8945a_get_charge_type(struct regmap *regmap, int *val) in act8945a_get_charge_type() argument
134 ret = regmap_read(regmap, ACT8945A_APCH_STATUS, &status); in act8945a_get_charge_type()
138 ret = regmap_read(regmap, ACT8945A_APCH_STATE, &state); in act8945a_get_charge_type()
167 static int act8945a_get_battery_health(struct regmap *regmap, int *val) in act8945a_get_battery_health() argument
172 ret = regmap_read(regmap, ACT8945A_APCH_STATUS, &status); in act8945a_get_battery_health()
176 ret = regmap_read(regmap, ACT8945A_APCH_CFG, &config); in act8945a_get_battery_health()
180 ret = regmap_read(regmap, ACT8945A_APCH_STATE, &state); in act8945a_get_battery_health()
214 struct regmap *regmap, int *val) in act8945a_get_capacity_level() argument
220 ret = regmap_read(regmap, ACT8945A_APCH_STATUS, &status); in act8945a_get_capacity_level()
224 ret = regmap_read(regmap, ACT8945A_APCH_CFG, &config); in act8945a_get_capacity_level()
228 ret = regmap_read(regmap, ACT8945A_APCH_STATE, &state); in act8945a_get_capacity_level()
281 struct regmap *regmap, int *val) in act8945a_get_current_max() argument
288 ret = regmap_read(regmap, ACT8945A_APCH_STATUS, &status); in act8945a_get_current_max()
292 ret = regmap_read(regmap, ACT8945A_APCH_STATE, &state); in act8945a_get_current_max()
351 struct regmap *regmap = charger->regmap; in act8945a_charger_get_property() local
356 ret = act8945a_get_charger_state(regmap, &val->intval); in act8945a_charger_get_property()
359 ret = act8945a_get_charge_type(regmap, &val->intval); in act8945a_charger_get_property()
365 ret = act8945a_get_battery_health(regmap, &val->intval); in act8945a_charger_get_property()
369 regmap, &val->intval); in act8945a_charger_get_property()
373 regmap, &val->intval); in act8945a_charger_get_property()
390 struct regmap *regmap = charger->regmap; in act8945a_enable_interrupt() local
398 ret = regmap_write(regmap, ACT8945A_APCH_CTRL, ctrl); in act8945a_enable_interrupt()
404 ret = regmap_write(regmap, ACT8945A_APCH_STATUS, ctrl); in act8945a_enable_interrupt()
417 ret = regmap_read(charger->regmap, ACT8945A_APCH_STATUS, &status); in act8945a_set_supply_type()
421 ret = regmap_read(charger->regmap, ACT8945A_APCH_STATE, &state); in act8945a_set_supply_type()
465 struct regmap *regmap = charger->regmap; in act8945a_charger_config() local
480 ret = regmap_read(regmap, ACT8945A_APCH_CFG, &tmp); in act8945a_charger_config()
575 return regmap_write(regmap, ACT8945A_APCH_CFG, value); in act8945a_charger_config()
588 charger->regmap = dev_get_regmap(pdev->dev.parent, NULL); in act8945a_charger_probe()
589 if (!charger->regmap) { in act8945a_charger_probe()