Lines Matching refs:s_reg
843 struct sunxi_pinctrl_regulator *s_reg = &pctl->regulators[bank_offset];
844 struct regulator *reg = s_reg->regulator;
852 refcount_inc(&s_reg->refcount);
872 s_reg->regulator = reg;
873 refcount_set(&s_reg->refcount, 1);
878 regulator_put(s_reg->regulator);
889 struct sunxi_pinctrl_regulator *s_reg = &pctl->regulators[bank_offset];
891 if (!refcount_dec_and_test(&s_reg->refcount))
894 regulator_disable(s_reg->regulator);
895 regulator_put(s_reg->regulator);
896 s_reg->regulator = NULL;