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