Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 4089) sorted by relevance

12345678910>>...164

/linux-6.6.21/drivers/clk/rockchip/
Dclk.c408 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 …]
/linux-6.6.21/tools/firewire/
Dlist.h2 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 …]
/linux-6.6.21/tools/perf/util/
Dparse-events.y35 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 …]
/linux-6.6.21/drivers/clk/samsung/
Dclk.c108 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()
138 const struct samsung_fixed_rate_clock *list, in samsung_clk_register_fixed_rate() argument
144 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_rate()
[all …]
/linux-6.6.21/lib/
Dlist-test.c15 struct list_head list; member
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()
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()
64 LIST_HEAD(list); in list_test_list_add_tail()
66 list_add_tail(&a, &list); in list_test_list_add_tail()
67 list_add_tail(&b, &list); in list_test_list_add_tail()
70 KUNIT_EXPECT_PTR_EQ(test, list.next, &a); in list_test_list_add_tail()
[all …]
/linux-6.6.21/io_uring/
Dslist.h15 #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 …]
/linux-6.6.21/drivers/net/wireless/quantenna/qtnfmac/
Dutil.c7 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 …]
/linux-6.6.21/drivers/clk/x86/
Dclk-cgu.c26 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 …]
/linux-6.6.21/security/integrity/platform_certs/
Defi_parser.c49 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()
58 &list.signature_type, list.signature_list_size, in parse_efi_signature_list()
59 list.signature_header_size, list.signature_size); in parse_efi_signature_list()
61 lsize = list.signature_list_size; in parse_efi_signature_list()
62 hsize = list.signature_header_size; in parse_efi_signature_list()
63 esize = list.signature_size; in parse_efi_signature_list()
64 elsize = lsize - sizeof(list) - hsize; in parse_efi_signature_list()
72 if (lsize < sizeof(list) || in parse_efi_signature_list()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_bo_list.c42 struct amdgpu_bo_list *list = container_of(rcu, struct amdgpu_bo_list, in amdgpu_bo_list_free_rcu() local
44 mutex_destroy(&list->bo_list_mutex); in amdgpu_bo_list_free_rcu()
45 kvfree(list); in amdgpu_bo_list_free_rcu()
50 struct amdgpu_bo_list *list = container_of(ref, struct amdgpu_bo_list, in amdgpu_bo_list_free() local
54 amdgpu_bo_list_for_each_entry(e, list) in amdgpu_bo_list_free()
56 call_rcu(&list->rhead, amdgpu_bo_list_free_rcu); in amdgpu_bo_list_free()
76 struct amdgpu_bo_list *list; in amdgpu_bo_list_create() local
88 list = kvmalloc(size, GFP_KERNEL); in amdgpu_bo_list_create()
89 if (!list) in amdgpu_bo_list_create()
92 kref_init(&list->refcount); in amdgpu_bo_list_create()
[all …]
Damdgpu_bo_list.h62 void amdgpu_bo_list_put(struct amdgpu_bo_list *list);
70 struct amdgpu_bo_list **list);
73 amdgpu_bo_list_array_entry(struct amdgpu_bo_list *list, unsigned index) in amdgpu_bo_list_array_entry() argument
75 struct amdgpu_bo_list_entry *array = (void *)&list[1]; in amdgpu_bo_list_array_entry()
80 #define amdgpu_bo_list_for_each_entry(e, list) \ argument
81 for (e = amdgpu_bo_list_array_entry(list, 0); \
82 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \
85 #define amdgpu_bo_list_for_each_userptr_entry(e, list) \ argument
86 for (e = amdgpu_bo_list_array_entry(list, (list)->first_userptr); \
87 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \
/linux-6.6.21/net/core/
Ddev_addr_lists.c21 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()
131 static int __hw_addr_add(struct netdev_hw_addr_list *list, in __hw_addr_add() argument
135 return __hw_addr_add_ex(list, addr, addr_len, addr_type, false, false, in __hw_addr_add()
[all …]
/linux-6.6.21/drivers/hid/
Dhidraw.c43 struct hidraw_list *list = file->private_data; in hidraw_read() local
47 mutex_lock(&list->read_mutex); in hidraw_read()
50 if (list->head == list->tail) { in hidraw_read()
51 add_wait_queue(&list->hidraw->wait, &wait); in hidraw_read()
54 while (list->head == list->tail) { in hidraw_read()
59 if (!list->hidraw->exist) { in hidraw_read()
69 mutex_unlock(&list->read_mutex); in hidraw_read()
71 mutex_lock(&list->read_mutex); in hidraw_read()
76 remove_wait_queue(&list->hidraw->wait, &wait); in hidraw_read()
82 len = list->buffer[list->tail].len > count ? in hidraw_read()
[all …]
/linux-6.6.21/drivers/hid/usbhid/
Dhiddev.c62 struct list_head *list; in hiddev_lookup_report() local
79 list = report_enum->report_list.next; in hiddev_lookup_report()
80 report = list_entry(list, struct hid_report, list); in hiddev_lookup_report()
89 list = report->list.next; in hiddev_lookup_report()
90 if (list == &report_enum->report_list) in hiddev_lookup_report()
93 report = list_entry(list, struct hid_report, list); in hiddev_lookup_report()
123 list_for_each_entry(report, &report_enum->report_list, list) { in hiddev_lookup_usage()
144 struct hiddev_list *list; in hiddev_send_event() local
148 list_for_each_entry(list, &hiddev->list, node) { in hiddev_send_event()
150 (list->flags & HIDDEV_FLAG_REPORT) != 0) { in hiddev_send_event()
[all …]
/linux-6.6.21/tools/memory-model/scripts/
Dnewlitmushist.sh42 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already
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
50 sort $T/list-C-already $T/list-C-short | uniq -u > $T/list-C-new
53 sed < $T/list-C-short -e 's,^.*$,if test & -nt '"$LKMM_DESTDIR"'/&.out; then echo &; fi,' > $T/list
54 sh $T/list-C-script > $T/list-C-newer
57 sort -u $T/list-C-new $T/list-C-newer > $T/list-C-needed
59 scripts/runlitmushist.sh < $T/list-C-needed
/linux-6.6.21/net/netfilter/
Dnf_conncount.c51 struct nf_conncount_list list; member
85 static void conn_free(struct nf_conncount_list *list, in conn_free() argument
88 lockdep_assert_held(&list->list_lock); in conn_free()
90 list->count--; in conn_free()
97 find_or_evict(struct net *net, struct nf_conncount_list *list, in find_or_evict() argument
118 conn_free(list, conn); in find_or_evict()
126 struct nf_conncount_list *list, in __nf_conncount_add() argument
135 if (time_is_after_eq_jiffies((unsigned long)list->last_gc)) in __nf_conncount_add()
139 list_for_each_entry_safe(conn, conn_n, &list->head, node) { in __nf_conncount_add()
143 found = find_or_evict(net, list, conn); in __nf_conncount_add()
[all …]
/linux-6.6.21/drivers/hid/intel-ish-hid/ishtp/
Dclient-buffers.c37 list_add_tail(&rb->list, &cl->free_rb_list.list); in ishtp_cl_alloc_rx_ring()
80 list_add_tail(&tx_buf->list, &cl->tx_free_list.list); in ishtp_cl_alloc_tx_ring()
104 while (!list_empty(&cl->free_rb_list.list)) { in ishtp_cl_free_rx_ring()
105 rb = list_entry(cl->free_rb_list.list.next, struct ishtp_cl_rb, in ishtp_cl_free_rx_ring()
106 list); in ishtp_cl_free_rx_ring()
107 list_del(&rb->list); in ishtp_cl_free_rx_ring()
114 while (!list_empty(&cl->in_process_list.list)) { in ishtp_cl_free_rx_ring()
115 rb = list_entry(cl->in_process_list.list.next, in ishtp_cl_free_rx_ring()
116 struct ishtp_cl_rb, list); in ishtp_cl_free_rx_ring()
117 list_del(&rb->list); in ishtp_cl_free_rx_ring()
[all …]
/linux-6.6.21/drivers/pnp/isapnp/
Dcompat.c33 struct list_head *list; in pnp_find_dev() local
35 list = pnp_global.next; in pnp_find_dev()
37 list = from->global_list.next; in pnp_find_dev()
39 while (list != &pnp_global) { in pnp_find_dev()
40 struct pnp_dev *dev = global_to_pnp_dev(list); in pnp_find_dev()
45 list = list->next; in pnp_find_dev()
48 struct list_head *list; in pnp_find_dev() local
50 list = card->devices.next; in pnp_find_dev()
52 list = from->card_list.next; in pnp_find_dev()
56 while (list != &card->devices) { in pnp_find_dev()
[all …]
/linux-6.6.21/drivers/gpu/host1x/
Dintr.c14 static void host1x_intr_add_fence_to_list(struct host1x_fence_list *list, in host1x_intr_add_fence_to_list() argument
19 list_for_each_entry_reverse(fence_in_list, &list->list, list) { in host1x_intr_add_fence_to_list()
22 list_add(&fence->list, &fence_in_list->list); in host1x_intr_add_fence_to_list()
28 list_add(&fence->list, &list->list); in host1x_intr_add_fence_to_list()
35 if (!list_empty(&sp->fences.list)) { in host1x_intr_update_hw_state()
36 fence = list_first_entry(&sp->fences.list, struct host1x_syncpt_fence, list); in host1x_intr_update_hw_state()
49 INIT_LIST_HEAD(&fence->list); in host1x_intr_add_fence_locked()
62 if (list_empty(&fence->list)) { in host1x_intr_remove_fence()
67 list_del_init(&fence->list); in host1x_intr_remove_fence()
85 list_for_each_entry_safe(fence, tmp, &sp->fences.list, list) { in host1x_intr_handle_interrupt()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dpp_overdriver.c1268 const struct phm_fuses_default *list = vega10_fuses_default; in pp_override_get_default_fuse_value() local
1271 for (i = 0; list[i].key != 0; i++) { in pp_override_get_default_fuse_value()
1272 if (key == list[i].key) { in pp_override_get_default_fuse_value()
1273 result->key = list[i].key; in pp_override_get_default_fuse_value()
1274 result->VFT2_m1 = list[i].VFT2_m1; in pp_override_get_default_fuse_value()
1275 result->VFT2_m2 = list[i].VFT2_m2; in pp_override_get_default_fuse_value()
1276 result->VFT2_b = list[i].VFT2_b; in pp_override_get_default_fuse_value()
1277 result->VFT1_m1 = list[i].VFT1_m1; in pp_override_get_default_fuse_value()
1278 result->VFT1_m2 = list[i].VFT1_m2; in pp_override_get_default_fuse_value()
1279 result->VFT1_b = list[i].VFT1_b; in pp_override_get_default_fuse_value()
[all …]
/linux-6.6.21/drivers/usb/core/
Dphy.c19 struct list_head list; member
23 struct list_head *list) in usb_phy_roothub_add_phy() argument
40 INIT_LIST_HEAD(&roothub_entry->list); in usb_phy_roothub_add_phy()
44 list_add_tail(&roothub_entry->list, list); in usb_phy_roothub_add_phy()
66 INIT_LIST_HEAD(&phy_roothub->list); in usb_phy_roothub_alloc()
69 err = usb_phy_roothub_add_phy(dev, i, &phy_roothub->list); in usb_phy_roothub_alloc()
87 head = &phy_roothub->list; in usb_phy_roothub_init()
89 list_for_each_entry(roothub_entry, head, list) { in usb_phy_roothub_init()
98 list_for_each_entry_continue_reverse(roothub_entry, head, list) in usb_phy_roothub_init()
114 head = &phy_roothub->list; in usb_phy_roothub_exit()
[all …]
/linux-6.6.21/tools/perf/arch/x86/util/
Diostat.c98 static void iio_root_ports_list_free(struct iio_root_ports_list *list) in iio_root_ports_list_free() argument
102 if (list) { in iio_root_ports_list_free()
103 for (idx = 0; idx < list->nr_entries; idx++) in iio_root_ports_list_free()
104 zfree(&list->rps[idx]); in iio_root_ports_list_free()
105 zfree(&list->rps); in iio_root_ports_list_free()
106 free(list); in iio_root_ports_list_free()
111 const struct iio_root_ports_list * const list, u32 domain, u8 bus) in iio_root_port_find_by_notation() argument
116 if (list) { in iio_root_port_find_by_notation()
117 for (idx = 0; idx < list->nr_entries; idx++) { in iio_root_port_find_by_notation()
118 rp = list->rps[idx]; in iio_root_port_find_by_notation()
[all …]
/linux-6.6.21/sound/pci/ctxfi/
Dctimap.c29 list_add(&entry->list, head); in input_mapper_add()
34 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add()
46 __list_add(&entry->list, pos->prev, pos); in input_mapper_add()
50 list_add_tail(&entry->list, head); in input_mapper_add()
53 pre_ent = list_entry(pre, struct imapper, list); in input_mapper_add()
54 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add()
75 pre = (entry->list.prev == head) ? head->prev : entry->list.prev; in input_mapper_delete()
76 next = (entry->list.next == head) ? head->next : entry->list.next; in input_mapper_delete()
78 if (pre == &entry->list) { in input_mapper_delete()
82 list_del(&entry->list); in input_mapper_delete()
[all …]
/linux-6.6.21/drivers/acpi/acpica/
Ddbstats.c27 static void acpi_db_list_info(struct acpi_memory_list *list);
65 static void acpi_db_list_info(struct acpi_memory_list *list) in acpi_db_list_info() argument
71 acpi_os_printf("\n%s\n", list->list_name); in acpi_db_list_info()
75 if (list->max_depth > 0) { in acpi_db_list_info()
78 "%8.2X %8.2X %8.2X %8.2X\n", list->current_depth, in acpi_db_list_info()
79 list->max_depth, list->max_depth - list->current_depth, in acpi_db_list_info()
80 (list->current_depth * list->object_size)); in acpi_db_list_info()
83 if (list->max_depth > 0) { in acpi_db_list_info()
86 "%8.2X %8.2X %8.2X %8.2X\n", list->requests, list->hits, in acpi_db_list_info()
87 list->requests - list->hits, list->object_size); in acpi_db_list_info()
[all …]
/linux-6.6.21/include/linux/
Dlist.h35 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()
296 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
298 __list_del_entry(list); in list_move()
299 list_add(list, head); in list_move()
307 static inline void list_move_tail(struct list_head *list, in list_move_tail() argument
310 __list_del_entry(list); in list_move_tail()
311 list_add_tail(list, head); in list_move_tail()
342 static inline int list_is_first(const struct list_head *list, const struct list_head *head) in list_is_first() argument
[all …]

12345678910>>...164