/qemu/tests/unit/ |
H A D | test-cutils.c | 116 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_correct() 130 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_octal() 144 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_decimal() 158 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_llong_max() 174 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_max() 192 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_overflow() 200 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_overflow() 208 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_overflow() 224 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_negative() 232 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_negative() [all …]
|
H A D | test-string-output-visitor.c | 21 char *str; member 50 g_free(data->str); in visitor_output_teardown() 51 data->str = NULL; in visitor_output_teardown() 58 return data->str; in visitor_get() 73 char *str; in test_visitor_out_int() local 93 char *str; in test_visitor_out_intList() local 119 char *str; in test_visitor_out_bool() local 131 char *str; in test_visitor_out_number() local 144 char *str; in test_visitor_out_string() local 160 char *str; in test_visitor_out_no_string() local [all …]
|
H A D | check-qjson.c | 115 QString *str; in string_with_quotes() local 739 QString *str; in utf8_string() local 809 GString *str; in int_number() local 828 g_assert_cmpstr(str->str, ==, in int_number() 865 g_assert_cmpstr(str->str, ==, in uint_number() 904 g_assert_cmpstr(str->str, ==, in float_number() 925 g_assert_cmpstr(str->str, ==, "true"); in keyword_literal() 936 g_assert_cmpstr(str->str, ==, "false"); in keyword_literal() 1094 obj = qobject_from_json(str->str, &error_abort); in simple_dict() 1203 obj = qobject_from_json(str->str, &error_abort); in simple_list() [all …]
|
/qemu/scripts/qapi/ |
H A D | common.py | 30 def camel_to_upper(value: str) -> str: argument 156 def cgen(code: str, **kwds: object) -> str: argument 175 def c_fname(filename: str) -> str: argument 179 def guardstart(name: str) -> str: argument 188 def guardend(name: str) -> str: argument 198 all_operator: str, any_operator: str) -> str: argument 223 def cgen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]]) -> str: argument 227 def docgen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]]) -> str: argument 232 def gen_if(cond: str) -> str: argument 240 def gen_endif(cond: str) -> str: argument [all …]
|
H A D | gen.py | 64 def _top(self) -> str: 95 def _wrap_ifcond(ifcond: QAPISchemaIfCond, before: str, after: str) -> str: argument 113 extra: Optional[str] = None) -> str: argument 138 self._start_if: Optional[Tuple[QAPISchemaIfCond, str, str]] = None 158 def __init__(self, fname: str, blurb: str, pydoc: str): argument 164 def _top(self) -> str: 191 def _top(self) -> str: 290 def _module_dirname(name: str) -> str: argument 295 def _module_basename(self, what: str, name: str) -> str: argument 307 def _module_filename(self, what: str, name: str) -> str: argument [all …]
|
H A D | introspect.py | 62 _Scalar = Union[str, bool, None] 71 SchemaInfo = Dict[str, object] 73 SchemaInfoObject = Dict[str, object] 76 SchemaInfoCommand = Dict[str, object] 110 def indent(level: int) -> str: 137 elif isinstance(obj, str): 168 def to_c_string(string: str) -> str: argument 182 self._name_map: Dict[str, str] = {} 219 def _name(self, name: str) -> str: argument 256 def _gen_tree(self, name: str, mtype: str, obj: Dict[str, object], argument [all …]
|
H A D | schema.py | 52 ifcond: Optional[Union[str, Dict[str, object]]] = None, argument 116 meta: str 120 name: str, argument 192 name: str, argument 383 def __init__(self, name: str, json_type: str, c_type: str): argument 671 types_seen: Dict[str, str] = {} 1193 def _module_name(self, fname: str) -> str: argument 1215 self, name: str, json_type: str, c_type: str argument 1267 ifcond: Optional[Union[str, Dict[str, Any]]], argument 1284 ) -> str: [all …]
|
H A D | types.py | 44 def gen_enum_lookup(name: str, argument 46 prefix: Optional[str] = None) -> str: argument 88 def gen_enum(name: str, argument 90 prefix: Optional[str] = None) -> str: argument 124 def gen_fwd_object_or_array(name: str) -> str: argument 132 def gen_array(name: str, element_type: QAPISchemaType) -> str: argument 218 def gen_upcast(name: str, base: QAPISchemaObjectType) -> str: argument 255 def gen_type_cleanup_decl(name: str) -> str: argument 265 def gen_type_cleanup(name: str) -> str: argument 384 output_dir: str, argument [all …]
|
H A D | source.py | 24 self.command_name_exceptions: List[str] = [] 26 self.command_returns_exceptions: List[str] = [] 28 self.documentation_exceptions: List[str] = [] 30 self.member_name_exceptions: List[str] = [] 43 self.defn_meta: Optional[str] = None 44 self.defn_name: Optional[str] = None 46 def set_defn(self, meta: str, name: str) -> None: argument 55 def loc(self) -> str: 58 def in_defn(self) -> str: 64 def include_path(self) -> str: [all …]
|
H A D | expr.py | 64 if not isinstance(name, str): 68 def check_name_str(name: str, info: QAPISourceInfo, source: str) -> str: argument 94 def check_name_upper(name: str, info: QAPISourceInfo, source: str) -> None: argument 114 def check_name_lower(name: str, info: QAPISourceInfo, source: str, argument 139 def check_name_camel(name: str, info: QAPISourceInfo, source: str) -> None: argument 157 def check_defn_name_str(name: str, info: QAPISourceInfo, meta: str) -> None: argument 188 source: str, argument 189 required: List[str], argument 203 def pprint(elems: Iterable[str]) -> str: argument 250 def check_if(expr: Dict[str, object], argument [all …]
|
/qemu/docs/sphinx/ |
H A D | dbusdomain.py | 45 def get_index_text(self, modname: str, name: str) -> str: argument 50 self, name: str, sig: str, signode: desc_signature argument 76 def get_index_text(self, ifacename: str, name: str) -> str: argument 135 def get_index_text(self, ifacename: str, name: str) -> str: argument 186 def get_index_text(self, ifacename: str, name: str) -> str: argument 208 def get_index_text(self, ifacename: str, name: str) -> str: argument 320 docname: str 350 initial_data: Dict[str, Dict[str, Tuple[Any]]] = { 362 self, name: str, objtype: str, node_id: str, location: Any = None argument 371 def find_obj(self, typ: str, name: str) -> Optional[Tuple[str, ObjectEntry]]: argument [all …]
|
/qemu/pc-bios/s390-ccw/ |
H A D | libc.c | 28 uint64_t atoui(const char *str) in atoui() argument 32 if (!str || !str[0]) { in atoui() 36 while (*str == ' ') { in atoui() 37 str++; in atoui() 40 while (*str) { in atoui() 41 if (!isdigit(*(unsigned char *)str)) { in atoui() 44 val = val * 10 + *str - '0'; in atoui() 45 str++; in atoui() 79 str[num_idx--] = '\0'; in uitoa() 83 str[num_idx--] = num % 10 + '0'; in uitoa() [all …]
|
/qemu/python/scripts/ |
H A D | mkvenv.py | 276 def get_value(self, field: str) -> str: argument 406 def _stringify(data: Union[str, bytes]) -> str: argument 429 def _get_entry_points(packages: Sequence[str]) -> Iterator[str]: argument 484 def pkgname_from_depspec(dep_spec: str) -> str: argument 501 def _path_is_prefix(prefix: Optional[str], path: str) -> bool: argument 636 def _make_version_constraint(info: Dict[str, str], install: bool) -> str: argument 661 group: Dict[str, Dict[str, str]], argument 757 group: Dict[str, Dict[str, str]] = {} 780 def _parse_groups(file: str) -> Dict[str, Dict[str, Any]]: argument 797 file: str, argument [all …]
|
/qemu/scripts/ |
H A D | compare-machine-types.py | 68 def get_prop(self, driver: str, prop: str) -> str: argument 108 self.cached: Dict[str, List[Dict[str, Any]]] = {} 110 def get_prop(self, driver: str, prop_name: str) -> str: argument 124 self.cached: Dict[str, Dict[str, Any]] = {} 126 def get_prop(self, driver: str, prop_name: str) -> str: argument 144 self.cached: Dict[str, List[Dict[str, Any]]] = {} 146 def get_prop(self, driver: str, prop_name: str) -> str: argument 193 def get_prop(self, driver: str, prop: str) -> str: argument 204 def get_implementations(self, driver: str) -> List[str]: argument 250 def get_implementations(self, driver_name: str) -> List[str]: argument [all …]
|
H A D | xml-preprocess.py | 85 def _pp_include(self, xml_str: str) -> str: argument 95 def _pp_env_var(self, xml_str: str) -> str: argument 102 def _pp_sys_var(self, xml_str: str) -> str: argument 109 def _pp_cus_var(self, xml_str: str) -> str: argument 126 def _pp_foreach(self, xml_str: str) -> str: argument 149 def _pp_if_eval(self, xml_str: str) -> str: argument 173 def _pp_if_elseif(self, xml_str: str) -> str: argument 218 def _pp_command(self, xml_str: str) -> str: argument 229 def _pp_blanks(self, xml_str: str) -> str: argument 236 def preprocess(self, xml_str: str) -> str: argument [all …]
|
H A D | block-coroutine-wrapper.py | 56 def __init__(self, param_decl: str) -> None: argument 66 def __init__(self, wrapper_type: str, return_type: str, name: str, argument 67 args: str, variant: str) -> None: argument 105 def gen_ctx(self, prefix: str = '') -> str: argument 117 def gen_list(self, format: str) -> str: argument 120 def gen_block(self, format: str) -> str: argument 133 def func_decl_iter(text: str) -> Iterator: argument 142 def snake_to_camel(func_name: str) -> str: argument 182 def create_co_wrapper(func: FuncDecl) -> str: 206 def gen_co_wrapper(func: FuncDecl) -> str: [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 082.out | 51 backing_file=<str> - File name of a base image 52 backing_fmt=<str> - Image format of the base image 77 backing_file=<str> - File name of a base image 103 backing_file=<str> - File name of a base image 129 backing_file=<str> - File name of a base image 155 backing_file=<str> - File name of a base image 181 backing_file=<str> - File name of a base image 207 backing_file=<str> - File name of a base image 233 backing_file=<str> - File name of a base image 274 backing_file=<str> - File name of a base image [all …]
|
H A D | testrunner.py | 43 def file_diff(file1: str, file2: str) -> List[str]: argument 66 self.cache: Dict[str, Dict[str, Dict[str, float]]] 74 def get(self, test: str, argument 101 def __init__(self, status: str, description: str = '', argument 162 endtime: Optional[str] = None, status: str = '...', argument 215 def find_reference(self, test: str) -> str: argument 256 args = [str(f_test.resolve())] 295 diff=file_diff(str(f_reference), str(f_bad))) 306 diff = file_diff(str(f_reference), str(f_bad)) 309 shutil.copyfile(str(f_bad), str(f_reference)) [all …]
|
/qemu/python/qemu/qmp/ |
H A D | models.py | 29 def __init__(self, raw: Mapping[str, Any]): argument 32 def _check_key(self, key: str) -> None: argument 36 def _check_value(self, key: str, type_: type, typestr: str) -> None: argument 43 def _check_member(self, key: str, type_: type, typestr: str) -> None: argument 48 def _name(self) -> str: 51 def __repr__(self) -> str: 63 def __init__(self, raw: Mapping[str, Any]): argument 71 def _asdict(self) -> Dict[str, object]: 94 self.version: Mapping[str, object] 138 self.class_: str [all …]
|
/qemu/qobject/ |
H A D | json-parser.c | 31 char str[]; member 131 const char *ptr = token->str; in parse_string() 132 GString *str; in parse_string() local 142 str = g_string_new(NULL); in parse_string() 231 return qstring_from_gstring(str); in parse_string() 234 g_string_free(str, true); in parse_string() 434 if (!strcmp(token->str, "true")) { in parse_keyword() 452 if (!strcmp(token->str, "%p")) { in parse_interpolation() 514 if (token->str[0] != '-') { in parse_literal() 567 memcpy(token->str, tokstr->str, tokstr->len); in json_token() [all …]
|
/qemu/scripts/codeconverter/codeconverter/ |
H A D | patching.py | 34 replacement: str 39 name: str 46 regexp: Optional[str] = None 53 def name(self) -> str: 71 def group(self, group: Union[int, str]) -> str: argument 74 def getgroup(self, group: str) -> Optional[str]: argument 95 def sub(self, original: str, replacement: str) -> str: argument 234 def apply_patches(s: str, patches: Iterable[Patch]) -> str: argument 277 def find_matches(self, t: Type[T], name: str, group: str='name') -> List[T]: argument 289 def find_match(self, t: Type[T], name: str, group: str='name') -> Optional[T]: argument [all …]
|
/qemu/python/qemu/utils/ |
H A D | qemu_ga_client.py | 96 def read(self, path: str) -> bytes: argument 104 def info(self) -> str: 120 def __gen_ipv4_netmask(cls, prefixlen: int) -> str: 122 return '.'.join([str(mask >> 24), 123 str((mask >> 16) & 0xff), 124 str((mask >> 8) & 0xff), 125 str(mask & 0xff)]) 127 def ifconfig(self) -> str: 156 def fsfreeze(self, cmd: str) -> object: argument 168 def suspend(self, mode: str) -> None: argument [all …]
|
H A D | __init__.py | 56 content: str = '', argument 58 name: Optional[str] = None, argument 60 upper_left: str = '┏', argument 61 lower_left: str = '┗', argument 62 horizontal: str = '━', argument 63 vertical: str = '┃', argument 64 ) -> str: 104 def _bar(name: Optional[str], top: bool = True) -> str: argument 113 def _wrap(line: str) -> str: argument 136 def summary(self) -> str: [all …]
|
/qemu/hw/core/ |
H A D | qdev-properties-system.c | 95 char *str; in set_drive_helper() local 128 if (!*str) { in set_drive_helper() 184 g_free(str); in set_drive_helper() 249 char *str; in set_chr() local 263 if (!*str) { in set_chr() 324 char *str; in set_mac() local 345 if (str[pos + 2] != ':' && str[pos + 2] != '-') { in set_mac() 399 char *str; in set_netdev() local 738 char *str; in set_reserved_region() local 799 char *str; in set_pci_devfn() local [all …]
|
/qemu/hw/nvme/ |
H A D | nguid.c | 79 static bool nvme_nguid_is_valid(const char *str) in nvme_nguid_is_valid() argument 84 for (i = 0; i < strlen(str); i++) { in nvme_nguid_is_valid() 85 const char c = str[i]; in nvme_nguid_is_valid() 96 if ((i > 0) && (str[i - 1] != NGUID_SEPARATOR) && in nvme_nguid_is_valid() 115 const char *ptr = str; in nvme_nguid_parse() 117 if (!nvme_nguid_is_valid(str)) { in nvme_nguid_parse() 167 char *str; in set_nguid() local 169 if (!visit_type_str(v, name, &str, errp)) { in set_nguid() 173 if (!strcmp(str, NGUID_VALUE_AUTO)) { in set_nguid() 175 } else if (nvme_nguid_parse(str, nguid) < 0) { in set_nguid() [all …]
|