Lines Matching refs:_mem
263 struct lmb_region *_mem = &(_lmb->memory); in lmb_alloc_base() local
266 for (i=_mem->cnt-1; i >= 0 ;i--) { in lmb_alloc_base()
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()
306 struct lmb_region *_mem = &(_lmb->memory); in lmb_phys_mem_size() local
307 unsigned long idx = _mem->cnt-1; in lmb_phys_mem_size()
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()
320 struct lmb_region *_mem = &(_lmb->memory); in lmb_end_of_DRAM() local
323 for(idx=_mem->cnt-1; idx >= 0 ;idx--) { in lmb_end_of_DRAM()
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()
343 struct lmb_region *_mem = &(_lmb->memory); in lmb_abs_to_phys() local
345 for (i=0; i < _mem->cnt ;i++) { in lmb_abs_to_phys()
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()