Lines Matching defs:opt
732 static void acornfb_parse_mon(char *opt)
734 char *p = opt;
775 printk(KERN_ERR "Acornfb: bad monitor settings: %s\n", opt);
779 static void acornfb_parse_montype(char *opt)
783 if (strncmp(opt, "tv", 2) == 0) {
784 opt += 2;
786 } else if (strncmp(opt, "multi", 5) == 0) {
787 opt += 5;
789 } else if (strncmp(opt, "hires", 5) == 0) {
790 opt += 5;
792 } else if (strncmp(opt, "vga", 3) == 0) {
793 opt += 3;
795 } else if (strncmp(opt, "svga", 4) == 0) {
796 opt += 4;
798 } else if (strncmp(opt, "auto", 4) == 0) {
799 opt += 4;
801 } else if (isdigit(*opt))
802 current_par.montype = simple_strtoul(opt, &opt, 0);
807 opt);
810 if (opt && *opt) {
811 if (strcmp(opt, ",dpms") == 0)
816 opt);
820 static void acornfb_parse_dram(char *opt)
824 size = simple_strtoul(opt, &opt, 0);
826 if (opt) {
827 switch (*opt) {
845 void (*parse)(char *opt);
856 char *opt;
863 while ((opt = strsep(&options, ",")) != NULL) {
864 if (!*opt)
872 if (strncmp(opt, optp->name, optlen) == 0 &&
873 opt[optlen] == ':') {
874 optp->parse(opt + optlen + 1);
881 opt);