• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/mm/

Lines Matching defs:memory

199  * Returns the property linux,drconf-usable-memory if
203 static const u32 *of_get_usable_memory(struct device_node *memory)
207 prop = of_get_property(memory, "linux,drconf-usable-memory", &len);
375 struct device_node *memory = NULL;
377 memory = of_find_node_by_type(memory, "memory");
378 if (!memory)
379 panic("numa.c: No memory nodes found!");
381 *n_addr_cells = of_n_addr_cells(memory);
382 *n_size_cells = of_n_size_cells(memory);
383 of_node_put(memory);
410 * Read the next memblock list entry from the ibm,dynamic-memory property
429 * Retreive and validate the ibm,dynamic-memory property of the device tree.
431 * The layout of the ibm,dynamic-memory property is a number N of memblock
435 static int of_get_drconf_memory(struct device_node *memory, const u32 **dm)
440 prop = of_get_property(memory, "ibm,dynamic-memory", &len);
457 * Retreive and validate the ibm,lmb-size property for drconf memory
460 static u64 of_get_lmb_size(struct device_node *memory)
465 prop = of_get_property(memory, "ibm,lmb-size", &len);
480 * memory from the ibm,associativity-lookup-arrays property of the
488 static int of_get_assoc_arrays(struct device_node *memory,
494 prop = of_get_property(memory, "ibm,associativity-lookup-arrays", &len);
512 * This is like of_node_to_nid_single() for memory represented in the
513 * ibm,dynamic-reconfiguration-memory node.
588 * Check and possibly modify a memory region to enforce the memory limit.
590 * Returns the size the region should have to enforce the memory limit.
593 * discarded as it lies wholy above the memory limit.
601 * having memory holes below the limit. Also, in the case of
616 * linux,drconf-usable-memory property
621 * For each lmb in ibm,dynamic-memory a corresponding
622 * entry in linux,drconf-usable-memory property contains
624 * read the counter from linux,drconf-usable-memory
630 * Extract NUMA information from the ibm,dynamic-reconfiguration-memory
633 static void __init parse_drconf_memory(struct device_node *memory)
641 n = of_get_drconf_memory(memory, &dm);
645 lmb_size = of_get_lmb_size(memory);
649 rc = of_get_assoc_arrays(memory, &aa);
654 usm = of_get_usable_memory(memory);
700 struct device_node *memory = NULL;
731 * cpus into nodes once the memory scan has discovered
740 memory = NULL;
741 while ((memory = of_find_node_by_type(memory, "memory")) != NULL) {
749 memcell_buf = of_get_property(memory,
750 "linux,usable-memory", &len);
752 memcell_buf = of_get_property(memory, "reg", &len);
764 * Assumption: either all memory nodes or none will
768 nid = of_node_to_nid_single(memory);
790 * Now do the same thing for each MEMBLOCK listed in the ibm,dynamic-memory
791 * property in the ibm,dynamic-reconfiguration-memory node.
793 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
794 if (memory)
795 parse_drconf_memory(memory);
812 for (i = 0; i < memblock.memory.cnt; ++i) {
813 start_pfn = memblock.memory.region[i].base >> PAGE_SHIFT;
814 end_pfn = start_pfn + memblock_size_pages(&memblock.memory, i);
892 * Allocate some memory, satisfying the memblock or bootmem allocator where
896 * Returns the virtual address of the memory.
908 /* retry over all memory */
927 * instead of the MEMBLOCK. We don't free the MEMBLOCK memory
1122 * Find the node associated with a hot added memory section for
1123 * memory represented in the device tree by the property
1124 * ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory.
1126 static int hot_add_drconf_scn_to_nid(struct device_node *memory,
1135 drconf_cell_cnt = of_get_drconf_memory(memory, &dm);
1139 lmb_size = of_get_lmb_size(memory);
1143 rc = of_get_assoc_arrays(memory, &aa);
1171 struct device_node *memory = NULL;
1174 while ((memory = of_find_node_by_type(memory, "memory")) != NULL) {
1180 memcell_buf = of_get_property(memory, "reg", &len);
1194 nid = of_node_to_nid_single(memory);
1198 of_node_put(memory);
1207 * Find the node associated with a hot added memory section. Section
1213 struct device_node *memory = NULL;
1219 memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
1220 if (memory) {
1221 nid = hot_add_drconf_scn_to_nid(memory, scn_addr);
1222 of_node_put(memory);