Lines Matching defs:memory
517 struct device_node *memory = NULL;
519 memory = of_find_node_by_type(memory, "memory");
520 if (!memory)
521 panic("numa.c: No memory nodes found!");
523 *n_addr_cells = of_n_addr_cells(memory);
524 *n_size_cells = of_n_size_cells(memory);
525 of_node_put(memory);
547 * memory from the ibm,associativity-lookup-arrays property of the
557 struct device_node *memory;
561 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
562 if (!memory)
565 prop = of_get_property(memory, "ibm,associativity-lookup-arrays", &len);
567 of_node_put(memory);
574 of_node_put(memory);
619 * This is like of_node_to_nid_single() for memory represented in the
620 * ibm,dynamic-reconfiguration-memory node.
805 * Check and possibly modify a memory region to enforce the memory limit.
807 * Returns the size the region should have to enforce the memory limit.
810 * discarded as it lies wholly above the memory limit.
818 * having memory holes below the limit. Also, in the case of
833 * linux,drconf-usable-memory property
838 * For each lmb in ibm,dynamic-memory a corresponding
839 * entry in linux,drconf-usable-memory property contains
841 * read the counter from linux,drconf-usable-memory
847 * Extract NUMA information from the ibm,dynamic-reconfiguration-memory
891 memblock_set_node(base, sz, &memblock.memory, nid);
899 struct device_node *memory;
947 * cpus into nodes once the memory scan has discovered
968 for_each_node_by_type(memory, "memory") {
976 memcell_buf = of_get_property(memory,
977 "linux,usable-memory", &len);
979 memcell_buf = of_get_property(memory, "reg", &len);
991 * Assumption: either all memory nodes or none will
995 associativity = of_get_associativity(memory);
1007 memblock_set_node(start, size, &memblock.memory, nid);
1015 * ibm,dynamic-memory property in the
1016 * ibm,dynamic-reconfiguration-memory node.
1018 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
1019 if (memory) {
1020 walk_drmem_lmbs(memory, NULL, numa_setup_drmem_lmb);
1021 of_node_put(memory);
1042 &memblock.memory, nid);
1082 /* Initialize NODE_DATA for a node on the local memory */
1174 * unnecessarily as online. If a node has cpus or memory that need
1253 * Find the node associated with a hot added memory section for
1254 * memory represented in the device tree by the property
1255 * ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory.
1284 * Find the node associated with a hot added memory section for memory
1285 * represented in the device tree as a node (i.e. memory@XXXX) for
1290 struct device_node *memory;
1293 for_each_node_by_type(memory, "memory") {
1299 if (of_address_to_resource(memory, i++, &res))
1305 nid = of_node_to_nid_single(memory);
1313 of_node_put(memory);
1319 * Find the node associated with a hot added memory section. Section
1325 struct device_node *memory = NULL;
1331 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
1332 if (memory) {
1334 of_node_put(memory);
1347 struct device_node *memory = NULL;
1359 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
1360 if (memory) {
1361 of_node_put(memory);
1368 * memory_hotplug_max - return max address of memory that may be added
1370 * This is currently only used on systems that support drconfig memory