Lines Matching refs:stat

449 static void tegra20_mc_stat_gather(struct tegra20_mc_stat *stat)  in tegra20_mc_stat_gather()  argument
452 const struct tegra_mc *mc = stat->mc; in tegra20_mc_stat_gather()
454 control_0 = tegra20_mc_stat_gather_control(&stat->gather0); in tegra20_mc_stat_gather()
455 control_1 = tegra20_mc_stat_gather_control(&stat->gather1); in tegra20_mc_stat_gather()
467 fsleep(stat->sample_time_usec); in tegra20_mc_stat_gather()
475 stat->gather0.result = DIV_ROUND_UP(count0, clocks); in tegra20_mc_stat_gather()
476 stat->gather1.result = DIV_ROUND_UP(count1, clocks); in tegra20_mc_stat_gather()
488 struct tegra20_mc_stat stat = {}; in tegra20_mc_stat_events() local
490 stat.gather0.client = client0 ? client0->id : 0; in tegra20_mc_stat_events()
491 stat.gather0.pri_filter = pri_filter; in tegra20_mc_stat_events()
492 stat.gather0.client_enb = !!client0; in tegra20_mc_stat_events()
493 stat.gather0.pri_event = pri_event; in tegra20_mc_stat_events()
494 stat.gather0.event = event; in tegra20_mc_stat_events()
496 stat.gather1.client = client1 ? client1->id : 0; in tegra20_mc_stat_events()
497 stat.gather1.pri_filter = pri_filter; in tegra20_mc_stat_events()
498 stat.gather1.client_enb = !!client1; in tegra20_mc_stat_events()
499 stat.gather1.pri_event = pri_event; in tegra20_mc_stat_events()
500 stat.gather1.event = event; in tegra20_mc_stat_events()
502 stat.sample_time_usec = MC_STAT_SAMPLE_TIME_USEC; in tegra20_mc_stat_events()
503 stat.mc = mc; in tegra20_mc_stat_events()
505 tegra20_mc_stat_gather(&stat); in tegra20_mc_stat_events()
507 *result0 = stat.gather0.result; in tegra20_mc_stat_events()
508 *result1 = stat.gather1.result; in tegra20_mc_stat_events()