Lines Matching full:env
217 * @env: Kernel object's userspace event reference to fill up
219 void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument
229 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
230 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
233 add_uevent_var(env, "OF_TYPE=%s", type); in of_device_uevent()
239 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
242 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
248 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
257 int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
265 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
268 sl = of_modalias(dev->of_node, &env->buf[env->buflen-1], in of_device_uevent_modalias()
269 sizeof(env->buf) - env->buflen); in of_device_uevent_modalias()
272 if (sl >= (sizeof(env->buf) - env->buflen)) in of_device_uevent_modalias()
274 env->buflen += sl; in of_device_uevent_modalias()