Lines Matching defs:buf
138 static int __init register_earlycon(char *buf, const struct earlycon_id *match)
143 /* On parsing error, pass the options buf to the setup function */
144 if (buf && !parse_options(&early_console_dev, buf))
145 buf = NULL;
154 err = match->setup(&early_console_dev, buf);
167 * @buf: earlycon param string
170 * in the param string @buf. Acceptable param strings are of the form
183 int __init setup_earlycon(char *buf)
188 if (!buf || !buf[0])
198 if (strncmp(buf, match->name, len))
205 if (buf[len]) {
206 if (buf[len] != ',')
208 buf += len + 1;
210 buf = NULL;
212 return register_earlycon(buf, match);
230 static int __init param_setup_earlycon(char *buf)
235 if (!buf || !buf[0]) {
239 } else if (!buf) {
244 err = setup_earlycon(buf);