Lines Matching full:regmap
17 #include <linux/regmap.h>
41 struct regmap *regmap; member
48 struct regmap *regmap = data->regmap; in hi6220_peripheral_assert() local
53 return regmap_write(regmap, reg, BIT(offset)); in hi6220_peripheral_assert()
60 struct regmap *regmap = data->regmap; in hi6220_peripheral_deassert() local
65 return regmap_write(regmap, reg, BIT(offset)); in hi6220_peripheral_deassert()
77 struct regmap *regmap = data->regmap; in hi6220_media_assert() local
79 return regmap_write(regmap, SC_MEDIA_RSTEN, BIT(idx)); in hi6220_media_assert()
86 struct regmap *regmap = data->regmap; in hi6220_media_deassert() local
88 return regmap_write(regmap, SC_MEDIA_RSTDIS, BIT(idx)); in hi6220_media_deassert()
110 struct regmap *regmap = data->regmap; in hi6220_ao_assert() local
113 ret = regmap_write(regmap, AO_SCTRL_SC_PW_RSTEN0, BIT(idx)); in hi6220_ao_assert()
117 ret = regmap_write(regmap, AO_SCTRL_SC_PW_ISOEN0, BIT(idx)); in hi6220_ao_assert()
121 ret = regmap_write(regmap, AO_SCTRL_SC_PW_CLKDIS0, BIT(idx)); in hi6220_ao_assert()
129 struct regmap *regmap = data->regmap; in hi6220_ao_deassert() local
138 ret = regmap_write(regmap, AO_SCTRL_SC_PW_RSTDIS0, BIT(idx)); in hi6220_ao_deassert()
142 ret = regmap_write(regmap, AO_SCTRL_SC_PW_ISODIS0, BIT(idx)); in hi6220_ao_deassert()
146 ret = regmap_write(regmap, AO_SCTRL_SC_PW_CLKEN0, BIT(idx)); in hi6220_ao_deassert()
161 struct regmap *regmap; in hi6220_reset_probe() local
169 regmap = syscon_node_to_regmap(np); in hi6220_reset_probe()
170 if (IS_ERR(regmap)) { in hi6220_reset_probe()
171 dev_err(dev, "failed to get reset controller regmap\n"); in hi6220_reset_probe()
172 return PTR_ERR(regmap); in hi6220_reset_probe()
175 data->regmap = regmap; in hi6220_reset_probe()