Lines Matching defs:compat
99 sbuf_printf(sb, "compat=%s ", ofw_bus_get_compat(child));
220 ofw_bus_node_is_compatible_int(const char *compat, int len,
229 if (strlen(compat) == onelen &&
230 strncasecmp(compat, onecompat, onelen) == 0) {
237 l = strlen(compat) + 1;
238 compat += l;
248 char compat[OFW_COMPAT_LEN];
254 bzero(compat, OFW_COMPAT_LEN);
256 if (OF_getprop(node, "compatible", compat, OFW_COMPAT_LEN) < 0)
259 rv = ofw_bus_node_is_compatible_int(compat, len, compatstr);
268 const char *compat;
271 if ((compat = ofw_bus_get_compat(dev)) == NULL)
281 return (ofw_bus_node_is_compatible_int(compat, len, onecompat));
287 const char *compat;
290 if ((compat = ofw_bus_get_compat(dev)) == NULL)
294 if (strlen(compat) == len &&
295 strncasecmp(compat, compatible, len) == 0)
302 ofw_bus_search_compatible(device_t dev, const struct ofw_compat_data *compat)
305 if (compat == NULL)
308 for (; compat->ocd_str != NULL; ++compat) {
309 if (ofw_bus_is_compatible(dev, compat->ocd_str))
313 return (compat);