Lines Matching refs:str
89 int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str) in libxl_cpuid_parse_config() argument
295 sep = strchr(str, '='); in libxl_cpuid_parse_config()
302 if(!strncmp(str, flag->name, sep - str) && flag->name[sep - str] == 0) in libxl_cpuid_parse_config()
334 if (!strncmp(str, "family", sep - str)) { in libxl_cpuid_parse_config()
347 } else if (!strncmp(str, "model", sep - str)) { in libxl_cpuid_parse_config()
364 const char* str) in libxl_cpuid_parse_config_xend() argument
372 value = strtoul(str, &endptr, 0); in libxl_cpuid_parse_config_xend()
373 if (str == endptr) { in libxl_cpuid_parse_config_xend()
379 str = endptr + 1; in libxl_cpuid_parse_config_xend()
380 value = strtoul(str, &endptr, 0); in libxl_cpuid_parse_config_xend()
381 if (str == endptr) { in libxl_cpuid_parse_config_xend()
389 str = endptr + 1; in libxl_cpuid_parse_config_xend()
391 for (str = endptr + 1; *str != 0;) { in libxl_cpuid_parse_config_xend()
392 if (str[0] != 'e' || str[2] != 'x') { in libxl_cpuid_parse_config_xend()
395 value = str[1] - 'a'; in libxl_cpuid_parse_config_xend()
396 endptr = strchr(str, '='); in libxl_cpuid_parse_config_xend()
400 str = endptr + 1; in libxl_cpuid_parse_config_xend()
401 endptr = strchr(str, ','); in libxl_cpuid_parse_config_xend()
403 endptr = strchr(str, 0); in libxl_cpuid_parse_config_xend()
405 if (endptr - str != 32) { in libxl_cpuid_parse_config_xend()
409 strncpy(entry->policy[value], str, 32); in libxl_cpuid_parse_config_xend()
414 for (str = endptr + 1; *str == ' ' || *str == '\n'; str++); in libxl_cpuid_parse_config_xend()