/xen/xen/common/ |
A D | vsprintf.c | 261 ++str; in string() 264 return str; in string() 293 str = number(str, end, rbot, 10, -1, -1, 0); in print_bitmap_list() 300 str = number(str, end, rtop, 10, -1, -1, 0); in print_bitmap_list() 306 return str; in print_bitmap_list() 389 str = print_domain(str, end, v->domain); in print_vcpu() 495 str = string(str, end, s, -1, -1, 0); in pointer() 513 str = string(str, end, " [", -1, -1, 0); in pointer() 514 str = string(str, end, namebuf, -1, -1, 0); in pointer() 515 str = string(str, end, "]", -1, -1, 0); in pointer() [all …]
|
A D | kexec.c | 120 str = strpbrk(str, "@,<"); in parse_crashkernel() 125 ranges[idx].start = parse_size_and_unit(cur = str + !!idx, &str); in parse_crashkernel() 138 ranges[idx].end = parse_size_and_unit(cur = str, &str); in parse_crashkernel() 158 ranges[idx].size = parse_size_and_unit(cur = str + 1, &str); in parse_crashkernel() 168 kexec_crash_area.size = parse_size_and_unit(cur = str, &str); in parse_crashkernel() 169 if ( cur != str ) in parse_crashkernel() 172 kexec_crash_area.start = parse_size_and_unit(cur = str + 1, &str); in parse_crashkernel() 174 kexec_crash_area_limit = parse_size_and_unit(cur = str + 1, &str); in parse_crashkernel() 176 kexec_crash_area_limit = parse_size_and_unit(cur = str + 7, &str); in parse_crashkernel() 177 else if ( *str ) in parse_crashkernel() [all …]
|
A D | gdbstub.c | 97 str2hex(const char *str) in str2hex() argument 99 return (char2hex(str[0]) << 4) | char2hex(str[1]); in str2hex() 103 str2ulong(const char *str, unsigned long bytes) in str2ulong() argument 108 while ( *str && (i < (bytes * 2)) ) in str2ulong() 111 x += char2hex(*str); in str2ulong() 112 ++str; in str2ulong() 120 str_to_native_ulong(const char *str) in str_to_native_ulong() argument 124 while ( *str && (i < BYTES_PER_LONG) ) in str_to_native_ulong() 128 x += str2hex(str); in str_to_native_ulong() 134 str += 2; in str_to_native_ulong() [all …]
|
/xen/tools/libxl/ |
A D | libxlu_disk_l.l | 99 if (!strcmp(str, "r") || !strcmp(str, "ro")) { in setaccess() 101 } else if (!strcmp(str, "rw") || !strcmp(str, "w") || !strcmp(str,"")) { in setaccess() 110 if (!strcmp(str,"")) DSET(dpc,format,FORMAT,str,RAW); in setformat() 111 else if (!strcmp(str,"raw")) DSET(dpc,format,FORMAT,str,RAW); in setformat() 112 else if (!strcmp(str,"qcow")) DSET(dpc,format,FORMAT,str,QCOW); in setformat() 113 else if (!strcmp(str,"qcow2")) DSET(dpc,format,FORMAT,str,QCOW2); in setformat() 114 else if (!strcmp(str,"vhd")) DSET(dpc,format,FORMAT,str,VHD); in setformat() 115 else if (!strcmp(str,"empty")) DSET(dpc,format,FORMAT,str,EMPTY); in setformat() 116 else if (!strcmp(str,"qed")) DSET(dpc,format,FORMAT,str,QED); in setformat() 122 if ( !strcmp(str,"phy")) DSET(dpc,backend,BACKEND,str,PHY); in setbackendtype() [all …]
|
A D | libxl_cpuid.c | 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() 373 if (str == endptr) { in libxl_cpuid_parse_config_xend() 379 str = endptr + 1; 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() 400 str = endptr + 1; in libxl_cpuid_parse_config_xend() [all …]
|
A D | libxlu_disk_l.c | 1137 if (!strcmp(str, "r") || !strcmp(str, "ro")) { in setaccess() 1139 } else if (!strcmp(str, "rw") || !strcmp(str, "w") || !strcmp(str,"")) { in setaccess() 1148 if (!strcmp(str,"")) DSET(dpc,format,FORMAT,str,RAW); in setformat() 1149 else if (!strcmp(str,"raw")) DSET(dpc,format,FORMAT,str,RAW); in setformat() 1150 else if (!strcmp(str,"qcow")) DSET(dpc,format,FORMAT,str,QCOW); in setformat() 1151 else if (!strcmp(str,"qcow2")) DSET(dpc,format,FORMAT,str,QCOW2); in setformat() 1152 else if (!strcmp(str,"vhd")) DSET(dpc,format,FORMAT,str,VHD); in setformat() 1153 else if (!strcmp(str,"empty")) DSET(dpc,format,FORMAT,str,EMPTY); in setformat() 1154 else if (!strcmp(str,"qed")) DSET(dpc,format,FORMAT,str,QED); in setformat() 1160 if ( !strcmp(str,"phy")) DSET(dpc,backend,BACKEND,str,PHY); in setbackendtype() [all …]
|
A D | libxlu_pci.c | 11 static int hex_convert(const char *str, unsigned int *val, unsigned int mask) in hex_convert() argument 16 ret = strtoul(str, &end, 16); in hex_convert() 17 if ( end == str || *end != '\0' ) in hex_convert() 49 int xlu_pci_parse_bdf(XLU_Config *cfg, libxl_device_pci *pcidev, const char *str) in xlu_pci_parse_bdf() argument 55 if ( NULL == (buf2 = ptr = strdup(str)) ) in xlu_pci_parse_bdf() 188 int xlu_rdm_parse(XLU_Config *cfg, libxl_rdm_reserve *rdm, const char *str) in xlu_rdm_parse() argument 193 if (NULL == (buf2 = ptr = strdup(str))) in xlu_rdm_parse()
|
/xen/tools/flask/utils/ |
A D | set-bool.c | 26 static int str2bool(const char *str) in str2bool() argument 28 if (str[0] == '0' || str[0] == '1') in str2bool() 29 return (str[0] == '1'); in str2bool() 30 if (!strcasecmp(str, "enabled") || !strcasecmp(str, "on") || !strcasecmp(str, "y")) in str2bool() 32 if (!strcasecmp(str, "disabled") || !strcasecmp(str, "off") || !strcasecmp(str, "n")) in str2bool() 34 fprintf(stderr, "Unknown value %s\n", str); in str2bool()
|
/xen/tools/misc/ |
A D | xen-detect.c | 175 char *str, *tmp; in check_sysfs() local 182 if ( !str || strcmp(str, "xen\n") ) in check_sysfs() 184 free(str); in check_sysfs() 187 if ( !str ) in check_sysfs() 189 str[strlen(str) - 1] = 0; in check_sysfs() 190 type = str; in check_sysfs() 197 if ( str ) in check_sysfs() 198 str[strlen(str) - 1] = 0; in check_sysfs() 202 if ( str && tmp ) in check_sysfs() 204 int r = asprintf(&ver, "V%s.%s", str, tmp); in check_sysfs() [all …]
|
/xen/tools/xenstore/ |
A D | utils.c | 27 char *str; in barf() local 34 bytes = vasprintf(&str, fmt, arglist); in barf() 38 xprintf("%s\n", str); in barf() 39 free(str); in barf() 46 char *str; in barf_perror() local 53 bytes = vasprintf(&str, fmt, arglist); in barf_perror() 57 xprintf("%s: %s\n", str, strerror(err)); in barf_perror() 58 free(str); in barf_perror()
|
A D | xenstored_solaris.c | 100 char *str; in mangle() local 106 if ((str = talloc_zero_size(conn, in->hdr.msg.len + 1)) == NULL) in mangle() 109 memcpy(str, in->buffer, in->hdr.msg.len); in mangle() 117 if (str[i] == '\0') in mangle() 118 str[i] = ' '; in mangle() 121 return (str); in mangle()
|
A D | xenstored_posix.c | 109 char str[20]; in xenbus_evtchn() local 115 rc = read(fd, str, sizeof(str) - 1); in xenbus_evtchn() 124 str[rc] = '\0'; in xenbus_evtchn() 125 port = strtoul(str, NULL, 0); in xenbus_evtchn()
|
/xen/xen/tools/ |
A D | symbols.c | 79 return str[0] == '$' && strchr("atd", str[1]) in is_arm_mapping_symbol() 80 && (str[2] == '\0' || str[2] == '.'); in is_arm_mapping_symbol() 85 char str[500], type[20] = ""; in read_symbol() local 99 str, &s->addr, &stype); in read_symbol() 107 if (fgets(str, 500, in) == NULL) in read_symbol() 113 sym = strrchr(str, '.'); in read_symbol() 132 filename = *str ? strdup(str) : NULL; in read_symbol() 141 sym = str; in read_symbol() 170 else if (str[0] == '$') in read_symbol() 175 s->len = strlen(str) + 1; in read_symbol() [all …]
|
/xen/tools/firmware/rombios/32bit/ |
A D | util.c | 295 register char *str, c; in _doprint() local 333 str = buffer; in _doprint() 334 printnum(str, value, in _doprint() 341 str = buffer; in _doprint() 342 printnum(str, value, in _doprint() 345 slen = strlen(str); in _doprint() 348 while ( *str ) in _doprint() 349 put(*str++); in _doprint() 354 slen = strlen(str); in _doprint() 358 while ( *str ) in _doprint() [all …]
|
/xen/xen/common/libelf/ |
A D | libelf-dominfo.c | 104 bool str; in elf_xen_parse_note() member 126 const char *str = NULL; in elf_xen_parse_note() local 138 if ( note_desc[type].str ) in elf_xen_parse_note() 141 if (str == NULL) in elf_xen_parse_note() 146 parms->elf_notes[type].data.str = str; in elf_xen_parse_note() 160 safe_strcpy(parms->loader, str); in elf_xen_parse_note() 163 safe_strcpy(parms->guest_os, str); in elf_xen_parse_note() 169 safe_strcpy(parms->xen_ver, str); in elf_xen_parse_note() 172 if ( !strcmp(str, "yes") ) in elf_xen_parse_note() 174 if ( strstr(str, "bimodal") ) in elf_xen_parse_note() [all …]
|
/xen/xen/tools/kconfig/ |
A D | conf.c | 56 static void strip(char *str) in strip() argument 58 char *p = str; in strip() 64 if (p != str) in strip() 65 memmove(str, p, l + 1); in strip() 68 p = str + l - 1; in strip() 76 if (!fgets(str, size, in)) in xfgets() 80 printf("%s", str); in xfgets() 425 const char *str; in check_conf() local 428 str = sym_get_string_value(sym); in check_conf() 429 str = sym_escape_string_value(str); in check_conf() [all …]
|
A D | lexer.l | 56 static void append_string(const char *str, int size) in append_string() argument 65 memcpy(text + text_size, str, size); in append_string() 70 static void alloc_string(const char *str, int size) in alloc_string() argument 73 memcpy(text, str, size); in alloc_string() 88 int str = 0; 141 str = yytext[0];
|
A D | preprocess.c | 355 tmp = xstrndup(str, len); in eval_clause() 455 const char *p = *str; in expand_dollar_with_args() 465 *str = p; in expand_dollar_with_args() 485 *str = q + 1; in expand_dollar_with_args() 490 char *expand_dollar(const char **str) in expand_dollar() argument 492 return expand_dollar_with_args(str, 0, NULL); in expand_dollar() 495 static char *__expand_string(const char **str, bool (*is_end)(char c), in __expand_string() argument 506 p = in = *str; in __expand_string() 534 *str = p; in __expand_string() 571 char *expand_one_token(const char **str) in expand_one_token() argument [all …]
|
A D | symbol.c | 122 char str[64]; in sym_validate_range() local 561 ch = *str++; in sym_string_valid() 563 ch = *str++; in sym_string_valid() 574 if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) in sym_string_valid() 575 str += 2; in sym_string_valid() 576 ch = *str++; in sym_string_valid() 584 switch (str[0]) { in sym_string_valid() 624 switch (str[0]) { in sym_string_within_range() 698 const char *str; in sym_get_string_default() local 755 return str; in sym_get_string_default() [all …]
|
/xen/xen/drivers/cpufreq/ |
A D | cpufreq.c | 70 const char *arg = strpbrk(str, ",:"); in setup_cpufreq_option() 74 arg = strchr(str, '\0'); in setup_cpufreq_option() 75 choice = parse_bool(str, arg); in setup_cpufreq_option() 92 if ( choice > 0 || !cmdline_strcmp(str, "xen") ) in setup_cpufreq_option() 590 char *str = buf; in cpufreq_cmdline_parse() local 596 char *val, *end = strchr(str, ','); in cpufreq_cmdline_parse() 601 val = strchr(str, '='); in cpufreq_cmdline_parse() 611 str = NULL; in cpufreq_cmdline_parse() 620 if (str && !cpufreq_handle_common_option(str, val) && in cpufreq_cmdline_parse() 629 str = end; in cpufreq_cmdline_parse() [all …]
|
/xen/tools/xentrace/ |
A D | xentrace_format | 54 defs[str(eval(m.group(1)))] = m.group(2) 242 if defs.has_key(str(event)): 243 print defs[str(event)] % args 245 if defs.has_key(str(0)): print defs[str(0)] % args 247 if defs.has_key(str(event)): 248 print defs[str(event)] 251 if defs.has_key(str(0)): 252 print defs[str(0)]
|
/xen/tools/xl/ |
A D | xl_parse.h | 24 int parse_range(const char *str, unsigned long *a, unsigned long *b); 46 void split_string_into_string_list(const char *str, const char *delim, 48 int split_string_into_pair(const char *str, const char *delim, 50 void replace_string(char **str, const char *val);
|
/xen/xen/include/xen/libfdt/ |
A D | libfdt.h | 851 int fdt_stringlist_contains(const char *strlist, int listlen, const char *str); 1042 #define fdt_property_string(fdt, name, str) \ argument 1043 fdt_property(fdt, name, str, strlen(str)+1) 1269 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ argument 1270 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1) 1410 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \ argument 1411 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
|
/xen/xen/common/libfdt/ |
A D | fdt_strerror.c | 57 const char *str; member 61 [(val)] = { .str = #val, } 87 const char *s = fdt_errtable[-errval].str; in fdt_strerror()
|
/xen/tools/firmware/vgabios/ |
A D | vbetables-gen.c | 87 const char *str; in main() local 151 str = "VBE_MEMORYMODEL_PLANAR"; in main() 153 str = "VBE_MEMORYMODEL_PACKED_PIXEL"; in main() 155 str = "VBE_MEMORYMODEL_DIRECT_COLOR"; in main() 156 printf("/*Bit8u MemoryModel*/ %s,\n", str); in main()
|