Lines Matching defs:compatible
457 * @compat: required compatible string, NULL or "" for any match
467 * matches. The score is weighted for the most specific compatible value
472 * 1. specific compatible && type && name
473 * 2. specific compatible && type
474 * 3. specific compatible && name
475 * 4. specific compatible
476 * 5. general compatible && type && name
477 * 6. general compatible && type
478 * 7. general compatible && name
479 * 8. general compatible
493 prop = __of_find_property(device, "compatible", NULL);
523 * the device's "compatible" property
538 /** Checks if the device is compatible with any of the entries in
561 * of_machine_is_compatible - Test root of device tree for a given compatible value
562 * @compat: compatible string to look for in root node's compatible property.
565 * compatible property.
812 * of_get_compatible_child - Find compatible child node
814 * @compatible: compatible string
816 * Lookup child node whose compatible property contains the given compatible
823 const char *compatible)
828 if (of_device_is_compatible(child, compatible))
1017 * tokens in its "compatible" property
1023 * @compatible: The string to match to one of the tokens in the device
1024 * "compatible" list.
1030 const char *type, const char *compatible)
1037 if (__of_device_is_compatible(np, compatible, type, NULL) &&
1091 for (; matches->name[0] || matches->type[0] || matches->compatible[0]; matches++) {
1092 score = __of_device_is_compatible(node, matches->compatible,
1168 * Based on the value of the compatible property, this routine will attempt
1171 * from the first entry in the compatible list property.
1177 const char *compatible, *p;
1180 compatible = of_get_property(node, "compatible", &cplen);
1181 if (!compatible || strlen(compatible) > cplen)
1183 p = strchr(compatible, ',');
1184 strlcpy(modalias, p ? p + 1 : compatible, len);