Lines Matching refs:drmem_info
20 struct drmem_lmb_info *drmem_info = &__drmem_info; variable
26 last_lmb = &drmem_info->lmbs[drmem_info->n_lmbs - 1]; in drmem_lmb_memory_max()
76 *p++ = cpu_to_be32(drmem_info->n_lmbs); in drmem_update_dt_v1()
292 drmem_info->lmb_size = dt_mem_next_cell(dt_root_size_cells, &prop); in walk_drmem_lmbs_early()
317 if (drmem_info->lmb_size) in init_drmem_lmb_size()
326 drmem_info->lmb_size = of_read_number(prop, n_root_size_cells); in init_drmem_lmb_size()
383 drmem_info->n_lmbs = of_read_number(prop++, 1); in init_drmem_v1_lmbs()
384 if (drmem_info->n_lmbs == 0) in init_drmem_v1_lmbs()
387 drmem_info->lmbs = kcalloc(drmem_info->n_lmbs, sizeof(*lmb), in init_drmem_v1_lmbs()
389 if (!drmem_info->lmbs) in init_drmem_v1_lmbs()
412 drmem_info->n_lmbs += dr_cell.seq_lmbs; in init_drmem_v2_lmbs()
415 drmem_info->lmbs = kcalloc(drmem_info->n_lmbs, sizeof(*lmb), in init_drmem_v2_lmbs()
417 if (!drmem_info->lmbs) in init_drmem_v2_lmbs()
428 lmb = &drmem_info->lmbs[lmb_index++]; in init_drmem_v2_lmbs()
431 dr_cell.base_addr += drmem_info->lmb_size; in init_drmem_v2_lmbs()