Lines Matching refs:adc_sens
204 u8 adc_sens[6]; member
539 data->adc_sens[adc] &= 0xF0; in si1133_set_integration_time()
540 data->adc_sens[adc] |= index; in si1133_set_integration_time()
543 data->adc_sens[adc]); in si1133_set_integration_time()
676 u8 adc_sens) in si1133_chan_set_adcsens() argument
680 err = si1133_param_set(data, SI1133_PARAM_REG_ADCSENS(adc), adc_sens); in si1133_chan_set_adcsens()
684 data->adc_sens[adc] = adc_sens; in si1133_chan_set_adcsens()
693 u32 adc_sens; in si1133_update_adcsens() local
696 &adc_sens); in si1133_update_adcsens()
700 adc_sens &= ~mask; in si1133_update_adcsens()
701 adc_sens |= (value << shift); in si1133_update_adcsens()
703 return si1133_chan_set_adcsens(data, 0, adc_sens); in si1133_update_adcsens()
752 u8 adc_sens = data->adc_sens[0]; in si1133_read_raw() local
783 adc_sens &= SI1133_ADCSENS_HW_GAIN_MASK; in si1133_read_raw()
785 *val = si1133_int_time_table[adc_sens][0]; in si1133_read_raw()
786 *val2 = si1133_int_time_table[adc_sens][1]; in si1133_read_raw()
795 adc_sens &= SI1133_ADCSENS_SCALE_MASK; in si1133_read_raw()
796 adc_sens >>= SI1133_ADCSENS_SCALE_SHIFT; in si1133_read_raw()
798 *val = BIT(adc_sens); in si1133_read_raw()
808 adc_sens >>= SI1133_ADCSENS_HSIG_SHIFT; in si1133_read_raw()
810 *val = adc_sens; in si1133_read_raw()