/openbmc/u-boot/include/linux/ |
H A D | list.h | 13 * Simple doubly linked list implementation. 31 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD() argument 33 list->next = list; in INIT_LIST_HEAD() 34 list->prev = list; in INIT_LIST_HEAD() 40 * This is only for internal list manipulation where we know 56 * @head: list head to add it after 69 * @head: list head to add it before 80 * Delete a list entry by making the prev/next entries 83 * This is only for internal list manipulation where we know 93 * list_del - deletes entry from list. [all …]
|
/openbmc/u-boot/test/ |
H A D | command_ut.c | 10 static const char test_cmd[] = "setenv list 1\n setenv list ${list}2; " 11 "setenv list ${list}3\0" 12 "setenv list ${list}4"; 20 run_command_list("setenv list 1\n setenv list ${list}1", -1, 0); in do_ut_cmd() 21 assert(!strcmp("11", env_get("list"))); in do_ut_cmd() 24 run_command_list("setenv list 1${list}\n", -1, 0); in do_ut_cmd() 25 assert(!strcmp("111", env_get("list"))); in do_ut_cmd() 28 run_command("setenv list", 0); in do_ut_cmd() 30 assert(!strcmp("123", env_get("list"))); in do_ut_cmd() 33 * a command list where we limit execution to only the first command in do_ut_cmd() [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | list_utils.robot | 2 Documentation This module contains keywords for list manipulation. 9 [Documentation] Combine all valid list arguments and return the result. 13 # lists A list of lists to be combined. Any item in this list which is 14 # NOT a list will be removed. 21 IF '${type_arg}' != 'list' 22 Remove From List ${lists} ${index} 34 [Documentation] Intersects the two lists passed in. Returns a list of 39 # list1 The first list to intersect. 40 # list2 The second list t [all...] |
H A D | data_proc.tcl | 8 # Add the each entry to a list if and only if they do not already exist in the list. 11 …# args The first argument should be the list name. All other arguments… 12 # items to be added to the list. 15 # Remove first entry from args list. 18 upvar 1 $list_name list 20 if { ! [info exists list] } { set list {} } 23 if { [lsearch -exact $list "${arg}"] != -1 } { continue } 24 lappend list $arg 33 # Remove any entry from the main list that is contained in removal list. 36 # main_list_name The name of your master list. [all …]
|
H A D | bmc_dbus.robot | 16 Get DBUS URI List From BMC 29 ${bmc_response}= Convert To List ${bmc_response} 30 ${bmc_response_output}= Get From List ${bmc_response} 0 34 ${service_name_index_value}= Get From List ${service_name_index_value} 0 37 …${service_name_with_uri_list}= Get From List ${bmc_response_output_list} ${service_name_index_v… 43 # For each index, get the URI and append to list 44 ${dbus_uri}= Get From List ${service_name_with_uri_list} ${list_index} 45 Append To List ${dbus_uri_list} ${dbus_uri} 51 Fetch DBUS URI List Without Unicode 52 [Documentation] Gets the list of DBUS URI for the service and returns only sub URIs. [all …]
|
H A D | openbmc_ffdc_methods.robot | 3 ... data to a list of FFDC files 30 # Execute the user define keywords from the FFDC List # 32 # list of keywords defined in the FFDC list at one go # 35 [Documentation] Call into FFDC Keyword index list. 39 # ffdc_function_list A colon-delimited list naming the kinds of FFDC that 53 @{ffdc_file_list}= Create List 55 ${ffdc_file_sub_list}= Method Call Keyword List ${index} ${ffdc_function_list} 64 Method Call Keyword List 65 [Documentation] Process FFDC request and return a list of generated files. 85 # If function list is empty assign default (i.e. a list of all allowable [all …]
|
/openbmc/qemu/system/ |
H A D | memory_mapping.c | 25 static void memory_mapping_list_add_mapping_sorted(MemoryMappingList *list, in memory_mapping_list_add_mapping_sorted() argument 30 QTAILQ_FOREACH(p, &list->head, next) { in memory_mapping_list_add_mapping_sorted() 36 QTAILQ_INSERT_TAIL(&list->head, mapping, next); in memory_mapping_list_add_mapping_sorted() 39 static void create_new_memory_mapping(MemoryMappingList *list, in create_new_memory_mapping() argument 50 list->last_mapping = memory_mapping; in create_new_memory_mapping() 51 list->num++; in create_new_memory_mapping() 52 memory_mapping_list_add_mapping_sorted(list, memory_mapping); in create_new_memory_mapping() 107 void memory_mapping_list_add_merge_sorted(MemoryMappingList *list, in memory_mapping_list_add_merge_sorted() argument 114 if (QTAILQ_EMPTY(&list->head)) { in memory_mapping_list_add_merge_sorted() 115 create_new_memory_mapping(list, phys_addr, virt_addr, length); in memory_mapping_list_add_merge_sorted() [all …]
|
/openbmc/u-boot/Documentation/ |
H A D | linker_lists.rst | 6 A linker list is constructed by grouping together linker input 7 sections, each containing one entry of the list. Each input section 9 content. Linker list input sections are constructed from the list 11 together. Assuming _list and _entry are the list and entry names, 39 single list. 42 allows putting a start and end symbols around a list, by mapping 45 Start and end symbols for a list can generally be defined as 60 Here is an example of the sorted sections which result from a list 73 part of a list), one can simply give the list a name of the form 74 'outer_2_inner', where 'outer' is the global list name and 'inner' [all …]
|
/openbmc/qemu/util/ |
H A D | notify.c | 19 void notifier_list_init(NotifierList *list) in notifier_list_init() argument 21 QLIST_INIT(&list->notifiers); in notifier_list_init() 24 void notifier_list_add(NotifierList *list, Notifier *notifier) in notifier_list_add() argument 26 QLIST_INSERT_HEAD(&list->notifiers, notifier, node); in notifier_list_add() 34 void notifier_list_notify(NotifierList *list, void *data) in notifier_list_notify() argument 38 QLIST_FOREACH_SAFE(notifier, &list->notifiers, node, next) { in notifier_list_notify() 43 bool notifier_list_empty(NotifierList *list) in notifier_list_empty() argument 45 return QLIST_EMPTY(&list->notifiers); in notifier_list_empty() 48 void notifier_with_return_list_init(NotifierWithReturnList *list) in notifier_with_return_list_init() argument 50 QLIST_INIT(&list->notifiers); in notifier_with_return_list_init() [all …]
|
H A D | nvdimm-utils.c | 7 GSList **list = opaque; in nvdimm_device_list() local 10 *list = g_slist_append(*list, DEVICE(obj)); in nvdimm_device_list() 18 * inquire NVDIMM devices and link them into the list which is 21 * Note: it is the caller's responsibility to free the list to avoid 26 GSList *list = NULL; in nvdimm_get_device_list() local 28 object_child_foreach(qdev_get_machine(), nvdimm_device_list, &list); in nvdimm_get_device_list() 29 return list; in nvdimm_get_device_list()
|
H A D | qemu-option.c | 127 const QemuOptDesc *desc = find_desc_by_name(opts->list->desc, name); in find_default_by_name() 173 * Print the list of options available in the given list. If 174 * @print_caption is true, a caption (including the list name, if it 179 void qemu_opts_print_help(QemuOptsList *list, bool print_caption) in qemu_opts_print_help() argument 185 assert(list); in qemu_opts_print_help() 186 desc = list->desc; in qemu_opts_print_help() 203 if (list->name) { in qemu_opts_print_help() 204 printf("%s options:\n", list->name); in qemu_opts_print_help() 209 if (list->name) { in qemu_opts_print_help() 210 printf("There are no options for %s.\n", list->name); in qemu_opts_print_help() [all …]
|
H A D | reserved-region.c | 24 GList *resv_region_list_insert(GList *list, ReservedRegion *reg) in resv_region_list_insert() argument 31 for (l = list; l ; ) { in resv_region_list_insert() 35 /* Skip all list elements strictly less than range to add */ in resv_region_list_insert() 39 return g_list_insert_before(list, l, reg); in resv_region_list_insert() 45 list = g_list_delete_link(list, l); in resv_region_list_insert() 49 l = list; in resv_region_list_insert() 57 return g_list_insert_before(list, l, reg); in resv_region_list_insert() 75 list = g_list_insert_before(list, l, new_reg); in resv_region_list_insert() 76 return g_list_insert_before(list, l, reg); in resv_region_list_insert() 81 return g_list_insert_before(list, l, reg); in resv_region_list_insert() [all …]
|
/openbmc/openbmc-test-automation/bin/ |
H A D | sol_utils.tcl | 14 [list print.tcl opt.tcl valid.tcl call_stack.tcl tools.exp cmd.tcl host.tcl] 21 set valid_proc_name [list os_login boot_to_petitboot go_to_petitboot_shell \ 26 ${program_name} [list "${program_name} is an SOL utilities program that\ 29 openbmc_host [list "The OpenBMC host name or IP address." "host"]\ 30 openbmc_username [list "The OpenBMC username." "username"]\ 31 openbmc_password [list "The OpenBMC password." "password"]\ 32 os_host [list "The OS host name or IP address." "host"]\ 33 os_username [list "The OS username." "username"]\ 34 os_password [list "The OS password." "password"]\ 35 host_sol_port [list "The HOST SOL port number." "port"]\ [all …]
|
H A D | gen_list.sh | 3 # This file contains list-manipulation functions. 5 # A list is defined here as a string of items separated by some delimiter. The PATH variable is on… 24 # Add the list_element to the list named in list_name. 27 # list_element The list element to be added. 28 # list_name The name of the list to be modified. 29 # delim The delimiter used to separate list elements. 30 …# position Indicates the position in the list where the new element should … 34 # The list is blank. Simply assign it the list_element value and return. 40 # Append the list_element to the back of the list and return. 45 # Append the list_element to the front of the list and return. [all …]
|
/openbmc/openbmc-test-automation/openpower/ext_interfaces/ |
H A D | test_lock_management.robot | 310 [Documentation] Record of lock list is empty for invalid session. 328 [Documentation] Record of lock list is empty for list of invalid session. 428 Verify Redfish List Of Session Deleted 429 [Documentation] Verify all the list of redfish session is deleted. 433 # session_info_list List contains individual session record are stored in dictionary. 476 Redfish Post Acquire List Lock 484 ${lock_dict_param}= Create Data To Acquire List Of Lock ${lock_type} 550 ${temp_list}= Create List ${resp} 556 Create Data To Acquire List Of Lock 557 [Documentation] Create a dictionary for list of lock request. [all …]
|
/openbmc/u-boot/tools/buildman/ |
H A D | board.py | 22 props: List of properties to check 35 """A list of expressions each of which must match with properties. 37 This provides a list of 'AND' expressions, meaning that each must 45 """Add an Expr object to the list to check. 48 expr: New Expr object to add to the list of those that must 63 props: List of properties to check 100 """Manage a list of boards.""" 102 # Use a simple list here, sinc OrderedDict requires Python 2.7 106 """Add a new board to the list. 108 The board's target member must not already exist in the board list. [all …]
|
/openbmc/phosphor-debug-collector/ |
H A D | dump_serialize.hpp | 17 /** @brief Serialize and persist list of ids. 18 * @param[in] list - elog id list. 22 void serialize(const ElogList& list, 26 /** @brief Deserialze a persisted list of ids into list 28 * @param[out] list - elog id list 31 bool deserialize(const std::filesystem::path& path, ElogList& list);
|
/openbmc/qemu/include/system/ |
H A D | memory_mapping.h | 58 * memory mapping's list. The region's virtual address starts with virt_addr, 59 * and is contiguous. The list is sorted by phys_addr. 61 void memory_mapping_list_add_merge_sorted(MemoryMappingList *list, 66 void memory_mapping_list_free(MemoryMappingList *list); 68 void memory_mapping_list_init(MemoryMappingList *list); 70 void guest_phys_blocks_free(GuestPhysBlockList *list); 71 void guest_phys_blocks_init(GuestPhysBlockList *list); 72 void guest_phys_blocks_append(GuestPhysBlockList *list); 74 bool qemu_get_guest_memory_mapping(MemoryMappingList *list, 79 void qemu_get_guest_simple_memory_mapping(MemoryMappingList *list, [all …]
|
/openbmc/u-boot/lib/ |
H A D | list_sort.c | 10 #include <linux/list.h> 16 * Returns a list organized in an intermediate format suited 43 * Combine final list merge with restoration of standard doubly-linked 44 * list structure. This approach duplicates code from merge(), but 90 * list_sort - sort a list 92 * @head: the list to sort 111 struct list_head *list; in list_sort() local 119 list = head->next; in list_sort() 121 while (list) { in list_sort() 122 struct list_head *cur = list; in list_sort() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | pkgdata.py | 71 result = runCmd('oe-pkgdata-util list-pkgs') 76 result = runCmd('oe-pkgdata-util list-pkgs -r') 80 result = runCmd('oe-pkgdata-util list-pkgs -p zlib') 88 result = runCmd('oe-pkgdata-util list-pkgs -p zlib -r') 96 result = runCmd('oe-pkgdata-util list-pkgs -p zlib -u') 100 result = runCmd('oe-pkgdata-util list-pkgs -p zlib -u -r') 104 result = runCmd('oe-pkgdata-util list-pkgs -p zlib "*-d*"') 108 result = runCmd('oe-pkgdata-util list-pkgs -p zlib -r "*-d*"') 130 result = runCmd('oe-pkgdata-util list-pkg-files zlib-dev zlib-doc') 132 self.assertIn('zlib-dev', list(files.keys()), "listed pkgs. files: %s" %result.output) [all …]
|
/openbmc/qemu/include/qapi/ |
H A D | util.h | 34 * For any GenericList @list, insert @element at the front. 39 #define QAPI_LIST_PREPEND(list, element) do { \ argument 40 typeof(list) _tmp = g_malloc(sizeof(*(list))); \ 42 _tmp->next = (list); \ 43 (list) = _tmp; \ 48 * list element), insert @element at the back and update the tail. 60 * For any GenericList @list, return its length. 62 #define QAPI_LIST_LENGTH(list) \ argument 65 typeof_strip_qual(list) _tail; \ 66 for (_tail = list; _tail != NULL; _tail = _tail->next) { \
|
/openbmc/u-boot/scripts/kconfig/lxdialog/ |
H A D | checklist.c | 16 * Print list item 101 * Display a dialog box with a list of options that can be turned on or off 109 WINDOW *dialog, *list; in dialog_checklist() local 156 /* create new window for the list */ in dialog_checklist() 157 list = subwin(dialog, list_height, list_width, y + box_y + 1, in dialog_checklist() 160 keypad(list, TRUE); in dialog_checklist() 162 /* draw a box around the list items */ in dialog_checklist() 180 /* Print the list */ in dialog_checklist() 183 print_item(list, i, i == choice); in dialog_checklist() 192 wnoutrefresh(list); in dialog_checklist() [all …]
|
/openbmc/openbmc/poky/meta/classes/ |
H A D | copyleft_filter.bbclass | 14 COPYLEFT_LICENSE_INCLUDE[type] = 'list' 15 COPYLEFT_LICENSE_INCLUDE[doc] = 'Space separated list of globs which include licenses' 18 COPYLEFT_LICENSE_EXCLUDE[type] = 'list' 19 COPYLEFT_LICENSE_EXCLUDE[doc] = 'Space separated list of globs which exclude licenses' 25 COPYLEFT_RECIPE_TYPES[type] = 'list' 26 COPYLEFT_RECIPE_TYPES[doc] = 'Space separated list of recipe types to include' 29 COPYLEFT_AVAILABLE_RECIPE_TYPES[type] = 'list' 30 COPYLEFT_AVAILABLE_RECIPE_TYPES[doc] = 'Space separated list of available recipe types' 33 COPYLEFT_PN_INCLUDE[type] = 'list' 34 COPYLEFT_PN_INCLUDE[doc] = 'Space separated list of recipe names to include' [all …]
|
/openbmc/qemu/python/qemu/utils/ |
H A D | qom_common.py | 15 # Based on ./scripts/qmp/qom-[set|get|tree|list] 24 List, 36 Represents the return type from e.g. qom-list. 94 Represents the return type from e.g. qom-list-get 98 def __init__(self, properties: List[ObjectPropertyValue]) -> None: 185 def qom_list(self, path: str) -> List[ObjectPropertyInfo]: 187 :return: a strongly typed list from the 'qom-list' command. 189 rsp = self.qmp.cmd('qom-list', path=path) 190 # qom-list returns List[ObjectPropertyInfo] 191 assert isinstance(rsp, list) [all …]
|
/openbmc/qemu/chardev/ |
H A D | char-hmp-cmds.c | 148 ChardevBackendInfoList *list, *start; in chardev_add_completion() local 156 start = list = qmp_query_chardev_backends(NULL); in chardev_add_completion() 157 while (list) { in chardev_add_completion() 158 const char *chr_name = list->value->name; in chardev_add_completion() 163 list = list->next; in chardev_add_completion() 171 ChardevInfoList *list, *start; in chardev_remove_completion() local 179 start = list = qmp_query_chardev(NULL); in chardev_remove_completion() 180 while (list) { in chardev_remove_completion() 181 ChardevInfo *chr = list->value; in chardev_remove_completion() 186 list = list->next; in chardev_remove_completion() [all …]
|