Lines Matching refs:mV
449 static int menelaus_set_voltage(const struct menelaus_vtg *vtg, int mV, in menelaus_set_voltage() argument
465 vtg->name, mV, vtg->vtg_reg, val); in menelaus_set_voltage()
574 int menelaus_set_vmem(unsigned int mV) in menelaus_set_vmem() argument
578 if (mV == 0) in menelaus_set_vmem()
581 val = menelaus_get_vtg_value(mV, vmem_values, ARRAY_SIZE(vmem_values)); in menelaus_set_vmem()
584 return menelaus_set_voltage(&vmem_vtg, mV, val, 0x02); in menelaus_set_vmem()
603 int menelaus_set_vio(unsigned int mV) in menelaus_set_vio() argument
607 if (mV == 0) in menelaus_set_vio()
610 val = menelaus_get_vtg_value(mV, vio_values, ARRAY_SIZE(vio_values)); in menelaus_set_vio()
613 return menelaus_set_voltage(&vio_vtg, mV, val, 0x02); in menelaus_set_vio()
644 int menelaus_set_vdcdc(int dcdc, unsigned int mV) in menelaus_set_vdcdc() argument
656 if (mV == 0) in menelaus_set_vdcdc()
659 val = menelaus_get_vtg_value(mV, vdcdc_values, in menelaus_set_vdcdc()
663 return menelaus_set_voltage(vtg, mV, val, 0x03); in menelaus_set_vdcdc()
681 int menelaus_set_vmmc(unsigned int mV) in menelaus_set_vmmc() argument
685 if (mV == 0) in menelaus_set_vmmc()
688 val = menelaus_get_vtg_value(mV, vmmc_values, ARRAY_SIZE(vmmc_values)); in menelaus_set_vmmc()
691 return menelaus_set_voltage(&vmmc_vtg, mV, val, 0x02); in menelaus_set_vmmc()
711 int menelaus_set_vaux(unsigned int mV) in menelaus_set_vaux() argument
715 if (mV == 0) in menelaus_set_vaux()
718 val = menelaus_get_vtg_value(mV, vaux_values, ARRAY_SIZE(vaux_values)); in menelaus_set_vaux()
721 return menelaus_set_voltage(&vaux_vtg, mV, val, 0x02); in menelaus_set_vaux()