/Linux-v4.19/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-v4.19/tools/perf/util/ |
D | parse-events.y | 29 #define ALLOC_LIST(list) \ argument 31 list = malloc(sizeof(*list)); \ 32 ABORT_ON(!list); \ 33 INIT_LIST_HEAD(list); \ 36 static void inc_group_count(struct list_head *list, in inc_group_count() argument 40 if (!list_is_last(list->next, list)) in inc_group_count() 122 parse_events_update_lists($1, &parse_state->list); 128 struct list_head *list = $1; variable 131 parse_events_update_lists(group, list); 132 $$ = list; [all …]
|
/Linux-v4.19/drivers/clk/rockchip/ |
D | clk.c | 419 struct rockchip_pll_clock *list, in rockchip_clk_register_plls() argument 425 for (idx = 0; idx < nr_pll; idx++, list++) { in rockchip_clk_register_plls() 426 clk = rockchip_clk_register_pll(ctx, list->type, list->name, in rockchip_clk_register_plls() 427 list->parent_names, list->num_parents, in rockchip_clk_register_plls() 428 list->con_offset, grf_lock_offset, in rockchip_clk_register_plls() 429 list->lock_shift, list->mode_offset, in rockchip_clk_register_plls() 430 list->mode_shift, list->rate_table, in rockchip_clk_register_plls() 431 list->flags, list->pll_flags); in rockchip_clk_register_plls() 434 list->name); in rockchip_clk_register_plls() 438 rockchip_clk_add_lookup(ctx, clk, list->id); in rockchip_clk_register_plls() [all …]
|
/Linux-v4.19/drivers/clk/samsung/ |
D | clk.c | 100 const struct samsung_clock_alias *list, in samsung_clk_register_alias() argument 106 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_alias() 107 if (!list->id) { in samsung_clk_register_alias() 113 clk_hw = ctx->clk_data.hws[list->id]; in samsung_clk_register_alias() 116 list->id); in samsung_clk_register_alias() 120 ret = clk_hw_register_clkdev(clk_hw, list->alias, in samsung_clk_register_alias() 121 list->dev_name); in samsung_clk_register_alias() 124 __func__, list->alias); in samsung_clk_register_alias() 130 const struct samsung_fixed_rate_clock *list, in samsung_clk_register_fixed_rate() argument 136 for (idx = 0; idx < nr_clk; idx++, list++) { in samsung_clk_register_fixed_rate() [all …]
|
/Linux-v4.19/drivers/net/wireless/quantenna/qtnfmac/ |
D | util.c | 19 void qtnf_sta_list_init(struct qtnf_sta_list *list) in qtnf_sta_list_init() argument 21 if (unlikely(!list)) in qtnf_sta_list_init() 24 INIT_LIST_HEAD(&list->head); in qtnf_sta_list_init() 25 atomic_set(&list->size, 0); in qtnf_sta_list_init() 28 struct qtnf_sta_node *qtnf_sta_list_lookup(struct qtnf_sta_list *list, in qtnf_sta_list_lookup() argument 36 list_for_each_entry(node, &list->head, list) { in qtnf_sta_list_lookup() 44 struct qtnf_sta_node *qtnf_sta_list_lookup_index(struct qtnf_sta_list *list, in qtnf_sta_list_lookup_index() argument 49 if (qtnf_sta_list_size(list) <= index) in qtnf_sta_list_lookup_index() 52 list_for_each_entry(node, &list->head, list) { in qtnf_sta_list_lookup_index() 63 struct qtnf_sta_list *list = &vif->sta_list; in qtnf_sta_list_add() local [all …]
|
/Linux-v4.19/drivers/pnp/isapnp/ |
D | compat.c | 29 struct list_head *list; in pnp_find_card() local 34 list = from ? from->global_list.next : pnp_cards.next; in pnp_find_card() 36 while (list != &pnp_cards) { in pnp_find_card() 37 struct pnp_card *card = global_to_pnp_card(list); in pnp_find_card() 41 list = list->next; in pnp_find_card() 55 struct list_head *list; in pnp_find_dev() local 57 list = pnp_global.next; in pnp_find_dev() 59 list = from->global_list.next; in pnp_find_dev() 61 while (list != &pnp_global) { in pnp_find_dev() 62 struct pnp_dev *dev = global_to_pnp_dev(list); in pnp_find_dev() [all …]
|
/Linux-v4.19/tools/lib/traceevent/ |
D | event-plugin.c | 101 char **list = NULL; in tep_plugin_list_options() local 108 char **temp = list; in tep_plugin_list_options() 115 list = realloc(list, count + 2); in tep_plugin_list_options() 116 if (!list) { in tep_plugin_list_options() 117 list = temp; in tep_plugin_list_options() 121 list[count++] = name; in tep_plugin_list_options() 122 list[count] = NULL; in tep_plugin_list_options() 125 return list; in tep_plugin_list_options() 129 free(list[count]); in tep_plugin_list_options() 130 free(list); in tep_plugin_list_options() [all …]
|
/Linux-v4.19/net/core/ |
D | dev_addr_lists.c | 23 static int __hw_addr_create_ex(struct netdev_hw_addr_list *list, in __hw_addr_create_ex() argument 43 list_add_tail_rcu(&ha->list, &list->list); in __hw_addr_create_ex() 44 list->count++; in __hw_addr_create_ex() 49 static int __hw_addr_add_ex(struct netdev_hw_addr_list *list, in __hw_addr_add_ex() argument 59 list_for_each_entry(ha, &list->list, list) { in __hw_addr_add_ex() 80 return __hw_addr_create_ex(list, addr, addr_len, addr_type, global, in __hw_addr_add_ex() 84 static int __hw_addr_add(struct netdev_hw_addr_list *list, in __hw_addr_add() argument 88 return __hw_addr_add_ex(list, addr, addr_len, addr_type, false, false, in __hw_addr_add() 92 static int __hw_addr_del_entry(struct netdev_hw_addr_list *list, in __hw_addr_del_entry() argument 110 list_del_rcu(&ha->list); in __hw_addr_del_entry() [all …]
|
/Linux-v4.19/drivers/hid/usbhid/ |
D | hiddev.c | 75 struct list_head *list; in hiddev_lookup_report() local 92 list = report_enum->report_list.next; in hiddev_lookup_report() 93 report = list_entry(list, struct hid_report, list); in hiddev_lookup_report() 102 list = report->list.next; in hiddev_lookup_report() 103 if (list == &report_enum->report_list) in hiddev_lookup_report() 106 report = list_entry(list, struct hid_report, list); in hiddev_lookup_report() 136 list_for_each_entry(report, &report_enum->report_list, list) { in hiddev_lookup_usage() 157 struct hiddev_list *list; in hiddev_send_event() local 161 list_for_each_entry(list, &hiddev->list, node) { in hiddev_send_event() 163 (list->flags & HIDDEV_FLAG_REPORT) != 0) { in hiddev_send_event() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_bo_list.c | 40 struct amdgpu_bo_list *list = container_of(rcu, struct amdgpu_bo_list, in amdgpu_bo_list_free_rcu() local 43 kvfree(list); in amdgpu_bo_list_free_rcu() 48 struct amdgpu_bo_list *list = container_of(ref, struct amdgpu_bo_list, in amdgpu_bo_list_free() local 52 amdgpu_bo_list_for_each_entry(e, list) in amdgpu_bo_list_free() 55 call_rcu(&list->rhead, amdgpu_bo_list_free_rcu); in amdgpu_bo_list_free() 64 struct amdgpu_bo_list *list; in amdgpu_bo_list_create() local 75 list = kvmalloc(size, GFP_KERNEL); in amdgpu_bo_list_create() 76 if (!list) in amdgpu_bo_list_create() 79 kref_init(&list->refcount); in amdgpu_bo_list_create() 80 list->gds_obj = adev->gds.gds_gfx_bo; in amdgpu_bo_list_create() [all …]
|
D | amdgpu_bo_list.h | 55 void amdgpu_bo_list_get_list(struct amdgpu_bo_list *list, 57 void amdgpu_bo_list_put(struct amdgpu_bo_list *list); 65 struct amdgpu_bo_list **list); 68 amdgpu_bo_list_array_entry(struct amdgpu_bo_list *list, unsigned index) in amdgpu_bo_list_array_entry() argument 70 struct amdgpu_bo_list_entry *array = (void *)&list[1]; in amdgpu_bo_list_array_entry() 75 #define amdgpu_bo_list_for_each_entry(e, list) \ argument 76 for (e = amdgpu_bo_list_array_entry(list, 0); \ 77 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \ 80 #define amdgpu_bo_list_for_each_userptr_entry(e, list) \ argument 81 for (e = amdgpu_bo_list_array_entry(list, (list)->first_userptr); \ [all …]
|
/Linux-v4.19/drivers/mtd/maps/ |
D | physmap_of_core.c | 40 struct of_flash_list list[0]; member 55 if (info->cmtd != info->list[0].mtd) in of_flash_remove() 60 if (info->list[i].mtd) in of_flash_remove() 61 map_destroy(info->list[i].mtd); in of_flash_remove() 63 if (info->list[i].map.virt) in of_flash_remove() 64 iounmap(info->list[i].map.virt); in of_flash_remove() 66 if (info->list[i].res) { in of_flash_remove() 67 release_resource(info->list[i].res); in of_flash_remove() 68 kfree(info->list[i].res); in of_flash_remove() 218 info->list[i].res = request_mem_region(res.start, res_size, in of_flash_probe() [all …]
|
/Linux-v4.19/drivers/hid/ |
D | hidraw.c | 49 struct hidraw_list *list = file->private_data; in hidraw_read() local 53 mutex_lock(&list->read_mutex); in hidraw_read() 56 if (list->head == list->tail) { in hidraw_read() 57 add_wait_queue(&list->hidraw->wait, &wait); in hidraw_read() 60 while (list->head == list->tail) { in hidraw_read() 65 if (!list->hidraw->exist) { in hidraw_read() 75 mutex_unlock(&list->read_mutex); in hidraw_read() 77 mutex_lock(&list->read_mutex); in hidraw_read() 82 remove_wait_queue(&list->hidraw->wait, &wait); in hidraw_read() 88 len = list->buffer[list->tail].len > count ? in hidraw_read() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/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-v4.19/fs/xfs/scrub/ |
D | bitmap.c | 37 INIT_LIST_HEAD(&bmr->list); in xfs_bitmap_set() 40 list_add_tail(&bmr->list, &bitmap->list); in xfs_bitmap_set() 54 list_del(&bmr->list); in xfs_bitmap_destroy() 64 INIT_LIST_HEAD(&bitmap->list); in xfs_bitmap_init() 77 ap = container_of(a, struct xfs_bitmap_range, list); in xfs_bitmap_range_cmp() 78 bp = container_of(b, struct xfs_bitmap_range, list); in xfs_bitmap_range_cmp() 117 if (list_empty(&bitmap->list) || list_empty(&sub->list)) in xfs_bitmap_disunion() 119 ASSERT(!list_empty(&sub->list)); in xfs_bitmap_disunion() 121 list_sort(NULL, &bitmap->list, xfs_bitmap_range_cmp); in xfs_bitmap_disunion() 122 list_sort(NULL, &sub->list, xfs_bitmap_range_cmp); in xfs_bitmap_disunion() [all …]
|
/Linux-v4.19/tools/vm/ |
D | page_owner_sort.c | 26 static struct block_list *list; variable 62 len == list[list_size-1].len && in add_list() 63 memcmp(buf, list[list_size-1].txt, len) == 0) { in add_list() 64 list[list_size-1].num++; in add_list() 71 list[list_size].txt = malloc(len+1); in add_list() 72 list[list_size].len = len; in add_list() 73 list[list_size].num = 1; in add_list() 74 memcpy(list[list_size].txt, buf, len); in add_list() 75 list[list_size].txt[len] = 0; in add_list() 110 list = malloc(max_size * sizeof(*list)); in main() [all …]
|
/Linux-v4.19/drivers/hid/intel-ish-hid/ishtp/ |
D | client-buffers.c | 46 list_add_tail(&rb->list, &cl->free_rb_list.list); in ishtp_cl_alloc_rx_ring() 87 list_add_tail(&tx_buf->list, &cl->tx_free_list.list); in ishtp_cl_alloc_tx_ring() 110 while (!list_empty(&cl->free_rb_list.list)) { in ishtp_cl_free_rx_ring() 111 rb = list_entry(cl->free_rb_list.list.next, struct ishtp_cl_rb, in ishtp_cl_free_rx_ring() 112 list); in ishtp_cl_free_rx_ring() 113 list_del(&rb->list); in ishtp_cl_free_rx_ring() 120 while (!list_empty(&cl->in_process_list.list)) { in ishtp_cl_free_rx_ring() 121 rb = list_entry(cl->in_process_list.list.next, in ishtp_cl_free_rx_ring() 122 struct ishtp_cl_rb, list); in ishtp_cl_free_rx_ring() 123 list_del(&rb->list); in ishtp_cl_free_rx_ring() [all …]
|
D | client.c | 38 list_for_each_entry_safe(rb, next, &cl->dev->read_list.list, list) in ishtp_read_list_flush() 40 list_del(&rb->list); in ishtp_read_list_flush() 86 INIT_LIST_HEAD(&cl->free_rb_list.list); in ishtp_cl_init() 87 INIT_LIST_HEAD(&cl->tx_list.list); in ishtp_cl_init() 88 INIT_LIST_HEAD(&cl->tx_free_list.list); in ishtp_cl_init() 89 INIT_LIST_HEAD(&cl->in_process_list.list); in ishtp_cl_init() 468 if (list_empty(&cl->free_rb_list.list)) { in ishtp_cl_read_start() 476 rb = list_entry(cl->free_rb_list.list.next, struct ishtp_cl_rb, list); in ishtp_cl_read_start() 477 list_del_init(&rb->list); in ishtp_cl_read_start() 483 INIT_LIST_HEAD(&rb->list); in ishtp_cl_read_start() [all …]
|
/Linux-v4.19/net/netfilter/ |
D | nf_conncount.c | 57 struct nf_conncount_list list; member 92 nf_conncount_add(struct nf_conncount_list *list, in nf_conncount_add() argument 98 if (WARN_ON_ONCE(list->count > INT_MAX)) in nf_conncount_add() 109 spin_lock(&list->list_lock); in nf_conncount_add() 110 if (list->dead == true) { in nf_conncount_add() 112 spin_unlock(&list->list_lock); in nf_conncount_add() 115 list_add_tail(&conn->node, &list->head); in nf_conncount_add() 116 list->count++; in nf_conncount_add() 117 spin_unlock(&list->list_lock); in nf_conncount_add() 130 static bool conn_free(struct nf_conncount_list *list, in conn_free() argument [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/sound/pci/ctxfi/ |
D | ctimap.c | 33 list_add(&entry->list, head); in input_mapper_add() 38 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add() 50 __list_add(&entry->list, pos->prev, pos); in input_mapper_add() 54 list_add_tail(&entry->list, head); in input_mapper_add() 57 pre_ent = list_entry(pre, struct imapper, list); in input_mapper_add() 58 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add() 79 pre = (entry->list.prev == head) ? head->prev : entry->list.prev; in input_mapper_delete() 80 next = (entry->list.next == head) ? head->next : entry->list.next; in input_mapper_delete() 82 if (pre == &entry->list) { in input_mapper_delete() 86 list_del(&entry->list); in input_mapper_delete() [all …]
|
/Linux-v4.19/include/linux/ |
D | list.h | 26 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD() argument 28 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD() 29 list->prev = list; in INIT_LIST_HEAD() 168 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 170 __list_del_entry(list); in list_move() 171 list_add(list, head); in list_move() 179 static inline void list_move_tail(struct list_head *list, in list_move_tail() argument 182 __list_del_entry(list); in list_move_tail() 183 list_add_tail(list, head); in list_move_tail() 191 static inline int list_is_last(const struct list_head *list, in list_is_last() argument [all …]
|
/Linux-v4.19/drivers/gpu/drm/ttm/ |
D | ttm_execbuf_util.c | 36 static void ttm_eu_backoff_reservation_reverse(struct list_head *list, in ttm_eu_backoff_reservation_reverse() argument 39 list_for_each_entry_continue_reverse(entry, list, head) { in ttm_eu_backoff_reservation_reverse() 46 static void ttm_eu_del_from_lru_locked(struct list_head *list) in ttm_eu_del_from_lru_locked() argument 50 list_for_each_entry(entry, list, head) { in ttm_eu_del_from_lru_locked() 57 struct list_head *list) in ttm_eu_backoff_reservation() argument 62 if (list_empty(list)) in ttm_eu_backoff_reservation() 65 entry = list_first_entry(list, struct ttm_validate_buffer, head); in ttm_eu_backoff_reservation() 69 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation() 95 struct list_head *list, bool intr, in ttm_eu_reserve_buffers() argument 102 if (list_empty(list)) in ttm_eu_reserve_buffers() [all …]
|
/Linux-v4.19/drivers/usb/core/ |
D | phy.c | 19 struct list_head list; member 23 struct list_head *list) in usb_phy_roothub_add_phy() argument 39 INIT_LIST_HEAD(&roothub_entry->list); in usb_phy_roothub_add_phy() 43 list_add_tail(&roothub_entry->list, list); in usb_phy_roothub_add_phy() 65 INIT_LIST_HEAD(&phy_roothub->list); in usb_phy_roothub_alloc() 68 err = usb_phy_roothub_add_phy(dev, i, &phy_roothub->list); in usb_phy_roothub_alloc() 86 head = &phy_roothub->list; in usb_phy_roothub_init() 88 list_for_each_entry(roothub_entry, head, list) { in usb_phy_roothub_init() 97 list_for_each_entry_continue_reverse(roothub_entry, head, list) in usb_phy_roothub_init() 113 head = &phy_roothub->list; in usb_phy_roothub_exit() [all …]
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 37 static struct tlpm_node *tlpm_match(struct tlpm_node *list, 41 static struct tlpm_node *tlpm_add(struct tlpm_node *list, in tlpm_add() argument 51 node = tlpm_match(list, key, n_bits); in tlpm_add() 54 return list; in tlpm_add() 62 node->next = list; in tlpm_add() 69 static void tlpm_clear(struct tlpm_node *list) in tlpm_clear() argument 75 while ((node = list)) { in tlpm_clear() 76 list = list->next; in tlpm_clear() 81 static struct tlpm_node *tlpm_match(struct tlpm_node *list, in tlpm_match() argument 94 for ( ; list; list = list->next) { in tlpm_match() [all …]
|