Home
last modified time | relevance | path

Searched refs:drmem_info (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/arch/powerpc/mm/
Ddrmem.c18 struct drmem_lmb_info *drmem_info = &__drmem_info; variable
24 last_lmb = &drmem_info->lmbs[drmem_info->n_lmbs - 1]; in drmem_lmb_memory_max()
74 *p++ = cpu_to_be32(drmem_info->n_lmbs); in drmem_update_dt_v1()
278 drmem_info->lmb_size = dt_mem_next_cell(dt_root_size_cells, &prop); in walk_drmem_lmbs_early()
302 if (drmem_info->lmb_size) in init_drmem_lmb_size()
311 drmem_info->lmb_size = dt_mem_next_cell(dt_root_size_cells, &prop); in init_drmem_lmb_size()
356 drmem_info->n_lmbs = of_read_number(prop++, 1); in init_drmem_v1_lmbs()
357 if (drmem_info->n_lmbs == 0) in init_drmem_v1_lmbs()
360 drmem_info->lmbs = kcalloc(drmem_info->n_lmbs, sizeof(*lmb), in init_drmem_v1_lmbs()
362 if (!drmem_info->lmbs) in init_drmem_v1_lmbs()
[all …]
/Linux-v5.4/arch/powerpc/include/asm/
Ddrmem.h27 extern struct drmem_lmb_info *drmem_info;
34 &drmem_info->lmbs[0], \
35 &drmem_info->lmbs[drmem_info->n_lmbs - 1])
71 return drmem_info->lmb_size; in drmem_lmb_size()
/Linux-v5.4/arch/powerpc/platforms/pseries/
Dlparcfg.c438 maxmem += drmem_info->n_lmbs * drmem_info->lmb_size; in maxmem_data()
Dhotplug-memory.c241 last_lmb = &drmem_info->lmbs[drmem_info->n_lmbs - 1]; in get_lmb_range()