Lines Matching defs:compatible
754 * return the first node with the matching compatible.
757 dev_find_node_by_compatible(Prom_node *root, char *compatible)
764 if (root == NULL || compatible == NULL)
767 if ((prop = find_prop(root, "compatible")) != NULL &&
772 * compatible property is. Since it is an array of strings
777 * is examine the first string in the compatible property.
781 if (strcmp(compatible_array, compatible) == 0)
789 node = dev_find_node_by_compatible(root->child, compatible);
804 return (dev_find_node_by_compatible(root->sibling, compatible));
809 * the current one which has the requested compatible property.
812 dev_next_node_by_compatible(Prom_node *root, char *compatible)
816 if (root == NULL || compatible == NULL)
819 node = dev_find_node_by_compatible(root->child, compatible);
828 node = dev_find_node_by_compatible(root->sibling, compatible);
832 return (dev_find_node_by_compatible(root->parent->sibling, compatible));