Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/iio/common/ssp_sensors/
Dssp_iio_sensor.h47 static inline void ssp_convert_to_freq(u32 time, int *integer_part, in ssp_convert_to_freq() argument
52 *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() argument
66 value = (u64)integer_part * SSP_INVERTED_SCALING_FACTOR + fractional; in ssp_convert_to_time()
/linux-6.1.9/drivers/iio/
Dindustrialio-core.c885 bool integer_part = true, negative = false; in __iio_str_to_fixpoint() local
902 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()