Home
last modified time | relevance | path

Searched refs:ifcond (Results 1 – 9 of 9) sorted by relevance

/openbmc/qemu/scripts/qapi/
H A Dcommon.py202 def gen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]],
206 def do_gen(ifcond: Union[str, Dict[str, Any]],
208 if isinstance(ifcond, str):
209 return cond_fmt % ifcond
210 assert isinstance(ifcond, dict) and len(ifcond) == 1
211 if 'not' in ifcond:
212 return not_fmt % do_gen(ifcond['not'], True)
213 if 'all' in ifcond:
214 gen = gen_infix(all_operator, ifcond['all'])
216 gen = gen_infix(any_operator, ifcond['any'])
[all …]
H A Dtypes.py52 ret += memb.ifcond.gen_if()
58 ret += memb.ifcond.gen_endif()
97 ret += memb.ifcond.gen_if()
102 ret += memb.ifcond.gen_endif()
142 ret += memb.ifcond.gen_if()
152 ret += memb.ifcond.gen_endif()
156 def gen_object(name: str, ifcond: QAPISchemaIfCond,
169 ret += gen_object(obj.name, obj.ifcond, obj.base,
175 ret += ifcond.gen_if()
209 ret += ifcond.gen_endif()
[all …]
H A Dvisit.py74 ret += memb.ifcond.gen_if()
80 ret += memb.ifcond.gen_endif()
92 ret += memb.ifcond.gen_if()
129 ret += memb.ifcond.gen_endif()
143 ret += var.ifcond.gen_if()
159 ret += var.ifcond.gen_endif()
246 ret += var.ifcond.gen_if()
272 ret += var.ifcond.gen_endif()
372 ifcond: QAPISchemaIfCond,
376 with ifcontext(ifcond, self._genh, self._genc):
[all …]
H A Devents.py232 ifcond: QAPISchemaIfCond,
236 with ifcontext(ifcond, self._genh, self._genc):
/openbmc/qemu/tests/qapi-schema/
H A Dtest-qapi.py33 def visit_enum_type(self, name, info, ifcond, features, members, prefix): argument
39 self._print_if(m.ifcond, indent=8)
41 self._print_if(ifcond)
44 def visit_array_type(self, name, info, ifcond, element_type): argument
48 self._print_if(ifcond)
50 def visit_object_type(self, name, info, ifcond, features, argument
58 self._print_if(m.ifcond, 8)
61 self._print_if(ifcond)
64 def visit_alternate_type(self, name, info, ifcond, features, argument
68 self._print_if(ifcond)
71 visit_command(self, name, info, ifcond, features, arg_type, ret_type, gen, success_response, boxed, allow_oob, allow_preconfig, coroutine) global() argument
83 visit_event(self, name, info, ifcond, features, arg_type, boxed) global() argument
98 _print_if(ifcond, indent=4) global() argument
[all...]
/openbmc/qemu/docs/sphinx/
H A Dqapi_domain.py411 ifcond = self.options["ifcond"]
417 nodes.literal(ifcond, ifcond),
H A Dqapidoc.py293 if ent.ifcond.is_present():
294 doc = ent.ifcond.docgen()
/openbmc/qemu/hw/acpi/
H A Dnvdimm.c1155 Aml *whilectx, *ifcond, *ifctx, *elsectx, *fit; in nvdimm_build_fit() local
1188 ifcond = aml_equal(aml_int(NVDIMM_DSM_RET_STATUS_SUCCESS), in nvdimm_build_fit()
1190 ifctx = aml_if(aml_lnot(ifcond)); in nvdimm_build_fit()
/openbmc/qemu/docs/devel/
H A Dqapi-domain.rst137 :ifcond: CONFIG_BLKIO
529 * ``:ifcond: CONDITION`` -- Allows the documenting of conditional availability
663 :ifcond: LIB_PERSONALITY
676 :ifcond: LIB_PERSONALITY