Lines Matching refs:anatop_reg
38 struct anatop_regulator *anatop_reg = rdev_get_drvdata(reg); in anatop_regmap_set_voltage_time_sel() local
43 if (anatop_reg->delay_bit_width && new_sel > old_sel) { in anatop_regmap_set_voltage_time_sel()
50 regmap_read(reg->regmap, anatop_reg->delay_reg, &val); in anatop_regmap_set_voltage_time_sel()
51 val = (val >> anatop_reg->delay_bit_shift) & in anatop_regmap_set_voltage_time_sel()
52 ((1 << anatop_reg->delay_bit_width) - 1); in anatop_regmap_set_voltage_time_sel()
62 struct anatop_regulator *anatop_reg = rdev_get_drvdata(reg); in anatop_regmap_enable() local
65 sel = anatop_reg->bypass ? LDO_FET_FULL_ON : anatop_reg->sel; in anatop_regmap_enable()
82 struct anatop_regulator *anatop_reg = rdev_get_drvdata(reg); in anatop_regmap_core_set_voltage_sel() local
85 if (anatop_reg->bypass || !anatop_regmap_is_enabled(reg)) { in anatop_regmap_core_set_voltage_sel()
86 anatop_reg->sel = selector; in anatop_regmap_core_set_voltage_sel()
92 anatop_reg->sel = selector; in anatop_regmap_core_set_voltage_sel()
98 struct anatop_regulator *anatop_reg = rdev_get_drvdata(reg); in anatop_regmap_core_get_voltage_sel() local
100 if (anatop_reg->bypass || !anatop_regmap_is_enabled(reg)) in anatop_regmap_core_get_voltage_sel()
101 return anatop_reg->sel; in anatop_regmap_core_get_voltage_sel()
108 struct anatop_regulator *anatop_reg = rdev_get_drvdata(reg); in anatop_regmap_get_bypass() local
113 WARN_ON(!anatop_reg->bypass); in anatop_regmap_get_bypass()
115 WARN_ON(anatop_reg->bypass); in anatop_regmap_get_bypass()
117 *enable = anatop_reg->bypass; in anatop_regmap_get_bypass()
123 struct anatop_regulator *anatop_reg = rdev_get_drvdata(reg); in anatop_regmap_set_bypass() local
126 if (enable == anatop_reg->bypass) in anatop_regmap_set_bypass()
129 sel = enable ? LDO_FET_FULL_ON : anatop_reg->sel; in anatop_regmap_set_bypass()
130 anatop_reg->bypass = enable; in anatop_regmap_set_bypass()