Home
last modified time | relevance | path

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

12

/Linux-v4.19/net/wireless/
Dradiotap.c97 struct ieee80211_radiotap_iterator *iterator, in ieee80211_radiotap_iterator_init() argument
113 iterator->_rtheader = radiotap_header; in ieee80211_radiotap_iterator_init()
114 iterator->_max_length = get_unaligned_le16(&radiotap_header->it_len); in ieee80211_radiotap_iterator_init()
115 iterator->_arg_index = 0; in ieee80211_radiotap_iterator_init()
116 iterator->_bitmap_shifter = get_unaligned_le32(&radiotap_header->it_present); in ieee80211_radiotap_iterator_init()
117 iterator->_arg = (uint8_t *)radiotap_header + sizeof(*radiotap_header); in ieee80211_radiotap_iterator_init()
118 iterator->_reset_on_ext = 0; in ieee80211_radiotap_iterator_init()
119 iterator->_next_bitmap = &radiotap_header->it_present; in ieee80211_radiotap_iterator_init()
120 iterator->_next_bitmap++; in ieee80211_radiotap_iterator_init()
121 iterator->_vns = vns; in ieee80211_radiotap_iterator_init()
[all …]
/Linux-v4.19/drivers/gpu/drm/
Ddrm_print.c35 struct drm_print_iterator *iterator = p->arg; in __drm_puts_coredump() local
38 if (!iterator->remain) in __drm_puts_coredump()
41 if (iterator->offset < iterator->start) { in __drm_puts_coredump()
46 if (iterator->offset + len <= iterator->start) { in __drm_puts_coredump()
47 iterator->offset += len; in __drm_puts_coredump()
51 copy = len - (iterator->start - iterator->offset); in __drm_puts_coredump()
53 if (copy > iterator->remain) in __drm_puts_coredump()
54 copy = iterator->remain; in __drm_puts_coredump()
57 memcpy(iterator->data, in __drm_puts_coredump()
58 str + (iterator->start - iterator->offset), copy); in __drm_puts_coredump()
[all …]
/Linux-v4.19/scripts/coccinelle/iterators/
Duse_after_iter.cocci1 /// If list_for_each_entry, etc complete a traversal of the list, the iterator
4 /// the end of the iterator.
5 //#False positives arise when there is a goto in the iterator and the
23 iterator name list_for_each_entry;
24 iterator name list_for_each_entry_reverse;
25 iterator name list_for_each_entry_continue;
26 iterator name list_for_each_entry_continue_reverse;
27 iterator name list_for_each_entry_from;
28 iterator name list_for_each_entry_safe;
29 iterator name list_for_each_entry_safe_continue;
[all …]
Dfen.cocci18 iterator name for_each_node_by_name;
31 iterator name for_each_node_by_type;
44 iterator name for_each_compatible_node;
57 iterator name for_each_matching_node;
72 //iterator name for_each_node_by_name;
73 //iterator name for_each_node_by_type;
74 //iterator name for_each_compatible_node;
75 //iterator name for_each_matching_node;
115 cocci.print_secs("iterator",p1)
122 msg = "ERROR: of_node_put not needed after iterator on line %s" % (p1[0].line)
Ditnull.cocci22 iterator I;
65 iterator I;
85 cocci.print_main("iterator-bound variable",p1)
93 msg = "ERROR: iterator variable bound on line %s cannot be NULL" % (p1[0].line)
Dlist_entry_update.cocci19 iterator name list_for_each_entry;
53 cocci.print_main("iterator",p1)
61 msg = "iterator with update on line %s" % (p2[0].line)
Ddevice_node_continue.cocci21 iterator name for_each_node_by_name, for_each_node_by_type,
25 iterator i;
61 iterator i;
/Linux-v4.19/drivers/soc/fsl/qbman/
Dqman_test_stash.c170 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-v4.19/Documentation/networking/
Dradiotap-headers.txt101 struct ieee80211_radiotap_iterator iterator;
102 int ret = ieee80211_radiotap_iterator_init(&iterator, buf, buflen);
106 ret = ieee80211_radiotap_iterator_next(&iterator);
113 switch (iterator.this_arg_index) {
115 * You must take care when dereferencing iterator.this_arg
117 * get_unaligned((type *)iterator.this_arg) to dereference
118 * iterator.this_arg for type "type" safely on all arches.
124 pkt_rate_100kHz = (*iterator.this_arg) * 5;
129 antenna = *iterator.this_arg);
133 pwr = *iterator.this_arg;
[all …]
/Linux-v4.19/arch/x86/kvm/
Dmmu.c1764 rmap_walk_init_level(struct slot_rmap_walk_iterator *iterator, int level) in rmap_walk_init_level() argument
1766 iterator->level = level; in rmap_walk_init_level()
1767 iterator->gfn = iterator->start_gfn; in rmap_walk_init_level()
1768 iterator->rmap = __gfn_to_rmap(iterator->gfn, level, iterator->slot); in rmap_walk_init_level()
1769 iterator->end_rmap = __gfn_to_rmap(iterator->end_gfn, level, in rmap_walk_init_level()
1770 iterator->slot); in rmap_walk_init_level()
1774 slot_rmap_walk_init(struct slot_rmap_walk_iterator *iterator, in slot_rmap_walk_init() argument
1778 iterator->slot = slot; in slot_rmap_walk_init()
1779 iterator->start_level = start_level; in slot_rmap_walk_init()
1780 iterator->end_level = end_level; in slot_rmap_walk_init()
[all …]
/Linux-v4.19/Documentation/filesystems/
Dseq_file.txt32 * An iterator interface which lets a virtual file implementation
67 The iterator interface
70 iterator object that allows stepping through the data of interest
71 during a "session" (roughly one read() system call). If the iterator
74 in whatever way is convenient - the iterator need only exist
75 transiently during a session. If the iterator cannot easily find a
77 iterator can be stored in the private data area and continue from one
81 table, for example, could provide a simple iterator that interprets
92 The /proc/sequence iterator just uses the count of the next number it
95 Four functions must be implemented to make the iterator work. The
[all …]
/Linux-v4.19/sound/soc/sh/rcar/
Drsnd.h387 struct rsnd_mod *rsnd_mod_next(int *iterator,
391 #define for_each_rsnd_mod(iterator, pos, io) \ argument
392 for (iterator = 0; \
393 (pos = rsnd_mod_next(&iterator, io, NULL, 0)); iterator++)
394 #define for_each_rsnd_mod_arrays(iterator, pos, io, array, size) \ argument
395 for (iterator = 0; \
396 (pos = rsnd_mod_next(&iterator, io, array, size)); iterator++)
397 #define for_each_rsnd_mod_array(iterator, pos, io, array) \ argument
398 for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array))
Dcore.c393 struct rsnd_mod *rsnd_mod_next(int *iterator, in rsnd_mod_next() argument
402 for (; *iterator < max; (*iterator)++) { in rsnd_mod_next()
403 type = (array) ? array[*iterator] : *iterator; in rsnd_mod_next()
/Linux-v4.19/include/linux/
Dassoc_array.h65 int (*iterator)(const void *object,
88 bool (*iterator)(void *object, void *iterator_data),
/Linux-v4.19/scripts/coccinelle/null/
Dderef_null.cocci57 iterator iter;
118 iterator iter;
178 iterator iter;
251 iterator iter;
/Linux-v4.19/drivers/scsi/megaraid/
Dmegaraid_mm.c252 int iterator; in mraid_mm_get_adapter() local
268 iterator = 0; in mraid_mm_get_adapter()
271 if (iterator++ == adapno) break; in mraid_mm_get_adapter()
738 int iterator; in ioctl_done() local
759 iterator = 0; in ioctl_done()
767 if (iterator++ == adapno) break; in ioctl_done()
/Linux-v4.19/drivers/hwtracing/coresight/
Dcoresight.c905 struct coresight_device *csdev, *iterator; in coresight_remove_match() local
909 iterator = to_coresight_device(dev); in coresight_remove_match()
912 if (csdev == iterator) in coresight_remove_match()
919 for (i = 0; i < iterator->nr_outport; i++) { in coresight_remove_match()
920 conn = &iterator->conns[i]; in coresight_remove_match()
926 iterator->orphan = true; in coresight_remove_match()
/Linux-v4.19/Documentation/core-api/
Dassoc_array.rst38 RCU readlock is being held by the iterator. Note, however, under these
40 problem, the iterator should lock against modification. Objects will not
257 bool (*iterator)(void *object, void *iterator_data),
261 ``iterator()``. If ``iterator()`` returns ``true``, the object is kept. If it
262 returns ``false``, the object will be freed. If the ``iterator()`` function
269 The ``iterator_data`` is passed directly to ``iterator()`` and is otherwise
288 int (*iterator)(const void *object,
292 This passes each object in the array to the iterator callback function.
302 return the result of the last iterator function called. Iteration stops
Didr.rst48 iterator-style :c:func:`idr_for_each_entry`. You may need to use
50 also use :c:func:`idr_get_next` if the iterator doesn't fit your needs.
/Linux-v4.19/Documentation/block/
Dbiovecs.txt9 the iterator will be modified as the bio is completed, not the biovec.
46 Having a real iterator, and making biovecs immutable, has a number of
88 since all drivers _must_ go through the bvec iterator - and have been
/Linux-v4.19/net/mac80211/
Dtx.c1986 struct ieee80211_radiotap_iterator iterator; in ieee80211_parse_tx_radiotap() local
1992 int ret = ieee80211_radiotap_iterator_init(&iterator, rthdr, skb->len, in ieee80211_parse_tx_radiotap()
2014 ret = ieee80211_radiotap_iterator_next(&iterator); in ieee80211_parse_tx_radiotap()
2020 switch (iterator.this_arg_index) { in ieee80211_parse_tx_radiotap()
2028 if (*iterator.this_arg & IEEE80211_RADIOTAP_F_FCS) { in ieee80211_parse_tx_radiotap()
2036 if (skb->len < (iterator._max_length + FCS_LEN)) in ieee80211_parse_tx_radiotap()
2041 if (*iterator.this_arg & IEEE80211_RADIOTAP_F_WEP) in ieee80211_parse_tx_radiotap()
2043 if (*iterator.this_arg & IEEE80211_RADIOTAP_F_FRAG) in ieee80211_parse_tx_radiotap()
2048 txflags = get_unaligned_le16(iterator.this_arg); in ieee80211_parse_tx_radiotap()
2054 rate = *iterator.this_arg; in ieee80211_parse_tx_radiotap()
[all …]
Dutil.c592 void (*iterator)(void *data, u8 *mac, in __iterate_interfaces()
614 iterator(data, sdata->vif.addr, in __iterate_interfaces()
624 iterator(data, sdata->vif.addr, &sdata->vif); in __iterate_interfaces()
629 void (*iterator)(void *data, u8 *mac, in ieee80211_iterate_interfaces()
636 __iterate_interfaces(local, iter_flags, iterator, data); in ieee80211_iterate_interfaces()
643 void (*iterator)(void *data, u8 *mac, in ieee80211_iterate_active_interfaces_atomic()
651 iterator, data); in ieee80211_iterate_active_interfaces_atomic()
658 void (*iterator)(void *data, u8 *mac, in ieee80211_iterate_active_interfaces_rtnl()
667 iterator, data); in ieee80211_iterate_active_interfaces_rtnl()
672 void (*iterator)(void *data, in __iterate_stations()
[all …]
/Linux-v4.19/security/keys/
Dkeyring.c631 return object ? ctx->iterator(object, ctx) : 0; in search_keyring()
633 return assoc_array_iterate(&keyring->keys, ctx->iterator, ctx); in search_keyring()
673 switch (ctx->iterator(keyring_key_to_ptr(keyring), ctx)) { in search_nested_keyrings()
877 ctx->iterator = keyring_search_iterator; in keyring_search_aux()
1186 .iterator = keyring_detect_cycle_iterator, in keyring_detect_cycle()
/Linux-v4.19/lib/
Dassoc_array.c25 int (*iterator)(const void *leaf, in assoc_array_subtree_iterate()
63 ret = iterator(assoc_array_ptr_to_leaf(ptr), in assoc_array_subtree_iterate()
138 int (*iterator)(const void *object, in assoc_array_iterate()
146 return assoc_array_subtree_iterate(root, NULL, iterator, iterator_data); in assoc_array_iterate()
1457 bool (*iterator)(void *object, void *iterator_data), in assoc_array_gc()
1528 if (iterator(assoc_array_ptr_to_leaf(ptr), in assoc_array_gc()
/Linux-v4.19/fs/btrfs/
Dprops.c148 void (*iterator)(void *, in iterate_object_props()
237 iterator(ctx, handler, value_buf, data_len); in iterate_object_props()

12