Lines Matching refs:sample_count
94 int sample_count; member
136 if (ts->sample_count >= TSC_SKIP) { in tsc_poll()
140 } else if (ts->sample_count > 0) { in tsc_poll()
145 for (i = 0, val = 0; i < ts->sample_count; i++) in tsc_poll()
147 x = val / ts->sample_count; in tsc_poll()
149 for (i = 0, val = 0; i < ts->sample_count; i++) in tsc_poll()
151 y = val / ts->sample_count; in tsc_poll()
153 for (i = 0, val = 0; i < ts->sample_count; i++) in tsc_poll()
155 p = val / ts->sample_count; in tsc_poll()
164 ts->sample_count = 0; in tsc_poll()
177 index = ts->sample_count % TSC_SAMPLES; in tsc_irq()
182 if (++ts->sample_count >= TSC_SKIP) { in tsc_irq()
183 index = (ts->sample_count - TSC_TAIL_SKIP - 1) % TSC_SAMPLES; in tsc_irq()
189 if (ts->sample_count == TSC_SKIP) in tsc_irq()