Lines Matching refs:this_opt

1856 static int parse_opt_mode(struct device *dev, const char *this_opt,
1859 const char *name = this_opt+5;
1914 static int parse_opt(struct device *dev, char *this_opt,
1922 if (!strncmp(this_opt, "vmem:", 5)) {
1923 video_mem_size = memparse(this_opt + 5, NULL);
1924 } else if (!strncmp(this_opt, "mode:", 5)) {
1925 return parse_opt_mode(dev, this_opt, inf);
1926 } else if (!strncmp(this_opt, "pixclock:", 9)) {
1927 mode->pixclock = simple_strtoul(this_opt+9, NULL, 0);
1929 } else if (!strncmp(this_opt, "left:", 5)) {
1930 mode->left_margin = simple_strtoul(this_opt+5, NULL, 0);
1932 } else if (!strncmp(this_opt, "right:", 6)) {
1933 mode->right_margin = simple_strtoul(this_opt+6, NULL, 0);
1935 } else if (!strncmp(this_opt, "upper:", 6)) {
1936 mode->upper_margin = simple_strtoul(this_opt+6, NULL, 0);
1938 } else if (!strncmp(this_opt, "lower:", 6)) {
1939 mode->lower_margin = simple_strtoul(this_opt+6, NULL, 0);
1941 } else if (!strncmp(this_opt, "hsynclen:", 9)) {
1942 mode->hsync_len = simple_strtoul(this_opt+9, NULL, 0);
1944 } else if (!strncmp(this_opt, "vsynclen:", 9)) {
1945 mode->vsync_len = simple_strtoul(this_opt+9, NULL, 0);
1947 } else if (!strncmp(this_opt, "hsync:", 6)) {
1948 if (simple_strtoul(this_opt+6, NULL, 0) == 0) {
1955 } else if (!strncmp(this_opt, "vsync:", 6)) {
1956 if (simple_strtoul(this_opt+6, NULL, 0) == 0) {
1963 } else if (!strncmp(this_opt, "dpc:", 4)) {
1964 if (simple_strtoul(this_opt+4, NULL, 0) == 0) {
1971 } else if (!strncmp(this_opt, "outputen:", 9)) {
1972 if (simple_strtoul(this_opt+9, NULL, 0) == 0) {
1979 } else if (!strncmp(this_opt, "pixclockpol:", 12)) {
1980 if (simple_strtoul(this_opt+12, NULL, 0) == 0) {
1987 } else if (!strncmp(this_opt, "color", 5)) {
1989 } else if (!strncmp(this_opt, "mono", 4)) {
1991 } else if (!strncmp(this_opt, "active", 6)) {
1993 } else if (!strncmp(this_opt, "passive", 7)) {
1995 } else if (!strncmp(this_opt, "single", 6)) {
1997 } else if (!strncmp(this_opt, "dual", 4)) {
1999 } else if (!strncmp(this_opt, "4pix", 4)) {
2001 } else if (!strncmp(this_opt, "8pix", 4)) {
2004 dev_err(dev, "unknown option: %s\n", this_opt);
2017 char *this_opt;
2026 while ((this_opt = strsep(&options, ",")) != NULL) {
2027 ret = parse_opt(dev, this_opt, inf);