Lines Matching refs:compat
181 const char *compat; in of_device_get_modalias() local
193 compat = of_get_property(dev->of_node, "compatible", &cplen); in of_device_get_modalias()
194 if (!compat) in of_device_get_modalias()
198 for (i = (cplen - 1); i >= 0 && !compat[i]; i--) in of_device_get_modalias()
217 memcpy(&str[csize + 1], compat, cplen); in of_device_get_modalias()
234 const char *compat; in of_device_uevent() local
249 compat = of_get_property(dev->of_node, "compatible", &cplen); in of_device_uevent()
250 while (compat && *compat && cplen > 0) { in of_device_uevent()
251 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
252 sl = strlen(compat) + 1; in of_device_uevent()
253 compat += sl; in of_device_uevent()