Lines Matching refs:delim

2089 static int drm_mode_parse_cmdline_int(const char *delim, unsigned int *int_ret)
2095 * delim must point to the '=', otherwise it is a syntax error and
2096 * if delim points to the terminating zero, then delim + 1 will point
2099 if (*delim != '=')
2102 value = delim + 1;
2112 static int drm_mode_parse_panel_orientation(const char *delim,
2117 if (*delim != '=')
2120 value = delim + 1;
2121 delim = strchr(value, ',');
2122 if (!delim)
2123 delim = value + strlen(value);
2125 if (!strncmp(value, "normal", delim - value))
2127 else if (!strncmp(value, "upside_down", delim - value))
2129 else if (!strncmp(value, "left_side_up", delim - value))
2131 else if (!strncmp(value, "right_side_up", delim - value))
2139 static int drm_mode_parse_tv_mode(const char *delim,
2145 if (*delim != '=')
2148 value = delim + 1;
2149 delim = strchr(value, ',');
2150 if (!delim)
2151 delim = value + strlen(value);
2153 ret = drm_get_tv_mode_from_name(value, delim - value);
2169 const char *delim, *option, *sep;
2173 delim = strchr(option, '=');
2174 if (!delim) {
2175 delim = strchr(option, ',');
2177 if (!delim)
2178 delim = option + strlen(option);
2181 if (!strncmp(option, "rotate", delim - option)) {
2182 if (drm_mode_parse_cmdline_int(delim, &deg))
2205 } else if (!strncmp(option, "reflect_x", delim - option)) {
2207 } else if (!strncmp(option, "reflect_y", delim - option)) {
2209 } else if (!strncmp(option, "margin_right", delim - option)) {
2210 if (drm_mode_parse_cmdline_int(delim, &margin))
2214 } else if (!strncmp(option, "margin_left", delim - option)) {
2215 if (drm_mode_parse_cmdline_int(delim, &margin))
2219 } else if (!strncmp(option, "margin_top", delim - option)) {
2220 if (drm_mode_parse_cmdline_int(delim, &margin))
2224 } else if (!strncmp(option, "margin_bottom", delim - option)) {
2225 if (drm_mode_parse_cmdline_int(delim, &margin))
2229 } else if (!strncmp(option, "panel_orientation", delim - option)) {
2230 if (drm_mode_parse_panel_orientation(delim, mode))
2232 } else if (!strncmp(option, "tv_mode", delim - option)) {
2233 if (drm_mode_parse_tv_mode(delim, mode))
2238 sep = strchr(delim, ',');