Lines Matching refs:ra
696 struct reg_action ra; in rapl_read_data_raw() local
702 ra.reg = rd->regs[rp->id]; in rapl_read_data_raw()
703 if (!ra.reg) in rapl_read_data_raw()
719 ra.mask = rp->mask; in rapl_read_data_raw()
721 if (rd->rp->priv->read_raw(cpu, &ra)) { in rapl_read_data_raw()
722 pr_debug("failed to read reg 0x%llx on cpu %d\n", ra.reg, cpu); in rapl_read_data_raw()
726 value = ra.value >> rp->shift; in rapl_read_data_raw()
744 struct reg_action ra; in rapl_write_data_raw() local
752 memset(&ra, 0, sizeof(ra)); in rapl_write_data_raw()
754 ra.reg = rd->regs[rp->id]; in rapl_write_data_raw()
755 ra.mask = rp->mask; in rapl_write_data_raw()
756 ra.value = bits; in rapl_write_data_raw()
758 ret = rd->rp->priv->write_raw(cpu, &ra); in rapl_write_data_raw()
776 struct reg_action ra; in rapl_check_unit_core() local
779 ra.reg = rp->priv->reg_unit; in rapl_check_unit_core()
780 ra.mask = ~0; in rapl_check_unit_core()
781 if (rp->priv->read_raw(cpu, &ra)) { in rapl_check_unit_core()
787 value = (ra.value & ENERGY_UNIT_MASK) >> ENERGY_UNIT_OFFSET; in rapl_check_unit_core()
790 value = (ra.value & POWER_UNIT_MASK) >> POWER_UNIT_OFFSET; in rapl_check_unit_core()
793 value = (ra.value & TIME_UNIT_MASK) >> TIME_UNIT_OFFSET; in rapl_check_unit_core()
804 struct reg_action ra; in rapl_check_unit_atom() local
807 ra.reg = rp->priv->reg_unit; in rapl_check_unit_atom()
808 ra.mask = ~0; in rapl_check_unit_atom()
809 if (rp->priv->read_raw(cpu, &ra)) { in rapl_check_unit_atom()
815 value = (ra.value & ENERGY_UNIT_MASK) >> ENERGY_UNIT_OFFSET; in rapl_check_unit_atom()
818 value = (ra.value & POWER_UNIT_MASK) >> POWER_UNIT_OFFSET; in rapl_check_unit_atom()
821 value = (ra.value & TIME_UNIT_MASK) >> TIME_UNIT_OFFSET; in rapl_check_unit_atom()
1170 struct reg_action ra; in rapl_check_domain() local
1178 ra.reg = rp->priv->regs[domain][RAPL_DOMAIN_REG_STATUS]; in rapl_check_domain()
1188 ra.mask = ENERGY_STATUS_MASK; in rapl_check_domain()
1189 if (rp->priv->read_raw(cpu, &ra) || !ra.value) in rapl_check_domain()