/openbmc/linux/drivers/clk/rockchip/ |
H A D | clk.c | 408 struct rockchip_pll_clock *list, in rockchip_clk_register_plls() argument 414 for (idx = 0; idx < nr_pll; idx++, list++) { in rockchip_clk_register_plls() 415 clk = rockchip_clk_register_pll(ctx, list->type, list->name, in rockchip_clk_register_plls() 416 list->parent_names, list->num_parents, in rockchip_clk_register_plls() 417 list->con_offset, grf_lock_offset, in rockchip_clk_register_plls() 418 list->lock_shift, list->mode_offset, in rockchip_clk_register_plls() 419 list->mode_shift, list->rate_table, in rockchip_clk_register_plls() 420 list->flags, list->pll_flags); in rockchip_clk_register_plls() 423 list->name); in rockchip_clk_register_plls() 427 rockchip_clk_add_lookup(ctx, clk, list->id); in rockchip_clk_register_plls() [all …]
|
/openbmc/linux/lib/ |
H A D | list-test.c | 3 * KUnit test for the Kernel Linked-list structures. 10 #include <linux/list.h> 15 struct list_head list; member 20 /* Test the different ways of initialising a list. */ in list_test_list_init() 50 LIST_HEAD(list); in list_test_list_add() 52 list_add(&a, &list); in list_test_list_add() 53 list_add(&b, &list); in list_test_list_add() 55 /* should be [list] -> b -> a */ in list_test_list_add() 56 KUNIT_EXPECT_PTR_EQ(test, list.next, &b); in list_test_list_add() 57 KUNIT_EXPECT_PTR_EQ(test, b.prev, &list); in list_test_list_add() [all …]
|
/openbmc/linux/include/linux/ |
H A D | list.h | 14 * Circular doubly linked list implementation. 30 * @list: list_head structure to be initialized. 32 * Initializes the list_head to point to itself. If it is a list header, 33 * the result is an empty list. 35 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD() argument 37 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD() 38 WRITE_ONCE(list->prev, list); in INIT_LIST_HEAD() 50 * Performs the full set of list corruption checks before __list_add(). 51 * On list corruption reports a warning, and returns false. 58 * Performs list corruption checks before __list_add(). Returns false if a [all …]
|
H A D | rculist.h | 8 * RCU-protected list version 10 #include <linux/list.h> 15 * @list: list to be initialized 18 * cleanup tasks, when readers have no access to the list being initialized. 19 * However, if the list being initialized is visible to readers, you 22 static inline void INIT_LIST_HEAD_RCU(struct list_head *list) in INIT_LIST_HEAD_RCU() argument 24 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD_RCU() 25 WRITE_ONCE(list->prev, list); in INIT_LIST_HEAD_RCU() 32 #define list_next_rcu(list) (*((struct list_head __rcu **)(&(list)->next))) argument 35 * list_tail_rcu - returns the prev pointer of the head of the list [all …]
|
H A D | llist.h | 5 * Lock-less NULL terminated single linked list 16 * needed. This is because llist_del_first depends on list->first->next not 19 * preempted back, the list->first is the same as before causing the cmpxchg in 35 * The list entries deleted via llist_del_all can be traversed with 36 * traversing function such as llist_for_each etc. But the list 37 * entries can not be traversed safely before deleted from the list. 42 * The basic atomic operation of this list is cmpxchg on long. On 44 * list can NOT be used in NMI handlers. So code that uses the list in 68 * init_llist_head - initialize lock-less list head 69 * @head: the head for your lock-less list [all …]
|
H A D | rculist_nulls.h | 8 * RCU-protected list version 14 * hlist_nulls_del_init_rcu - deletes entry from hash list with re-initialization 15 * @n: the element to delete from the hash list. 19 * must know if the list entry is still hashed or already unhashed. 22 * that may still be used for walking the hash list and we can only 28 * list-mutation primitive, such as hlist_nulls_add_head_rcu() or 29 * hlist_nulls_del_rcu(), running on this same list. However, it is 30 * perfectly legal to run concurrently with the _rcu list-traversal 42 * hlist_nulls_first_rcu - returns the first element of the hash list. 43 * @head: the head of the list. [all …]
|
/openbmc/linux/tools/firewire/ |
H A D | list.h | 2 struct list { struct 3 struct list *next, *prev; argument 7 list_init(struct list *list) in list_init() argument 9 list->next = list; in list_init() 10 list->prev = list; in list_init() 14 list_empty(struct list *list) in list_empty() argument 16 return list->next == list; in list_empty() 20 list_insert(struct list *link, struct list *new_link) in list_insert() 29 list_append(struct list *list, struct list *new_link) in list_append() argument 31 list_insert((struct list *)list, new_link); in list_append() [all …]
|
/openbmc/linux/tools/include/linux/ |
H A D | list.h | 11 * Simple doubly linked list implementation. 25 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD() argument 27 list->next = list; in INIT_LIST_HEAD() 28 list->prev = list; in INIT_LIST_HEAD() 34 * This is only for internal list manipulation where we know 56 * @head: list head to add it after 70 * @head: list head to add it before 81 * Delete a list entry by making the prev/next entries 84 * This is only for internal list manipulation where we know 94 * list_del - deletes entry from list. [all …]
|
/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/linux/drivers/clk/samsung/ |
H A D | clk.c | 106 /* register a list of aliases */ 108 const struct samsung_clock_alias *list, in samsung_clk_register_alias() argument 114 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_alias() 115 if (!list->id) { in samsung_clk_register_alias() 121 clk_hw = ctx->clk_data.hws[list->id]; in samsung_clk_register_alias() 124 list->id); in samsung_clk_register_alias() 128 ret = clk_hw_register_clkdev(clk_hw, list->alias, in samsung_clk_register_alias() 129 list->dev_name); in samsung_clk_register_alias() 132 __func__, list->alias); in samsung_clk_register_alias() 136 /* register a list of fixed clocks */ [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | parse-events.y | 35 struct list_head *list; in alloc_list() local 37 list = malloc(sizeof(*list)); in alloc_list() 38 if (!list) in alloc_list() 41 INIT_LIST_HEAD(list); in alloc_list() 42 return list; in alloc_list() 139 parse_events_update_lists($1, &parse_state->list); 145 struct list_head *list = $1; variable 149 parse_events_update_lists(group, list); 150 $$ = list; 155 struct list_head *list = $1; variable [all …]
|
/openbmc/linux/io_uring/ |
H A D | slist.h | 15 #define wq_list_empty(list) (READ_ONCE((list)->first) == NULL) argument 17 #define INIT_WQ_LIST(list) do { \ argument 18 (list)->first = NULL; \ 23 struct io_wq_work_list *list) in wq_list_add_after() argument 30 list->last = node; in wq_list_add_after() 34 struct io_wq_work_list *list) in wq_list_add_tail() argument 37 if (!list->first) { in wq_list_add_tail() 38 list->last = node; in wq_list_add_tail() 39 WRITE_ONCE(list->first, node); in wq_list_add_tail() 41 list->last->next = node; in wq_list_add_tail() [all …]
|
/openbmc/linux/drivers/clk/x86/ |
H A D | clk-cgu.c | 26 const struct lgm_clk_branch *list) in lgm_clk_register_fixed() argument 29 if (list->div_flags & CLOCK_FLAG_VAL_INIT) in lgm_clk_register_fixed() 30 lgm_set_clk_val(ctx->membase, list->div_off, list->div_shift, in lgm_clk_register_fixed() 31 list->div_width, list->div_val); in lgm_clk_register_fixed() 33 return clk_hw_register_fixed_rate(NULL, list->name, in lgm_clk_register_fixed() 34 list->parent_data[0].name, in lgm_clk_register_fixed() 35 list->flags, list->mux_flags); in lgm_clk_register_fixed() 82 const struct lgm_clk_branch *list) in lgm_clk_register_mux() argument 84 unsigned long cflags = list->mux_flags; in lgm_clk_register_mux() 86 u8 shift = list->mux_shift; in lgm_clk_register_mux() [all …]
|
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | util.c | 7 void qtnf_sta_list_init(struct qtnf_sta_list *list) in qtnf_sta_list_init() argument 9 if (unlikely(!list)) in qtnf_sta_list_init() 12 INIT_LIST_HEAD(&list->head); in qtnf_sta_list_init() 13 atomic_set(&list->size, 0); in qtnf_sta_list_init() 16 struct qtnf_sta_node *qtnf_sta_list_lookup(struct qtnf_sta_list *list, in qtnf_sta_list_lookup() argument 24 list_for_each_entry(node, &list->head, list) { in qtnf_sta_list_lookup() 32 struct qtnf_sta_node *qtnf_sta_list_lookup_index(struct qtnf_sta_list *list, in qtnf_sta_list_lookup_index() argument 37 if (qtnf_sta_list_size(list) <= index) in qtnf_sta_list_lookup_index() 40 list_for_each_entry(node, &list->head, list) { in qtnf_sta_list_lookup_index() 51 struct qtnf_sta_list *list = &vif->sta_list; in qtnf_sta_list_add() local [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/linux/arch/sh/include/mach-ecovec24/mach/ |
H A D | partner-jet-setup.txt | 1 LIST "SPDX-License-Identifier: GPL-2.0" 2 LIST "partner-jet-setup.txt" 3 LIST "(C) Copyright 2009 Renesas Solutions Corp" 4 LIST "Kuninori Morimoto <morimoto.kuninori@renesas.com>" 5 LIST "--------------------------------" 6 LIST "zImage (RAM boot)" 7 LIST "This script can be used to boot the kernel from RAM via JTAG:" 8 LIST "> < partner-jet-setup.txt" 9 LIST "> RD zImage, 0xa8800000" 10 LIST "> G=0xa8800000" [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/linux/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_dl.c | 3 * vsp1_dl.c -- R-Car VSP1 Display List 41 * struct vsp1_dl_ext_header - Extended display list header 45 * @pre_ext_dl_plist: start address of pre-extended display list bodies 47 * @post_ext_dl_plist: start address of post-extended display list bodies 79 * struct vsp1_pre_ext_dl_body - Pre Extended Display List Body 80 * @opcode: Extended display list command operation code 93 * struct vsp1_dl_body - Display list body 94 * @list: entry in the display list list of bodies 95 * @free: entry in the pool free body list 105 struct list_head list; member [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | list_utils.robot | 2 Documentation This module contains keywords for list manipulation. 7 [Documentation] Combine all valid list arguments and return the result. 11 # lists A list of lists to be combined. Any item in this list which is 12 # NOT a list will be removed. 19 … Run Keyword If '${type_arg}' != 'list' Run Keywords Remove From List ${lists} ${index} AND 30 [Documentation] Intersects the two lists passed in. Returns a list of 34 # list1 The first list to intersect. 35 # list2 The second list to intersect. 40 @{intersected_list} Create List 48 ${rc}= Run Keyword and Return Status List Should Contain Value ${smaller_list} ${element} [all …]
|
/openbmc/linux/security/integrity/platform_certs/ |
H A D | efi_parser.c | 2 /* EFI signature/key/certificate list parser 15 * parse_efi_signature_list - Parse an EFI signature list for certificates 21 * Parse an EFI signature list looking for elements of interest. A list is 32 * Error EBADMSG is returned if the list doesn't parse correctly and 0 is 33 * returned if the list was parsed correctly. No error can be returned from 49 efi_signature_list_t list; in parse_efi_signature_list() local 52 if (size < sizeof(list)) in parse_efi_signature_list() 55 memcpy(&list, data, sizeof(list)); in parse_efi_signature_list() 56 pr_devel("LIST[%04x] guid=%pUl ls=%x hs=%x ss=%x\n", in parse_efi_signature_list() 58 &list.signature_type, list.signature_list_size, in parse_efi_signature_list() [all …]
|
/openbmc/linux/scripts/mod/ |
H A D | list.h | 29 * Circular doubly linked list implementation. 49 * @list: list_head structure to be initialized. 51 * Initializes the list_head to point to itself. If it is a list header, 52 * the result is an empty list. 54 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD() argument 56 list->next = list; in INIT_LIST_HEAD() 57 list->prev = list; in INIT_LIST_HEAD() 63 * This is only for internal list manipulation where we know 79 * @head: list head to add it after 92 * @head: list head to add it before [all …]
|
/openbmc/linux/arch/sh/include/mach-kfr2r09/mach/ |
H A D | partner-jet-setup.txt | 1 LIST "SPDX-License-Identifier: GPL-2.0" 2 LIST "partner-jet-setup.txt - 20090729 Magnus Damm" 3 LIST "set up enough of the kfr2r09 hardware to boot the kernel" 5 LIST "zImage (RAM boot)" 6 LIST "This script can be used to boot the kernel from RAM via JTAG:" 7 LIST "> < partner-jet-setup.txt" 8 LIST "> RD zImage, 0xa8800000" 9 LIST "> G=0xa8800000" 11 LIST "romImage (Flash boot)" 12 LIST "Use the following command to burn the zImage to flash via JTAG:" [all …]
|
/openbmc/linux/tools/memory-model/scripts/ |
H A D | newlitmushist.sh | 11 # See scripts/parseargs.sh for list of arguments. 39 # Create a list of the C-language litmus tests previously run. 42 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already 44 # Form full list of litmus tests with no more than the specified 46 find litmus -name '*.litmus' -print | mselect7 -arch C > $T/list-C-all 47 xargs < $T/list-C-all -r grep -L "^P${LKMM_PROCS}" > $T/list-C-short 49 # Form list of new tests. Note: This does not handle litmus-test deletion! 50 sort $T/list-C-already $T/list-C-short | uniq -u > $T/list-C-new 52 # Form list of litmus tests that have changed since the last run. 53 sed < $T/list-C-short -e 's,^.*$,if test & -nt '"$LKMM_DESTDIR"'/&.out; then echo &; fi,' > $T/list… [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_fltr.c | 10 * @h: pointer to the list head to be freed 26 * ice_fltr_add_entry_to_list - allocate and add filter entry to list 28 * @info: filter info struct that gets added to the passed in list 29 * @list: pointer to the list which contains MAC filters entry 33 struct list_head *list) in ice_fltr_add_entry_to_list() argument 44 list_add(&entry->list_entry, list); in ice_fltr_add_entry_to_list() 144 * ice_fltr_add_mac_list - add list of MAC filters 146 * @list: list of filters 148 int ice_fltr_add_mac_list(struct ice_vsi *vsi, struct list_head *list) in ice_fltr_add_mac_list() argument 150 return ice_add_mac(&vsi->back->hw, list); in ice_fltr_add_mac_list() [all …]
|
/openbmc/linux/net/core/ |
H A D | dev_addr_lists.c | 13 #include <linux/list.h> 18 * General list handling functions 21 static int __hw_addr_insert(struct netdev_hw_addr_list *list, in __hw_addr_insert() argument 24 struct rb_node **ins_point = &list->tree.rb_node, *parent = NULL; in __hw_addr_insert() 45 rb_insert_color(&new->node, &list->tree); in __hw_addr_insert() 73 static int __hw_addr_add_ex(struct netdev_hw_addr_list *list, in __hw_addr_add_ex() argument 78 struct rb_node **ins_point = &list->tree.rb_node, *parent = NULL; in __hw_addr_add_ex() 123 rb_insert_color(&ha->node, &list->tree); in __hw_addr_add_ex() 125 list_add_tail_rcu(&ha->list, &list->list); in __hw_addr_add_ex() 126 list->count++; in __hw_addr_add_ex() [all …]
|