Lines Matching refs:this_opt
274 static __inline__ char * get_opt_string(const char *this_opt, const char *name)
280 p = OPT_STRVAL(this_opt, name);
292 static __inline__ int get_opt_int(const char *this_opt, const char *name,
298 if (!OPT_EQUAL(this_opt, name))
301 *ret = OPT_INTVAL(this_opt, name);
305 static __inline__ int get_opt_bool(const char *this_opt, const char *name,
311 if (OPT_EQUAL(this_opt, name)) {
312 if (this_opt[strlen(name)] == '=')
313 *ret = simple_strtoul(this_opt + strlen(name) + 1,
318 if (OPT_EQUAL(this_opt, "no") && OPT_EQUAL(this_opt + 2, name))
328 char *this_opt;
351 while ((this_opt = strsep(&options, ","))) {
352 if (!*this_opt)
354 if (get_opt_bool(this_opt, "accel", &accel))
356 else if (get_opt_int(this_opt, "vram", &vram))
358 else if (get_opt_bool(this_opt, "hwcursor", &hwcursor))
360 else if (get_opt_bool(this_opt, "mtrr", &mtrr))
362 else if (get_opt_bool(this_opt, "fixed", &fixed))
364 else if (get_opt_bool(this_opt, "init", &noinit))
366 else if (OPT_EQUAL(this_opt, "mode="))
367 mode = get_opt_string(this_opt, "mode=");
369 mode = this_opt;