Lines Matching defs:vsel
335 int vsel;
337 for (vsel = 0; vsel < info->table_len; vsel++) {
338 int mV = info->table[vsel];
350 VREG_VOLTAGE, vsel);
359 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER,
362 if (vsel < 0)
363 return vsel;
365 vsel &= info->table_len - 1;
366 return LDO_MV(info->table[vsel]) * 1000;
395 int vsel;
401 * Use the below formula to calculate vsel
402 * mV = 1000mv + 100mv * (vsel - 1)
404 vsel = (min_uV/1000 - 1000)/100 + 1;
405 return twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE, vsel);
412 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER,
415 if (vsel < 0)
416 return vsel;
419 * Use the below formula to calculate vsel
420 * mV = 1000mv + 100mv * (vsel - 1)
422 return (1000 + (100 * (vsel - 1))) * 1000;