Lines Matching refs:opp

490 static u32 optimize_vcore_voltage(struct volts const *v, int opp)  in optimize_vcore_voltage()  argument
494 if (!v->value[opp]) in optimize_vcore_voltage()
496 if (!v->efuse.reg[opp]) in optimize_vcore_voltage()
497 return v->value[opp]; in optimize_vcore_voltage()
501 val = readw(v->efuse.reg[opp]); in optimize_vcore_voltage()
504 val = readl(v->efuse.reg[opp]); in optimize_vcore_voltage()
508 v->efuse.reg[opp], v->efuse.reg_bits); in optimize_vcore_voltage()
509 return v->value[opp]; in optimize_vcore_voltage()
514 v->efuse.reg[opp], v->efuse.reg_bits, v->value[opp]); in optimize_vcore_voltage()
515 return v->value[opp]; in optimize_vcore_voltage()
519 __func__, v->efuse.reg[opp], v->efuse.reg_bits, v->value[opp], in optimize_vcore_voltage()
544 int i, opp, j, ol; in scale_vcores() local
549 opp = get_voltrail_opp(i); in scale_vcores()
550 debug("%d -> ", pv->value[opp]); in scale_vcores()
552 if (pv->value[opp]) { in scale_vcores()
554 pv->value[opp] = optimize_vcore_voltage(pv, opp); in scale_vcores()
571 if (pv->value[opp] > px->value[ol]) in scale_vcores()
572 px->value[ol] = pv->value[opp]; in scale_vcores()
574 pv->value[opp] = 0; in scale_vcores()
580 debug("%d\n", pv->value[opp]); in scale_vcores()
584 opp = get_voltrail_opp(VOLT_CORE); in scale_vcores()
585 debug("cor: %d\n", vcores->core.value[opp]); in scale_vcores()
586 do_scale_vcore(vcores->core.addr, vcores->core.value[opp], in scale_vcores()
598 opp = get_voltrail_opp(VOLT_MPU); in scale_vcores()
599 debug("mpu: %d\n", vcores->mpu.value[opp]); in scale_vcores()
600 do_scale_vcore(vcores->mpu.addr, vcores->mpu.value[opp], in scale_vcores()
603 abb_setup(vcores->mpu.efuse.reg[opp], in scale_vcores()
611 opp = get_voltrail_opp(VOLT_MM); in scale_vcores()
612 debug("mm: %d\n", vcores->mm.value[opp]); in scale_vcores()
613 do_scale_vcore(vcores->mm.addr, vcores->mm.value[opp], in scale_vcores()
616 abb_setup(vcores->mm.efuse.reg[opp], in scale_vcores()
624 opp = get_voltrail_opp(VOLT_GPU); in scale_vcores()
625 debug("gpu: %d\n", vcores->gpu.value[opp]); in scale_vcores()
626 do_scale_vcore(vcores->gpu.addr, vcores->gpu.value[opp], in scale_vcores()
629 abb_setup(vcores->gpu.efuse.reg[opp], in scale_vcores()
637 opp = get_voltrail_opp(VOLT_EVE); in scale_vcores()
638 debug("eve: %d\n", vcores->eve.value[opp]); in scale_vcores()
639 do_scale_vcore(vcores->eve.addr, vcores->eve.value[opp], in scale_vcores()
642 abb_setup(vcores->eve.efuse.reg[opp], in scale_vcores()
650 opp = get_voltrail_opp(VOLT_IVA); in scale_vcores()
651 debug("iva: %d\n", vcores->iva.value[opp]); in scale_vcores()
652 do_scale_vcore(vcores->iva.addr, vcores->iva.value[opp], in scale_vcores()
655 abb_setup(vcores->iva.efuse.reg[opp], in scale_vcores()