Lines Matching full:time

2 /* gain-time-scale conversion helpers for IIO light sensors
32 * struct iio_itime_sel_mul - integration time description
37 * integration time and amplification as well as corresponding selector
42 * 200 mS => 4 and 400 mS => 8 assuming the impact of integration time would be
44 * the data collection time caused value 2X etc.
46 * @time_us: Integration time in microseconds. Time values must be positive,
48 * @sel: Selector (usually register value) used to indicate this time
50 * @mul: Multiplication to the values caused by this time.
86 iio_gts_find_itime_by_time(struct iio_gts *gts, int time) in iio_gts_find_itime_by_time() argument
94 if (gts->itime_table[i].time_us == time) in iio_gts_find_itime_by_time()
117 * iio_gts_find_int_time_by_sel - find integration time matching a selector
118 * @gts: Gain time scale descriptor
119 * @sel: selector for which matching integration time is searched for
121 * Return: integration time matching given selector or -EINVAL if
122 * integration time was not found.
136 * iio_gts_find_sel_by_int_time - find selector matching integration time
137 * @gts: Gain time scale descriptor
138 * @time: Integration time for which matching selector is searched for
140 * Return: a selector matching given integration time or -EINVAL if
143 static inline int iio_gts_find_sel_by_int_time(struct iio_gts *gts, int time) in iio_gts_find_sel_by_int_time() argument
147 itime = iio_gts_find_itime_by_time(gts, time); in iio_gts_find_sel_by_int_time()
155 * iio_gts_valid_time - check if given integration time is valid
156 * @gts: Gain time scale descriptor
157 * @time_us: Integration time to check
159 * Return: True if given time is supported by device. False if not.
170 * @gts: Gain time scale descriptor
173 * Return: True if given time is supported by device. False if not.
184 int iio_gts_find_sel_by_int_time(struct iio_gts *gts, int time);
191 int iio_gts_get_scale(struct iio_gts *gts, int gain, int time, int *scale_int,
203 int iio_gts_avail_scales_for_time(struct iio_gts *gts, int time,