Lines Matching refs:memory

360 	struct device_node *memory = NULL;  in get_n_mem_cells()  local
362 memory = of_find_node_by_type(memory, "memory"); in get_n_mem_cells()
363 if (!memory) in get_n_mem_cells()
366 *n_addr_cells = of_n_addr_cells(memory); in get_n_mem_cells()
367 *n_size_cells = of_n_size_cells(memory); in get_n_mem_cells()
368 of_node_put(memory); in get_n_mem_cells()
400 struct device_node *memory; in of_get_assoc_arrays() local
404 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); in of_get_assoc_arrays()
405 if (!memory) in of_get_assoc_arrays()
408 prop = of_get_property(memory, "ibm,associativity-lookup-arrays", &len); in of_get_assoc_arrays()
410 of_node_put(memory); in of_get_assoc_arrays()
417 of_node_put(memory); in of_get_assoc_arrays()
694 memblock_set_node(base, sz, &memblock.memory, nid); in numa_setup_drmem_lmb()
702 struct device_node *memory; in parse_numa_properties() local
752 for_each_node_by_type(memory, "memory") { in parse_numa_properties()
760 memcell_buf = of_get_property(memory, in parse_numa_properties()
763 memcell_buf = of_get_property(memory, "reg", &len); in parse_numa_properties()
779 nid = of_node_to_nid_single(memory); in parse_numa_properties()
788 memblock_set_node(start, size, &memblock.memory, nid); in parse_numa_properties()
799 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); in parse_numa_properties()
800 if (memory) { in parse_numa_properties()
801 walk_drmem_lmbs(memory, NULL, numa_setup_drmem_lmb); in parse_numa_properties()
802 of_node_put(memory); in parse_numa_properties()
825 &memblock.memory, nid); in setup_nonnuma()
1076 struct device_node *memory; in hot_add_node_scn_to_nid() local
1079 for_each_node_by_type(memory, "memory") { in hot_add_node_scn_to_nid()
1085 memcell_buf = of_get_property(memory, "reg", &len); in hot_add_node_scn_to_nid()
1099 nid = of_node_to_nid_single(memory); in hot_add_node_scn_to_nid()
1107 of_node_put(memory); in hot_add_node_scn_to_nid()
1119 struct device_node *memory = NULL; in hot_add_scn_to_nid() local
1125 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); in hot_add_scn_to_nid()
1126 if (memory) { in hot_add_scn_to_nid()
1128 of_node_put(memory); in hot_add_scn_to_nid()
1141 struct device_node *memory = NULL; in hot_add_drconf_memory_max() local
1153 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); in hot_add_drconf_memory_max()
1154 if (memory) { in hot_add_drconf_memory_max()
1155 of_node_put(memory); in hot_add_drconf_memory_max()