Lines Matching refs:cc
593 struct cmc_state *cc;
599 cc = &cmc_state[PCPU_GET(cpuid)][bank];
604 new_threshold = update_threshold(mode, valid, cc->last_intr, count,
605 cur_threshold, cc->max_threshold);
608 cc->last_intr = time_uptime;
619 struct amd_et_state *cc;
626 cc = &amd_et_state[PCPU_GET(cpuid)];
629 count = count - (MC_MISC_AMDNB_CNT_MAX - cc->cur_threshold);
631 new_threshold = update_threshold(mode, valid, cc->last_intr, count,
632 cc->cur_threshold, MC_MISC_AMDNB_CNT_MAX);
634 cc->cur_threshold = new_threshold;
636 misc |= (uint64_t)(MC_MISC_AMDNB_CNT_MAX - cc->cur_threshold)
641 cc->last_intr = time_uptime;
882 struct cmc_state *cc;
901 cc = &cmc_state[PCPU_GET(cpuid)][i];
908 cc->max_threshold = ctl & MC_CTL2_THRESHOLD;
926 struct cmc_state *cc;
935 cc = &cmc_state[PCPU_GET(cpuid)][i];
936 cc->last_intr = 0;
944 amd_thresholding_start(struct amd_et_state *cc)
955 misc |= (uint64_t)(MC_MISC_AMDNB_CNT_MAX - cc->cur_threshold)
966 struct amd_et_state *cc;
996 cc = &amd_et_state[PCPU_GET(cpuid)];
997 cc->cur_threshold = 1;
998 amd_thresholding_start(cc);
1007 struct amd_et_state *cc;
1013 cc = &amd_et_state[PCPU_GET(cpuid)];
1014 cc->last_intr = 0;
1015 cc->cur_threshold = 1;
1016 amd_thresholding_start(cc);