Lines Matching refs:n_lmbs
28 last_lmb = &drmem_info->lmbs[drmem_info->n_lmbs - 1]; in drmem_lmb_memory_max()
78 *p++ = cpu_to_be32(drmem_info->n_lmbs); in drmem_update_dt_v1()
216 u32 i, n_lmbs; in __walk_drmem_v1_lmbs() local
218 n_lmbs = of_read_number(prop++, 1); in __walk_drmem_v1_lmbs()
219 if (n_lmbs == 0) in __walk_drmem_v1_lmbs()
222 for (i = 0; i < n_lmbs; i++) { in __walk_drmem_v1_lmbs()
360 drmem_info->n_lmbs = of_read_number(prop++, 1); in init_drmem_v1_lmbs()
361 if (drmem_info->n_lmbs == 0) in init_drmem_v1_lmbs()
364 drmem_info->lmbs = kcalloc(drmem_info->n_lmbs, sizeof(*lmb), in init_drmem_v1_lmbs()
389 drmem_info->n_lmbs += dr_cell.seq_lmbs; in init_drmem_v2_lmbs()
392 drmem_info->lmbs = kcalloc(drmem_info->n_lmbs, sizeof(*lmb), in init_drmem_v2_lmbs()