Lines Matching refs:region
43 rgn->region[r1].size += rgn->region[r2].size; in lmb_coalesce_regions()
45 rgn->region[i].base = rgn->region[i+1].base; in lmb_coalesce_regions()
46 rgn->region[i].physbase = rgn->region[i+1].physbase; in lmb_coalesce_regions()
47 rgn->region[i].size = rgn->region[i+1].size; in lmb_coalesce_regions()
48 rgn->region[i].type = rgn->region[i+1].type; in lmb_coalesce_regions()
64 _lmb->memory.region[0].base = 0; in lmb_init()
65 _lmb->memory.region[0].size = 0; in lmb_init()
66 _lmb->memory.region[0].type = LMB_MEMORY_AREA; in lmb_init()
70 _lmb->reserved.region[0].base = 0; in lmb_init()
71 _lmb->reserved.region[0].size = 0; in lmb_init()
72 _lmb->reserved.region[0].type = LMB_MEMORY_AREA; in lmb_init()
91 unsigned long lmb_type = _lmb->memory.region[i].type; in lmb_analyze()
97 lmb_size = _lmb->memory.region[i].size; in lmb_analyze()
100 _lmb->memory.region[i].physbase = physbase; in lmb_analyze()
103 _lmb->memory.region[i].physbase = _lmb->memory.region[i].base; in lmb_analyze()
111 unsigned long lmb_type = _lmb->memory.region[i].type; in lmb_analyze()
117 lmb_size = _lmb->memory.region[i].size; in lmb_analyze()
119 _lmb->memory.region[i].physbase = physbase; in lmb_analyze()
181 unsigned long rgnbase = rgn->region[i].base; in lmb_add_region()
182 unsigned long rgnsize = rgn->region[i].size; in lmb_add_region()
183 unsigned long rgntype = rgn->region[i].type; in lmb_add_region()
190 rgn->region[i].base -= size; in lmb_add_region()
191 rgn->region[i].physbase -= size; in lmb_add_region()
192 rgn->region[i].size += size; in lmb_add_region()
197 rgn->region[i].size += size; in lmb_add_region()
216 if (base < rgn->region[i].base) { in lmb_add_region()
217 rgn->region[i+1].base = rgn->region[i].base; in lmb_add_region()
218 rgn->region[i+1].physbase = rgn->region[i].physbase; in lmb_add_region()
219 rgn->region[i+1].size = rgn->region[i].size; in lmb_add_region()
220 rgn->region[i+1].type = rgn->region[i].type; in lmb_add_region()
222 rgn->region[i+1].base = base; in lmb_add_region()
223 rgn->region[i+1].physbase = lmb_abs_to_phys(base); in lmb_add_region()
224 rgn->region[i+1].size = size; in lmb_add_region()
225 rgn->region[i+1].type = type; in lmb_add_region()
240 unsigned long rgnbase = rgn->region[i].base; in lmb_overlaps_region()
241 unsigned long rgnsize = rgn->region[i].size; in lmb_overlaps_region()
267 unsigned long lmbbase = _mem->region[i].base; in lmb_alloc_base()
268 unsigned long lmbsize = _mem->region[i].size; in lmb_alloc_base()
269 unsigned long lmbtype = _mem->region[i].type; in lmb_alloc_base()
283 base = _ALIGN_DOWN(_rsv->region[j].base-size, align); in lmb_alloc_base()
308 unsigned long lastbase = _mem->region[idx].physbase; in lmb_phys_mem_size()
309 unsigned long lastsize = _mem->region[idx].size; in lmb_phys_mem_size()
324 if ( _mem->region[idx].type != LMB_MEMORY_AREA ) in lmb_end_of_DRAM()
327 return (_mem->region[idx].physbase + _mem->region[idx].size); in lmb_end_of_DRAM()
329 return (_mem->region[idx].base + _mem->region[idx].size); in lmb_end_of_DRAM()
346 unsigned long lmbbase = _mem->region[i].base; in lmb_abs_to_phys()
347 unsigned long lmbsize = _mem->region[i].size; in lmb_abs_to_phys()
349 pa = _mem->region[i].physbase + (aa - lmbbase); in lmb_abs_to_phys()
373 i, lmb.memory.region[i].base); in lmb_dump()
375 lmb.memory.region[i].physbase); in lmb_dump()
377 lmb.memory.region[i].size); in lmb_dump()
379 lmb.memory.region[i].type); in lmb_dump()
391 i, lmb.reserved.region[i].base); in lmb_dump()
393 lmb.reserved.region[i].physbase); in lmb_dump()
395 lmb.reserved.region[i].size); in lmb_dump()
397 lmb.reserved.region[i].type); in lmb_dump()