Lines Matching refs:in0_1_cache
143 struct ltc4282_cache in0_1_cache[LTC4282_CHAN_VGPIO]; member
291 if (!st->in0_1_cache[channel].en) in ltc4282_vdd_source_read_in()
303 if (!st->in0_1_cache[channel].en) { in ltc4282_vdd_source_read_hist()
320 if (!st->in0_1_cache[channel].en) in ltc4282_vdd_source_read_lim()
331 if (!st->in0_1_cache[channel].en) { in ltc4282_vdd_source_read_alm()
365 &st->in0_1_cache[channel].in_highest, val); in ltc4282_read_in()
373 &st->in0_1_cache[channel].in_lowest, val); in ltc4282_read_in()
404 &st->in0_1_cache[channel].in_max_raw, val); in ltc4282_read_in()
412 &st->in0_1_cache[channel].in_min_raw, val); in ltc4282_read_in()
415 *val = st->in0_1_cache[channel].en; in ltc4282_read_in()
756 st->in0_1_cache[channel].in_lowest = val; in ltc4282_cache_history()
763 st->in0_1_cache[channel].in_highest = val; in ltc4282_cache_history()
766 &st->in0_1_cache[channel].in_min_raw); in ltc4282_cache_history()
771 &st->in0_1_cache[channel].in_max_raw); in ltc4282_cache_history()
779 st->in0_1_cache[channel].in_lowest, in ltc4282_cache_sync()
780 st->in0_1_cache[channel].in_highest, in ltc4282_cache_sync()
786 st->in0_1_cache[channel].in_min_raw); in ltc4282_cache_sync()
791 st->in0_1_cache[channel].in_max_raw); in ltc4282_cache_sync()
800 if (st->in0_1_cache[channel].en) in ltc4282_vdd_source_write_lim()
818 if (st->in0_1_cache[channel].en) { in ltc4282_vdd_source_reset_hist()
825 st->in0_1_cache[channel].in_lowest = lowest; in ltc4282_vdd_source_reset_hist()
826 st->in0_1_cache[channel].in_highest = 0; in ltc4282_vdd_source_reset_hist()
858 if (st->in0_1_cache[channel].en == !!val) in ltc4282_vdd_source_enable()
871 st->in0_1_cache[channel].en = !!val; in ltc4282_vdd_source_enable()
872 st->in0_1_cache[other_chan].en = !val; in ltc4282_vdd_source_enable()
874 if (st->in0_1_cache[channel].en) { in ltc4282_vdd_source_enable()
907 &st->in0_1_cache[channel].in_max_raw, val); in ltc4282_write_in()
915 &st->in0_1_cache[channel].in_min_raw, val); in ltc4282_write_in()
1222 st->in0_1_cache[LTC4282_CHAN_VSOURCE].en = FIELD_GET(LTC4282_VDD_MONITOR_MASK, in ltc4282_get_defaults()
1224 if (!st->in0_1_cache[LTC4282_CHAN_VSOURCE].en) { in ltc4282_get_defaults()
1225 st->in0_1_cache[LTC4282_CHAN_VDD].en = true; in ltc4282_get_defaults()
1227 &st->in0_1_cache[LTC4282_CHAN_VSOURCE].in_max_raw); in ltc4282_get_defaults()
1231 &st->in0_1_cache[LTC4282_CHAN_VDD].in_max_raw); in ltc4282_get_defaults()
1259 if (st->in0_1_cache[LTC4282_CHAN_VDD].en) { in ltc4282_set_max_limits()
1260 st->in0_1_cache[LTC4282_CHAN_VSOURCE].in_lowest = st->vfs_out; in ltc4282_set_max_limits()
1265 st->in0_1_cache[LTC4282_CHAN_VDD].in_lowest = st->vdd; in ltc4282_set_max_limits()