Lines Matching refs:this_opt

1852 static int parse_opt_mode(struct device *dev, const char *this_opt,
1855 const char *name = this_opt+5;
1910 static int parse_opt(struct device *dev, char *this_opt,
1918 if (!strncmp(this_opt, "vmem:", 5)) {
1919 video_mem_size = memparse(this_opt + 5, NULL);
1920 } else if (!strncmp(this_opt, "mode:", 5)) {
1921 return parse_opt_mode(dev, this_opt, inf);
1922 } else if (!strncmp(this_opt, "pixclock:", 9)) {
1923 mode->pixclock = simple_strtoul(this_opt+9, NULL, 0);
1925 } else if (!strncmp(this_opt, "left:", 5)) {
1926 mode->left_margin = simple_strtoul(this_opt+5, NULL, 0);
1928 } else if (!strncmp(this_opt, "right:", 6)) {
1929 mode->right_margin = simple_strtoul(this_opt+6, NULL, 0);
1931 } else if (!strncmp(this_opt, "upper:", 6)) {
1932 mode->upper_margin = simple_strtoul(this_opt+6, NULL, 0);
1934 } else if (!strncmp(this_opt, "lower:", 6)) {
1935 mode->lower_margin = simple_strtoul(this_opt+6, NULL, 0);
1937 } else if (!strncmp(this_opt, "hsynclen:", 9)) {
1938 mode->hsync_len = simple_strtoul(this_opt+9, NULL, 0);
1940 } else if (!strncmp(this_opt, "vsynclen:", 9)) {
1941 mode->vsync_len = simple_strtoul(this_opt+9, NULL, 0);
1943 } else if (!strncmp(this_opt, "hsync:", 6)) {
1944 if (simple_strtoul(this_opt+6, NULL, 0) == 0) {
1951 } else if (!strncmp(this_opt, "vsync:", 6)) {
1952 if (simple_strtoul(this_opt+6, NULL, 0) == 0) {
1959 } else if (!strncmp(this_opt, "dpc:", 4)) {
1960 if (simple_strtoul(this_opt+4, NULL, 0) == 0) {
1967 } else if (!strncmp(this_opt, "outputen:", 9)) {
1968 if (simple_strtoul(this_opt+9, NULL, 0) == 0) {
1975 } else if (!strncmp(this_opt, "pixclockpol:", 12)) {
1976 if (simple_strtoul(this_opt+12, NULL, 0) == 0) {
1983 } else if (!strncmp(this_opt, "color", 5)) {
1985 } else if (!strncmp(this_opt, "mono", 4)) {
1987 } else if (!strncmp(this_opt, "active", 6)) {
1989 } else if (!strncmp(this_opt, "passive", 7)) {
1991 } else if (!strncmp(this_opt, "single", 6)) {
1993 } else if (!strncmp(this_opt, "dual", 4)) {
1995 } else if (!strncmp(this_opt, "4pix", 4)) {
1997 } else if (!strncmp(this_opt, "8pix", 4)) {
2000 dev_err(dev, "unknown option: %s\n", this_opt);
2013 char *this_opt;
2022 while ((this_opt = strsep(&options, ",")) != NULL) {
2023 ret = parse_opt(dev, this_opt, inf);