Lines Matching defs:commands
135 static void __init process_console(char *commands)
138 commands += 8;
140 if (!strncmp(commands, "ttyS", 4))
141 serial_console = simple_strtoul(commands + 4, NULL, 10) + 1;
142 else if (!strncmp(commands, "tty", 3)) {
143 char c = *(commands + 3);
152 if (!strncmp(commands, "prom", 4)) {
155 for (p = commands - 8; *p && *p != ' '; p++)
162 static void __init boot_flags_init(char *commands)
164 while (*commands) {
166 while (*commands && *commands == ' ')
167 commands++;
170 if (*commands == '\0')
172 if (*commands == '-') {
173 commands++;
174 while (*commands && *commands != ' ')
175 process_switch(*commands++);
178 if (!strncmp(commands, "console=", 8)) {
179 process_console(commands);
180 } else if (!strncmp(commands, "mem=", 4)) {
181 cmdline_memory_size = simple_strtoul(commands + 4,
182 &commands, 0);
183 if (*commands == 'K' || *commands == 'k') {
185 commands++;
186 } else if (*commands=='M' || *commands=='m') {
188 commands++;
191 while (*commands && *commands != ' ')
192 commands++;