Lines Matching refs:dn
101 struct device_node *dn) in rng_init_per_cpu() argument
105 chip_id = of_get_ibm_chip_id(dn); in rng_init_per_cpu()
107 pr_warn("No ibm,chip-id found for %pOF.\n", dn); in rng_init_per_cpu()
117 static __init int rng_create(struct device_node *dn) in rng_create() argument
127 if (of_address_to_resource(dn, 0, &res)) { in rng_create()
134 rng->regs = of_iomap(dn, 0); in rng_create()
143 rng_init_per_cpu(rng, dn); in rng_create()
152 struct device_node *dn; in pnv_get_random_long_early() local
161 for_each_compatible_node(dn, NULL, "ibm,power-rng") in pnv_get_random_long_early()
162 rng_create(dn); in pnv_get_random_long_early()
171 struct device_node *dn; in pnv_rng_init() local
177 dn = of_find_compatible_node(NULL, NULL, "ibm,power-rng"); in pnv_rng_init()
178 if (dn) in pnv_rng_init()
181 of_node_put(dn); in pnv_rng_init()
186 struct device_node *dn; in pnv_rng_late_init() local
194 for_each_compatible_node(dn, NULL, "ibm,power-rng") in pnv_rng_late_init()
195 of_platform_device_create(dn, NULL, NULL); in pnv_rng_late_init()