Home
last modified time | relevance | path

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

1234

/illumos-kvm-cmd/
H A Dqjson.c78 QString *str; member
102 qstring_append(s->str, ": "); in to_json_dict_iter()
141 qstring_append(str, "\""); in to_json()
209 s.str = str; in to_json()
212 qstring_append(str, "{"); in to_json()
220 qstring_append(str, "}"); in to_json()
228 s.str = str; in to_json()
282 to_json(obj, str, 0, 0); in qobject_to_json()
284 return str; in qobject_to_json()
291 to_json(obj, str, 1, 0); in qobject_to_json_pretty()
[all …]
H A Dcheck-qjson.c50 QString *str; in START_TEST() local
70 QDECREF(str); in START_TEST()
90 QString *str; in START_TEST() local
105 QDECREF(str); in START_TEST()
125 QString *str; in START_TEST() local
135 QDECREF(str); in START_TEST()
153 QString *str; in START_TEST() local
163 QDECREF(str); in START_TEST()
288 QString *str; in START_TEST() local
299 QDECREF(str); in START_TEST()
[all …]
H A Dcheck-qstring.c26 const char *str = "QEMU"; in START_TEST() local
28 qstring = qstring_from_str(str); in START_TEST()
31 fail_unless(strcmp(str, qstring->string) == 0); in START_TEST()
51 const char *str = "QEMU/KVM"; in START_TEST() local
53 qstring = qstring_from_str(str); in START_TEST()
55 fail_unless(strcmp(ret_str, str) == 0); in START_TEST()
65 const char *str = "qstring append char unit-test"; in START_TEST() local
69 for (i = 0; str[i]; i++) in START_TEST()
70 qstring_append_chr(qstring, str[i]); in START_TEST()
72 fail_unless(strcmp(str, qstring_get_str(qstring)) == 0); in START_TEST()
H A Dqstring.c39 QString *qstring_from_substr(const char *str, int start, int end) in qstring_from_substr() argument
49 memcpy(qstring->string, str + start, qstring->length); in qstring_from_substr()
62 QString *qstring_from_str(const char *str) in qstring_from_str() argument
64 return qstring_from_substr(str, 0, strlen(str) - 1); in qstring_from_str()
79 void qstring_append(QString *qstring, const char *str) in qstring_append() argument
81 size_t len = strlen(str); in qstring_append()
84 memcpy(qstring->string + qstring->length, str, len); in qstring_append()
H A Dqemu-malloc.c98 char *qemu_strdup(const char *str) in qemu_strdup() argument
101 size_t len = strlen(str); in qemu_strdup()
103 memcpy(ptr, str, len + 1); in qemu_strdup()
107 char *qemu_strndup(const char *str, size_t size) in qemu_strndup() argument
109 const char *end = memchr(str, 0, size); in qemu_strndup()
113 size = end - str; in qemu_strndup()
119 return memcpy(new, str, size); in qemu_strndup()
H A Dqemu-sockets.c413 if (str[0] == ':') { in inet_parse()
418 __FUNCTION__, str); in inet_parse()
421 } else if (str[0] == '[') { in inet_parse()
425 __FUNCTION__, str); in inet_parse()
429 } else if (qemu_isdigit(str[0])) { in inet_parse() local
449 optstr = str + pos; in inet_parse()
468 if (inet_parse(opts, str) == 0) { in inet_listen()
471 optstr = strchr(str, ','); in inet_listen()
495 if (inet_parse(opts, str) == 0) in inet_connect()
592 optstr = strchr(str, ','); in unix_listen()
[all …]
H A Djson-parser.c172 QString *str; in qstring_from_escaped_str() local
182 str = qstring_new(); in qstring_from_escaped_str()
190 qstring_append(str, "\""); in qstring_from_escaped_str()
194 qstring_append(str, "'"); in qstring_from_escaped_str()
198 qstring_append(str, "\\"); in qstring_from_escaped_str()
202 qstring_append(str, "/"); in qstring_from_escaped_str()
206 qstring_append(str, "\b"); in qstring_from_escaped_str()
210 qstring_append(str, "\f"); in qstring_from_escaped_str()
256 qstring_append(str, dummy); in qstring_from_escaped_str()
260 return str; in qstring_from_escaped_str()
[all …]
H A Dqemu_socket.h43 int inet_listen(const char *str, char *ostr, int olen,
46 int inet_connect(const char *str, int socktype);
56 int parse_host_port(struct sockaddr_in *saddr, const char *str);
59 const char *str);
H A Dqemu-config.c510 int qemu_set_option(const char *str) in qemu_set_option() argument
517 rc = sscanf(str, "%63[^.].%63[^.].%63[^=]%n", group, id, arg, &offset); in qemu_set_option()
518 if (rc < 3 || str[offset] != '=') { in qemu_set_option()
519 error_report("can't parse: \"%s\"", str); in qemu_set_option()
535 if (qemu_opt_set(opts, arg, str+offset+1) == -1) { in qemu_set_option()
541 int qemu_global_option(const char *str) in qemu_global_option() argument
547 rc = sscanf(str, "%63[^.].%63[^=]%n", driver, property, &offset); in qemu_global_option()
548 if (rc < 2 || str[offset] != '=') { in qemu_global_option()
549 error_report("can't parse: \"%s\"", str); in qemu_global_option()
556 qemu_opt_set(opts, "value", str+offset+1); in qemu_global_option()
H A Dqstring.h27 QString *qstring_from_str(const char *str);
28 QString *qstring_from_substr(const char *str, int start, int end);
31 void qstring_append(QString *qstring, const char *str);
H A Dqemu-option.c120 const char *tag, const char *str) in get_param_value() argument
122 return get_next_param_value(buf, buf_size, tag, &str); in get_param_value()
126 const char * const *params, const char *str) in check_params() argument
131 p = str; in check_params()
507 const char *str; member
542 return opt ? opt->str : NULL; in qemu_opt_get()
598 qemu_free((/* !const */ char*)opt->str); in qemu_opt_del()
630 opt->str = qemu_strdup(value); in qemu_opt_set()
646 rc = func(opt->name, opt->str, opaque); in qemu_opt_foreach()
768 fprintf(stderr, " %s=\"%s\"", opt->name, opt->str); in qemu_opts_print()
[all …]
/illumos-kvm-cmd/hw/
H A Dqdev-properties.c43 if (!strncasecmp(str, "on", 2)) in parse_bit()
74 *ptr = strtoul(str, &end, 0); in parse_uint8()
104 *ptr = strtoul(str, &end, 0); in parse_uint16()
134 *ptr = strtoul(str, &end, 0); in parse_uint32()
161 *ptr = strtol(str, &end, 10); in parse_int32()
190 *ptr = strtoul(str, &end, 16); in parse_hex32()
279 *ptr = qemu_strdup(str); in parse_string()
312 bs = bdrv_find(str); in parse_drive()
353 *ptr = qemu_chr_find(str); in parse_chr()
477 if (str[pos+2] != ':' && str[pos+2] != '-') in parse_mac()
[all …]
H A Dusb-desc.c220 void usb_desc_set_string(USBDevice *dev, uint8_t index, const char *str) in usb_desc_set_string() argument
234 qemu_free(s->str); in usb_desc_set_string()
235 s->str = qemu_strdup(str); in usb_desc_set_string()
244 return s->str; in usb_desc_get_string()
253 const char *str; in usb_desc_string() local
268 str = usb_desc_get_string(dev, index); in usb_desc_string()
269 if (str == NULL) { in usb_desc_string()
270 str = dev->info->usb_desc->str[index]; in usb_desc_string()
271 if (str == NULL) { in usb_desc_string()
276 bLength = strlen(str) * 2 + 2; in usb_desc_string()
[all …]
H A Dfirmware_abi.h35 OpenBIOS_set_var(uint8_t *nvram, uint32_t addr, const char *str) in OpenBIOS_set_var() argument
39 len = strlen(str) + 1; in OpenBIOS_set_var()
40 memcpy(&nvram[addr], str, len); in OpenBIOS_set_var()
/illumos-kvm-cmd/audio/
H A Ddsoundaudio.c95 const char *str = "BUG"; in dsound_log_hresult() local
99 str = "The method succeeded"; in dsound_log_hresult()
113 str = "The request failed because access was denied"; in dsound_log_hresult()
123 str = "The object is already initialized"; in dsound_log_hresult()
128 str = "The specified wave format is not supported"; in dsound_log_hresult()
178 str = "The object does not support aggregation"; in dsound_log_hresult()
188 str = "The requested COM interface is not available"; in dsound_log_hresult()
193 str = "The requested object was not found"; in dsound_log_hresult()
213 str = "A circular loop of send effects was detected"; in dsound_log_hresult()
223 str = "The function called is not supported at this time"; in dsound_log_hresult()
[all …]
H A Dcoreaudio.c59 char *str = "BUG"; in coreaudio_logstatus() local
63 str = "kAudioHardwareNoError"; in coreaudio_logstatus()
67 str = "kAudioHardwareNotRunningError"; in coreaudio_logstatus()
71 str = "kAudioHardwareUnspecifiedError"; in coreaudio_logstatus()
75 str = "kAudioHardwareUnknownPropertyError"; in coreaudio_logstatus()
79 str = "kAudioHardwareBadPropertySizeError"; in coreaudio_logstatus()
87 str = "kAudioHardwareBadDeviceError"; in coreaudio_logstatus()
91 str = "kAudioHardwareBadStreamError"; in coreaudio_logstatus()
99 str = "kAudioDeviceUnsupportedFormatError"; in coreaudio_logstatus()
103 str = "kAudioDevicePermissionsError"; in coreaudio_logstatus()
[all …]
H A Dwinwaveaudio.c55 const char *str = "BUG"; in winwave_log_mmresult() local
59 str = "Success"; in winwave_log_mmresult()
63 str = "Specified device handle is invalid"; in winwave_log_mmresult()
67 str = "Specified device id is out of range"; in winwave_log_mmresult()
71 str = "No device driver is present"; in winwave_log_mmresult()
75 str = "Unable to allocate or locl memory"; in winwave_log_mmresult()
79 str = "Device is synchronous but waveOutOpen was called " in winwave_log_mmresult()
84 str = "The data block pointed to by the pwh parameter " in winwave_log_mmresult()
89 str = "There are still buffers in the queue"; in winwave_log_mmresult()
97 dolog ("Reason: %s\n", str); in winwave_log_mmresult()
/illumos-kvm-cmd/ui/
H A Dspice-core.c499 if (str) { in qemu_spice_init()
500 x509_key_file = qemu_strdup(str); in qemu_spice_init()
507 if (str) { in qemu_spice_init()
508 x509_cert_file = qemu_strdup(str); in qemu_spice_init()
515 if (str) { in qemu_spice_init()
559 if (str) { in qemu_spice_init()
560 compression = parse_compression(str); in qemu_spice_init()
566 if (str) { in qemu_spice_init()
567 wan_compr = parse_wan_compression(str); in qemu_spice_init()
573 if (str) { in qemu_spice_init()
[all …]
/illumos-kvm-cmd/target-i386/
H A Dcpuid.c481 static int cpu_x86_fill_model_id(char *str) in cpu_x86_fill_model_id() argument
488 memcpy(str + i * 16 + 0, &eax, 4); in cpu_x86_fill_model_id()
489 memcpy(str + i * 16 + 4, &ebx, 4); in cpu_x86_fill_model_id()
490 memcpy(str + i * 16 + 8, &ecx, 4); in cpu_x86_fill_model_id()
917 for (q = p = str; *p || *q; q = p) { in setfeatures()
941 def->name = strdup(str); in cpudef_setfield()
945 setscalar(&def->level, str, &err) in cpudef_setfield()
947 cpyid(&str[0], &def->vendor1); in cpudef_setfield()
948 cpyid(&str[4], &def->vendor2); in cpudef_setfield()
949 cpyid(&str[8], &def->vendor3); in cpudef_setfield()
[all …]
/illumos-kvm-cmd/kvm/vgabios/
H A Dvbetables-gen.c90 const char *str; in main() local
154 str = "VBE_MEMORYMODEL_PLANAR"; in main()
156 str = "VBE_MEMORYMODEL_PACKED_PIXEL"; in main()
158 str = "VBE_MEMORYMODEL_DIRECT_COLOR"; in main()
159 printf("/*Bit8u MemoryModel*/ %s,\n", str); in main()
/illumos-kvm-cmd/tests/cris/
H A Dcheck_mmap1.c21 const char *str = "a string you'll only find in the program"; in main() local
43 if (memmem (a, size, str, strlen (str) + 1) == NULL) in main()
H A Dcheck_mmap2.c21 const char *str = "a string you'll only find in the program"; in main() local
43 if (memmem (a, size, str, strlen (str) + 1) == NULL) in main()
/illumos-kvm-cmd/kvm/libfdt/
H A Dfdt_strerror.c59 const char *str; member
63 [(val)] = { .str = #val, }
89 const char *s = errtable[-errval].str; in fdt_strerror()
H A Dlibfdt.h794 #define fdt_property_string(fdt, name, str) \ argument
795 fdt_property(fdt, name, str, strlen(str)+1)
974 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ argument
975 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
/illumos-kvm-cmd/scripts/
H A Dtracetool108 if [ "$disable" = "$str" ] ; then
505 local begin process_line end str disable
512 while read -r str; do
517 disable=${str%%disable *}
524 "$process_line" "$str"
529 "$process_line" "$str"

Completed in 24 milliseconds

1234