• Home
  • Raw
  • Download

Lines Matching refs:opp

487 static u32 optimize_vcore_voltage(struct volts const *v, int opp)  in optimize_vcore_voltage()  argument
491 if (!v->value[opp]) in optimize_vcore_voltage()
493 if (!v->efuse.reg[opp]) in optimize_vcore_voltage()
494 return v->value[opp]; in optimize_vcore_voltage()
498 val = readw(v->efuse.reg[opp]); in optimize_vcore_voltage()
501 val = readl(v->efuse.reg[opp]); in optimize_vcore_voltage()
505 v->efuse.reg[opp], v->efuse.reg_bits); in optimize_vcore_voltage()
506 return v->value[opp]; in optimize_vcore_voltage()
511 v->efuse.reg[opp], v->efuse.reg_bits, v->value[opp]); in optimize_vcore_voltage()
512 return v->value[opp]; in optimize_vcore_voltage()
516 __func__, v->efuse.reg[opp], v->efuse.reg_bits, v->value[opp], in optimize_vcore_voltage()
541 int i, opp, j, ol; in scale_vcores() local
546 opp = get_voltrail_opp(i); in scale_vcores()
547 debug("%d -> ", pv->value[opp]); in scale_vcores()
549 if (pv->value[opp]) { in scale_vcores()
551 pv->value[opp] = optimize_vcore_voltage(pv, opp); in scale_vcores()
568 if (pv->value[opp] > px->value[ol]) in scale_vcores()
569 px->value[ol] = pv->value[opp]; in scale_vcores()
571 pv->value[opp] = 0; in scale_vcores()
577 debug("%d\n", pv->value[opp]); in scale_vcores()
581 opp = get_voltrail_opp(VOLT_CORE); in scale_vcores()
582 debug("cor: %d\n", vcores->core.value[opp]); in scale_vcores()
583 do_scale_vcore(vcores->core.addr, vcores->core.value[opp], in scale_vcores()
595 opp = get_voltrail_opp(VOLT_MPU); in scale_vcores()
596 debug("mpu: %d\n", vcores->mpu.value[opp]); in scale_vcores()
597 do_scale_vcore(vcores->mpu.addr, vcores->mpu.value[opp], in scale_vcores()
600 abb_setup(vcores->mpu.efuse.reg[opp], in scale_vcores()
608 opp = get_voltrail_opp(VOLT_MM); in scale_vcores()
609 debug("mm: %d\n", vcores->mm.value[opp]); in scale_vcores()
610 do_scale_vcore(vcores->mm.addr, vcores->mm.value[opp], in scale_vcores()
613 abb_setup(vcores->mm.efuse.reg[opp], in scale_vcores()
621 opp = get_voltrail_opp(VOLT_GPU); in scale_vcores()
622 debug("gpu: %d\n", vcores->gpu.value[opp]); in scale_vcores()
623 do_scale_vcore(vcores->gpu.addr, vcores->gpu.value[opp], in scale_vcores()
626 abb_setup(vcores->gpu.efuse.reg[opp], in scale_vcores()
634 opp = get_voltrail_opp(VOLT_EVE); in scale_vcores()
635 debug("eve: %d\n", vcores->eve.value[opp]); in scale_vcores()
636 do_scale_vcore(vcores->eve.addr, vcores->eve.value[opp], in scale_vcores()
639 abb_setup(vcores->eve.efuse.reg[opp], in scale_vcores()
647 opp = get_voltrail_opp(VOLT_IVA); in scale_vcores()
648 debug("iva: %d\n", vcores->iva.value[opp]); in scale_vcores()
649 do_scale_vcore(vcores->iva.addr, vcores->iva.value[opp], in scale_vcores()
652 abb_setup(vcores->iva.efuse.reg[opp], in scale_vcores()