/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | config_file_parser.hpp | 83 * Returns the specified property of the specified JSON element. 87 * @param element JSON element 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() 107 * Parses a JSON element containing an action. 113 * @param element JSON element 116 std::unique_ptr<Action> parseAction(const nlohmann::json& element); 119 * Parses a JSON element containing an array of actions. 125 * @param element JSON element [all …]
|
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 …]
|
/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/src/ |
H A D | config_file_parser.hpp | 81 * Returns the specified property of the specified JSON element. 85 * @param element JSON element 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() 105 * Parses a JSON element containing a boolean. 111 * @param element JSON element 114 inline bool parseBoolean(const nlohmann::json& element) in parseBoolean() argument 116 // Verify element contains a boolean in parseBoolean() 117 if (!element.is_boolean()) in parseBoolean() [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/openbmc-test-automation/gui/test/gui_header/ |
H A D | test_obmc_gui_server_health.robot | 32 Wait Until Page Contains Element event-log 42 Page Should Contain Element ${xpath_event_severity_all} limit=1 43 Page Should Contain Element ${xpath_event_severity_high} limit=1 44 Page Should Contain Element ${xpath_event_severity_medium} limit=1 45 Page Should Contain Element ${xpath_event_severity_low} limit=1 55 # It helps to click the drop down element. 56 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 57 Click Element //*[@class='dropdown__button'] 61 Verify Content Search Element Appears 62 [Documentation] Check that the "event search element is available with [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() 363 // Test where fails: Element is not a boolean in TEST() 366 const json element = R"( 1 )"_json; in TEST() local [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bs4/builder/ |
H A D | _html5lib.py | 17 from bs4.element import ( 26 from bs4.element import ( 61 # original file is the source of an element. 156 return Element(self.soup, self.soup, None) 177 return Element(tag, self.soup, namespace) 188 return Element(self.soup, self.soup, None) 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 [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/hardware_status_menu/ |
H A D | test_sensors_sub_menu.robot | 29 Page Should Contain Element ${xpath_sensor_heading} 43 Page Should Contain Element ${xpath_sensors_filter} 44 Click Element ${xpath_sensors_filter} 47 Page Should Contain Element ${xpath_sensors_search} 53 [Teardown] Click Element ${xpath_clear_search_input} 55 Wait Until Page Contains Element ${xpath_sensors_search} 64 Wait Until Page Contains Element ${xpath_sensors_filter} timeout=15s 65 Click Element ${xpath_sensors_filter} 67 Page Should Contain Element ${xpath_filter_ok} 68 Page Should Contain Element ${xpath_filter_warning} [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 32 pr_err("BUG: mempool element poison mismatch\n"); in poison_error() 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() [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/operations_menu/ |
H A D | test_server_power_operations_sub_menu.robot | 35 Page Should Contain Element ${xpath_server_power_heading} 44 Click Element At Coordinates ${xpath_shutdown_immediate_radio} 0 0 45 Click Element ${xpath_shutdown_button} 46 Wait Until Page Contains Element ${xpath_confirm_button} timeout=10 47 Click Element ${xpath_confirm_button} 48 …Wait Until Keyword Succeeds 3 min 15 sec Element Should Contain ${xpath_current_power_state} … 57 Click Element At Coordinates ${xpath_shutdown_orderly_radio} 0 0 58 Click Element ${xpath_shutdown_button} 59 Wait Until Page Contains Element ${xpath_confirm_button} timeout=10 60 Click Element ${xpath_confirm_button} [all …]
|
/openbmc/phosphor-mrw-tools/ |
H A D | patchxml.py | 6 The patch file is itself an XML file. It can have any root element name, 9 where the fix should be applied. A <targetFile> element is required in the 11 applied to, though the targetFile element is handled outside of this script. 15 top level element. 19 1) Add an element: 20 Put in the element to add, along with the type='add' attribute 21 and an xpath attribute specifying where the new element should go. 27 This will add a new enumerationType element child to the root element. 29 2) Replace an element: 30 Put in the new element, with the type='replace' attribute [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/settings_menu/ |
H A D | test_date_and_time_sub_menu.robot | 33 Page Should Contain Element ${xpath_date_time_heading} 59 Page Should Contain Element ${xpath_select_manual} 60 Page Should Contain Element ${xpath_select_ntp} 61 Page Should Contain Element ${xpath_select_save_settings} 68 Click Element At Coordinates ${xpath_select_manual} 0 0 69 Page Should Contain Element ${xpath_manual_date} 70 Page Should Contain Element ${xpath_manual_time} 72 Click Element At Coordinates ${xpath_select_ntp} 0 0 73 Page Should Contain Element ${xpath_ntp_server1} 74 Page Should Contain Element ${xpath_ntp_server2} [all …]
|
/openbmc/linux/security/tomoyo/ |
H A D | gc.c | 33 …* tomoyo_struct_used_by_io_buffer - Check whether the list element is used by /sys/kernel/security… 35 * @element: Pointer to "struct list_head". 37 * Returns true if @element is used by /sys/kernel/security/tomoyo/ users, 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() 105 * @element: Pointer to "struct list_head". 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() 121 * @element: Pointer to "struct list_head". [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/security_and_access_menu/ |
H A D | test_user_management_sub_menu.robot | 49 Page Should Contain Element ${xpath_user_management_heading} 72 Page Should Contain Element ${xpath_edit_user} 73 Page Should Contain Element ${xpath_delete_user} 79 [Teardown] Click Element ${xpath_cancel_button} 81 Click Element ${xpath_add_user} 82 Wait Until Page Contains Element ${xpath_add_user_heading} 83 Page Should Contain Element ${xpath_account_status_enabled_button} 84 Page Should Contain Element ${xpath_account_status_disabled_button} 85 Page Should Contain Element ${xpath_username_input_button} 86 Page Should Contain Element ${xpath_privilege_list_button} [all …]
|
/openbmc/openbmc-test-automation/gui/lib/ |
H A D | gui_resource.robot | 98 Wait Until Element Is Enabled ${xpath_login_username_input} 101 Wait Until Element Is Enabled ${xpath_login_button} 102 Click Element ${xpath_login_button} 104 Wait Until Element Is Not Visible 122 Click Element ${xpath_root_button_menu} 123 Click Element ${xpath_logout_button} 124 Wait Until Page Contains Element ${xpath_login_button} 140 Wait Until Page Contains Element ${xpath_root_button_menu} 141 Click Element ${xpath_root_button_menu} 142 Click Element ${xpath_profile_settings} [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/overview_menu/ |
H A D | test_overview_menu.robot | 73 Element Should Contain ${xpath_machine_model} ${redfish_machine_model} 77 Element Should Contain ${xpath_serial_number} ${redfish_serial_number} 81 Element Should Contain ${xpath_asset_tag} ${redfish_asset_tag} 85 …Element Should Contain ${xpath_operating_mode} ${redfish_operating_mode['pvm_system_operating_mo… 100 Click Element ${xpath_network_information_view_more_button} 101 Wait Until Page Contains Element ${xpath_network_heading} 110 Click Element ${xpath_refresh_button} 112 Click Element ${xpath_refresh_button} 113 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 124 Click Element ${xpath_refresh_button} [all …]
|
/openbmc/bmcweb/include/ |
H A D | event_service_store.hpp | 44 for (const auto& element : j) in fromJson() local 46 if (element.first == "Id") in fromJson() 49 element.second.get_ptr<const std::string*>(); in fromJson() 56 else if (element.first == "Destination") in fromJson() 59 element.second.get_ptr<const std::string*>(); in fromJson() 72 else if (element.first == "Protocol") in fromJson() 75 element.second.get_ptr<const std::string*>(); in fromJson() 82 else if (element.first == "VerifyCertificate") in fromJson() 84 const bool* value = element.second.get_ptr<const bool*>(); in fromJson() 91 else if (element.first == "DeliveryRetryPolicy") in fromJson() [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | chio.h | 9 /* changer element types */ 10 #define CHET_MT 0 /* media transport element (robot) */ 11 #define CHET_ST 1 /* storage element (media slots) */ 12 #define CHET_IE 2 /* import/export element */ 13 #define CHET_DT 3 /* data transfer element (tape/cdrom/whatever) */ 25 * query vendor-specific element types 27 * accessing elements works by specifing type and unit of the element. 33 int cp_curpicker; /* current transport element */ 54 * move a medium from one element to another 57 int cm_fromtype; /* type/unit of source element */ [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/openbmc-test-automation/gui/test/server_config/ |
H A D | test_obmc_gui_network_settings.robot | 43 Click Element ${xpath_network_save_settings} 44 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 45 Click Element ${xpath_continue} 46 Click Element ${xpath_select_refresh_button} 47 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 56 Page Should Contain Element ${xpath_default_gateway_input} 65 Page Should Contain Element ${xpath_mac_address_input} 73 Page Should Contain Element ${xpath_network_static_button} 74 Click Element ${xpath_network_static_button} 84 Page Should Contain Element ${xpath_network_DHCP_button} [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/rocketlake/ |
H A D | floating-point.json | 11 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 14 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 19 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MU… 22 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 27 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 30 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 35 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 38 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 43 …element. Applies to SSE* and AVX* packed single precision and packed double precision FP instruct… 46 …element. Applies to SSE* and AVX* packed single precision floating-point and packed double precis… [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/icelake/ |
H A D | floating-point.json | 11 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 14 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 19 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MU… 22 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 27 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 30 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 35 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 38 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 43 …element. Applies to SSE* and AVX* packed single precision and packed double precision FP instruct… 46 …element. Applies to SSE* and AVX* packed single precision floating-point and packed double precis… [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/tigerlake/ |
H A D | floating-point.json | 11 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 14 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 19 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MU… 22 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 27 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 30 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 35 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 38 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 43 …element. Applies to SSE* and AVX* packed single precision and packed double precision FP instruct… 46 …element. Applies to SSE* and AVX* packed single precision floating-point and packed double precis… [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/icelakex/ |
H A D | floating-point.json | 11 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 14 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 19 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB MU… 22 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 27 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 30 …element. Applies to SSE* and AVX* packed double precision floating-point instructions: ADD SUB HA… 35 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 38 …element. Applies to SSE* and AVX* packed single precision floating-point instructions: ADD SUB HA… 43 …element. Applies to SSE* and AVX* packed single precision and packed double precision FP instruct… 46 …element. Applies to SSE* and AVX* packed single precision floating-point and packed double precis… [all …]
|