/linux-6.1.9/tools/perf/util/ |
D | parse-events.y | 31 struct list_head *list; in alloc_list() local 33 list = malloc(sizeof(*list)); in alloc_list() 34 if (!list) in alloc_list() 37 INIT_LIST_HEAD(list); in alloc_list() 38 return list; in alloc_list() 52 static void inc_group_count(struct list_head *list, in inc_group_count() argument 56 if (!list_is_last(list->next, list)) in inc_group_count() 149 parse_events_update_lists($1, &parse_state->list); 155 struct list_head *list = $1; variable 159 parse_events_update_lists(group, list); [all …]
|
/linux-6.1.9/lib/ |
D | list-test.c | 14 struct list_head list; member 49 LIST_HEAD(list); in list_test_list_add() 51 list_add(&a, &list); in list_test_list_add() 52 list_add(&b, &list); in list_test_list_add() 55 KUNIT_EXPECT_PTR_EQ(test, list.next, &b); in list_test_list_add() 56 KUNIT_EXPECT_PTR_EQ(test, b.prev, &list); in list_test_list_add() 63 LIST_HEAD(list); in list_test_list_add_tail() 65 list_add_tail(&a, &list); in list_test_list_add_tail() 66 list_add_tail(&b, &list); in list_test_list_add_tail() 69 KUNIT_EXPECT_PTR_EQ(test, list.next, &a); in list_test_list_add_tail() [all …]
|
/linux-6.1.9/drivers/clk/rockchip/ |
D | clk.c | 413 struct rockchip_pll_clock *list, in rockchip_clk_register_plls() argument 419 for (idx = 0; idx < nr_pll; idx++, list++) { in rockchip_clk_register_plls() 420 clk = rockchip_clk_register_pll(ctx, list->type, list->name, in rockchip_clk_register_plls() 421 list->parent_names, list->num_parents, in rockchip_clk_register_plls() 422 list->con_offset, grf_lock_offset, in rockchip_clk_register_plls() 423 list->lock_shift, list->mode_offset, in rockchip_clk_register_plls() 424 list->mode_shift, list->rate_table, in rockchip_clk_register_plls() 425 list->flags, list->pll_flags); in rockchip_clk_register_plls() 428 list->name); in rockchip_clk_register_plls() 432 rockchip_clk_add_lookup(ctx, clk, list->id); in rockchip_clk_register_plls() [all …]
|
/linux-6.1.9/tools/firewire/ |
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 …]
|
/linux-6.1.9/drivers/clk/samsung/ |
D | clk.c | 97 const struct samsung_clock_alias *list, in samsung_clk_register_alias() argument 103 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_alias() 104 if (!list->id) { in samsung_clk_register_alias() 110 clk_hw = ctx->clk_data.hws[list->id]; in samsung_clk_register_alias() 113 list->id); in samsung_clk_register_alias() 117 ret = clk_hw_register_clkdev(clk_hw, list->alias, in samsung_clk_register_alias() 118 list->dev_name); in samsung_clk_register_alias() 121 __func__, list->alias); in samsung_clk_register_alias() 127 const struct samsung_fixed_rate_clock *list, in samsung_clk_register_fixed_rate() argument 133 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_rate() [all …]
|
/linux-6.1.9/io_uring/ |
D | slist.h | 12 #define wq_list_empty(list) (READ_ONCE((list)->first) == NULL) argument 14 #define INIT_WQ_LIST(list) do { \ argument 15 (list)->first = NULL; \ 20 struct io_wq_work_list *list) in wq_list_add_after() argument 27 list->last = node; in wq_list_add_after() 53 struct io_wq_work_list *list) in wq_list_add_tail() argument 56 if (!list->first) { in wq_list_add_tail() 57 list->last = node; in wq_list_add_tail() 58 WRITE_ONCE(list->first, node); in wq_list_add_tail() 60 list->last->next = node; in wq_list_add_tail() [all …]
|
/linux-6.1.9/drivers/net/wireless/quantenna/qtnfmac/ |
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 …]
|
/linux-6.1.9/security/integrity/platform_certs/ |
D | efi_parser.c | 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() 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.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_bo_list.c | 41 struct amdgpu_bo_list *list = container_of(rcu, struct amdgpu_bo_list, in amdgpu_bo_list_free_rcu() local 43 mutex_destroy(&list->bo_list_mutex); in amdgpu_bo_list_free_rcu() 44 kvfree(list); in amdgpu_bo_list_free_rcu() 49 struct amdgpu_bo_list *list = container_of(ref, struct amdgpu_bo_list, in amdgpu_bo_list_free() local 53 amdgpu_bo_list_for_each_entry(e, list) { in amdgpu_bo_list_free() 59 call_rcu(&list->rhead, amdgpu_bo_list_free_rcu); in amdgpu_bo_list_free() 68 struct amdgpu_bo_list *list; in amdgpu_bo_list_create() local 80 list = kvmalloc(size, GFP_KERNEL); in amdgpu_bo_list_create() 81 if (!list) in amdgpu_bo_list_create() 84 kref_init(&list->refcount); in amdgpu_bo_list_create() [all …]
|
D | amdgpu_bo_list.h | 61 void amdgpu_bo_list_get_list(struct amdgpu_bo_list *list, 63 void amdgpu_bo_list_put(struct amdgpu_bo_list *list); 71 struct amdgpu_bo_list **list); 74 amdgpu_bo_list_array_entry(struct amdgpu_bo_list *list, unsigned index) in amdgpu_bo_list_array_entry() argument 76 struct amdgpu_bo_list_entry *array = (void *)&list[1]; in amdgpu_bo_list_array_entry() 81 #define amdgpu_bo_list_for_each_entry(e, list) \ argument 82 for (e = amdgpu_bo_list_array_entry(list, 0); \ 83 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \ 86 #define amdgpu_bo_list_for_each_userptr_entry(e, list) \ argument 87 for (e = amdgpu_bo_list_array_entry(list, (list)->first_userptr); \ [all …]
|
/linux-6.1.9/drivers/clk/x86/ |
D | clk-cgu.c | 25 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() 31 lgm_set_clk_val(ctx->membase, list->div_off, list->div_shift, in lgm_clk_register_fixed() 32 list->div_width, list->div_val); in lgm_clk_register_fixed() 36 return clk_hw_register_fixed_rate(NULL, list->name, in lgm_clk_register_fixed() 37 list->parent_data[0].name, in lgm_clk_register_fixed() 38 list->flags, list->mux_flags); in lgm_clk_register_fixed() 91 const struct lgm_clk_branch *list) in lgm_clk_register_mux() argument 93 unsigned long flags, cflags = list->mux_flags; in lgm_clk_register_mux() 95 u8 shift = list->mux_shift; in lgm_clk_register_mux() [all …]
|
/linux-6.1.9/net/core/ |
D | dev_addr_lists.c | 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() 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.1.9/drivers/hid/usbhid/ |
D | hiddev.c | 62 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.1.9/tools/memory-model/scripts/ |
D | newlitmushist.sh | 42 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already 46 find litmus -name '*.litmus' -exec grep -l -m 1 "^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.1.9/drivers/hid/ |
D | hidraw.c | 41 struct hidraw_list *list = file->private_data; in hidraw_read() local 45 mutex_lock(&list->read_mutex); in hidraw_read() 48 if (list->head == list->tail) { in hidraw_read() 49 add_wait_queue(&list->hidraw->wait, &wait); in hidraw_read() 52 while (list->head == list->tail) { in hidraw_read() 57 if (!list->hidraw->exist) { in hidraw_read() 67 mutex_unlock(&list->read_mutex); in hidraw_read() 69 mutex_lock(&list->read_mutex); in hidraw_read() 74 remove_wait_queue(&list->hidraw->wait, &wait); in hidraw_read() 80 len = list->buffer[list->tail].len > count ? in hidraw_read() [all …]
|
/linux-6.1.9/net/netfilter/ |
D | nf_conncount.c | 51 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.1.9/drivers/hid/intel-ish-hid/ishtp/ |
D | client-buffers.c | 37 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.1.9/drivers/pnp/isapnp/ |
D | compat.c | 33 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.1.9/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | pp_overdriver.c | 1268 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.1.9/drivers/usb/core/ |
D | phy.c | 19 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.1.9/fs/xfs/scrub/ |
D | bitmap.c | 32 INIT_LIST_HEAD(&bmr->list); in xbitmap_set() 35 list_add_tail(&bmr->list, &bitmap->list); in xbitmap_set() 49 list_del(&bmr->list); in xbitmap_destroy() 59 INIT_LIST_HEAD(&bitmap->list); in xbitmap_init() 72 ap = container_of(a, struct xbitmap_range, list); in xbitmap_range_cmp() 73 bp = container_of(b, struct xbitmap_range, list); in xbitmap_range_cmp() 112 if (list_empty(&bitmap->list) || list_empty(&sub->list)) in xbitmap_disunion() 114 ASSERT(!list_empty(&sub->list)); in xbitmap_disunion() 116 list_sort(NULL, &bitmap->list, xbitmap_range_cmp); in xbitmap_disunion() 117 list_sort(NULL, &sub->list, xbitmap_range_cmp); in xbitmap_disunion() [all …]
|
/linux-6.1.9/tools/perf/arch/x86/util/ |
D | iostat.c | 97 static void iio_root_ports_list_free(struct iio_root_ports_list *list) in iio_root_ports_list_free() argument 101 if (list) { in iio_root_ports_list_free() 102 for (idx = 0; idx < list->nr_entries; idx++) in iio_root_ports_list_free() 103 free(list->rps[idx]); in iio_root_ports_list_free() 104 free(list->rps); in iio_root_ports_list_free() 105 free(list); in iio_root_ports_list_free() 110 const struct iio_root_ports_list * const list, u32 domain, u8 bus) in iio_root_port_find_by_notation() argument 115 if (list) { in iio_root_port_find_by_notation() 116 for (idx = 0; idx < list->nr_entries; idx++) { in iio_root_port_find_by_notation() 117 rp = list->rps[idx]; in iio_root_port_find_by_notation() [all …]
|
/linux-6.1.9/tools/lib/traceevent/ |
D | event-plugin.c | 110 char **list = NULL; in tep_plugin_list_options() local 117 char **temp = list; in tep_plugin_list_options() 124 list = realloc(list, count + 2); in tep_plugin_list_options() 125 if (!list) { in tep_plugin_list_options() 126 list = temp; in tep_plugin_list_options() 130 list[count++] = name; in tep_plugin_list_options() 131 list[count] = NULL; in tep_plugin_list_options() 134 return list; in tep_plugin_list_options() 138 free(list[count]); in tep_plugin_list_options() 139 free(list); in tep_plugin_list_options() [all …]
|
/linux-6.1.9/sound/pci/ctxfi/ |
D | ctimap.c | 29 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.1.9/drivers/acpi/acpica/ |
D | dbstats.c | 27 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 …]
|