Lines Matching refs:regmap

33 	struct regmap *regmap;  member
47 struct regmap *regmap; in of_syscon_register() local
110 regmap = regmap_init_mmio(NULL, base, &syscon_config); in of_syscon_register()
112 if (IS_ERR(regmap)) { in of_syscon_register()
114 ret = PTR_ERR(regmap); in of_syscon_register()
126 ret = regmap_mmio_attach_clk(regmap, clk); in of_syscon_register()
132 syscon->regmap = regmap; in of_syscon_register()
145 regmap_exit(regmap); in of_syscon_register()
153 static struct regmap *device_node_get_regmap(struct device_node *np, in device_node_get_regmap()
174 return syscon->regmap; in device_node_get_regmap()
177 struct regmap *device_node_to_regmap(struct device_node *np) in device_node_to_regmap()
183 struct regmap *syscon_node_to_regmap(struct device_node *np) in syscon_node_to_regmap()
192 struct regmap *syscon_regmap_lookup_by_compatible(const char *s) in syscon_regmap_lookup_by_compatible()
195 struct regmap *regmap; in syscon_regmap_lookup_by_compatible() local
201 regmap = syscon_node_to_regmap(syscon_np); in syscon_regmap_lookup_by_compatible()
204 return regmap; in syscon_regmap_lookup_by_compatible()
208 struct regmap *syscon_regmap_lookup_by_phandle(struct device_node *np, in syscon_regmap_lookup_by_phandle()
212 struct regmap *regmap; in syscon_regmap_lookup_by_phandle() local
222 regmap = syscon_node_to_regmap(syscon_np); in syscon_regmap_lookup_by_phandle()
225 return regmap; in syscon_regmap_lookup_by_phandle()
229 struct regmap *syscon_regmap_lookup_by_phandle_args(struct device_node *np, in syscon_regmap_lookup_by_phandle_args()
236 struct regmap *regmap; in syscon_regmap_lookup_by_phandle_args() local
249 regmap = syscon_node_to_regmap(syscon_np); in syscon_regmap_lookup_by_phandle_args()
254 return regmap; in syscon_regmap_lookup_by_phandle_args()
263 struct regmap *syscon_regmap_lookup_by_phandle_optional(struct device_node *np, in syscon_regmap_lookup_by_phandle_optional()
266 struct regmap *regmap; in syscon_regmap_lookup_by_phandle_optional() local
268 regmap = syscon_regmap_lookup_by_phandle(np, property); in syscon_regmap_lookup_by_phandle_optional()
269 if (IS_ERR(regmap) && PTR_ERR(regmap) == -ENODEV) in syscon_regmap_lookup_by_phandle_optional()
272 return regmap; in syscon_regmap_lookup_by_phandle_optional()
300 syscon->regmap = devm_regmap_init_mmio(dev, base, &syscon_config); in syscon_probe()
301 if (IS_ERR(syscon->regmap)) { in syscon_probe()
303 return PTR_ERR(syscon->regmap); in syscon_probe()