Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/dac/
H A Dad3552r.c391 static u16 ad3552r_field_prep(u16 val, u16 mask) in ad3552r_field_prep() function
408 reg |= ad3552r_field_prep(val, mask); in ad3552r_update_reg_field()
819 reg |= ad3552r_field_prep(1, AD3552R_MASK_CH_RANGE_OVERRIDE); in ad3552r_configure_custom_gain()
826 reg |= ad3552r_field_prep(val, AD3552R_MASK_CH_GAIN_SCALING_P); in ad3552r_configure_custom_gain()
834 reg |= ad3552r_field_prep(val, AD3552R_MASK_CH_GAIN_SCALING_N); in ad3552r_configure_custom_gain()
852 reg |= ad3552r_field_prep((offset >> 8), AD3552R_MASK_CH_OFFSET_BIT_8); in ad3552r_configure_custom_gain()
854 reg |= ad3552r_field_prep((s32)val < 0, AD3552R_MASK_CH_OFFSET_POLARITY); in ad3552r_configure_custom_gain()