Lines Matching refs:max17055_reg_read

30 static int max17055_reg_read(const struct device *dev, uint8_t reg_addr,  in max17055_reg_read()  function
244 ret = max17055_reg_read(dev, VCELL, &priv->voltage); in max17055_sample_fetch()
252 ret = max17055_reg_read(dev, VFOCV, &priv->ocv); in max17055_sample_fetch()
259 ret = max17055_reg_read(dev, AVG_CURRENT, &priv->avg_current); in max17055_sample_fetch()
266 ret = max17055_reg_read(dev, REP_SOC, &priv->state_of_charge); in max17055_sample_fetch()
273 ret = max17055_reg_read(dev, INT_TEMP, &priv->internal_temp); in max17055_sample_fetch()
280 ret = max17055_reg_read(dev, REP_CAP, &priv->remaining_cap); in max17055_sample_fetch()
287 ret = max17055_reg_read(dev, FULL_CAP_REP, &priv->full_cap); in max17055_sample_fetch()
294 ret = max17055_reg_read(dev, TTE, &priv->time_to_empty); in max17055_sample_fetch()
301 ret = max17055_reg_read(dev, TTF, &priv->time_to_full); in max17055_sample_fetch()
308 ret = max17055_reg_read(dev, CYCLES, &priv->cycle_count); in max17055_sample_fetch()
315 ret = max17055_reg_read(dev, DESIGN_CAP, &priv->design_cap); in max17055_sample_fetch()
369 if (max17055_reg_read(dev, V_EMPTY, &v_empty)) { in max17055_write_config()
390 ret = max17055_reg_read(dev, MODEL_CFG, &model_cfg); in max17055_write_config()
404 if (max17055_reg_read(dev, HIB_CFG, &hib_cfg)) { in max17055_init_config()
441 if (max17055_reg_read(dev, STATUS, &tmp)) { in max17055_gauge_init()
453 ret = max17055_reg_read(dev, FSTAT, &tmp); in max17055_gauge_init()
464 if (max17055_reg_read(dev, STATUS, &tmp)) { in max17055_gauge_init()