Lines Matching refs:memory
515 struct device_node *memory = NULL; in get_n_mem_cells() local
517 memory = of_find_node_by_type(memory, "memory"); in get_n_mem_cells()
518 if (!memory) in get_n_mem_cells()
521 *n_addr_cells = of_n_addr_cells(memory); in get_n_mem_cells()
522 *n_size_cells = of_n_size_cells(memory); in get_n_mem_cells()
523 of_node_put(memory); in get_n_mem_cells()
555 struct device_node *memory; in of_get_assoc_arrays() local
559 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); in of_get_assoc_arrays()
560 if (!memory) in of_get_assoc_arrays()
563 prop = of_get_property(memory, "ibm,associativity-lookup-arrays", &len); in of_get_assoc_arrays()
565 of_node_put(memory); in of_get_assoc_arrays()
572 of_node_put(memory); in of_get_assoc_arrays()
889 memblock_set_node(base, sz, &memblock.memory, nid); in numa_setup_drmem_lmb()
897 struct device_node *memory, *pci; in parse_numa_properties() local
966 for_each_node_by_type(memory, "memory") { in parse_numa_properties()
974 memcell_buf = of_get_property(memory, in parse_numa_properties()
977 memcell_buf = of_get_property(memory, "reg", &len); in parse_numa_properties()
993 associativity = of_get_associativity(memory); in parse_numa_properties()
1005 memblock_set_node(start, size, &memblock.memory, nid); in parse_numa_properties()
1028 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); in parse_numa_properties()
1029 if (memory) { in parse_numa_properties()
1030 walk_drmem_lmbs(memory, NULL, numa_setup_drmem_lmb); in parse_numa_properties()
1031 of_node_put(memory); in parse_numa_properties()
1052 &memblock.memory, nid); in setup_nonnuma()
1284 struct device_node *memory; in hot_add_node_scn_to_nid() local
1287 for_each_node_by_type(memory, "memory") { in hot_add_node_scn_to_nid()
1293 if (of_address_to_resource(memory, i++, &res)) in hot_add_node_scn_to_nid()
1299 nid = of_node_to_nid_single(memory); in hot_add_node_scn_to_nid()
1307 of_node_put(memory); in hot_add_node_scn_to_nid()
1319 struct device_node *memory = NULL; in hot_add_scn_to_nid() local
1325 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); in hot_add_scn_to_nid()
1326 if (memory) { in hot_add_scn_to_nid()
1328 of_node_put(memory); in hot_add_scn_to_nid()
1341 struct device_node *memory = NULL; in hot_add_drconf_memory_max() local
1353 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); in hot_add_drconf_memory_max()
1354 if (memory) { in hot_add_drconf_memory_max()
1355 of_node_put(memory); in hot_add_drconf_memory_max()