Lines Matching full:aa
553 static int of_get_assoc_arrays(struct assoc_arrays *aa) in of_get_assoc_arrays() argument
569 aa->n_arrays = of_read_number(prop++, 1); in of_get_assoc_arrays()
570 aa->array_sz = of_read_number(prop++, 1); in of_get_assoc_arrays()
577 if (len < (aa->n_arrays * aa->array_sz + 2) * sizeof(unsigned int)) in of_get_assoc_arrays()
580 aa->arrays = prop; in of_get_assoc_arrays()
586 struct assoc_arrays aa = { .arrays = NULL }; in get_nid_and_numa_distance() local
594 rc = of_get_assoc_arrays(&aa); in get_nid_and_numa_distance()
598 if (primary_domain_index <= aa.array_sz && in get_nid_and_numa_distance()
599 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { in get_nid_and_numa_distance()
602 index = lmb->aa_index * aa.array_sz; in get_nid_and_numa_distance()
603 associativity = &aa.arrays[index]; in get_nid_and_numa_distance()
604 nid = __associativity_to_nid(associativity, aa.array_sz); in get_nid_and_numa_distance()
610 __initialize_form1_numa_distance(associativity, aa.array_sz); in get_nid_and_numa_distance()
622 struct assoc_arrays aa = { .arrays = NULL }; in of_drconf_to_nid_single() local
630 rc = of_get_assoc_arrays(&aa); in of_drconf_to_nid_single()
634 if (primary_domain_index <= aa.array_sz && in of_drconf_to_nid_single()
635 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { in of_drconf_to_nid_single()
638 index = lmb->aa_index * aa.array_sz; in of_drconf_to_nid_single()
639 associativity = &aa.arrays[index]; in of_drconf_to_nid_single()
640 nid = __associativity_to_nid(associativity, aa.array_sz); in of_drconf_to_nid_single()