Lines Matching refs:TCC_NUM_SETTINGS
65 #define TCC_NUM_SETTINGS 8 macro
69 #define TCC_SPEED_PERCENT(x) ((10000 * (x)) / TCC_NUM_SETTINGS)
158 sc->set_count = TCC_NUM_SETTINGS; in p4tcc_attach()
202 sc->lowest_val = TCC_NUM_SETTINGS - sc->set_count + 1; in p4tcc_attach()
247 val = TCC_NUM_SETTINGS; in p4tcc_settings()
272 val = set->freq * TCC_NUM_SETTINGS / 10000; in p4tcc_set()
273 if (val * 10000 != set->freq * TCC_NUM_SETTINGS || in p4tcc_set()
274 val < sc->lowest_val || val > TCC_NUM_SETTINGS) in p4tcc_set()
283 mask = (TCC_NUM_SETTINGS - 1) << TCC_REG_OFFSET; in p4tcc_set()
285 if (val < TCC_NUM_SETTINGS) in p4tcc_set()
325 val = (msr >> TCC_REG_OFFSET) & (TCC_NUM_SETTINGS - 1); in p4tcc_get()
327 val = TCC_NUM_SETTINGS; in p4tcc_get()