Searched refs:integer_part (Results 1 – 2 of 2) sorted by relevance
47 static inline void ssp_convert_to_freq(u32 time, int *integer_part, in ssp_convert_to_freq() argument52 *integer_part = 0; in ssp_convert_to_freq()56 *integer_part = SSP_FACTOR_WITH_MS / time; in ssp_convert_to_freq()57 *fractional = *integer_part % SSP_INVERTED_SCALING_FACTOR; in ssp_convert_to_freq()58 *integer_part = *integer_part / SSP_INVERTED_SCALING_FACTOR; in ssp_convert_to_freq()62 static inline int ssp_convert_to_time(int integer_part, int fractional) in ssp_convert_to_time() argument66 value = (u64)integer_part * SSP_INVERTED_SCALING_FACTOR + fractional; in ssp_convert_to_time()
885 bool integer_part = true, negative = false; in __iio_str_to_fixpoint() local902 if (integer_part) { in __iio_str_to_fixpoint()920 } else if (*str == '.' && integer_part) { in __iio_str_to_fixpoint()921 integer_part = false; in __iio_str_to_fixpoint()