Lines Matching refs:defaults

221 	return rp->priv->defaults;  in get_defaults()
342 struct rapl_defaults *defaults = get_defaults(rd->rp); in set_domain_enable() local
347 if (!ret && defaults->set_floor_freq) in set_domain_enable()
348 defaults->set_floor_freq(rd, mode); in set_domain_enable()
615 struct rapl_defaults *defaults = get_defaults(rd->rp); in rapl_unit_xlate() local
627 return defaults->compute_time_window(rd, value, to_raw); in rapl_unit_xlate()
755 rp->priv->defaults = (void *)defaults_msr; in rapl_config()
759 rp->priv->defaults = (void *)&defaults_tpmi; in rapl_config()
767 if (!rp->priv->defaults || !rp->priv->rpi) in rapl_config()
776 struct rapl_defaults *defaults = get_defaults(rd->rp); in prim_fixups() local
778 if (!defaults->spr_psys_bits) in prim_fixups()
1058 struct rapl_defaults *defaults = get_defaults(rd->rp); in set_floor_freq_atom() local
1061 if (!defaults->floor_freq_reg_addr) { in set_floor_freq_atom()
1068 defaults->floor_freq_reg_addr, in set_floor_freq_atom()
1076 defaults->floor_freq_reg_addr, mdata); in set_floor_freq_atom()
1422 struct rapl_defaults *defaults = get_defaults(rd->rp); in rapl_get_domain_unit() local
1433 if (!defaults->check_unit) { in rapl_get_domain_unit()
1438 ret = defaults->check_unit(rd); in rapl_get_domain_unit()
1442 if (rd->id == RAPL_DOMAIN_DRAM && defaults->dram_domain_energy_unit) in rapl_get_domain_unit()
1443 rd->energy_unit = defaults->dram_domain_energy_unit; in rapl_get_domain_unit()
1444 if (rd->id == RAPL_DOMAIN_PLATFORM && defaults->psys_domain_energy_unit) in rapl_get_domain_unit()
1445 rd->energy_unit = defaults->psys_domain_energy_unit; in rapl_get_domain_unit()