Lines Matching refs:i
43 int i; in prom_getenv() local
45 for (i = 0; (i < MAX_ENTRY) && adam2_env[i].name; i++) in prom_getenv()
46 if (!strcmp(name, adam2_env[i].name)) in prom_getenv()
47 return adam2_env[i].value; in prom_getenv()
55 int i; in ar7_init_cmdline() local
57 for (i = 1; i < argc; i++) { in ar7_init_cmdline()
58 strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE); in ar7_init_cmdline()
59 if (i < (argc - 1)) in ar7_init_cmdline()
131 int i; in lookup_psp_var_map() local
133 for (i = 0; i < ARRAY_SIZE(psp_var_map); i++) in lookup_psp_var_map()
134 if (psp_var_map[i].num == num) in lookup_psp_var_map()
135 return psp_var_map[i].value; in lookup_psp_var_map()
142 int i; in add_adam2_var() local
144 for (i = 0; i < MAX_ENTRY; i++) { in add_adam2_var()
145 if (!adam2_env[i].name) { in add_adam2_var()
146 adam2_env[i].name = name; in add_adam2_var()
147 adam2_env[i].value = value; in add_adam2_var()
149 } else if (!strcmp(adam2_env[i].name, name)) { in add_adam2_var()
150 adam2_env[i].value = value; in add_adam2_var()
158 int i, n; in parse_psp_env() local
164 i = 1; in parse_psp_env()
166 while (i < n) { in parse_psp_env()
167 if ((chunks[i].num == 0xff) || ((i + chunks[i].len) > n)) in parse_psp_env()
169 value = chunks[i].data; in parse_psp_env()
170 if (chunks[i].num) { in parse_psp_env()
171 name = lookup_psp_var_map(chunks[i].num); in parse_psp_env()
178 i += chunks[i].len; in parse_psp_env()
185 int i; in ar7_init_env() local
192 for (i = 0; i < MAX_ENTRY; i++, env++) in ar7_init_env()