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