Lines Matching refs:dn
118 struct device_node *dn) in rng_init_per_cpu() argument
122 chip_id = of_get_ibm_chip_id(dn); in rng_init_per_cpu()
124 pr_warn("No ibm,chip-id found for %pOF.\n", dn); in rng_init_per_cpu()
134 static __init int rng_create(struct device_node *dn) in rng_create() argument
144 if (of_address_to_resource(dn, 0, &res)) { in rng_create()
151 rng->regs = of_iomap(dn, 0); in rng_create()
160 rng_init_per_cpu(rng, dn); in rng_create()
171 struct device_node *dn; in rng_init() local
174 for_each_compatible_node(dn, NULL, "ibm,power-rng") { in rng_init()
175 rc = rng_create(dn); in rng_init()
178 dn, rc); in rng_init()
183 of_platform_device_create(dn, NULL, NULL); in rng_init()