Lines Matching refs:env
224 void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument
234 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
235 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
238 add_uevent_var(env, "OF_TYPE=%s", type); in of_device_uevent()
244 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
247 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
253 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
262 int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
270 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
273 sl = of_modalias(dev->of_node, &env->buf[env->buflen-1], in of_device_uevent_modalias()
274 sizeof(env->buf) - env->buflen); in of_device_uevent_modalias()
277 if (sl >= (sizeof(env->buf) - env->buflen)) in of_device_uevent_modalias()
279 env->buflen += sl; in of_device_uevent_modalias()