Lines Matching refs:np
34 struct device_node *np; member
45 static struct syscon *of_syscon_register(struct device_node *np) in of_syscon_register() argument
53 if (!of_device_is_compatible(np, "syscon")) in of_syscon_register()
60 base = of_iomap(np, 0); in of_syscon_register()
67 if (of_property_read_bool(np, "big-endian")) in of_syscon_register()
69 else if (of_property_read_bool(np, "little-endian")) in of_syscon_register()
80 syscon->np = np; in of_syscon_register()
95 struct regmap *syscon_node_to_regmap(struct device_node *np) in syscon_node_to_regmap() argument
102 if (entry->np == np) { in syscon_node_to_regmap()
110 syscon = of_syscon_register(np); in syscon_node_to_regmap()
156 struct regmap *syscon_regmap_lookup_by_phandle(struct device_node *np, in syscon_regmap_lookup_by_phandle() argument
163 syscon_np = of_parse_phandle(np, property, 0); in syscon_regmap_lookup_by_phandle()
165 syscon_np = np; in syscon_regmap_lookup_by_phandle()