• Home
  • Raw
  • Download

Lines Matching refs:aa

554 static int of_get_assoc_arrays(struct assoc_arrays *aa)  in of_get_assoc_arrays()  argument
570 aa->n_arrays = of_read_number(prop++, 1); in of_get_assoc_arrays()
571 aa->array_sz = of_read_number(prop++, 1); in of_get_assoc_arrays()
578 if (len < (aa->n_arrays * aa->array_sz + 2) * sizeof(unsigned int)) in of_get_assoc_arrays()
581 aa->arrays = prop; in of_get_assoc_arrays()
587 struct assoc_arrays aa = { .arrays = NULL }; in get_nid_and_numa_distance() local
595 rc = of_get_assoc_arrays(&aa); in get_nid_and_numa_distance()
599 if (primary_domain_index <= aa.array_sz && in get_nid_and_numa_distance()
600 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { in get_nid_and_numa_distance()
603 index = lmb->aa_index * aa.array_sz; in get_nid_and_numa_distance()
604 associativity = &aa.arrays[index]; in get_nid_and_numa_distance()
605 nid = __associativity_to_nid(associativity, aa.array_sz); in get_nid_and_numa_distance()
611 __initialize_form1_numa_distance(associativity, aa.array_sz); in get_nid_and_numa_distance()
623 struct assoc_arrays aa = { .arrays = NULL }; in of_drconf_to_nid_single() local
631 rc = of_get_assoc_arrays(&aa); in of_drconf_to_nid_single()
635 if (primary_domain_index <= aa.array_sz && in of_drconf_to_nid_single()
636 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { in of_drconf_to_nid_single()
639 index = lmb->aa_index * aa.array_sz; in of_drconf_to_nid_single()
640 associativity = &aa.arrays[index]; in of_drconf_to_nid_single()
641 nid = __associativity_to_nid(associativity, aa.array_sz); in of_drconf_to_nid_single()