Lines Matching defs:this_opt
273 static __inline__ char * get_opt_string(const char *this_opt, const char *name)
279 p = OPT_STRVAL(this_opt, name);
291 static __inline__ int get_opt_int(const char *this_opt, const char *name,
297 if (!OPT_EQUAL(this_opt, name))
300 *ret = OPT_INTVAL(this_opt, name);
304 static __inline__ int get_opt_bool(const char *this_opt, const char *name,
310 if (OPT_EQUAL(this_opt, name)) {
311 if (this_opt[strlen(name)] == '=')
312 *ret = simple_strtoul(this_opt + strlen(name) + 1,
317 if (OPT_EQUAL(this_opt, "no") && OPT_EQUAL(this_opt + 2, name))
327 char *this_opt;
350 while ((this_opt = strsep(&options, ","))) {
351 if (!*this_opt)
353 if (get_opt_bool(this_opt, "accel", &accel))
355 else if (get_opt_int(this_opt, "vram", &vram))
357 else if (get_opt_bool(this_opt, "hwcursor", &hwcursor))
359 else if (get_opt_bool(this_opt, "mtrr", &mtrr))
361 else if (get_opt_bool(this_opt, "fixed", &fixed))
363 else if (get_opt_bool(this_opt, "init", &noinit))
365 else if (OPT_EQUAL(this_opt, "mode="))
366 mode = get_opt_string(this_opt, "mode=");
368 mode = this_opt;