Lines Matching refs:str
89 int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str) in libxl_cpuid_parse_config() argument
265 sep = strchr(str, '='); in libxl_cpuid_parse_config()
272 if(!strncmp(str, flag->name, sep - str) && flag->name[sep - str] == 0) in libxl_cpuid_parse_config()
304 if (!strncmp(str, "family", sep - str)) { in libxl_cpuid_parse_config()
317 } else if (!strncmp(str, "model", sep - str)) { in libxl_cpuid_parse_config()
334 const char* str) in libxl_cpuid_parse_config_xend() argument
342 value = strtoul(str, &endptr, 0); in libxl_cpuid_parse_config_xend()
343 if (str == endptr) { in libxl_cpuid_parse_config_xend()
349 str = endptr + 1; in libxl_cpuid_parse_config_xend()
350 value = strtoul(str, &endptr, 0); in libxl_cpuid_parse_config_xend()
351 if (str == endptr) { in libxl_cpuid_parse_config_xend()
359 str = endptr + 1; in libxl_cpuid_parse_config_xend()
361 for (str = endptr + 1; *str != 0;) { in libxl_cpuid_parse_config_xend()
362 if (str[0] != 'e' || str[2] != 'x') { in libxl_cpuid_parse_config_xend()
365 value = str[1] - 'a'; in libxl_cpuid_parse_config_xend()
366 endptr = strchr(str, '='); in libxl_cpuid_parse_config_xend()
370 str = endptr + 1; in libxl_cpuid_parse_config_xend()
371 endptr = strchr(str, ','); in libxl_cpuid_parse_config_xend()
373 endptr = strchr(str, 0); in libxl_cpuid_parse_config_xend()
375 if (endptr - str != 32) { in libxl_cpuid_parse_config_xend()
379 strncpy(entry->policy[value], str, 32); in libxl_cpuid_parse_config_xend()
384 for (str = endptr + 1; *str == ' ' || *str == '\n'; str++); in libxl_cpuid_parse_config_xend()