Lines Matching refs:mentry
96 #define sfi_for_each_mentry(i, sb, mentry) \ argument
97 for (i = 0, mentry = (struct sfi_mem_entry *)sb->pentry; \
99 i++, mentry++) \
105 struct sfi_mem_entry *mentry; in sfi_setup_e820() local
114 sfi_for_each_mentry(i, sb, mentry) { in sfi_setup_e820()
115 start = mentry->phys_start; in sfi_setup_e820()
116 size = mentry->pages << 12; in sfi_setup_e820()
123 switch (mentry->type) { in sfi_setup_e820()
149 struct sfi_mem_entry *mentry; in sfi_get_bank_size() local
157 sfi_for_each_mentry(i, sb, mentry) { in sfi_get_bank_size()
158 if (mentry->type != SFI_MEM_CONV) in sfi_get_bank_size()
161 gd->bd->bi_dram[bank].start = mentry->phys_start; in sfi_get_bank_size()
162 gd->bd->bi_dram[bank].size = mentry->pages << 12; in sfi_get_bank_size()
172 struct sfi_mem_entry *mentry; in sfi_get_ram_size() local
180 sfi_for_each_mentry(i, sb, mentry) { in sfi_get_ram_size()
181 if (mentry->type != SFI_MEM_CONV) in sfi_get_ram_size()
184 ram += mentry->pages << 12; in sfi_get_ram_size()