Lines Matching refs:vtg
452 u16 vtg;
456 static int menelaus_set_voltage(const struct menelaus_vtg *vtg, int mV,
463 if (vtg == 0)
466 ret = menelaus_read_reg(vtg->vtg_reg);
469 val = ret & ~(((1 << vtg->vtg_bits) - 1) << vtg->vtg_shift);
470 val |= vtg_val << vtg->vtg_shift;
474 vtg->name, mV, vtg->vtg_reg, val);
476 ret = menelaus_write_reg(vtg->vtg_reg, val);
480 ret = menelaus_write_reg(vtg->mode_reg, mode);
490 static int menelaus_get_vtg_value(int vtg, const struct menelaus_vtg_value *tbl,
496 if (tbl->vtg == vtg)
679 const struct menelaus_vtg *vtg;
685 vtg = &vdcdc2_vtg;
687 vtg = &vdcdc3_vtg;
690 return menelaus_set_voltage(vtg, 0, 0, 0);
696 return menelaus_set_voltage(vtg, mV, val, 0x03);