Home
last modified time | relevance | path

Searched refs:iterator (Results 1 – 25 of 82) sorted by relevance

1234

/linux-6.15/net/wireless/
H A Dradiotap.c116 iterator->_arg_index = 0; in ieee80211_radiotap_iterator_init()
121 iterator->_vns = vns; in ieee80211_radiotap_iterator_init()
158 iterator->this_arg = iterator->_arg; in ieee80211_radiotap_iterator_init()
173 if (!iterator->_vns) in find_ns()
182 iterator->current_namespace = &iterator->_vns->ns[i]; in find_ns()
241 iterator->_arg_index >= iterator->current_namespace->n_bits) { in ieee80211_radiotap_iterator_next()
247 size = iterator->current_namespace->align_size[iterator->_arg_index].size; in ieee80211_radiotap_iterator_next()
251 iterator->_arg = iterator->_next_ns_data; in ieee80211_radiotap_iterator_next()
293 iterator->_next_ns_data = iterator->_arg + size + vnslen; in ieee80211_radiotap_iterator_next()
302 iterator->this_arg_index = iterator->_arg_index; in ieee80211_radiotap_iterator_next()
[all …]
/linux-6.15/drivers/gpu/drm/
H A Ddrm_print.c87 if (iterator->offset < iterator->start) { in __drm_puts_coredump()
92 if (iterator->offset + len <= iterator->start) { in __drm_puts_coredump()
97 copy = len - (iterator->start - iterator->offset); in __drm_puts_coredump()
103 if (iterator->data) in __drm_puts_coredump()
105 str + (iterator->start - iterator->offset), copy); in __drm_puts_coredump()
107 iterator->offset = iterator->start + copy; in __drm_puts_coredump()
110 ssize_t pos = iterator->offset - iterator->start; in __drm_puts_coredump()
114 if (iterator->data) in __drm_puts_coredump()
136 if (iterator->offset + len <= iterator->start) { in __drm_printfn_coredump()
142 if ((iterator->offset >= iterator->start) && (len < iterator->remain)) { in __drm_printfn_coredump()
[all …]
/linux-6.15/drivers/net/wireless/realtek/rtw88/
H A Dutil.h10 #define rtw_iterate_vifs_atomic(rtwdev, iterator, data) \ argument
12 IEEE80211_IFACE_ITER_NORMAL, iterator, data)
13 #define rtw_iterate_stas_atomic(rtwdev, iterator, data) \ argument
14 ieee80211_iterate_stations_atomic(rtwdev->hw, iterator, data)
15 #define rtw_iterate_keys(rtwdev, vif, iterator, data) \ argument
16 ieee80211_iter_keys(rtwdev->hw, vif, iterator, data)
17 #define rtw_iterate_keys_rcu(rtwdev, vif, iterator, data) \ argument
18 ieee80211_iter_keys_rcu((rtwdev)->hw, vif, iterator, data)
21 void (*iterator)(void *data, struct ieee80211_vif *vif),
24 void (*iterator)(void *data,
H A Dutil.c134 void (*iterator)(void *data, in rtw_iterate_stas()
155 iterator(data, sta_entry->sta); in rtw_iterate_stas()
184 void (*iterator)(void *data, struct ieee80211_vif *vif), in rtw_iterate_vifs()
205 iterator(data, vif_entry->vif); in rtw_iterate_vifs()
/linux-6.15/scripts/coccinelle/iterators/
H A Duse_after_iter.cocci5 /// the end of the iterator.
24 iterator name list_for_each_entry;
25 iterator name list_for_each_entry_reverse;
26 iterator name list_for_each_entry_continue;
28 iterator name list_for_each_entry_from;
29 iterator name list_for_each_entry_safe;
31 iterator name list_for_each_entry_safe_from;
33 iterator name hlist_for_each_entry;
35 iterator name hlist_for_each_entry_from;
36 iterator name hlist_for_each_entry_safe;
[all …]
H A Dfor_each_child.cocci19 iterator name for_each_node_by_name, for_each_node_by_type,
23 iterator i;
53 iterator r.i,i1;
82 iterator r.i,i1,i2;
114 iterator r.i,i1,i2;
151 iterator r.i, i1;
174 iterator r.i;
189 iterator r.i, i1, i2;
220 iterator r.i, i2;
244 iterator r.i, i1, i2;
[all …]
H A Ditnull.cocci23 iterator I;
66 iterator I;
86 cocci.print_main("iterator-bound variable",p1)
94 msg = "ERROR: iterator variable bound on line %s cannot be NULL" % (p1[0].line)
H A Dlist_entry_update.cocci20 iterator name list_for_each_entry;
54 cocci.print_main("iterator",p1)
62 msg = "iterator with update on line %s" % (p2[0].line)
H A Ddevice_node_continue.cocci22 iterator name for_each_node_by_name, for_each_node_by_type,
26 iterator i;
62 iterator i;
/linux-6.15/Documentation/bpf/
H A Dbpf_iterators.rst66 a BPF iterator program. To begin, we’ll look at `bpf_iter.c
83 * Close the iterator fd using ``close(bpf_iter_fd)``.
86 The following are a few examples of selftest BPF iterator programs:
98 iterator.
169 use ``rm -f <path>`` to remove the pinned iterator.
211 register the iterator to the main BPF iterator subsystem.
229 info associated with the iterator.
231 - Permits a BPF iterator to access BPF helpers specific to the iterator.
234 the bpf iterator.
265 through the ``seq_file`` of the iterator. It is a standard BPF iterator program
[all …]
/linux-6.15/tools/bpf/bpftool/Documentation/
H A Dbpftool-iter.rst35 A bpf iterator combines a kernel iterating of particular kernel data (e.g.,
37 (e.g., one task, one bpf_map, etc.). User space can *read* kernel iterator
40 The *pin* command creates a bpf iterator from *OBJ*, and pin it to *PATH*.
44 Map element bpf iterator requires an additional parameter *MAP* so bpf
49 User can then *cat PATH* to see the bpf iterator output.
64 Create a file-based bpf iterator from bpf_iter_netlink.o and pin it
71 Create a file-based bpf iterator from bpf_iter_hashmap.o and map with
/linux-6.15/drivers/soc/fsl/qbman/
H A Dqman_test_stash.c168 struct hp_handler *iterator; member
452 hp_cpu->iterator = list_first_entry( in init_phase2()
456 hp_cpu->iterator = list_entry( in init_phase2()
457 hp_cpu->iterator->node.next, in init_phase2()
460 hp_cpu->iterator->fqid_rx = fqid; in init_phase2()
467 hp_cpu->iterator->fqid_tx = fqid; in init_phase2()
469 hp_cpu->iterator->rx_mixer = lfsr; in init_phase2()
472 hp_cpu->iterator->tx_mixer = lfsr; in init_phase2()
495 hp_cpu->iterator = list_first_entry( in init_phase3()
499 hp_cpu->iterator = list_entry( in init_phase3()
[all …]
/linux-6.15/Documentation/networking/
H A Dradiotap-headers.rst108 struct ieee80211_radiotap_iterator iterator;
113 ret = ieee80211_radiotap_iterator_next(&iterator);
120 switch (iterator.this_arg_index) {
122 * You must take care when dereferencing iterator.this_arg
124 * get_unaligned((type *)iterator.this_arg) to dereference
125 * iterator.this_arg for type "type" safely on all arches.
131 pkt_rate_100kHz = (*iterator.this_arg) * 5;
136 antenna = *iterator.this_arg);
140 pwr = *iterator.this_arg;
152 buf += iterator.max_length;
[all …]
/linux-6.15/Documentation/filesystems/
H A Dseq_file.rst37 * An iterator interface which lets a virtual file implementation
73 The iterator interface
77 iterator object that allows stepping through the data of interest
81 in whatever way is convenient - the iterator need only exist
82 transiently during a session. If the iterator cannot easily find a
88 table, for example, could provide a simple iterator that interprets
102 Four functions must be implemented to make the iterator work. The
104 argument, returning an iterator which will start reading at that
122 iterator, but that will not be the case for most other seq_file
218 other locks while the iterator is active.
[all …]
/linux-6.15/Documentation/translations/zh_CN/core-api/
H A Dassoc_array.rst234 bool (*iterator)(void *object, void *iterator_data),
237 这是对一个关联数组中的对象进行迭代,并将每个对象传递给 ``iterator()`` 。如果 ``iterator()`` 返回
238 true,该对象被保留。如果它返回 ``false`` ,该对象将被释放。如果 ``iterator()`` 函数返回 ``true`` ,它必须
243 ``iterator_data`` 被直接传递给 ``iterator()`` ,否则会被函数忽略。
259 int (*iterator)(const void *object,
/linux-6.15/arch/x86/kvm/mmu/
H A Dmmu.c1527 iterator->gfn = iterator->start_gfn; in rmap_walk_init_level()
1528 iterator->rmap = gfn_to_rmap(iterator->gfn, level, iterator->slot); in rmap_walk_init_level()
1529 iterator->end_rmap = gfn_to_rmap(iterator->end_gfn, level, iterator->slot); in rmap_walk_init_level()
1543 rmap_walk_init_level(iterator, iterator->start_level); in slot_rmap_walk_init()
1553 while (++iterator->rmap <= iterator->end_rmap) { in slot_rmap_walk_next()
1554 iterator->gfn += KVM_PAGES_PER_HPAGE(iterator->level); in slot_rmap_walk_next()
1560 if (++iterator->level > iterator->end_level) { in slot_rmap_walk_next()
1565 rmap_walk_init_level(iterator, iterator->level); in slot_rmap_walk_next()
2485 iterator->index = SPTE_INDEX(iterator->addr, iterator->level); in shadow_walk_okay()
2486 iterator->sptep = ((u64 *)__va(iterator->shadow_addr)) + iterator->index; in shadow_walk_okay()
[all …]
/linux-6.15/sound/soc/renesas/rcar/
H A Drsnd.h438 struct rsnd_mod *rsnd_mod_next(int *iterator,
442 #define for_each_rsnd_mod(iterator, pos, io) \ argument
443 for (iterator = 0; \
444 (pos = rsnd_mod_next(&iterator, io, NULL, 0)); iterator++)
445 #define for_each_rsnd_mod_arrays(iterator, pos, io, array, size) \ argument
446 for (iterator = 0; \
447 (pos = rsnd_mod_next(&iterator, io, array, size)); iterator++)
448 #define for_each_rsnd_mod_array(iterator, pos, io, array) \ argument
449 for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array))
/linux-6.15/Documentation/core-api/
H A Dfolio_queue.rst54 and to use the iterator::
174 A list of segments may be iterated over using the I/O iterator facility using
175 an ``iov_iter`` iterator of ``ITER_FOLIOQ`` type. The iterator may be
184 queue. The iov iterator functions will follow the next pointers when advancing
193 to take locks. The ITER_FOLIOQ iterator inserts appropriate barriers to aid
199 with a slot number equal to the capacity of that segment. The iterator will
202 the consumer before the iterator was advanced.
/linux-6.15/include/linux/
H A Dassoc_array.h61 int (*iterator)(const void *object,
84 bool (*iterator)(void *object, void *iterator_data),
/linux-6.15/tools/testing/radix-tree/
H A Diteration_check_2.c13 static void *iterator(void *arg) in iterator() function
67 if (pthread_create(&threads[0], NULL, iterator, &array)) { in iteration_test2()
/linux-6.15/drivers/net/wireless/realtek/rtw89/
H A Dutil.h9 #define rtw89_iterate_vifs_bh(rtwdev, iterator, data) \ argument
11 IEEE80211_IFACE_ITER_NORMAL, iterator, data)
/linux-6.15/drivers/video/fbdev/core/
H A Dfb_imageblit.h37 static bool fb_bitmap_image(void *iterator, unsigned long *pixels, int *bits) in fb_bitmap_image() argument
39 struct fb_bitmap_iter *iter = iterator; in fb_bitmap_image()
62 static bool fb_color_image(void *iterator, unsigned long *pixels, int *bits) in fb_color_image() argument
64 struct fb_color_iter *iter = iterator; in fb_color_image()
91 static bool fb_bitmap4x_image(void *iterator, unsigned long *pixels, int *bits) in fb_bitmap4x_image() argument
93 struct fb_bitmap4x_iter *iter = iterator; in fb_bitmap4x_image()
/linux-6.15/scripts/coccinelle/null/
H A Dderef_null.cocci58 iterator iter;
119 iterator iter;
179 iterator iter;
252 iterator iter;
/linux-6.15/drivers/scsi/megaraid/
H A Dmegaraid_mm.c240 int iterator; in mraid_mm_get_adapter() local
256 iterator = 0; in mraid_mm_get_adapter()
260 if (iterator++ == adapno) { in mraid_mm_get_adapter()
730 int iterator; in ioctl_done() local
752 iterator = 0; in ioctl_done()
761 if (iterator++ == adapno) { in ioctl_done()
/linux-6.15/drivers/md/dm-vdo/
H A Dslab-depot.c3125 if ((slab == NULL) || (slab->slab_number < iterator->end + iterator->stride)) in next_slab()
3126 iterator->next = NULL; in next_slab()
3128 iterator->next = iterator->slabs[slab->slab_number - iterator->stride]; in next_slab()
3158 struct slab_iterator iterator; in notify_block_allocator_of_read_only_mode() local
3162 while (iterator.next != NULL) { in notify_block_allocator_of_read_only_mode()
3411 struct slab_iterator iterator; in apply_to_slabs() local
3430 while (iterator.next != NULL) { in apply_to_slabs()
3562 while (iterator.next != NULL) { in get_slab_statuses()
3651 while (iterator.next != NULL) { in vdo_dump_block_allocator()
4371 struct slab_iterator iterator = in vdo_allocate_reference_counters() local
[all …]

1234