Lines Matching defs:memory

515 	struct device_node *memory = NULL;
517 memory = of_find_node_by_type(memory, "memory");
518 if (!memory)
519 panic("numa.c: No memory nodes found!");
521 *n_addr_cells = of_n_addr_cells(memory);
522 *n_size_cells = of_n_size_cells(memory);
523 of_node_put(memory);
545 * memory from the ibm,associativity-lookup-arrays property of the
555 struct device_node *memory;
559 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
560 if (!memory)
563 prop = of_get_property(memory, "ibm,associativity-lookup-arrays", &len);
565 of_node_put(memory);
572 of_node_put(memory);
617 * This is like of_node_to_nid_single() for memory represented in the
618 * ibm,dynamic-reconfiguration-memory node.
803 * Check and possibly modify a memory region to enforce the memory limit.
805 * Returns the size the region should have to enforce the memory limit.
808 * discarded as it lies wholly above the memory limit.
816 * having memory holes below the limit. Also, in the case of
831 * linux,drconf-usable-memory property
836 * For each lmb in ibm,dynamic-memory a corresponding
837 * entry in linux,drconf-usable-memory property contains
839 * read the counter from linux,drconf-usable-memory
845 * Extract NUMA information from the ibm,dynamic-reconfiguration-memory
889 memblock_set_node(base, sz, &memblock.memory, nid);
897 struct device_node *memory, *pci;
945 * cpus into nodes once the memory scan has discovered
966 for_each_node_by_type(memory, "memory") {
974 memcell_buf = of_get_property(memory,
975 "linux,usable-memory", &len);
977 memcell_buf = of_get_property(memory, "reg", &len);
989 * Assumption: either all memory nodes or none will
993 associativity = of_get_associativity(memory);
1005 memblock_set_node(start, size, &memblock.memory, nid);
1025 * ibm,dynamic-memory property in the
1026 * ibm,dynamic-reconfiguration-memory node.
1028 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
1029 if (memory) {
1030 walk_drmem_lmbs(memory, NULL, numa_setup_drmem_lmb);
1031 of_node_put(memory);
1052 &memblock.memory, nid);
1092 /* Initialize NODE_DATA for a node on the local memory */
1168 * unnecessarily as online. If a node has cpus or memory that need
1247 * Find the node associated with a hot added memory section for
1248 * memory represented in the device tree by the property
1249 * ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory.
1278 * Find the node associated with a hot added memory section for memory
1279 * represented in the device tree as a node (i.e. memory@XXXX) for
1284 struct device_node *memory;
1287 for_each_node_by_type(memory, "memory") {
1293 if (of_address_to_resource(memory, i++, &res))
1299 nid = of_node_to_nid_single(memory);
1307 of_node_put(memory);
1313 * Find the node associated with a hot added memory section. Section
1319 struct device_node *memory = NULL;
1325 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
1326 if (memory) {
1328 of_node_put(memory);
1341 struct device_node *memory = NULL;
1353 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
1354 if (memory) {
1355 of_node_put(memory);
1362 * memory_hotplug_max - return max address of memory that may be added
1364 * This is currently only used on systems that support drconfig memory