Lines Matching refs:drmem_info
20 struct drmem_lmb_info *drmem_info = &__drmem_info; variable
27 last_lmb = &drmem_info->lmbs[drmem_info->n_lmbs - 1]; in drmem_lmb_memory_max()
77 *p++ = cpu_to_be32(drmem_info->n_lmbs); in drmem_update_dt_v1()
299 drmem_info->lmb_size = dt_mem_next_cell(dt_root_size_cells, &prop); in walk_drmem_lmbs_early()
363 if (drmem_info->lmb_size) in init_drmem_lmb_size()
372 drmem_info->lmb_size = of_read_number(prop, n_root_size_cells); in init_drmem_lmb_size()
429 drmem_info->n_lmbs = of_read_number(prop++, 1); in init_drmem_v1_lmbs()
430 if (drmem_info->n_lmbs == 0) in init_drmem_v1_lmbs()
433 drmem_info->lmbs = kcalloc(drmem_info->n_lmbs, sizeof(*lmb), in init_drmem_v1_lmbs()
435 if (!drmem_info->lmbs) in init_drmem_v1_lmbs()
458 drmem_info->n_lmbs += dr_cell.seq_lmbs; in init_drmem_v2_lmbs()
461 drmem_info->lmbs = kcalloc(drmem_info->n_lmbs, sizeof(*lmb), in init_drmem_v2_lmbs()
463 if (!drmem_info->lmbs) in init_drmem_v2_lmbs()
474 lmb = &drmem_info->lmbs[lmb_index++]; in init_drmem_v2_lmbs()
477 dr_cell.base_addr += drmem_info->lmb_size; in init_drmem_v2_lmbs()