Lines Matching refs:p

131 	char *p = start;  in video_search_param()  local
135 if (strncmp (p++, param, len) == 0) in video_search_param()
152 if(strncmp(p,name,strlen(name))==0) { \
153 val_s=p+strlen(name); \
159 char *p, *s, *val_s; in video_get_params() local
167 p = env_get(s); in video_get_params()
168 if (p) in video_get_params()
169 s = p; in video_get_params()
181 p = s; in video_get_params()
184 while ((i = video_get_param_len (p, ',')) != 0) { in video_get_params()
186 p += i; in video_get_params()
187 if (*p != 0) in video_get_params()
188 p++; /* skip ',' */ in video_get_params()
196 p = s; /* restart */ in video_get_params()
198 while ((i = video_get_param_len (p, ',')) != 0) { in video_get_params()
213 p += i; in video_get_params()
214 if (*p != 0) in video_get_params()
215 p++; /* skip ',' */ in video_get_params()
237 char *p = env_get("video-mode"); in video_get_video_mode() local
238 if (!p) in video_get_video_mode()
242 p = strchr(p, ':'); in video_get_video_mode()
243 if (!p) in video_get_video_mode()
247 while (*p && !isdigit(*p)) in video_get_video_mode()
248 p++; in video_get_video_mode()
249 *xres = simple_strtoul(p, &p, 10); in video_get_video_mode()
254 while (*p && !isdigit(*p)) in video_get_video_mode()
255 p++; in video_get_video_mode()
256 *yres = simple_strtoul(p, &p, 10); in video_get_video_mode()
261 while (*p && !isdigit(*p)) in video_get_video_mode()
262 p++; in video_get_video_mode()
263 *depth = simple_strtoul(p, &p, 10); in video_get_video_mode()
268 while (*p && !isdigit(*p)) in video_get_video_mode()
269 p++; in video_get_video_mode()
270 *freq = simple_strtoul(p, &p, 10); in video_get_video_mode()
275 p = strchr(p, ','); in video_get_video_mode()
276 *options = p ? p + 1 : NULL; in video_get_video_mode()
334 const char *p = options; in video_get_option_string() local
338 while (p && (i = video_get_param_len(p, ',')) != 0) { in video_get_option_string()
339 if (strncmp(p, name, name_len) == 0 && p[name_len] == '=') { in video_get_option_string()
343 memcpy(dest, &p[name_len + 1], len); in video_get_option_string()
347 p += i; in video_get_option_string()
348 if (*p != 0) in video_get_option_string()
349 p++; /* skip ',' */ in video_get_option_string()
364 const char *p = options; in video_get_option_int() local
368 while (p && (i = video_get_param_len(p, ',')) != 0) { in video_get_option_int()
369 if (strncmp(p, name, name_len) == 0 && p[name_len] == '=') in video_get_option_int()
370 return simple_strtoul(&p[name_len + 1], NULL, 10); in video_get_option_int()
372 p += i; in video_get_option_int()
373 if (*p != 0) in video_get_option_int()
374 p++; /* skip ',' */ in video_get_option_int()