Home
last modified time | relevance | path

Searched refs:curr_energy (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/iio/adc/
Dpac1934.c595 s64 curr_energy, inc; in pac1934_reg_snapshot() local
648 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() local
811 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()