Searched refs:n_lmbs (Results 1 – 4 of 4) sorted by relevance
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()223 u32 i, n_lmbs; in __walk_drmem_v1_lmbs() local226 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()
22 int n_lmbs; member51 &drmem_info->lmbs[drmem_info->n_lmbs])
176 static int get_lmb_range(u32 drc_index, int n_lmbs, in get_lmb_range() argument194 end = &start[n_lmbs]; in get_lmb_range()196 limit = &drmem_info->lmbs[drmem_info->n_lmbs]; in get_lmb_range()
515 maxmem += (unsigned long)drmem_info->n_lmbs * drmem_info->lmb_size; in maxmem_data()