Lines Matching refs:ldo
268 int data, ldo = rdev_get_id(dev); in tps6507x_pmic_ldo_is_enabled() local
271 if (ldo < TPS6507X_LDO_1 || ldo > TPS6507X_LDO_2) in tps6507x_pmic_ldo_is_enabled()
274 shift = TPS6507X_MAX_REG_ID - ldo; in tps6507x_pmic_ldo_is_enabled()
313 int ldo = rdev_get_id(dev); in tps6507x_pmic_ldo_enable() local
316 if (ldo < TPS6507X_LDO_1 || ldo > TPS6507X_LDO_2) in tps6507x_pmic_ldo_enable()
319 shift = TPS6507X_MAX_REG_ID - ldo; in tps6507x_pmic_ldo_enable()
326 int ldo = rdev_get_id(dev); in tps6507x_pmic_ldo_disable() local
329 if (ldo < TPS6507X_LDO_1 || ldo > TPS6507X_LDO_2) in tps6507x_pmic_ldo_disable()
332 shift = TPS6507X_MAX_REG_ID - ldo; in tps6507x_pmic_ldo_disable()
434 int data, ldo = rdev_get_id(dev); in tps6507x_pmic_ldo_get_voltage() local
437 if (ldo < TPS6507X_LDO_1 || ldo > TPS6507X_LDO_2) in tps6507x_pmic_ldo_get_voltage()
440 reg = (ldo == TPS6507X_LDO_1 ? in tps6507x_pmic_ldo_get_voltage()
442 mask = (ldo == TPS6507X_LDO_1 ? in tps6507x_pmic_ldo_get_voltage()
452 return tps->info[ldo]->table[data] * 1000; in tps6507x_pmic_ldo_get_voltage()
460 int data, vsel, ldo = rdev_get_id(dev); in tps6507x_pmic_ldo_set_voltage() local
463 if (ldo < TPS6507X_LDO_1 || ldo > TPS6507X_LDO_2) in tps6507x_pmic_ldo_set_voltage()
466 reg = (ldo == TPS6507X_LDO_1 ? in tps6507x_pmic_ldo_set_voltage()
468 mask = (ldo == TPS6507X_LDO_1 ? in tps6507x_pmic_ldo_set_voltage()
473 if (min_uV < tps->info[ldo]->min_uV || min_uV > tps->info[ldo]->max_uV) in tps6507x_pmic_ldo_set_voltage()
475 if (max_uV < tps->info[ldo]->min_uV || max_uV > tps->info[ldo]->max_uV) in tps6507x_pmic_ldo_set_voltage()
478 for (vsel = 0; vsel < tps->info[ldo]->table_len; vsel++) { in tps6507x_pmic_ldo_set_voltage()
479 int mV = tps->info[ldo]->table[vsel]; in tps6507x_pmic_ldo_set_voltage()
487 if (vsel == tps->info[ldo]->table_len) in tps6507x_pmic_ldo_set_voltage()
521 int ldo = rdev_get_id(dev); in tps6507x_pmic_ldo_list_voltage() local
523 if (ldo < TPS6507X_LDO_1 || ldo > TPS6507X_LDO_2) in tps6507x_pmic_ldo_list_voltage()
526 if (selector >= tps->info[ldo]->table_len) in tps6507x_pmic_ldo_list_voltage()
529 return tps->info[ldo]->table[selector] * 1000; in tps6507x_pmic_ldo_list_voltage()