Lines Matching refs:dn
245 struct device_node *dn = NULL; in add_tce_mem_ranges() local
248 for_each_node_by_type(dn, "pci") { in add_tce_mem_ranges()
252 ret = of_property_read_u64(dn, "linux,tce-base", &base); in add_tce_mem_ranges()
253 ret |= of_property_read_u32(dn, "linux,tce-size", &size); in add_tce_mem_ranges()
271 of_node_put(dn); in add_tce_mem_ranges()
336 struct device_node *dn; in add_rtas_mem_range() local
340 dn = of_find_node_by_path("/rtas"); in add_rtas_mem_range()
341 if (!dn) in add_rtas_mem_range()
344 ret = of_property_read_u32(dn, "linux,rtas-base", &base); in add_rtas_mem_range()
345 ret |= of_property_read_u32(dn, "rtas-size", &size); in add_rtas_mem_range()
349 of_node_put(dn); in add_rtas_mem_range()
361 struct device_node *dn; in add_opal_mem_range() local
365 dn = of_find_node_by_path("/ibm,opal"); in add_opal_mem_range()
366 if (!dn) in add_opal_mem_range()
369 ret = of_property_read_u64(dn, "opal-base-address", &base); in add_opal_mem_range()
370 ret |= of_property_read_u64(dn, "opal-runtime-size", &size); in add_opal_mem_range()
374 of_node_put(dn); in add_opal_mem_range()