Lines Matching full:times
200 * the times are in the order of preference and greater times are in gain_to_scaletables()
269 * supported gains and times can provide.
341 * iio_gts_build_avail_time_table - build table of available integration times
344 * Build the table which can represent the available times to be returned
354 int *times, i, j, idx = 0, *int_micro_times; in iio_gts_build_avail_time_table() local
359 times = kcalloc(gts->num_itime, sizeof(int), GFP_KERNEL); in iio_gts_build_avail_time_table()
360 if (!times) in iio_gts_build_avail_time_table()
363 /* Sort times from all tables to one and remove duplicates */ in iio_gts_build_avail_time_table()
367 if (idx == 0 || times[idx - 1] < new) { in iio_gts_build_avail_time_table()
368 times[idx++] = new; in iio_gts_build_avail_time_table()
373 if (times[j] == new) in iio_gts_build_avail_time_table()
375 if (times[j] > new) { in iio_gts_build_avail_time_table()
376 memmove(×[j + 1], ×[j], in iio_gts_build_avail_time_table()
378 times[j] = new; in iio_gts_build_avail_time_table()
385 /* create a list of times formatted as list of IIO_VAL_INT_PLUS_MICRO */ in iio_gts_build_avail_time_table()
389 * This is just to survive a unlikely corner-case where times in in iio_gts_build_avail_time_table()
394 iio_gts_us_to_int_micro(times, int_micro_times, idx); in iio_gts_build_avail_time_table()
398 kfree(times); in iio_gts_build_avail_time_table()
422 * iio_gts_build_avail_tables - create tables of available scales and int times
426 * integration times. Availability tables are built based on the originally
434 * of supported gains and times can provide.
435 * 3. A sorted table of supported integration times
485 * integration times. Availability tables are built based on the originally
492 * of supported gains and times can provide.
493 * 3. A sorted table of supported integration times
595 * @tim_tbl: table describing supported integration times. Provide
601 * @num_times: number of times in the time table
604 * Initialize the gain-time-scale helper for use. Note, gains, times, selectors
685 * iio_gts_avail_times - helper for listing available integration times
687 * @vals: Returned array of supported times