Lines Matching defs:commands
148 static void __init process_console(char *commands)
151 commands += 8;
153 if (!strncmp(commands, "ttyS", 4))
154 serial_console = simple_strtoul(commands + 4, NULL, 10) + 1;
155 else if (!strncmp(commands, "tty", 3)) {
156 char c = *(commands + 3);
163 if (!strncmp(commands, "prom", 4)) {
166 for (p = commands - 8; *p && *p != ' '; p++)
173 static void __init boot_flags_init(char *commands)
175 while (*commands) {
177 while (*commands && *commands == ' ')
178 commands++;
181 if (*commands == '\0')
183 if (*commands == '-') {
184 commands++;
185 while (*commands && *commands != ' ')
186 process_switch(*commands++);
189 if (!strncmp(commands, "console=", 8)) {
190 process_console(commands);
191 } else if (!strncmp(commands, "mem=", 4)) {
192 cmdline_memory_size = simple_strtoul(commands + 4,
193 &commands, 0);
194 if (*commands == 'K' || *commands == 'k') {
196 commands++;
197 } else if (*commands=='M' || *commands=='m') {
199 commands++;
202 while (*commands && *commands != ' ')
203 commands++;