Lines Matching refs:s_reg
778 struct sunxi_pinctrl_regulator *s_reg = &pctl->regulators[bank_offset];
779 struct regulator *reg = s_reg->regulator;
784 refcount_inc(&s_reg->refcount);
805 s_reg->regulator = reg;
806 refcount_set(&s_reg->refcount, 1);
811 regulator_put(s_reg->regulator);
822 struct sunxi_pinctrl_regulator *s_reg = &pctl->regulators[bank_offset];
824 if (!refcount_dec_and_test(&s_reg->refcount))
827 regulator_disable(s_reg->regulator);
828 regulator_put(s_reg->regulator);
829 s_reg->regulator = NULL;