Lines Matching refs:_lmb
59 struct lmb *_lmb = PTRRELOC(&lmb); in lmb_init() local
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()
67 _lmb->memory.cnt = 1; 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()
73 _lmb->reserved.cnt = 1; in lmb_init()
85 struct lmb *_lmb = PTRRELOC(&lmb); in lmb_analyze() local
90 for (i=0; i < _lmb->memory.cnt ;i++) { in lmb_analyze()
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()
110 for (i=0; i < _lmb->memory.cnt ;i++) { 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()
126 _lmb->memory.size = mem_size; in lmb_analyze()
127 _lmb->memory.iosize = io_size; in lmb_analyze()
128 _lmb->memory.lcd_size = (1UL << cnt_trailing_zeros(size_mask)); in lmb_analyze()
136 struct lmb *_lmb = PTRRELOC(&lmb); in lmb_add() local
137 struct lmb_region *_rgn = &(_lmb->memory); in lmb_add()
141 _lmb->rmo_size = size; in lmb_add()
153 struct lmb *_lmb = PTRRELOC(&lmb); in lmb_add_io() local
154 struct lmb_region *_rgn = &(_lmb->memory); in lmb_add_io()
165 struct lmb *_lmb = PTRRELOC(&lmb); in lmb_reserve() local
166 struct lmb_region *_rgn = &(_lmb->reserved); in lmb_reserve()
262 struct lmb *_lmb = PTRRELOC(&lmb); in lmb_alloc_base() local
263 struct lmb_region *_mem = &(_lmb->memory); in lmb_alloc_base()
264 struct lmb_region *_rsv = &(_lmb->reserved); in lmb_alloc_base()
302 struct lmb *_lmb = PTRRELOC(&lmb); in lmb_phys_mem_size() local
304 return _lmb->memory.size; in lmb_phys_mem_size()
306 struct lmb_region *_mem = &(_lmb->memory); in lmb_phys_mem_size()
319 struct lmb *_lmb = PTRRELOC(&lmb); in lmb_end_of_DRAM() local
320 struct lmb_region *_mem = &(_lmb->memory); in lmb_end_of_DRAM()
342 struct lmb *_lmb = PTRRELOC(&lmb); in lmb_abs_to_phys() local
343 struct lmb_region *_mem = &(_lmb->memory); in lmb_abs_to_phys()