Lines Matching defs:opt
759 static void acornfb_parse_mon(char *opt)
761 char *p = opt;
802 printk(KERN_ERR "Acornfb: bad monitor settings: %s\n", opt);
806 static void acornfb_parse_montype(char *opt)
810 if (strncmp(opt, "tv", 2) == 0) {
811 opt += 2;
813 } else if (strncmp(opt, "multi", 5) == 0) {
814 opt += 5;
816 } else if (strncmp(opt, "hires", 5) == 0) {
817 opt += 5;
819 } else if (strncmp(opt, "vga", 3) == 0) {
820 opt += 3;
822 } else if (strncmp(opt, "svga", 4) == 0) {
823 opt += 4;
825 } else if (strncmp(opt, "auto", 4) == 0) {
826 opt += 4;
828 } else if (isdigit(*opt))
829 current_par.montype = simple_strtoul(opt, &opt, 0);
834 opt);
837 if (opt && *opt) {
838 if (strcmp(opt, ",dpms") == 0)
843 opt);
847 static void acornfb_parse_dram(char *opt)
851 size = simple_strtoul(opt, &opt, 0);
853 if (opt) {
854 switch (*opt) {
872 void (*parse)(char *opt);
883 char *opt;
890 while ((opt = strsep(&options, ",")) != NULL) {
891 if (!*opt)
899 if (strncmp(opt, optp->name, optlen) == 0 &&
900 opt[optlen] == ':') {
901 optp->parse(opt + optlen + 1);
908 opt);