Home
last modified time | relevance | path

Searched full:dict (Results 1 – 25 of 520) sorted by relevance

12345678910>>...21

/openbmc/linux/lib/xz/
H A Dxz_dec_lzma2.c268 struct dictionary dict; member
290 static void dict_reset(struct dictionary *dict, struct xz_buf *b) in dict_reset() argument
292 if (DEC_IS_SINGLE(dict->mode)) { in dict_reset()
293 dict->buf = b->out + b->out_pos; in dict_reset()
294 dict->end = b->out_size - b->out_pos; in dict_reset()
297 dict->start = 0; in dict_reset()
298 dict->pos = 0; in dict_reset()
299 dict->limit = 0; in dict_reset()
300 dict->full = 0; in dict_reset()
304 static void dict_limit(struct dictionary *dict, size_t out_max) in dict_limit() argument
[all …]
/openbmc/qemu/tests/unit/
H A Dcheck-block-qdict.c18 QDict *dict, *copy; in qdict_defaults_test() local
20 dict = qdict_new(); in qdict_defaults_test()
23 qdict_set_default_str(dict, "foo", "abc"); in qdict_defaults_test()
24 qdict_set_default_str(dict, "foo", "def"); in qdict_defaults_test()
25 g_assert_cmpstr(qdict_get_str(dict, "foo"), ==, "abc"); in qdict_defaults_test()
26 qdict_set_default_str(dict, "bar", "ghi"); in qdict_defaults_test()
28 qdict_copy_default(copy, dict, "foo"); in qdict_defaults_test()
31 qdict_copy_default(copy, dict, "bar"); in qdict_defaults_test()
35 qobject_unref(dict); in qdict_defaults_test()
303 QDict *dict = qdict_new(); in qdict_array_entries_test() local
[all …]
H A Dtest-qemu-opts.c293 QDict *dict; in test_qemu_opt_get_size() local
313 dict = qdict_new(); in test_qemu_opt_get_size()
314 g_assert(dict != NULL); in test_qemu_opt_get_size()
316 qdict_put_str(dict, "size1", "10"); in test_qemu_opt_get_size()
318 qemu_opts_absorb_qdict(opts, dict, &error_abort); in test_qemu_opt_get_size()
326 qdict_put_str(dict, "size1", "15"); in test_qemu_opt_get_size()
328 qemu_opts_absorb_qdict(opts, dict, &error_abort); in test_qemu_opt_get_size()
335 qdict_del(dict, "size1"); in test_qemu_opt_get_size()
336 g_free(dict); in test_qemu_opt_get_size()
878 QDict *dict; in test_opts_to_qdict_basic() local
[all …]
/openbmc/openbmc-test-automation/bin/
H A Dsol_utils.tcl25 set help_dict [dict create\
43 set state [dict create\
153 dict set state ssh_logged_in 1
157 if { [dict get $state ssh_logged_in] } {
167 dict set state ssh_logged_in 1
185 if { ! [dict get $state ssh_logged_in] } {
196 dict set state ssh_logged_in 0
220 if { ! [dict get $state ssh_logged_in] } {
238 dict set state os_login_prompt 1
241 dict set state os_logged_in 1
[all …]
/openbmc/openbmc-test-automation/openpower/ext_interfaces/
H A Dtest_vmicert_management.robot155 ${dict}= Execute Process Multi Keyword ${5}
159 Dictionary Should Not Contain Value ${dict} False
169 ${dict}= Execute Process Multi Keyword ${5}
174 Dictionary Should Not Contain Value ${dict} False
184 ${dict}= Execute Process Multi Keyword ${5}
188 Dictionary Should Not Contain Value ${dict} False
200 ${dict}= Execute Process Multi Keyword ${5}
204 Dictionary Should Not Contain Value ${dict} False
217 ${dict}= Execute Process Multi Keyword ${5}
220 Dictionary Should Not Contain Value ${dict} False
[all …]
/openbmc/qemu/qapi/
H A Dqmp-dispatch.c44 static QDict *qmp_dispatch_check_obj(QDict *dict, bool allow_oob, in qmp_dispatch_check_obj() argument
52 for (ent = qdict_first(dict); ent; in qmp_dispatch_check_obj()
53 ent = qdict_next(dict, ent)) { in qmp_dispatch_check_obj()
90 return dict; in qmp_dispatch_check_obj()
107 bool qmp_is_oob(const QDict *dict) in qmp_is_oob() argument
109 return qdict_haskey(dict, "exec-oob") in qmp_is_oob()
110 && !qdict_haskey(dict, "execute"); in qmp_is_oob()
145 QDict *dict; in qmp_dispatch() local
150 dict = qobject_to(QDict, request); in qmp_dispatch()
151 if (!dict) { in qmp_dispatch()
[all …]
/openbmc/linux/drivers/tty/vt/
H A Dconsolemap.c226 static void set_inverse_transl(struct vc_data *conp, struct uni_pagedict *dict, in set_inverse_transl() argument
232 if (!dict) in set_inverse_transl()
234 inv = dict->inverse_translations[m]; in set_inverse_transl()
237 inv = dict->inverse_translations[m] = kmalloc(MAX_GLYPH, in set_inverse_transl()
253 static void set_inverse_trans_unicode(struct uni_pagedict *dict) in set_inverse_trans_unicode() argument
258 if (!dict) in set_inverse_trans_unicode()
261 inv = dict->inverse_trans_unicode; in set_inverse_trans_unicode()
263 inv = dict->inverse_trans_unicode = kmalloc_array(MAX_GLYPH, in set_inverse_trans_unicode()
271 u16 **dir = dict->uni_pgdir[d]; in set_inverse_trans_unicode()
426 static void con_release_unimap(struct uni_pagedict *dict) in con_release_unimap() argument
[all …]
/openbmc/linux/lib/zstd/decompress/
H A Dzstd_ddict.c118 const void* dict, size_t dictSize, in ZSTD_initDDict_internal() argument
122 if ((dictLoadMethod == ZSTD_dlm_byRef) || (!dict) || (!dictSize)) { in ZSTD_initDDict_internal()
124 ddict->dictContent = dict; in ZSTD_initDDict_internal()
125 if (!dict) dictSize = 0; in ZSTD_initDDict_internal()
131 ZSTD_memcpy(internalBuffer, dict, dictSize); in ZSTD_initDDict_internal()
142 ZSTD_DDict* ZSTD_createDDict_advanced(const void* dict, size_t dictSize, in ZSTD_createDDict_advanced() argument
153 dict, dictSize, in ZSTD_createDDict_advanced()
165 * `dict` content is copied inside DDict.
166 * Consequently, `dict` can be released after `ZSTD_DDict` creation */
167 ZSTD_DDict* ZSTD_createDDict(const void* dict, size_t dictSize) in ZSTD_createDDict() argument
[all …]
/openbmc/qemu/python/qemu/qmp/
H A Dmessage.py11 Dict,
28 be instantiated from either another mapping (like a `dict`), or from
48 Or back into a garden-variety `dict`::
50 >>> dict(msg)
66 self._obj: Optional[Dict[str, object]] = None
73 self._obj = dict(value)
120 def _object(self) -> Dict[str, object]:
122 A `dict` representing this QMP message.
145 def _deserialize(cls, data: bytes) -> Dict[str, object]:
147 Deserialize JSON `bytes` into a native Python `dict`.
[all …]
H A Dlegacy.py30 Dict,
44 QMPMessage = Dict[str, Any]
50 QMPObject = Dict[str, object]
53 # QMPReturnValue is usually a dict/json object, but due to QAPI's
147 :return: QMP greeting dict, or None if negotiate is false
166 :return: QMP greeting dict
182 :param qmp_cmd: QMP command to be sent as a Python dict
183 :return: QMP response as a Python dict
185 return dict(
198 args: Optional[Dict[str, object]] = None) -> QMPMessage:
[all …]
/openbmc/obmc-console/
H A Dconfig.c46 if (!config->dict) { in config_get_value()
59 const char *value = iniparser_getstring(config->dict, buf, NULL); in config_get_value()
70 dictionary *dict; in config_init() local
77 dict = iniparser_load(filename); in config_init()
78 if (!dict) { in config_init()
98 dict = NULL; in config_init()
103 iniparser_freedict(dict); in config_init()
107 config->dict = dict; in config_init()
130 return iniparser_getstring(config->dict, buf, NULL); in config_get_section_value()
139 if (config->dict) { in config_fini()
[all …]
/openbmc/linux/tools/perf/tests/shell/lib/
H A Dperf_metric_validation.py21 self.allresults = dict() # metric results of all workload
22 self.allignoremetrics = dict() # metrics with no results or negative results
23 self.allfailtests = dict()
24 self.alltotalcnt = dict()
25 self.allpassedcnt = dict()
26 self.allerrlist = dict()
28 self.results = dict() # metric results of current workload
31 self.failtests = dict()
51 def read_json(self, filename: str) -> dict:
147 negmetric = dict()
[all …]
/openbmc/openbmc-test-automation/redfish/systems/
H A Dtest_sensor_monitoring.robot32 Should Be Equal As Strings ${resp.dict['Sensors']['@odata.id']}
34 Should Be Equal As Strings ${resp.dict['Thermal']['@odata.id']}
36 Should Be Equal As Strings ${resp.dict['Power']['@odata.id']}
43 Check Sensors Present ${resp.dict['Voltages']} Voltage
45 ... ${resp.dict['Voltages']} ReadingVolts
51 Check Sensors Present ${resp.dict['Temperatures']} Temperature
52 Check Sensors Present ${resp.dict['Fans']} Fans
55 ... ${resp.dict['Temperatures']} ReadingCelsius
57 ... ${resp.dict['Fans']} Reading
157 ... '${resp.dict['Status']['Health']}' != 'OK'
[all …]
/openbmc/docs/architecture/
H A Dobject-mapper.md41 dict entry(
84 dict entry(
87 dict entry(
97 dict entry(
100 dict entry(
149 dict entry(
152 dict entry(
162 dict entry(
165 dict entry(
229 dict entry(
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Ddata_smart.py156 class DataContext(dict):
161 dict.__init__(self, **kwargs)
364 """Return a dict of file/line references"""
426 self.dict = {}
514 if not var in self.dict:
515 self.dict[var] = {}
518 dest = self.dict
529 if var in self.dict:
535 self.dict[var] = copy.copy(local_var)
594 if not var in self.dict:
[all …]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/
H A Dmerge_yamls.py23 Works like dict.update() that recursively updates any dict values present in
27 target (dict): Values to be overwritten by corresponding values from
29 source (dict): Overriding values. Not changed by call.
35 if not isinstance(source, dict):
38 if k in target and isinstance(target[k], dict):
/openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw/
H A Dmerge_sensor_config.py23 Works like dict.update() that recursively updates any dict values present in
27 target (dict): Values to be overwritten by corresponding values from
29 source (dict): Overriding values. Not changed by call.
35 if not isinstance(source, dict):
38 if k in target and isinstance(target[k], dict):
/openbmc/qemu/scripts/qapi/
H A Dintrospect.py16 Dict,
53 # Non-scalar: List, Dict
54 # _value = Union[str, bool, None, Dict[str, JSONValue], List[JSONValue]]
63 _NonScalar = Union[Dict[str, _Stub], List[_Stub]]
71 SchemaInfo = Dict[str, object]
72 SchemaInfoEnumMember = Dict[str, object]
73 SchemaInfoObject = Dict[str, object]
74 SchemaInfoObjectVariant = Dict[str, object]
75 SchemaInfoObjectMember = Dict[str, object]
76 SchemaInfoCommand = Dict[str, object]
[all …]
H A Dexpr.py20 consisting of dict, list, str, bool, and int nodes. This module ensures
36 Dict,
186 def check_keys(value: Dict[str, object],
192 Ensure that a dict has a specific set of keys.
194 :param value: The dict to check.
250 def check_if(expr: Dict[str, object],
255 The ``if`` member may be either a ``str`` or a dict.
276 if not isinstance(cond, dict):
317 If ``members`` is a dict, for every value in that dict, if that
318 value is not itself already a dict, normalize it to
[all …]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/settings/phosphor-settings/
H A Dmerge_settings.py17 Works like dict.update() that recursively updates/removes any dict values
21 target (dict): Values to be overwritten by corresponding values from
23 source (dict): Overriding values. Not changed by call.
32 if not isinstance(source, dict):
35 if k in target and isinstance(target[k], dict):
/openbmc/openbmc/meta-phosphor/recipes-phosphor/settings/phosphor-settings-manager/
H A Dmerge_settings.py17 Works like dict.update() that recursively updates/removes any dict values
21 target (dict): Values to be overwritten by corresponding values from
23 source (dict): Overriding values. Not changed by call.
32 if not isinstance(source, dict):
35 if k in target and isinstance(target[k], dict):
/openbmc/openbmc-test-automation/redfish/update_service/
H A Dtest_firmware_inventory.robot28 Should Be Equal As Strings ${resp.dict["ServiceEnabled"]} ${True}
55 Should Be True ${resp.dict["Members@odata.count"]} >= ${1}
56 Length Should Be ${resp.dict["Members"]} ${resp.dict["Members@odata.count"]}
70 FOR ${entry} IN RANGE 0 ${resp.dict["Members@odata.count"]}
71 ${resp_resource}= Redfish.Get ${resp.dict["Members"][${entry}]["@odata.id"]}
78 Should Be Equal As Strings ${resp_resource.dict["Status"]["Health"]} OK
79 Should Be Equal As Strings ${resp_resource.dict["Status"]["HealthRollup"]} OK
80 Should Be Equal As Strings ${resp_resource.dict["Status"]["State"]} Enabled
92 ... ${bmc_manager.dict["FirmwareVersion"]} ${manager_bmc_version.strip('"')}
101 ${actual_count}= Evaluate ${resp.dict["Members@odata.count"]}-1
[all …]
/openbmc/linux/tools/perf/scripts/python/
H A Dgecko.py30 from typing import List, Dict, Optional, NamedTuple, Set, Tuple, Any
59 tid_to_thread = dict()
112 stringMap: Dict[str, int] = field(default_factory=dict)
114 stackMap: Dict[Tuple[Optional[int], int], int] = field(default_factory=dict)
115 frameMap: Dict[str, int] = field(default_factory=dict)
123 stringMap: Dict[str, int] = field(default_factory=dict)
125 stackMap: Dict[Tuple[Optional[int], int], int] = field(default_factory=dict)
126 frameMap: Dict[str, int] = field(default_factory=dict)
196 def _to_json_dict(self) -> Dict:
262 def process_event(param_dict: Dict) -> None: argument
/openbmc/openbmc-test-automation/extended/
H A Dtest_bmc_stress_buster.robot28 ${dict}= Execute Process
30 Dictionary Should Not Contain Value ${dict} False
38 ${dict}= Execute Process
40 Dictionary Should Not Contain Value ${dict} False
48 ${dict}= Execute Process ${IPMI_BUSTER_MAX} IPMI Check Status
49 Dictionary Should Not Contain Value ${dict} False
/openbmc/openbmc-test-automation/network/
H A Dtest_vlan_network.robot49 ${lan_config}= Get LAN Print Dict
69 ${lan_config}= Get LAN Print Dict
82 ${lan_config}= Get LAN Print Dict
93 ${lan_config}= Get LAN Print Dict
101 ${lan_config}= Get LAN Print Dict
112 ${lan_config}= Get LAN Print Dict
118 ${lan_config}= Get LAN Print Dict
130 ${lan_config}= Get LAN Print Dict
139 ${lan_config}= Get LAN Print Dict
155 ${lan_config}= Get LAN Print Dict
[all …]

12345678910>>...21