Lines Matching full:setting
47 * support two BMP types with one setting.
262 * parse_setting() - parse a single setting of custom lcd parameters
264 * @setting: The custom lcd setting <name>:<value>
268 static int parse_setting(char *setting) in parse_setting() argument
271 char *setting_start = setting; in parse_setting()
273 if (!strncmp(setting, "mode:", 5)) { in parse_setting()
274 return parse_mode(setting + 5); in parse_setting()
275 } else if (!strncmp(setting, "pixclock:", 9)) { in parse_setting()
276 return parse_pixclock(setting + 9); in parse_setting()
277 } else if (!strncmp(setting, "left:", 5)) { in parse_setting()
278 num_val = simple_strtoul(setting + 5, &setting, 0); in parse_setting()
280 } else if (!strncmp(setting, "right:", 6)) { in parse_setting()
281 num_val = simple_strtoul(setting + 6, &setting, 0); in parse_setting()
283 } else if (!strncmp(setting, "upper:", 6)) { in parse_setting()
284 num_val = simple_strtoul(setting + 6, &setting, 0); in parse_setting()
286 } else if (!strncmp(setting, "lower:", 6)) { in parse_setting()
287 num_val = simple_strtoul(setting + 6, &setting, 0); in parse_setting()
289 } else if (!strncmp(setting, "hsynclen:", 9)) { in parse_setting()
290 num_val = simple_strtoul(setting + 9, &setting, 0); in parse_setting()
292 } else if (!strncmp(setting, "vsynclen:", 9)) { in parse_setting()
293 num_val = simple_strtoul(setting + 9, &setting, 0); in parse_setting()
295 } else if (!strncmp(setting, "hsync:", 6)) { in parse_setting()
296 if (simple_strtoul(setting + 6, &setting, 0) == 0) in parse_setting()
300 } else if (!strncmp(setting, "vsync:", 6)) { in parse_setting()
301 if (simple_strtoul(setting + 6, &setting, 0) == 0) in parse_setting()
305 } else if (!strncmp(setting, "outputen:", 9)) { in parse_setting()
306 if (simple_strtoul(setting + 9, &setting, 0) == 0) in parse_setting()
310 } else if (!strncmp(setting, "pixclockpol:", 12)) { in parse_setting()
311 if (simple_strtoul(setting + 12, &setting, 0) == 0) in parse_setting()
315 } else if (!strncmp(setting, "active", 6)) { in parse_setting()
318 } else if (!strncmp(setting, "passive", 7)) { in parse_setting()
321 } else if (!strncmp(setting, "display:", 8)) { in parse_setting()
322 if (!strncmp(setting + 8, "dvi", 3)) { in parse_setting()
331 if (setting[0] != '\0') { in parse_setting()
349 char *setting; in parse_customlcd() local
352 setting = strtok(params_cpy, ","); in parse_customlcd()
353 while (setting) { in parse_customlcd()
354 if (parse_setting(setting) < 0) in parse_customlcd()
357 setting = strtok(NULL, ","); in parse_customlcd()