Lines Matching defs:compatible
328 * @compat: required compatible string, NULL or "" for any match
338 * matches. The score is weighted for the most specific compatible value
343 * 1. specific compatible && type && name
344 * 2. specific compatible && type
345 * 3. specific compatible && name
346 * 4. specific compatible
347 * 5. general compatible && type && name
348 * 6. general compatible && type
349 * 7. general compatible && name
350 * 8. general compatible
364 prop = __of_find_property(device, "compatible", NULL);
394 * the device's "compatible" property
409 /** Checks if the device is compatible with any of the entries in
433 * of_machine_compatible_match - Test root of device tree against a compatible array
434 * @compats: NULL terminated array of compatible strings to look for in root node's compatible property.
436 * Returns true if the root node has any of the given compatible values in its
437 * compatible property.
455 * of_machine_read_compatible - Get the compatible string of this machine
456 * @compatible: address at which the address of the compatible string will be
458 * @index: index of the compatible entry in the list
463 int of_machine_read_compatible(const char **compatible, unsigned int index)
465 return of_property_read_string_index(of_root, "compatible", index, compatible);
864 * of_get_compatible_child - Find compatible child node
866 * @compatible: compatible string
868 * Lookup child node whose compatible property contains the given compatible
875 const char *compatible)
880 if (of_device_is_compatible(child, compatible))
1096 * tokens in its "compatible" property
1102 * @compatible: The string to match to one of the tokens in the device
1103 * "compatible" list.
1109 const char *type, const char *compatible)
1116 if (__of_device_is_compatible(np, compatible, type, NULL) &&
1166 for (; matches->name[0] || matches->type[0] || matches->compatible[0]; matches++) {
1167 score = __of_device_is_compatible(node, matches->compatible,
1239 * depending on compatible
1244 * Based on the value of the compatible property, this routine will attempt
1247 * from the first entry in the compatible list property.
1249 * Note: The matching on just the "product" side of the compatible is a relic
1256 const char *compatible, *p;
1259 ret = of_property_read_string_index(node, "compatible", 0,
1260 &compatible);
1263 p = strchr(compatible, ',');
1264 strscpy(alias, p ? p + 1 : compatible, len);