Lines Matching refs:delim

1538 static int drm_mode_parse_cmdline_int(const char *delim, unsigned int *int_ret)  in drm_mode_parse_cmdline_int()  argument
1548 if (*delim != '=') in drm_mode_parse_cmdline_int()
1551 value = delim + 1; in drm_mode_parse_cmdline_int()
1561 static int drm_mode_parse_panel_orientation(const char *delim, in drm_mode_parse_panel_orientation() argument
1566 if (*delim != '=') in drm_mode_parse_panel_orientation()
1569 value = delim + 1; in drm_mode_parse_panel_orientation()
1570 delim = strchr(value, ','); in drm_mode_parse_panel_orientation()
1571 if (!delim) in drm_mode_parse_panel_orientation()
1572 delim = value + strlen(value); in drm_mode_parse_panel_orientation()
1574 if (!strncmp(value, "normal", delim - value)) in drm_mode_parse_panel_orientation()
1576 else if (!strncmp(value, "upside_down", delim - value)) in drm_mode_parse_panel_orientation()
1578 else if (!strncmp(value, "left_side_up", delim - value)) in drm_mode_parse_panel_orientation()
1580 else if (!strncmp(value, "right_side_up", delim - value)) in drm_mode_parse_panel_orientation()
1594 const char *delim, *option, *sep; in drm_mode_parse_cmdline_options() local
1598 delim = strchr(option, '='); in drm_mode_parse_cmdline_options()
1599 if (!delim) { in drm_mode_parse_cmdline_options()
1600 delim = strchr(option, ','); in drm_mode_parse_cmdline_options()
1602 if (!delim) in drm_mode_parse_cmdline_options()
1603 delim = option + strlen(option); in drm_mode_parse_cmdline_options()
1606 if (!strncmp(option, "rotate", delim - option)) { in drm_mode_parse_cmdline_options()
1607 if (drm_mode_parse_cmdline_int(delim, &deg)) in drm_mode_parse_cmdline_options()
1630 } else if (!strncmp(option, "reflect_x", delim - option)) { in drm_mode_parse_cmdline_options()
1632 } else if (!strncmp(option, "reflect_y", delim - option)) { in drm_mode_parse_cmdline_options()
1634 } else if (!strncmp(option, "margin_right", delim - option)) { in drm_mode_parse_cmdline_options()
1635 if (drm_mode_parse_cmdline_int(delim, &margin)) in drm_mode_parse_cmdline_options()
1639 } else if (!strncmp(option, "margin_left", delim - option)) { in drm_mode_parse_cmdline_options()
1640 if (drm_mode_parse_cmdline_int(delim, &margin)) in drm_mode_parse_cmdline_options()
1644 } else if (!strncmp(option, "margin_top", delim - option)) { in drm_mode_parse_cmdline_options()
1645 if (drm_mode_parse_cmdline_int(delim, &margin)) in drm_mode_parse_cmdline_options()
1649 } else if (!strncmp(option, "margin_bottom", delim - option)) { in drm_mode_parse_cmdline_options()
1650 if (drm_mode_parse_cmdline_int(delim, &margin)) in drm_mode_parse_cmdline_options()
1654 } else if (!strncmp(option, "panel_orientation", delim - option)) { in drm_mode_parse_cmdline_options()
1655 if (drm_mode_parse_panel_orientation(delim, mode)) in drm_mode_parse_cmdline_options()
1660 sep = strchr(delim, ','); in drm_mode_parse_cmdline_options()