/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | config_file_parser.cpp | 55 std::unique_ptr<Action> parseAction(const json& element) in parseAction() argument 57 verifyIsObject(element); in parseAction() 61 if (element.contains("comments")) in parseAction() 68 if (element.contains("and")) in parseAction() 70 action = parseAnd(element["and"]); in parseAction() 73 else if (element.contains("compare_presence")) in parseAction() 75 action = parseComparePresence(element["compare_presence"]); in parseAction() 78 else if (element.contains("compare_vpd")) in parseAction() 80 action = parseCompareVPD(element["compare_vpd"]); in parseAction() 83 else if (element.contains("i2c_capture_bytes")) in parseAction() [all …]
|
H A D | config_file_parser.hpp | 94 inline const nlohmann::json& getRequiredProperty(const nlohmann::json& element, in getRequiredProperty() argument 97 auto it = element.find(property); in getRequiredProperty() 98 if (it == element.end()) in getRequiredProperty() 116 std::unique_ptr<Action> parseAction(const nlohmann::json& element); 129 const nlohmann::json& element); 141 std::unique_ptr<AndAction> parseAnd(const nlohmann::json& element); 153 inline uint8_t parseBitPosition(const nlohmann::json& element) in parseBitPosition() argument 156 if (!element.is_number_integer()) in parseBitPosition() 160 int value = element.get<int>(); in parseBitPosition() 178 inline uint8_t parseBitValue(const nlohmann::json& element) in parseBitValue() argument [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | config_file_parser_tests.cpp | 216 const json element = R"( { "format": "linear" } )"_json; in TEST() local 217 const json& propertyElement = getRequiredProperty(element, "format"); in TEST() 224 const json element = R"( { "volts": 1.03 } )"_json; in TEST() local 225 getRequiredProperty(element, "format"); in TEST() 238 const json element = R"( in TEST() local 246 std::unique_ptr<Action> action = parseAction(element); in TEST() 252 const json element = R"( in TEST() local 259 std::unique_ptr<Action> action = parseAction(element); in TEST() 265 const json element = R"( in TEST() local 273 std::unique_ptr<Action> action = parseAction(element); in TEST() [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/test/ |
H A D | config_file_parser_tests.cpp | 329 const json element = R"( { "name": "VDD_CPU0" } )"_json; in TEST() local 330 const json& propertyElement = getRequiredProperty(element, "name"); in TEST() 337 const json element = R"( { "foo": 23 } )"_json; in TEST() local 338 getRequiredProperty(element, "name"); in TEST() 351 const json element = R"( true )"_json; in TEST() local 352 bool value = parseBoolean(element); in TEST() 358 const json element = R"( false )"_json; in TEST() local 359 bool value = parseBoolean(element); in TEST() 366 const json element = R"( 1 )"_json; in TEST() local 367 parseBoolean(element); in TEST() [all …]
|
/openbmc/linux/mm/ |
H A D | mempool.c | 24 static void poison_error(mempool_t *pool, void *element, size_t size, in poison_error() argument 34 pr_err(" nr=%d @ %p: %s0x", nr, element, start > 0 ? "... " : ""); in poison_error() 36 pr_cont("%x ", *(u8 *)(element + i)); in poison_error() 41 static void __check_element(mempool_t *pool, void *element, size_t size) in __check_element() argument 43 u8 *obj = element; in __check_element() 50 poison_error(pool, element, size, i); in __check_element() 57 static void check_element(mempool_t *pool, void *element) in check_element() argument 61 __check_element(pool, element, (size_t)pool->pool_data); in check_element() 63 __check_element(pool, element, kmem_cache_size(pool->pool_data)); in check_element() 67 void *addr = kmap_atomic((struct page *)element); in check_element() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bs4/builder/ |
H A D | _html5lib.py | 17 from bs4.element import ( 26 from bs4.element import ( 192 self.soup.append(node.element) 198 return treebuilder_base.TreeBuilder.getFragment(self).element 200 def testSerializer(self, element): argument 205 def serializeElement(element, indent=0): argument 206 if isinstance(element, BeautifulSoup): 208 if isinstance(element, Doctype): 209 m = doctype_re.match(element) 221 elif isinstance(element, Comment): [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/src/ |
H A D | config_file_parser.hpp | 92 inline const nlohmann::json& getRequiredProperty(const nlohmann::json& element, in getRequiredProperty() argument 95 auto it = element.find(property); in getRequiredProperty() 96 if (it == element.end()) in getRequiredProperty() 114 inline bool parseBoolean(const nlohmann::json& element) in parseBoolean() argument 117 if (!element.is_boolean()) in parseBoolean() 121 return element.get<bool>(); in parseBoolean() 134 GPIO parseGPIO(const nlohmann::json& element); 146 std::unique_ptr<Rail> parseRail(const nlohmann::json& element); 159 const nlohmann::json& element); 171 std::vector<std::unique_ptr<Rail>> parseRoot(const nlohmann::json& element); [all …]
|
H A D | config_file_parser.cpp | 91 GPIO parseGPIO(const json& element) in parseGPIO() argument 93 verifyIsObject(element); in parseGPIO() 97 const json& lineElement = getRequiredProperty(element, "line"); in parseGPIO() 103 auto activeLowIt = element.find("active_low"); in parseGPIO() 104 if (activeLowIt != element.end()) in parseGPIO() 111 verifyPropertyCount(element, propertyCount); in parseGPIO() 116 std::unique_ptr<Rail> parseRail(const json& element) in parseRail() argument 118 verifyIsObject(element); in parseRail() 122 const json& nameElement = getRequiredProperty(element, "name"); in parseRail() 128 auto presenceIt = element.find("presence"); in parseRail() [all …]
|
/openbmc/bmcweb/include/ |
H A D | event_service_store.hpp | 50 for (const auto& element : j) in fromJson() local 52 if (element.first == "Id") in fromJson() 55 element.second.get_ptr<const std::string*>(); in fromJson() 62 else if (element.first == "Destination") in fromJson() 65 element.second.get_ptr<const std::string*>(); in fromJson() 78 else if (element.first == "Protocol") in fromJson() 81 element.second.get_ptr<const std::string*>(); in fromJson() 88 else if (element.first == "VerifyCertificate") in fromJson() 90 const bool* value = element.second.get_ptr<const bool*>(); in fromJson() 97 else if (element.first == "DeliveryRetryPolicy") in fromJson() [all …]
|
H A D | sessions.hpp | 81 for (const auto& element : j) in fromJson() local 84 element.second.get_ptr<const std::string*>(); in fromJson() 89 element.first); in fromJson() 92 if (element.first == "unique_id") in fromJson() 96 else if (element.first == "session_token") in fromJson() 100 else if (element.first == "csrf_token") in fromJson() 104 else if (element.first == "username") in fromJson() 108 else if (element.first == "client_id") in fromJson() 112 else if (element.first == "client_ip") in fromJson() 121 element.first); in fromJson() [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | uttrack.c | 281 struct acpi_debug_mem_block *element; in acpi_ut_find_allocation() local 283 element = acpi_gbl_global_list->list_head; in acpi_ut_find_allocation() 284 if (!element) { in acpi_ut_find_allocation() 295 while (element > allocation) { in acpi_ut_find_allocation() 299 if (!element->next) { in acpi_ut_find_allocation() 300 return (element); in acpi_ut_find_allocation() 303 element = element->next; in acpi_ut_find_allocation() 306 if (element == allocation) { in acpi_ut_find_allocation() 307 return (element); in acpi_ut_find_allocation() 310 return (element->previous); in acpi_ut_find_allocation() [all …]
|
/openbmc/linux/security/tomoyo/ |
H A D | gc.c | 40 static bool tomoyo_struct_used_by_io_buffer(const struct list_head *element) in tomoyo_struct_used_by_io_buffer() argument 50 if (head->r.domain == element || head->r.group == element || in tomoyo_struct_used_by_io_buffer() 51 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer() 109 static inline void tomoyo_del_transition_control(struct list_head *element) in tomoyo_del_transition_control() argument 112 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control() 125 static inline void tomoyo_del_aggregator(struct list_head *element) in tomoyo_del_aggregator() argument 128 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator() 141 static inline void tomoyo_del_manager(struct list_head *element) in tomoyo_del_manager() argument 144 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager() 156 static void tomoyo_del_acl(struct list_head *element) in tomoyo_del_acl() argument [all …]
|
/openbmc/bmcweb/scripts/ |
H A D | generate_schema_enums.py | 32 def parse_schema(element, filename): argument 34 namespace = element.attrib["Namespace"] 35 for schema_element in element: 54 for element in ds: 55 if element.tag == EDM + "Schema": 56 results.extend(parse_schema(element, filename)) 82 for element in enum_list: 83 redfish_defs_file.write("enum class {}{{\n".format(element.name)) 84 values = element.values 93 for element in enum_list: [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/browser/ |
H A D | test_most_recent_builds_states.py | 48 element = self.wait_until_visible(selector) 49 self.assertRegex(element.get_attribute('innerHTML'), 64 element = self.wait_until_visible(selector) 67 bar_element = element.find_element(By.CSS_SELECTOR, bar_selector) 77 element = self.wait_until_visible(selector) 78 bar_element = element.find_element(By.CSS_SELECTOR, bar_selector) 82 element = Wait(self.driver).until(recipe_bar_updated, msg) 98 element = self.wait_until_visible(selector) 99 self.assertRegex(element.get_attribute('innerHTML'), 109 element = self.wait_until_visible(selector) [all …]
|
H A D | test_project_config_page.py | 51 element = self.wait_until_visible('#hintError-image-fs_type') 53 self.assertTrue(("A valid image type cannot include underscores" in element.text), 101 element = self.driver.find_element(By.ID, 'new-imagefs_types') 105 self.assertTrue(("cpio" in element.get_attribute('value'), 108 self.assertTrue(("cpio" not in element.text), 128 element = self.wait_until_visible('#hintError-initialChar-dl_dir') 132 self.assertTrue((self.INVALID_PATH_START_TEXT in element.text), msg) 138 element = self.wait_until_visible('#hintError-dl_dir') 140 self.assertTrue((self.INVALID_PATH_CHAR_TEXT in element.text), msg) 146 element = self.wait_until_visible('#hintError-dl_dir') [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_acl_flex_keys.c | 73 elinfo = &mlxsw_afk_element_infos[elinst->element]; in mlxsw_afk_blocks_check() 141 DECLARE_BITMAP(element, MLXSW_AFK_ELEMENT_MAX); 147 enum mlxsw_afk_element element) in mlxsw_afk_picker_count_hits() argument 159 if (elinst->element == element) { in mlxsw_afk_picker_count_hits() 160 __set_bit(element, picker[i].element); in mlxsw_afk_picker_count_hits() 175 memcpy(&hits_element, &picker[block_index].element, in mlxsw_afk_picker_subtract_hits() 180 if (__test_and_clear_bit(j, picker[i].element)) in mlxsw_afk_picker_subtract_hits() 207 enum mlxsw_afk_element element; in mlxsw_afk_picker_key_info_add() local 212 for_each_set_bit(element, picker[block_index].element, in mlxsw_afk_picker_key_info_add() 214 key_info->element_to_block[element] = key_info->blocks_count; in mlxsw_afk_picker_key_info_add() [all …]
|
H A D | core_acl_flex_keys.h | 51 enum mlxsw_afk_element element; /* element ID */ member 58 .element = MLXSW_AFK_ELEMENT_##_element, \ 79 enum mlxsw_afk_element element; member 91 .element = MLXSW_AFK_ELEMENT_##_element, \ 144 #define mlxsw_afk_element_usage_for_each(element, elusage) \ argument 145 for_each_set_bit(element, (elusage)->usage, MLXSW_AFK_ELEMENT_MAX) 149 enum mlxsw_afk_element element) in mlxsw_afk_element_usage_add() argument 151 __set_bit(element, elusage->usage); in mlxsw_afk_element_usage_add() 222 enum mlxsw_afk_element element, 225 enum mlxsw_afk_element element,
|
/openbmc/linux/scripts/ |
H A D | asn1_compiler.c | 681 struct element { struct 686 struct element *children; argument 687 struct element *next; argument 688 struct element *render_next; argument 689 struct element *list_next; argument 708 struct element *element; argument 798 static struct element *parse_type(struct token **_cursor, struct token *stop, 819 type->element = parse_type(&cursor, type[1].name, NULL); in parse() 820 type->element->type_def = type; in parse() 833 static struct element *element_list; [all …]
|
/openbmc/boost-dbus/include/dbus/ |
H A D | element.hpp | 54 struct element { struct 59 struct element<bool> { struct 64 struct element<byte> { struct 69 struct element<int16> { struct 74 struct element<uint16> { struct 79 struct element<int32> { struct 84 struct element<uint32> { struct 89 struct element<int64> { struct 94 struct element<uint64> { struct 99 struct element<double> { struct [all …]
|
/openbmc/webui-vue/src/components/Mixins/ |
H A D | JumpLinkMixin.js | 3 setFocus(element) { argument 4 element.setAttribute('tabindex', '-1'); 5 element.focus(); 7 element.removeAttribute('tabindex'); 12 const element = this.$refs[ref].$el; 15 this.setFocus(element); 18 const offset = element.offsetTop - 50;
|
/openbmc/qemu/scripts/ |
H A D | feature_to_c.py | 45 event, element = next(events) variable 49 if element.tag != 'feature': 53 feature_name = element.attrib['name'] 58 for event, element in events: 60 if element.tag != tags[len(tags) - 1]: 65 if element.tag == 'feature': 68 if len(tags) < 2 and element.tag == 'reg': 69 if 'regnum' in element.attrib: 70 regnum = int(element.attrib['regnum']) 72 regnames.append(element.attrib['name']) [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/functional/ |
H A D | test_project_config.py | 57 element = self.wait_until_visible('#hintError-image-fs_type') 59 self.assertTrue(("A valid image type cannot include underscores" in element.text), 102 element = self.driver.find_element(By.ID, 'new-imagefs_types') 104 self.assertTrue(("cpio" in element.get_attribute('value'), 107 self.assertTrue(("cpio" not in element.text), 131 element = self.wait_until_visible('#hintError-initialChar-dl_dir') 135 self.assertTrue((self.INVALID_PATH_START_TEXT in element.text), msg) 141 element = self.wait_until_visible('#hintError-dl_dir') 143 self.assertTrue((self.INVALID_PATH_CHAR_TEXT in element.text), msg) 149 element = self.wait_until_visible('#hintError-dl_dir') [all …]
|
H A D | functional_helpers.py | 108 element = table_element.find_element(By.LINK_TEXT, link_text) 112 return element 119 element = self.driver.find_element(By.XPATH, element_xpath) 122 return element 129 element = self.driver.find_element(By.XPATH, element_xpath) 132 return element 138 element = self.driver.find_element(By.XPATH, element_xpath) 141 return element 190 element = self.wait_until_visible('#project-created-notification') 196 project_name in element.text,
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | chromeos_acpi.c | 73 union acpi_object *element = obj->package.elements; in chromeos_acpi_handle_package() local 77 element += pkg_num; in chromeos_acpi_handle_package() 79 if (element->type == ACPI_TYPE_PACKAGE) { in chromeos_acpi_handle_package() 80 if (sub_pkg_num >= element->package.count) in chromeos_acpi_handle_package() 83 element = element->package.elements; in chromeos_acpi_handle_package() 84 element += sub_pkg_num; in chromeos_acpi_handle_package() 87 switch (element->type) { in chromeos_acpi_handle_package() 89 return sysfs_emit(buf, "%d\n", (int)element->integer.value); in chromeos_acpi_handle_package() 91 return sysfs_emit(buf, "%s\n", element->string.pointer); in chromeos_acpi_handle_package() 99 for (i = 0; i < element->buffer.length && room_left; i += byte_per_line) { in chromeos_acpi_handle_package() [all …]
|
/openbmc/qemu/docs/interop/ |
H A D | prl-xml.rst | 71 All information is placed in a single XML element 73 The element has only one attribute, ``Version``, which must be ``1.0``. 89 ``Disk_Parameters`` element 92 The ``Disk_Parameters`` element describes the physical layout of the 95 The ``Disk_Parameters`` element MUST contain the following child elements: 110 ``StorageData`` element 113 This element of the file describes the root image and all snapshot images. 115 The ``StorageData`` element consists of the ``Storage`` child element, 124 A ``Storage`` element has the following child elements: 137 Each ``Image`` element has the following child elements: [all …]
|