Lines Matching defs:memory
526 struct device_node *memory = NULL;
528 memory = of_find_node_by_type(memory, "memory");
529 if (!memory)
530 panic("numa.c: No memory nodes found!");
532 *n_addr_cells = of_n_addr_cells(memory);
533 *n_size_cells = of_n_size_cells(memory);
534 of_node_put(memory);
556 * memory from the ibm,associativity-lookup-arrays property of the
566 struct device_node *memory;
570 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
571 if (!memory)
574 prop = of_get_property(memory, "ibm,associativity-lookup-arrays", &len);
576 of_node_put(memory);
583 of_node_put(memory);
628 * This is like of_node_to_nid_single() for memory represented in the
629 * ibm,dynamic-reconfiguration-memory node.
814 * Check and possibly modify a memory region to enforce the memory limit.
816 * Returns the size the region should have to enforce the memory limit.
819 * discarded as it lies wholly above the memory limit.
827 * having memory holes below the limit. Also, in the case of
842 * linux,drconf-usable-memory property
847 * For each lmb in ibm,dynamic-memory a corresponding
848 * entry in linux,drconf-usable-memory property contains
850 * read the counter from linux,drconf-usable-memory
856 * Extract NUMA information from the ibm,dynamic-reconfiguration-memory
900 memblock_set_node(base, sz, &memblock.memory, nid);
908 struct device_node *memory;
956 * cpus into nodes once the memory scan has discovered
977 for_each_node_by_type(memory, "memory") {
985 memcell_buf = of_get_property(memory,
986 "linux,usable-memory", &len);
988 memcell_buf = of_get_property(memory, "reg", &len);
1000 * Assumption: either all memory nodes or none will
1004 associativity = of_get_associativity(memory);
1016 memblock_set_node(start, size, &memblock.memory, nid);
1024 * ibm,dynamic-memory property in the
1025 * ibm,dynamic-reconfiguration-memory node.
1027 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
1028 if (memory) {
1029 walk_drmem_lmbs(memory, NULL, numa_setup_drmem_lmb);
1030 of_node_put(memory);
1053 &memblock.memory, nid);
1093 /* Initialize NODE_DATA for a node on the local memory */
1182 * unnecessarily as online. If a node has cpus or memory that need
1267 * Find the node associated with a hot added memory section for
1268 * memory represented in the device tree by the property
1269 * ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory.
1298 * Find the node associated with a hot added memory section for memory
1299 * represented in the device tree as a node (i.e. memory@XXXX) for
1304 struct device_node *memory;
1307 for_each_node_by_type(memory, "memory") {
1313 memcell_buf = of_get_property(memory, "reg", &len);
1327 nid = of_node_to_nid_single(memory);
1335 of_node_put(memory);
1341 * Find the node associated with a hot added memory section. Section
1347 struct device_node *memory = NULL;
1353 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
1354 if (memory) {
1356 of_node_put(memory);
1369 struct device_node *memory = NULL;
1381 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
1382 if (memory) {
1383 of_node_put(memory);
1390 * memory_hotplug_max - return max address of memory that may be added
1392 * This is currently only used on systems that support drconfig memory
1459 * available memory (see memblock_alloc_try_nid). If unable to
1460 * init the node, then default to nearest node that has memory
1468 * Default to using the nearest node that has memory installed.