Searched refs:n_lmbs (Results 1 – 3 of 3) sorted by relevance
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() local218 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()[all …]
24 int n_lmbs; member36 &drmem_info->lmbs[drmem_info->n_lmbs - 1])
258 static int get_lmb_range(u32 drc_index, int n_lmbs, in get_lmb_range() argument276 end = &start[n_lmbs - 1]; in get_lmb_range()278 last_lmb = &drmem_info->lmbs[drmem_info->n_lmbs - 1]; in get_lmb_range()