Home | History | Annotate | Download | only in drm

Lines Matching refs:delim

1592 static int drm_mode_parse_cmdline_int(const char *delim, unsigned int *int_ret)
1598 * delim must point to the '=', otherwise it is a syntax error and
1599 * if delim points to the terminating zero, then delim + 1 wil point
1602 if (*delim != '=')
1605 value = delim + 1;
1615 static int drm_mode_parse_panel_orientation(const char *delim,
1620 if (*delim != '=')
1623 value = delim + 1;
1624 delim = strchr(value, ',');
1625 if (!delim)
1626 delim = value + strlen(value);
1628 if (!strncmp(value, "normal", delim - value))
1630 else if (!strncmp(value, "upside_down", delim - value))
1632 else if (!strncmp(value, "left_side_up", delim - value))
1634 else if (!strncmp(value, "right_side_up", delim - value))
1648 const char *delim, *option, *sep;
1652 delim = strchr(option, '=');
1653 if (!delim) {
1654 delim = strchr(option, ',');
1656 if (!delim)
1657 delim = option + strlen(option);
1660 if (!strncmp(option, "rotate", delim - option)) {
1661 if (drm_mode_parse_cmdline_int(delim, &deg))
1684 } else if (!strncmp(option, "reflect_x", delim - option)) {
1686 } else if (!strncmp(option, "reflect_y", delim - option)) {
1688 } else if (!strncmp(option, "margin_right", delim - option)) {
1689 if (drm_mode_parse_cmdline_int(delim, &margin))
1693 } else if (!strncmp(option, "margin_left", delim - option)) {
1694 if (drm_mode_parse_cmdline_int(delim, &margin))
1698 } else if (!strncmp(option, "margin_top", delim - option)) {
1699 if (drm_mode_parse_cmdline_int(delim, &margin))
1703 } else if (!strncmp(option, "margin_bottom", delim - option)) {
1704 if (drm_mode_parse_cmdline_int(delim, &margin))
1708 } else if (!strncmp(option, "panel_orientation", delim - option)) {
1709 if (drm_mode_parse_panel_orientation(delim, mode))
1714 sep = strchr(delim, ',');