Lines Matching defs:compatible

293  * @compat: required compatible string, NULL or "" for any match
303 * matches. The score is weighted for the most specific compatible value
308 * 1. specific compatible && type && name
309 * 2. specific compatible && type
310 * 3. specific compatible && name
311 * 4. specific compatible
312 * 5. general compatible && type && name
313 * 6. general compatible && type
314 * 7. general compatible && name
315 * 8. general compatible
329 prop = __of_find_property(device, "compatible", NULL);
359 * the device's "compatible" property
374 /** Checks if the device is compatible with any of the entries in
398 * of_machine_compatible_match - Test root of device tree against a compatible array
399 * @compats: NULL terminated array of compatible strings to look for in root node's compatible property.
401 * Returns true if the root node has any of the given compatible values in its
402 * compatible property.
726 * of_get_compatible_child - Find compatible child node
728 * @compatible: compatible string
730 * Lookup child node whose compatible property contains the given compatible
737 const char *compatible)
742 if (of_device_is_compatible(child, compatible))
931 * tokens in its "compatible" property
937 * @compatible: The string to match to one of the tokens in the device
938 * "compatible" list.
944 const char *type, const char *compatible)
951 if (__of_device_is_compatible(np, compatible, type, NULL) &&
1005 for (; matches->name[0] || matches->type[0] || matches->compatible[0]; matches++) {
1006 score = __of_device_is_compatible(node, matches->compatible,
1078 * depending on compatible
1083 * Based on the value of the compatible property, this routine will attempt
1086 * from the first entry in the compatible list property.
1088 * Note: The matching on just the "product" side of the compatible is a relic
1095 const char *compatible, *p;
1098 compatible = of_get_property(node, "compatible", &cplen);
1099 if (!compatible || strlen(compatible) > cplen)
1101 p = strchr(compatible, ',');
1102 strscpy(alias, p ? p + 1 : compatible, len);