Lines Matching refs:aa
397 static int of_get_assoc_arrays(struct assoc_arrays *aa) in of_get_assoc_arrays() argument
413 aa->n_arrays = of_read_number(prop++, 1); in of_get_assoc_arrays()
414 aa->array_sz = of_read_number(prop++, 1); in of_get_assoc_arrays()
421 if (len < (aa->n_arrays * aa->array_sz + 2) * sizeof(unsigned int)) in of_get_assoc_arrays()
424 aa->arrays = prop; in of_get_assoc_arrays()
434 struct assoc_arrays aa = { .arrays = NULL }; in of_drconf_to_nid_single() local
442 rc = of_get_assoc_arrays(&aa); in of_drconf_to_nid_single()
446 if (min_common_depth <= aa.array_sz && in of_drconf_to_nid_single()
447 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { in of_drconf_to_nid_single()
448 index = lmb->aa_index * aa.array_sz + min_common_depth - 1; in of_drconf_to_nid_single()
449 nid = of_read_number(&aa.arrays[index], 1); in of_drconf_to_nid_single()
455 index = lmb->aa_index * aa.array_sz; in of_drconf_to_nid_single()
457 &aa.arrays[index]); in of_drconf_to_nid_single()