Lines Matching refs:compat
168 const char *compat; in of_device_get_modalias() local
180 compat = of_get_property(dev->of_node, "compatible", &cplen); in of_device_get_modalias()
181 if (!compat) in of_device_get_modalias()
185 for (i = (cplen - 1); i >= 0 && !compat[i]; i--) in of_device_get_modalias()
204 memcpy(&str[csize + 1], compat, cplen); in of_device_get_modalias()
221 const char *compat; in of_device_uevent() local
236 compat = of_get_property(dev->of_node, "compatible", &cplen); in of_device_uevent()
237 while (compat && *compat && cplen > 0) { in of_device_uevent()
238 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
239 sl = strlen(compat) + 1; in of_device_uevent()
240 compat += sl; in of_device_uevent()