Lines Matching refs:drmem
393 static void read_drconf_cell(struct of_drconf_cell *drmem, const __be32 **cellp) in read_drconf_cell() argument
397 drmem->base_addr = read_n_cells(n_mem_addr_cells, cellp); in read_drconf_cell()
400 drmem->drc_index = of_read_number(cp, 1); in read_drconf_cell()
401 drmem->reserved = of_read_number(&cp[1], 1); in read_drconf_cell()
402 drmem->aa_index = of_read_number(&cp[2], 1); in read_drconf_cell()
403 drmem->flags = of_read_number(&cp[3], 1); in read_drconf_cell()
495 static int of_drconf_to_nid_single(struct of_drconf_cell *drmem, in of_drconf_to_nid_single() argument
503 !(drmem->flags & DRCONF_MEM_AI_INVALID) && in of_drconf_to_nid_single()
504 drmem->aa_index < aa->n_arrays) { in of_drconf_to_nid_single()
505 index = drmem->aa_index * aa->array_sz + min_common_depth - 1; in of_drconf_to_nid_single()
675 struct of_drconf_cell drmem; in parse_drconf_memory() local
677 read_drconf_cell(&drmem, &dm); in parse_drconf_memory()
681 if ((drmem.flags & DRCONF_MEM_RESERVED) in parse_drconf_memory()
682 || !(drmem.flags & DRCONF_MEM_ASSIGNED)) in parse_drconf_memory()
685 base = drmem.base_addr; in parse_drconf_memory()
699 nid = of_drconf_to_nid_single(&drmem, &aa); in parse_drconf_memory()
1055 struct of_drconf_cell drmem; in hot_add_drconf_scn_to_nid() local
1057 read_drconf_cell(&drmem, &dm); in hot_add_drconf_scn_to_nid()
1061 if ((drmem.flags & DRCONF_MEM_RESERVED) in hot_add_drconf_scn_to_nid()
1062 || !(drmem.flags & DRCONF_MEM_ASSIGNED)) in hot_add_drconf_scn_to_nid()
1065 if ((scn_addr < drmem.base_addr) in hot_add_drconf_scn_to_nid()
1066 || (scn_addr >= (drmem.base_addr + lmb_size))) in hot_add_drconf_scn_to_nid()
1069 nid = of_drconf_to_nid_single(&drmem, &aa); in hot_add_drconf_scn_to_nid()