Searched refs:curr_energy (Results 1 – 1 of 1) sorted by relevance
595 s64 curr_energy, inc; in pac1934_reg_snapshot() local648 curr_energy = info->chip_reg_data.energy_sec_acc[cnt]; in pac1934_reg_snapshot()665 curr_energy += inc; in pac1934_reg_snapshot()667 clamp(curr_energy, PAC_193X_MIN_POWER_ACC, PAC_193X_MAX_POWER_ACC); in pac1934_reg_snapshot()669 reg_data->energy_sec_acc[cnt] = curr_energy; in pac1934_reg_snapshot()782 s64 curr_energy; in pac1934_read_raw() local811 curr_energy = info->chip_reg_data.energy_sec_acc[channel]; in pac1934_read_raw()812 *val = (u32)curr_energy; in pac1934_read_raw()813 *val2 = (u32)(curr_energy >> 32); in pac1934_read_raw()