Lines Matching +defs:first +defs:name

111 debug_print_blob(const char *name, const void *blob, unsigned size)
116 debug_printf("%s (%d dwords%s)\n", name, size/4,
129 static boolean first = TRUE;
132 if (!first)
136 * but its cool since we set first to false
138 first = FALSE;
146 debug_get_option(const char *name, const char *dfault)
150 result = os_get_option(name);
155 debug_printf("%s: %s = %s\n", __FUNCTION__, name,
163 debug_get_bool_option(const char *name, boolean dfault)
165 const char *str = os_get_option(name);
188 debug_printf("%s: %s = %s\n", __FUNCTION__, name,
196 debug_get_num_option(const char *name, long dfault)
201 str = os_get_option(name);
215 debug_printf("%s: %s = %li\n", __FUNCTION__, name, result);
222 str_has_option(const char *str, const char *name)
234 /* Find 'name' in 'str' surrounded by non-alphanumeric characters. */
237 unsigned name_len = strlen(name);
242 * we compare 'start' up to 'str-1' with 'name'. */
247 !memcmp(start, name, name_len)) {
267 debug_get_flags_option(const char *name,
276 str = os_get_option(name);
281 _debug_printf("%s: help for %s:\n", __FUNCTION__, name);
282 for (; flags->name; ++flags)
283 namealign = MAX2(namealign, strlen(flags->name));
284 for (flags = orig; flags->name; ++flags)
285 _debug_printf("| %*s [0x%0*"PRIx64"]%s%s\n", namealign, flags->name,
291 while (flags->name) {
292 if (str_has_option(str, flags->name))
301 __FUNCTION__, name, result, str);
303 debug_printf("%s: %s = 0x%"PRIx64"\n", __FUNCTION__, name, result);
327 while (names->name) {
329 return names->name;
345 while (names->name) {
347 const char *name = names->name;
348 while (*name == *prefix) {
349 name++;
352 return name;
367 int first = 1;
371 while (names->name) {
373 if (!first)
376 first = 0;
377 util_strncat(output, names->name, sizeof(output) - strlen(output) - 1);
385 if (!first)
388 first = 0;
395 if (first)