Searched refs:offset_val (Results 1 – 2 of 2) sorted by relevance
184 long offset_val; in xlnx_rtc_read_offset() local188 offset_val = calibval & RTC_TICK_MASK; in xlnx_rtc_read_offset()189 offset_val = offset_val - RTC_CALIB_DEF; in xlnx_rtc_read_offset()190 offset_val = offset_val * tick_mult; in xlnx_rtc_read_offset()194 offset_val += ((calibval & RTC_FR_MASK) >> RTC_FR_DATSHIFT) in xlnx_rtc_read_offset()196 *offset = offset_val; in xlnx_rtc_read_offset()
633 int offset_type, offset_val, offset_val2; in iio_convert_raw_to_processed_unlocked() local636 offset_type = iio_channel_read(chan, &offset_val, &offset_val2, in iio_convert_raw_to_processed_unlocked()650 offset_val /= offset_val2; in iio_convert_raw_to_processed_unlocked()653 offset_val >>= offset_val2; in iio_convert_raw_to_processed_unlocked()659 raw64 += offset_val; in iio_convert_raw_to_processed_unlocked()