Lines Matching refs:env
215 void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument
225 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
226 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
229 add_uevent_var(env, "OF_TYPE=%s", type); in of_device_uevent()
235 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
238 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
244 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
253 int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
261 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
264 sl = of_modalias(dev->of_node, &env->buf[env->buflen-1], in of_device_uevent_modalias()
265 sizeof(env->buf) - env->buflen); in of_device_uevent_modalias()
268 if (sl >= (sizeof(env->buf) - env->buflen)) in of_device_uevent_modalias()
270 env->buflen += sl; in of_device_uevent_modalias()