Home
last modified time | relevance | path

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

/Linux-v6.6/arch/powerpc/mm/
Ddrmem.c27 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()
223 u32 i, n_lmbs; in __walk_drmem_v1_lmbs() local
226 n_lmbs = of_read_number(prop++, 1); in __walk_drmem_v1_lmbs()
227 for (i = 0; i < n_lmbs; i++) { in __walk_drmem_v1_lmbs()
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()
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()
/Linux-v6.6/arch/powerpc/include/asm/
Ddrmem.h22 int n_lmbs; member
51 &drmem_info->lmbs[drmem_info->n_lmbs])
/Linux-v6.6/arch/powerpc/platforms/pseries/
Dhotplug-memory.c175 static int get_lmb_range(u32 drc_index, int n_lmbs, in get_lmb_range() argument
193 end = &start[n_lmbs]; in get_lmb_range()
195 limit = &drmem_info->lmbs[drmem_info->n_lmbs]; in get_lmb_range()
Dlparcfg.c501 maxmem += (unsigned long)drmem_info->n_lmbs * drmem_info->lmb_size; in maxmem_data()