Lines Matching refs:times

200 	 * the times are in the order of preference and greater times are
269 * supported gains and times can provide.
339 * iio_gts_build_avail_time_table - build table of available integration times
342 * Build the table which can represent the available times to be returned
352 int *times, i, j, idx = 0, *int_micro_times;
357 times = kcalloc(gts->num_itime, sizeof(int), GFP_KERNEL);
358 if (!times)
361 /* Sort times from all tables to one and remove duplicates */
365 if (times[idx] < new) {
366 times[idx++] = new;
371 if (times[j] > new) {
372 memmove(&times[j + 1], &times[j],
374 times[j] = new;
380 /* create a list of times formatted as list of IIO_VAL_INT_PLUS_MICRO */
384 * This is just to survive a unlikely corner-case where times in
389 iio_gts_us_to_int_micro(times, int_micro_times, idx);
393 kfree(times);
417 * iio_gts_build_avail_tables - create tables of available scales and int times
421 * integration times. Availability tables are built based on the originally
429 * of supported gains and times can provide.
430 * 3. A sorted table of supported integration times
480 * integration times. Availability tables are built based on the originally
487 * of supported gains and times can provide.
488 * 3. A sorted table of supported integration times
590 * @tim_tbl: table describing supported integration times. Provide
596 * @num_times: number of times in the time table
599 * Initialize the gain-time-scale helper for use. Note, gains, times, selectors
680 * iio_gts_avail_times - helper for listing available integration times
682 * @vals: Returned array of supported times