Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 129) sorted by relevance

123456

/xen-4.10.0-shim-comet/xen/common/
A Dvsprintf.c250 ++str; in string()
261 ++str; in string()
264 return str; in string()
346 str = string(str, end, s, -1, -1, 0); in pointer()
354 ++str; in pointer()
364 str = string(str, end, " [", -1, -1, 0); in pointer()
365 str = string(str, end, namebuf, -1, -1, 0); in pointer()
366 str = string(str, end, "]", -1, -1, 0); in pointer()
378 str = string(str, end, "IDLE", -1, -1, 0); in pointer()
438 str = buf; in vsnprintf()
[all …]
A Dkexec.c119 str = strpbrk(str, "@,<"); in parse_crashkernel()
124 ranges[idx].start = parse_size_and_unit(cur = str + !!idx, &str); in parse_crashkernel()
137 ranges[idx].end = parse_size_and_unit(cur = str, &str); in parse_crashkernel()
157 ranges[idx].size = parse_size_and_unit(cur = str + 1, &str); in parse_crashkernel()
167 kexec_crash_area.size = parse_size_and_unit(cur = str, &str); in parse_crashkernel()
168 if ( cur != str ) in parse_crashkernel()
170 if ( *str == '@' ) in parse_crashkernel()
171 kexec_crash_area.start = parse_size_and_unit(cur = str + 1, &str); in parse_crashkernel()
173 kexec_crash_area_limit = parse_size_and_unit(cur = str + 1, &str); in parse_crashkernel()
175 kexec_crash_area_limit = parse_size_and_unit(cur = str + 7, &str); in parse_crashkernel()
[all …]
A Dgdbstub.c96 str2hex(const char *str) in str2hex() argument
98 return (char2hex(str[0]) << 4) | char2hex(str[1]); in str2hex()
107 while ( *str && (i < (bytes * 2)) ) in str2ulong()
110 x += char2hex(*str); in str2ulong()
111 ++str; in str2ulong()
119 str_to_native_ulong(const char *str) in str_to_native_ulong() argument
123 while ( *str && (i < BYTES_PER_LONG) ) in str_to_native_ulong()
127 x += str2hex(str); in str_to_native_ulong()
133 str += 2; in str_to_native_ulong()
549 gdbstub_console_puts(const char *str) in gdbstub_console_puts() argument
[all …]
/xen-4.10.0-shim-comet/tools/libxl/
A Dlibxlu_disk_l.l88 if (!strcmp(str, "r") || !strcmp(str, "ro")) { in setaccess()
90 } else if (!strcmp(str, "rw") || !strcmp(str, "w") || !strcmp(str,"")) { in setaccess()
99 if (!strcmp(str,"")) DSET(dpc,format,FORMAT,str,RAW); in setformat()
100 else if (!strcmp(str,"raw")) DSET(dpc,format,FORMAT,str,RAW); in setformat()
101 else if (!strcmp(str,"qcow")) DSET(dpc,format,FORMAT,str,QCOW); in setformat()
102 else if (!strcmp(str,"qcow2")) DSET(dpc,format,FORMAT,str,QCOW2); in setformat()
103 else if (!strcmp(str,"vhd")) DSET(dpc,format,FORMAT,str,VHD); in setformat()
104 else if (!strcmp(str,"empty")) DSET(dpc,format,FORMAT,str,EMPTY); in setformat()
105 else if (!strcmp(str,"qed")) DSET(dpc,format,FORMAT,str,QED); in setformat()
111 if ( !strcmp(str,"phy")) DSET(dpc,backend,BACKEND,str,PHY); in setbackendtype()
[all …]
A Dlibxl_cpuid.c265 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()
343 if (str == endptr) { in libxl_cpuid_parse_config_xend()
349 str = endptr + 1; 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()
370 str = endptr + 1; in libxl_cpuid_parse_config_xend()
[all …]
A Dlibxlu_disk_l.c939 if (!strcmp(str, "r") || !strcmp(str, "ro")) { in setaccess()
941 } else if (!strcmp(str, "rw") || !strcmp(str, "w") || !strcmp(str,"")) { in setaccess()
950 if (!strcmp(str,"")) DSET(dpc,format,FORMAT,str,RAW); in setformat()
951 else if (!strcmp(str,"raw")) DSET(dpc,format,FORMAT,str,RAW); in setformat()
952 else if (!strcmp(str,"qcow")) DSET(dpc,format,FORMAT,str,QCOW); in setformat()
953 else if (!strcmp(str,"qcow2")) DSET(dpc,format,FORMAT,str,QCOW2); in setformat()
954 else if (!strcmp(str,"vhd")) DSET(dpc,format,FORMAT,str,VHD); in setformat()
955 else if (!strcmp(str,"empty")) DSET(dpc,format,FORMAT,str,EMPTY); in setformat()
956 else if (!strcmp(str,"qed")) DSET(dpc,format,FORMAT,str,QED); in setformat()
962 if ( !strcmp(str,"phy")) DSET(dpc,backend,BACKEND,str,PHY); in setbackendtype()
[all …]
A Dlibxlu_pci.c11 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()
48 int xlu_pci_parse_bdf(XLU_Config *cfg, libxl_device_pci *pcidev, const char *str) in xlu_pci_parse_bdf() argument
54 if ( NULL == (buf2 = ptr = strdup(str)) ) in xlu_pci_parse_bdf()
185 int xlu_rdm_parse(XLU_Config *cfg, libxl_rdm_reserve *rdm, const char *str) in xlu_rdm_parse() argument
190 if (NULL == (buf2 = ptr = strdup(str))) in xlu_rdm_parse()
/xen-4.10.0-shim-comet/tools/flask/utils/
A Dset-bool.c26 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-4.10.0-shim-comet/tools/misc/
A Dxen-detect.c175 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-4.10.0-shim-comet/tools/xenstore/
A Dutils.c27 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 Dxenstored_solaris.c100 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 Dxenstored_posix.c109 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-4.10.0-shim-comet/xen/tools/
A Dsymbols.c79 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-4.10.0-shim-comet/xen/drivers/cpufreq/
A Dcpufreq.c73 arg = strchr(str, '\0'); in setup_cpufreq_option()
74 choice = parse_bool(str, arg); in setup_cpufreq_option()
76 if ( choice < 0 && !strncmp(str, "dom0-kernel", arg - str) ) in setup_cpufreq_option()
84 if ( choice == 0 || !strncmp(str, "none", arg - str) ) in setup_cpufreq_option()
91 if ( choice > 0 || !strncmp(str, "xen", arg - str) ) in setup_cpufreq_option()
589 char *str = buf; in cpufreq_cmdline_parse() local
600 val = strchr(str, '='); in cpufreq_cmdline_parse()
610 str = NULL; in cpufreq_cmdline_parse()
619 if (str && !cpufreq_handle_common_option(str, val) && in cpufreq_cmdline_parse()
628 str = end; in cpufreq_cmdline_parse()
[all …]
/xen-4.10.0-shim-comet/tools/firmware/rombios/32bit/
A Dutil.c295 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-4.10.0-shim-comet/xen/common/libelf/
A Dlibelf-dominfo.c104 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-4.10.0-shim-comet/tools/xentrace/
A Dxentrace_format54 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-4.10.0-shim-comet/tools/xl/
A Dxl_parse.h24 int parse_range(const char *str, unsigned long *a, unsigned long *b);
44 void split_string_into_string_list(const char *str, const char *delim,
46 int split_string_into_pair(const char *str, const char *delim,
48 void replace_string(char **str, const char *val);
/xen-4.10.0-shim-comet/xen/tools/kconfig/
A Dzconf.l49 static void append_string(const char *str, int size) in append_string() argument
58 memcpy(text + text_size, str, size); in append_string()
63 static void alloc_string(const char *str, int size) in alloc_string() argument
66 memcpy(text, str, size); in alloc_string()
81 int str = 0;
137 str = yytext[0];
A Dsymbol.c160 char str[64]; in sym_validate_range() local
559 ch = *str++; in sym_string_valid()
561 ch = *str++; in sym_string_valid()
572 if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) in sym_string_valid()
573 str += 2; in sym_string_valid()
574 ch = *str++; in sym_string_valid()
582 switch (str[0]) { in sym_string_valid()
622 switch (str[0]) { in sym_string_within_range()
696 const char *str; in sym_get_string_default() local
749 return str; in sym_get_string_default()
[all …]
/xen-4.10.0-shim-comet/xen/include/xen/libfdt/
A Dlibfdt.h851 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-4.10.0-shim-comet/xen/common/libfdt/
A Dfdt_strerror.c57 const char *str; member
61 [(val)] = { .str = #val, }
87 const char *s = fdt_errtable[-errval].str; in fdt_strerror()
/xen-4.10.0-shim-comet/xen/arch/arm/arm32/
A Dentry.S6 #define SAVE_ONE_BANKED(reg) mrs r11, reg; str r11, [sp, #UREGS_##reg]
20 str r11, [sp, #UREGS_pc]; \
22 str lr, [sp, #UREGS_lr]; \
25 str r11, [sp, #UREGS_sp]; \
28 str r11, [sp, #UREGS_hsr]; \
31 str r11, [sp, #UREGS_cpsr]; \
38 str r11, [sp, #UREGS_sp]
A Ddebug-pl011.inc29 str \rc, [\rb, #FBRD] /* -> UARTFBRD (Baud divisor fraction) */
31 str \rc, [\rb, #IBRD] /* -> UARTIBRD (Baud divisor integer) */
33 str \rc, [\rb, #LCR_H] /* -> UARTLCR_H (Line control) */
35 str \rc, [\rb, #CR] /* -> UARTCR (Control Register) */
56 str \rt, [\rb, #DR] /* -> UARTDR (Data Register) */
/xen-4.10.0-shim-comet/tools/firmware/vgabios/
A Dvbetables-gen.c87 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()

Completed in 51 milliseconds

123456