Lines Matching refs:ap
767 static void of_alias_add(struct alias_prop *ap, struct device_node *np, in of_alias_add() argument
770 ap->np = np; in of_alias_add()
771 ap->id = id; in of_alias_add()
772 strncpy(ap->stem, stem, stem_len); in of_alias_add()
773 ap->stem[stem_len] = 0; in of_alias_add()
774 list_add_tail(&ap->link, &aliases_lookup); in of_alias_add()
776 ap->alias, ap->stem, ap->id, of_node_full_name(np)); in of_alias_add()
804 struct alias_prop *ap; in of_alias_scan() local
830 ap = malloc(sizeof(*ap) + len + 1); in of_alias_scan()
831 if (!ap) in of_alias_scan()
833 memset(ap, 0, sizeof(*ap) + len + 1); in of_alias_scan()
834 ap->alias = start; in of_alias_scan()
835 of_alias_add(ap, np, id, start, len); in of_alias_scan()