Lines Matching refs:env
247 void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument
257 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
258 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
261 add_uevent_var(env, "OF_TYPE=%s", type); in of_device_uevent()
267 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
270 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
276 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
285 int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
293 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
296 sl = of_modalias(dev->of_node, &env->buf[env->buflen-1], in of_device_uevent_modalias()
297 sizeof(env->buf) - env->buflen); in of_device_uevent_modalias()
300 if (sl >= (sizeof(env->buf) - env->buflen)) in of_device_uevent_modalias()
302 env->buflen += sl; in of_device_uevent_modalias()