Lines Matching refs:interval

338 				    int *interval)  in ti_bandgap_read_counter()  argument
348 *interval = time; in ti_bandgap_read_counter()
358 int *interval) in ti_bandgap_read_counter_delay() argument
370 *interval = 0; in ti_bandgap_read_counter_delay()
373 *interval = 1; in ti_bandgap_read_counter_delay()
376 *interval = 10; in ti_bandgap_read_counter_delay()
379 *interval = 100; in ti_bandgap_read_counter_delay()
382 *interval = 250; in ti_bandgap_read_counter_delay()
385 *interval = 500; in ti_bandgap_read_counter_delay()
402 int *interval) in ti_bandgap_read_update_interval() argument
417 ti_bandgap_read_counter(bgp, id, interval); in ti_bandgap_read_update_interval()
421 ti_bandgap_read_counter_delay(bgp, id, interval); in ti_bandgap_read_update_interval()
435 u32 interval) in ti_bandgap_write_counter_delay() argument
439 switch (interval) { in ti_bandgap_write_counter_delay()
459 dev_warn(bgp->dev, "Delay %d ms is not supported\n", interval); in ti_bandgap_write_counter_delay()
477 u32 interval) in ti_bandgap_write_counter() argument
479 interval = interval * bgp->clk_rate / 1000; in ti_bandgap_write_counter()
481 RMW_BITS(bgp, id, bgap_counter, counter_mask, interval); in ti_bandgap_write_counter()
494 int id, u32 interval) in ti_bandgap_write_update_interval() argument
507 ti_bandgap_write_counter(bgp, id, interval); in ti_bandgap_write_update_interval()
511 ret = ti_bandgap_write_counter_delay(bgp, id, interval); in ti_bandgap_write_update_interval()
686 int t1, t2, interval, ret = 0; in ti_bandgap_get_trend() local
724 ret = ti_bandgap_read_update_interval(bgp, id, &interval); in ti_bandgap_get_trend()
729 if (interval == 0) in ti_bandgap_get_trend()
730 interval = 1; in ti_bandgap_get_trend()
732 *trend = (t1 - t2) / interval; in ti_bandgap_get_trend()