Lines Matching full:times

213 	 * the times are in the order of preference and greater times are  in gain_to_scaletables()
282 * supported gains and times can provide.
352 * iio_gts_build_avail_time_table - build table of available integration times
355 * Build the table which can represent the available times to be returned
365 int *times, i, j, idx = 0, *int_micro_times; in iio_gts_build_avail_time_table() local
370 times = kcalloc(gts->num_itime, sizeof(int), GFP_KERNEL); in iio_gts_build_avail_time_table()
371 if (!times) in iio_gts_build_avail_time_table()
374 /* Sort times from all tables to one and remove duplicates */ in iio_gts_build_avail_time_table()
378 if (times[idx] < new) { in iio_gts_build_avail_time_table()
379 times[idx++] = new; in iio_gts_build_avail_time_table()
384 if (times[j] > new) { in iio_gts_build_avail_time_table()
385 memmove(&times[j + 1], &times[j], in iio_gts_build_avail_time_table()
387 times[j] = new; in iio_gts_build_avail_time_table()
393 /* create a list of times formatted as list of IIO_VAL_INT_PLUS_MICRO */ in iio_gts_build_avail_time_table()
397 * This is just to survive a unlikely corner-case where times in in iio_gts_build_avail_time_table()
402 iio_gts_us_to_int_micro(times, int_micro_times, idx); in iio_gts_build_avail_time_table()
406 kfree(times); in iio_gts_build_avail_time_table()
430 * iio_gts_build_avail_tables - create tables of available scales and int times
434 * integration times. Availability tables are built based on the originally
442 * of supported gains and times can provide.
443 * 3. A sorted table of supported integration times
493 * integration times. Availability tables are built based on the originally
500 * of supported gains and times can provide.
501 * 3. A sorted table of supported integration times
603 * @tim_tbl: table describing supported integration times. Provide
609 * @num_times: number of times in the time table
612 * Initialize the gain-time-scale helper for use. Note, gains, times, selectors
693 * iio_gts_avail_times - helper for listing available integration times
695 * @vals: Returned array of supported times