Lines Matching refs:li

28 static struct latency_info li;  variable
34 struct latency_info curr_li = li; in oct_ilm_show()
63 static void init_latency_info(struct latency_info *li, int startup) in init_latency_info() argument
74 li->io_interval = (octeon_get_io_clock_rate() * interval) / 1000; in init_latency_info()
75 li->cpu_interval = (octeon_get_clock_rate() * interval) / 1000; in init_latency_info()
77 li->timer_start1 = 0; in init_latency_info()
78 li->timer_start2 = 0; in init_latency_info()
79 li->max_latency = 0; in init_latency_info()
80 li->min_latency = (u64)-1; in init_latency_info()
81 li->latency_sum = 0; in init_latency_info()
82 li->interrupt_cnt = 0; in init_latency_info()
95 li.timer_start1 = read_c0_cvmcount(); in start_timer()
99 li.timer_start2 = read_c0_cvmcount(); in start_timer()
110 init_latency_info(&li, 0); in cvm_oct_ciu_timer_interrupt()
114 last_latency = last_int_cnt - (li.timer_start1 + li.cpu_interval); in cvm_oct_ciu_timer_interrupt()
115 li.interrupt_cnt++; in cvm_oct_ciu_timer_interrupt()
116 li.latency_sum += last_latency; in cvm_oct_ciu_timer_interrupt()
117 if (last_latency > li.max_latency) in cvm_oct_ciu_timer_interrupt()
118 li.max_latency = last_latency; in cvm_oct_ciu_timer_interrupt()
119 if (last_latency < li.min_latency) in cvm_oct_ciu_timer_interrupt()
120 li.min_latency = last_latency; in cvm_oct_ciu_timer_interrupt()
122 start_timer(TIMER_NUM, li.io_interval); in cvm_oct_ciu_timer_interrupt()
151 init_latency_info(&li, 1); in oct_ilm_module_init()
152 start_timer(TIMER_NUM, li.io_interval); in oct_ilm_module_init()