Lines Matching refs:mc13892_regulators
265 static struct mc13xxx_regulator mc13892_regulators[] = { variable
337 u32 en_val = mc13892_regulators[id].enable_bit; in mc13892_gpo_regulator_enable()
338 u32 mask = mc13892_regulators[id].enable_bit; in mc13892_gpo_regulator_enable()
362 dis_val = mc13892_regulators[id].enable_bit; in mc13892_gpo_regulator_disable()
364 return mc13892_powermisc_rmw(priv, mc13892_regulators[id].enable_bit, in mc13892_gpo_regulator_disable()
375 ret = mc13xxx_reg_read(priv->mc13xxx, mc13892_regulators[id].reg, &val); in mc13892_gpo_regulator_is_enabled()
386 return (val & mc13892_regulators[id].enable_bit) != 0; in mc13892_gpo_regulator_is_enabled()
408 mc13892_regulators[id].vsel_reg, &val); in mc13892_sw_regulator_get_voltage_sel()
424 selector = val & mc13892_regulators[id].vsel_mask; in mc13892_sw_regulator_get_voltage_sel()
426 if ((mc13892_regulators[id].vsel_reg != MC13892_SWITCHERS0) && in mc13892_sw_regulator_get_voltage_sel()
446 mask = mc13892_regulators[id].vsel_mask; in mc13892_sw_regulator_set_voltage_sel()
463 if (mc13892_regulators[id].vsel_reg != MC13892_SWITCHERS0) { in mc13892_sw_regulator_set_voltage_sel()
475 ret = mc13xxx_reg_rmw(priv->mc13xxx, mc13892_regulators[id].vsel_reg, in mc13892_sw_regulator_set_voltage_sel()
499 ret = mc13xxx_reg_rmw(priv->mc13xxx, mc13892_regulators[id].reg, in mc13892_vcam_set_mode()
513 ret = mc13xxx_reg_read(priv->mc13xxx, mc13892_regulators[id].reg, &val); in mc13892_vcam_get_mode()
553 priv->mc13xxx_regulators = mc13892_regulators; in mc13892_regulator_probe()
583 memcpy(&mc13892_vcam_ops, mc13892_regulators[MC13892_VCAM].desc.ops, in mc13892_regulator_probe()
587 mc13892_regulators[MC13892_VCAM].desc.ops = &mc13892_vcam_ops; in mc13892_regulator_probe()
589 mc13xxx_data = mc13xxx_parse_regulators_dt(pdev, mc13892_regulators, in mc13892_regulator_probe()
590 ARRAY_SIZE(mc13892_regulators)); in mc13892_regulator_probe()
606 desc = &mc13892_regulators[id].desc; in mc13892_regulator_probe()
617 mc13892_regulators[i].desc.name); in mc13892_regulator_probe()