Lines Matching refs:index

86 	unsigned int index;  member
166 core_stats->index = 1; in mod_stats_create()
204 unsigned int index = 0; in mod_stats_dump() local
239 } else if (time_index < core_stats->index && in mod_stats_dump()
276 unsigned int index = 0; in mod_stats_reset_data() local
289 core_stats->index = 1; in mod_stats_reset_data()
302 unsigned int index = 0; in mod_stats_update_event() local
314 index = core_stats->event_index; in mod_stats_update_event()
320 memcpy(&events[index].event_string, event_string, copy_length); in mod_stats_update_event()
321 events[index].event_string[copy_length - 1] = '\0'; in mod_stats_update_event()
323 events[index].entry_id = core_stats->entry_id; in mod_stats_update_event()
333 unsigned int index = 0; in mod_stats_update_flip() local
340 if (core_stats->index >= core_stats->entries) in mod_stats_update_flip()
344 index = core_stats->index; in mod_stats_update_flip()
346 time[index].flip_timestamp_in_ns = timestamp_in_ns; in mod_stats_update_flip()
347 time[index].render_time_in_us = in mod_stats_update_flip()
348 (timestamp_in_ns - time[index - 1].flip_timestamp_in_ns) / 1000; in mod_stats_update_flip()
350 if (index >= 10) { in mod_stats_update_flip()
352 time[index].avg_render_time_in_us_last_ten += in mod_stats_update_flip()
353 time[index - i].render_time_in_us; in mod_stats_update_flip()
354 time[index].avg_render_time_in_us_last_ten /= 10; in mod_stats_update_flip()
357 if (time[index].num_vsync_between_flips > 0) in mod_stats_update_flip()
358 time[index].vsync_to_flip_time_in_us = in mod_stats_update_flip()
360 time[index].vupdate_timestamp_in_ns) / 1000; in mod_stats_update_flip()
362 time[index].vsync_to_flip_time_in_us = in mod_stats_update_flip()
364 time[index - 1].vupdate_timestamp_in_ns) / 1000; in mod_stats_update_flip()
366 time[index].entry_id = core_stats->entry_id; in mod_stats_update_flip()
367 core_stats->index++; in mod_stats_update_flip()
376 unsigned int index = 0; in mod_stats_update_vupdate() local
385 if (core_stats->index >= core_stats->entries) in mod_stats_update_vupdate()
389 index = core_stats->index; in mod_stats_update_vupdate()
390 num_vsyncs = time[index].num_vsync_between_flips; in mod_stats_update_vupdate()
395 time[index - 1].vupdate_timestamp_in_ns; in mod_stats_update_vupdate()
397 time[index].flip_to_vsync_time_in_us = in mod_stats_update_vupdate()
399 time[index - 1].flip_timestamp_in_ns) / in mod_stats_update_vupdate()
403 time[index].vupdate_timestamp_in_ns; in mod_stats_update_vupdate()
406 time[index].v_sync_time_in_us[num_vsyncs] = in mod_stats_update_vupdate()
410 time[index].vupdate_timestamp_in_ns = timestamp_in_ns; in mod_stats_update_vupdate()
411 time[index].num_vsync_between_flips++; in mod_stats_update_vupdate()
426 unsigned int index = 0; in mod_stats_update_freesync() local
433 if (core_stats->index >= core_stats->entries) in mod_stats_update_freesync()
437 index = core_stats->index; in mod_stats_update_freesync()
439 time[index].v_total_min = v_total_min; in mod_stats_update_freesync()
440 time[index].v_total_max = v_total_max; in mod_stats_update_freesync()
441 time[index].event_triggers = event_triggers; in mod_stats_update_freesync()
442 time[index].min_window = window_min; in mod_stats_update_freesync()
443 time[index].max_window = window_max; in mod_stats_update_freesync()
444 time[index].lfc_mid_point_in_us = lfc_mid_point_in_us; in mod_stats_update_freesync()
445 time[index].num_frames_inserted = inserted_frames; in mod_stats_update_freesync()
446 time[index].inserted_duration_in_us = inserted_duration_in_us; in mod_stats_update_freesync()