Searched refs:mc13xxx_regulators (Results 1 - 4 of 4) sorted by relevance
/linux-4.1.27/drivers/regulator/ |
H A D | mc13xxx-regulator-core.c | 34 struct mc13xxx_regulator *mc13xxx_regulators = priv->mc13xxx_regulators; mc13xxx_regulator_enable() local 39 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, mc13xxx_regulator_enable() 40 mc13xxx_regulators[id].enable_bit, mc13xxx_regulator_enable() 41 mc13xxx_regulators[id].enable_bit); mc13xxx_regulator_enable() 47 struct mc13xxx_regulator *mc13xxx_regulators = priv->mc13xxx_regulators; mc13xxx_regulator_disable() local 52 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, mc13xxx_regulator_disable() 53 mc13xxx_regulators[id].enable_bit, 0); mc13xxx_regulator_disable() 59 struct mc13xxx_regulator *mc13xxx_regulators = priv->mc13xxx_regulators; mc13xxx_regulator_is_enabled() local 63 ret = mc13xxx_reg_read(priv->mc13xxx, mc13xxx_regulators[id].reg, &val); mc13xxx_regulator_is_enabled() 67 return (val & mc13xxx_regulators[id].enable_bit) != 0; mc13xxx_regulator_is_enabled() 74 struct mc13xxx_regulator *mc13xxx_regulators = priv->mc13xxx_regulators; mc13xxx_regulator_set_voltage_sel() local 77 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].vsel_reg, mc13xxx_regulator_set_voltage_sel() 78 mc13xxx_regulators[id].vsel_mask, mc13xxx_regulator_set_voltage_sel() 79 selector << mc13xxx_regulators[id].vsel_shift); mc13xxx_regulator_set_voltage_sel() 85 struct mc13xxx_regulator *mc13xxx_regulators = priv->mc13xxx_regulators; mc13xxx_regulator_get_voltage() local 92 mc13xxx_regulators[id].vsel_reg, &val); mc13xxx_regulator_get_voltage() 96 val = (val & mc13xxx_regulators[id].vsel_mask) mc13xxx_regulator_get_voltage() 97 >> mc13xxx_regulators[id].vsel_shift; mc13xxx_regulator_get_voltage() 101 BUG_ON(val >= mc13xxx_regulators[id].desc.n_voltages); mc13xxx_regulator_get_voltage()
|
H A D | mc13783-regulator.c | 332 struct mc13xxx_regulator *mc13xxx_regulators = priv->mc13xxx_regulators; mc13783_gpo_regulator_enable() local 334 u32 en_val = mc13xxx_regulators[id].enable_bit; mc13783_gpo_regulator_enable() 343 return mc13783_powermisc_rmw(priv, mc13xxx_regulators[id].enable_bit, mc13783_gpo_regulator_enable() 350 struct mc13xxx_regulator *mc13xxx_regulators = priv->mc13xxx_regulators; mc13783_gpo_regulator_disable() local 359 dis_val = mc13xxx_regulators[id].enable_bit; mc13783_gpo_regulator_disable() 361 return mc13783_powermisc_rmw(priv, mc13xxx_regulators[id].enable_bit, mc13783_gpo_regulator_disable() 368 struct mc13xxx_regulator *mc13xxx_regulators = priv->mc13xxx_regulators; mc13783_gpo_regulator_is_enabled() local 373 ret = mc13xxx_reg_read(priv->mc13xxx, mc13xxx_regulators[id].reg, &val); mc13783_gpo_regulator_is_enabled() 384 return (val & mc13xxx_regulators[id].enable_bit) != 0; mc13783_gpo_regulator_is_enabled() 419 priv->mc13xxx_regulators = mc13783_regulators; mc13783_regulator_probe()
|
H A D | mc13xxx.h | 29 struct mc13xxx_regulator *mc13xxx_regulators; member in struct:mc13xxx_regulator_priv
|
H A D | mc13892-regulator.c | 557 priv->mc13xxx_regulators = mc13892_regulators; mc13892_regulator_probe()
|
Completed in 41 milliseconds