Lines Matching refs:syscon
100 UCLASS_DRIVER(syscon) = {
128 struct syscon { struct
134 static struct syscon *of_syscon_register(ofnode node) in of_syscon_register() argument
136 struct syscon *syscon; in of_syscon_register() local
142 syscon = malloc(sizeof(*syscon)); in of_syscon_register()
143 if (!syscon) in of_syscon_register()
146 ret = regmap_init_mem(node, &syscon->regmap); in of_syscon_register()
148 free(syscon); in of_syscon_register()
152 list_add_tail(&syscon->list, &syscon_list); in of_syscon_register()
154 return syscon; in of_syscon_register()
159 struct syscon *entry, *syscon = NULL; in syscon_node_to_regmap() local
163 syscon = entry; in syscon_node_to_regmap()
167 if (!syscon) in syscon_node_to_regmap()
168 syscon = of_syscon_register(node); in syscon_node_to_regmap()
170 if (IS_ERR(syscon)) in syscon_node_to_regmap()
171 return ERR_CAST(syscon); in syscon_node_to_regmap()
173 return syscon->regmap; in syscon_node_to_regmap()