Lines Matching defs:env
72 * Try to get FDT filename first from loader env and then from u-boot env
93 const char *env, *str;
98 env = NULL;
105 while ((env = ub_env_enum(env)) != NULL) {
106 if (strncmp(env, "eth", 3) == 0 &&
107 strncmp(env + (strlen(env) - 4), "addr", 4) == 0) {
109 * Handle Ethernet addrs: parse uboot env eth%daddr
130 i = strtol(env + 3, &end, 10);
131 if (end == (env + 3))
140 str = ub_env_get(env);
148 i = strlen(env) - 7;
149 strncpy(ethstr + 8, env + 3, i);
160 } else if (strcmp(env, "consoledev") == 0) {
161 str = ub_env_get(env);