Lines Matching refs:delim
1543 static int drm_mode_parse_cmdline_int(const char *delim, unsigned int *int_ret)
1549 * delim must point to the '=', otherwise it is a syntax error and
1550 * if delim points to the terminating zero, then delim + 1 wil point
1553 if (*delim != '=')
1556 value = delim + 1;
1566 static int drm_mode_parse_panel_orientation(const char *delim,
1571 if (*delim != '=')
1574 value = delim + 1;
1575 delim = strchr(value, ',');
1576 if (!delim)
1577 delim = value + strlen(value);
1579 if (!strncmp(value, "normal", delim - value))
1581 else if (!strncmp(value, "upside_down", delim - value))
1583 else if (!strncmp(value, "left_side_up", delim - value))
1585 else if (!strncmp(value, "right_side_up", delim - value))
1599 const char *delim, *option, *sep;
1603 delim = strchr(option, '=');
1604 if (!delim) {
1605 delim = strchr(option, ',');
1607 if (!delim)
1608 delim = option + strlen(option);
1611 if (!strncmp(option, "rotate", delim - option)) {
1612 if (drm_mode_parse_cmdline_int(delim, °))
1635 } else if (!strncmp(option, "reflect_x", delim - option)) {
1637 } else if (!strncmp(option, "reflect_y", delim - option)) {
1639 } else if (!strncmp(option, "margin_right", delim - option)) {
1640 if (drm_mode_parse_cmdline_int(delim, &margin))
1644 } else if (!strncmp(option, "margin_left", delim - option)) {
1645 if (drm_mode_parse_cmdline_int(delim, &margin))
1649 } else if (!strncmp(option, "margin_top", delim - option)) {
1650 if (drm_mode_parse_cmdline_int(delim, &margin))
1654 } else if (!strncmp(option, "margin_bottom", delim - option)) {
1655 if (drm_mode_parse_cmdline_int(delim, &margin))
1659 } else if (!strncmp(option, "panel_orientation", delim - option)) {
1660 if (drm_mode_parse_panel_orientation(delim, mode))
1665 sep = strchr(delim, ',');