/linux/tools/perf/util/ |
A D | parse-events.y | 33 list = malloc(sizeof(*list)); in alloc_list() 34 if (!list) in alloc_list() 38 return list; in alloc_list() 56 if (!list_is_last(list->next, list)) in inc_group_count() 160 $$ = list; 170 $$ = list; 194 $$ = list; 207 $$ = list; 216 $$ = list; 227 $$ = list; [all …]
|
/linux/lib/ |
A D | list-test.c | 519 list_add_tail(&test_struct1.list, &list); in list_test_list_first_entry() 520 list_add_tail(&test_struct2.list, &list); in list_test_list_first_entry() 532 list_add_tail(&test_struct1.list, &list); in list_test_list_last_entry() 533 list_add_tail(&test_struct2.list, &list); in list_test_list_last_entry() 548 list_add_tail(&test_struct1.list, &list); in list_test_list_first_entry_or_null() 549 list_add_tail(&test_struct2.list, &list); in list_test_list_first_entry_or_null() 561 list_add_tail(&test_struct1.list, &list); in list_test_list_next_entry() 562 list_add_tail(&test_struct2.list, &list); in list_test_list_next_entry() 667 list_add_tail(&entries[i].list, &list); in list_test_list_for_each_entry() 672 list_for_each_entry(cur, &list, list) { in list_test_list_for_each_entry() [all …]
|
/linux/drivers/clk/rockchip/ |
A D | clk.c | 418 list->flags, list->pll_flags); in rockchip_clk_register_plls() 447 list->mux_shift, list->mux_width, in rockchip_clk_register_branches() 454 list->mux_shift, list->mux_width, in rockchip_clk_register_branches() 486 list->mux_shift, list->mux_width, in rockchip_clk_register_branches() 487 list->mux_flags, list->div_shift, in rockchip_clk_register_branches() 488 list->div_width, list->div_flags, in rockchip_clk_register_branches() 505 list->mux_width, list->mux_flags, in rockchip_clk_register_branches() 506 list->div_offset, list->div_shift, list->div_width, in rockchip_clk_register_branches() 521 list->name, list->parent_names, in rockchip_clk_register_branches() 528 list->name, list->parent_names, in rockchip_clk_register_branches() [all …]
|
/linux/drivers/clk/samsung/ |
A D | clk.c | 135 list->parent_name, list->flags, list->fixed_rate); in samsung_clk_register_fixed_rate() 164 list->parent_name, list->flags, list->mult, list->div); in samsung_clk_register_fixed_factor() 185 list->parent_names, list->num_parents, list->flags, in samsung_clk_register_mux() 187 list->shift, list->width, list->mux_flags, &ctx->lock); in samsung_clk_register_mux() 209 list->name, list->parent_name, list->flags, in samsung_clk_register_div() 211 list->shift, list->width, list->div_flags, in samsung_clk_register_div() 215 list->parent_name, list->flags, in samsung_clk_register_div() 216 ctx->reg_base + list->offset, list->shift, in samsung_clk_register_div() 217 list->width, list->div_flags, &ctx->lock); in samsung_clk_register_div() 238 list->flags, ctx->reg_base + list->offset, in samsung_clk_register_gate() [all …]
|
/linux/tools/firewire/ |
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 …]
|
/linux/tools/testing/selftests/kvm/x86_64/ |
A D | get_msr_index_features.c | 23 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_num_index_msrs() 24 list->nmsrs = nmsrs; in kvm_num_index_msrs() 30 r = list->nmsrs; in kvm_num_index_msrs() 31 free(list); in kvm_num_index_msrs() 51 list = malloc(sizeof(*list) + old_res * sizeof(list->indices[0])); in test_get_msr_index() 59 free(list); in test_get_msr_index() 69 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_num_feature_msrs() 76 r = list->nmsrs; in kvm_num_feature_msrs() 77 free(list); in kvm_num_feature_msrs() 86 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_get_msr_feature_list() [all …]
|
/linux/drivers/net/wireless/quantenna/qtnfmac/ |
A D | util.c | 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() 24 list_for_each_entry(node, &list->head, list) { in qtnf_sta_list_lookup() 40 list_for_each_entry(node, &list->head, list) { in qtnf_sta_list_lookup_index() 67 list_add_tail(&node->list, &list->head); in qtnf_sta_list_add() 68 atomic_inc(&list->size); in qtnf_sta_list_add() 84 list_del(&node->list); in qtnf_sta_list_del() 85 atomic_dec(&list->size); in qtnf_sta_list_del() 100 list_for_each_entry_safe(node, tmp, &list->head, list) { in qtnf_sta_list_free() [all …]
|
/linux/fs/ |
A D | io-wq.h | 38 #define wq_list_empty(list) (READ_ONCE((list)->first) == NULL) argument 52 list->last = node; in wq_list_add_after() 59 if (!list->first) { in wq_list_add_tail() 60 list->last = node; in wq_list_add_tail() 64 list->last = node; in wq_list_add_tail() 73 list->last = node; in wq_list_add_head() 87 if (last == list->last) in wq_list_cut() 88 list->last = prev; in wq_list_cut() 97 INIT_WQ_LIST(list); in __wq_list_splice() 140 if (!work->list.next) in wq_next_work() [all …]
|
/linux/net/core/ |
A D | dev_addr_lists.c | 53 ha = list_first_entry(&list->list, struct netdev_hw_addr, list); in __hw_addr_add_ex() 108 list_add_tail_rcu(&ha->list, &list->list); in __hw_addr_add_ex() 161 ha = list_first_entry(&list->list, struct netdev_hw_addr, list); in __hw_addr_lookup() 318 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_sync_dev() 331 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_sync_dev() 374 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_ref_sync_dev() 390 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_ref_sync_dev() 429 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_ref_unsync_dev() 463 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_unsync_dev() 482 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_flush() [all …]
|
/linux/drivers/clk/x86/ |
A D | clk-cgu.c | 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() 38 list->flags, list->mux_flags); in lgm_clk_register_fixed() 99 u32 reg = list->mux_off; in lgm_clk_register_mux() 107 init.name = list->name; in lgm_clk_register_mux() 271 list->parent_data[0].name, list->flags, in lgm_clk_register_fixed_factor() 272 list->mult, list->div); in lgm_clk_register_fixed_factor() 278 lgm_set_clk_val(ctx->membase, list->div_off, list->div_shift, in lgm_clk_register_fixed_factor() 279 list->div_width, list->div_val); in lgm_clk_register_fixed_factor() 385 switch (list->type) { in lgm_clk_register_branches() [all …]
|
/linux/drivers/hid/usbhid/ |
A D | hiddev.c | 80 report = list_entry(list, struct hid_report, list); in hiddev_lookup_report() 89 list = report->list.next; in hiddev_lookup_report() 148 list_for_each_entry(list, &hiddev->list, node) { in hiddev_send_event() 151 list->buffer[list->head] = *uref; in hiddev_send_event() 152 list->head = (list->head + 1) & in hiddev_send_event() 251 list = vzalloc(sizeof(*list)); in __hiddev_open() 269 list_add_tail(&list->node, &hiddev->list); in __hiddev_open() 338 if (list->head == list->tail) { in hiddev_read() 341 while (list->head == list->tail) { in hiddev_read() 374 while (list->head != list->tail && in hiddev_read() [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_bo_list.c | 44 kvfree(list); in amdgpu_bo_list_free_rcu() 81 if (!list) in amdgpu_bo_list_create() 85 list->gds_obj = NULL; in amdgpu_bo_list_create() 86 list->gws_obj = NULL; in amdgpu_bo_list_create() 87 list->oa_obj = NULL; in amdgpu_bo_list_create() 128 list->oa_obj = bo; in amdgpu_bo_list_create() 139 *result = list; in amdgpu_bo_list_create() 153 kvfree(list); in amdgpu_bo_list_create() 165 if (list) in amdgpu_bo_list_destroy() 283 &list); in amdgpu_bo_list_ioctl() [all …]
|
A 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/security/integrity/platform_certs/ |
A 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() 63 esize = list.signature_size; in parse_efi_signature_list() 72 if (lsize < sizeof(list) || in parse_efi_signature_list() 89 data += sizeof(list) + hsize; in parse_efi_signature_list() 90 size -= sizeof(list) + hsize; in parse_efi_signature_list() [all …]
|
/linux/drivers/hid/ |
A D | hidraw.c | 48 if (list->head == list->tail) { in hidraw_read() 52 while (list->head == list->tail) { in hidraw_read() 80 len = list->buffer[list->tail].len > count ? in hidraw_read() 81 count : list->buffer[list->tail].len; in hidraw_read() 83 if (list->buffer[list->tail].value) { in hidraw_read() 91 kfree(list->buffer[list->tail].value); in hidraw_read() 92 list->buffer[list->tail].value = NULL; in hidraw_read() 93 list->tail = (list->tail + 1) & (HIDRAW_BUFFER_SIZE - 1); in hidraw_read() 255 if (list->head != list->tail) in hidraw_poll() 515 list_for_each_entry(list, &dev->list, node) { in hidraw_report_event() [all …]
|
/linux/net/netfilter/ |
A D | nf_conncount.c | 51 struct nf_conncount_list list; member 90 list->count--; in conn_free() 118 conn_free(list, conn); in find_or_evict() 172 conn_free(list, conn); in __nf_conncount_add() 192 list->count++; in __nf_conncount_add() 215 INIT_LIST_HEAD(&list->head); in nf_conncount_list_init() 216 list->count = 0; in nf_conncount_list_init() 249 conn_free(list, conn); in nf_conncount_gc_list() 259 if (!list->count) in nf_conncount_gc_list() 285 if (!rbconn->list.count) { in tree_nodes_free() [all …]
|
/linux/drivers/hid/intel-ish-hid/ishtp/ |
A 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() 106 list); in ishtp_cl_free_rx_ring() 107 list_del(&rb->list); 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() 140 list_del(&tx_buf->list); in ishtp_cl_free_tx_ring() 152 list_del(&tx_buf->list); in ishtp_cl_free_tx_ring() 190 INIT_LIST_HEAD(&rb->list); in ishtp_io_rb_init() 240 list_add_tail(&rb->list, &cl->free_rb_list.list); in ishtp_cl_io_rb_recycle() [all …]
|
/linux/tools/memory-model/scripts/ |
A 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/drivers/usb/core/ |
A 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() 87 head = &phy_roothub->list; in usb_phy_roothub_init() 114 head = &phy_roothub->list; in usb_phy_roothub_exit() 136 head = &phy_roothub->list; in usb_phy_roothub_set_mode() 163 head = &phy_roothub->list; in usb_phy_roothub_calibrate() 184 head = &phy_roothub->list; in usb_phy_roothub_power_on() [all …]
|
/linux/tools/vm/ |
A D | page_owner_sort.c | 33 static struct block_list *list; variable 108 len == list[list_size-1].len && in add_list() 110 list[list_size-1].num++; in add_list() 118 list[list_size].txt = malloc(len+1); in add_list() 119 list[list_size].len = len; in add_list() 120 list[list_size].num = 1; in add_list() 123 list[list_size].txt[len] = 0; in add_list() 183 list = malloc(max_size * sizeof(*list)); in main() 185 if (!list || !buf) { in main() 202 qsort(list, list_size, sizeof(list[0]), compare_txt); in main() [all …]
|
/linux/include/linux/ |
A D | list.h | 37 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD() 38 list->prev = list; in INIT_LIST_HEAD() 217 __list_del_entry(list); in list_move() 218 list_add(list, head); in list_move() 229 __list_del_entry(list); in list_move_tail() 370 list->next->prev = list; in __list_cut_position() 371 list->prev = entry; in __list_cut_position() 372 entry->next = list; in __list_cut_position() 400 INIT_LIST_HEAD(list); in list_cut_position() 428 list->next->prev = list; in list_cut_before() [all …]
|
/linux/fs/xfs/scrub/ |
A 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() 112 if (list_empty(&bitmap->list) || list_empty(&sub->list)) in xbitmap_disunion() 128 list); in xbitmap_disunion() 129 lp = bitmap->list.next; in xbitmap_disunion() 130 while (lp != &bitmap->list) { in xbitmap_disunion() 138 if (list_is_last(&sub_br->list, &sub->list)) in xbitmap_disunion() 176 list_del(&br->list); in xbitmap_disunion() [all …]
|
/linux/tools/lib/traceevent/ |
A D | event-plugin.c | 124 list = realloc(list, count + 2); in tep_plugin_list_options() 125 if (!list) { in tep_plugin_list_options() 134 return list; in tep_plugin_list_options() 139 free(list); in tep_plugin_list_options() 148 if (!list) in tep_plugin_free_options_list() 157 free(list); in tep_plugin_free_options_list() 438 list = list->next; in tep_print_plugins() 489 list = malloc(sizeof(*list)); in load_plugin() 490 if (!list) { in load_plugin() 643 return list; in tep_load_plugins() [all …]
|
/linux/drivers/pnp/isapnp/ |
A 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() 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() 57 struct pnp_dev *dev = card_to_pnp_dev(list); in pnp_find_dev() [all …]
|
/linux/tools/perf/arch/x86/util/ |
A D | iostat.c | 101 if (list) { 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() 115 if (list) { in iio_root_port_find_by_notation() 130 if (list && rp) { in iio_root_ports_list_insert() 133 list->nr_entries * sizeof(*list->rps)); in iio_root_ports_list_insert() 139 list->rps = tmp_buf; in iio_root_ports_list_insert() 218 *list = tmp_list; in iio_root_ports_scan() 291 *list = tmp_list; in iio_root_ports_list_filter() 317 list->rps[idx]->pmu_idx, list->rps[idx]->pmu_idx, in iostat_event_group() [all …]
|