Lines Matching refs:reg_config
126 u32 reg_config; member
139 (ina->reg_config & INA3221_CONFIG_CHx_EN(channel)); in ina3221_is_enabled()
212 wait = ina3221_reg_to_interval_us(ina->reg_config); in ina3221_wait_for_data()
258 regval = INA3221_CONFIG_AVG(ina->reg_config); in ina3221_read_chip()
263 *val = ina3221_reg_to_interval_us(ina->reg_config); in ina3221_read_chip()
293 ina->reg_config); in ina3221_read_in()
349 ina->reg_config); in ina3221_read_curr()
399 tmp = (ina->reg_config & ~INA3221_CONFIG_AVG_MASK) | in ina3221_write_chip()
406 ina->reg_config = tmp; in ina3221_write_chip()
409 tmp = ina3221_interval_ms_to_conv_time(ina->reg_config, val); in ina3221_write_chip()
415 tmp = (ina->reg_config & ~tmp) | in ina3221_write_chip()
423 ina->reg_config = tmp; in ina3221_write_chip()
480 u16 config_old = ina->reg_config & mask; in ina3221_write_enable()
500 tmp = (ina->reg_config & ~mask) | (config & mask); in ina3221_write_enable()
506 ina->reg_config = tmp; in ina3221_write_enable()
862 ina->reg_config = INA3221_CONFIG_DEFAULT; in ina3221_probe()
866 ina->reg_config &= ~INA3221_CONFIG_MODE_CONTINUOUS; in ina3221_probe()
871 ina->reg_config &= ~INA3221_CONFIG_CHx_EN(i); in ina3221_probe()
939 ret = regmap_read(ina->regmap, INA3221_CONFIG, &ina->reg_config); in ina3221_suspend()
976 ret = regmap_write(ina->regmap, INA3221_CONFIG, ina->reg_config); in ina3221_resume()