Home
last modified time | relevance | path

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

12

/Linux-v5.4/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-v5.4/drivers/gpu/drm/
Ddrm_print.c40 struct drm_print_iterator *iterator = p->arg; in __drm_puts_coredump() local
43 if (!iterator->remain) in __drm_puts_coredump()
46 if (iterator->offset < iterator->start) { in __drm_puts_coredump()
51 if (iterator->offset + len <= iterator->start) { in __drm_puts_coredump()
52 iterator->offset += len; in __drm_puts_coredump()
56 copy = len - (iterator->start - iterator->offset); in __drm_puts_coredump()
58 if (copy > iterator->remain) in __drm_puts_coredump()
59 copy = iterator->remain; in __drm_puts_coredump()
62 memcpy(iterator->data, in __drm_puts_coredump()
63 str + (iterator->start - iterator->offset), copy); in __drm_puts_coredump()
[all …]
/Linux-v5.4/scripts/coccinelle/iterators/
Duse_after_iter.cocci2 /// If list_for_each_entry, etc complete a traversal of the list, the iterator
5 /// the end of the iterator.
6 //#False positives arise when there is a goto in the iterator and the
24 iterator name list_for_each_entry;
25 iterator name list_for_each_entry_reverse;
26 iterator name list_for_each_entry_continue;
27 iterator name list_for_each_entry_continue_reverse;
28 iterator name list_for_each_entry_from;
29 iterator name list_for_each_entry_safe;
30 iterator name list_for_each_entry_safe_continue;
[all …]
Dfen.cocci19 iterator name for_each_node_by_name;
32 iterator name for_each_node_by_type;
45 iterator name for_each_compatible_node;
58 iterator name for_each_matching_node;
73 //iterator name for_each_node_by_name;
74 //iterator name for_each_node_by_type;
75 //iterator name for_each_compatible_node;
76 //iterator name for_each_matching_node;
116 cocci.print_secs("iterator",p1)
123 msg = "ERROR: of_node_put not needed after iterator on line %s" % (p1[0].line)
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)
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)
Ddevice_node_continue.cocci22 iterator name for_each_node_by_name, for_each_node_by_type,
26 iterator i;
62 iterator i;
/Linux-v5.4/drivers/net/wireless/realtek/rtw88/
Dutil.h10 #define rtw_iterate_vifs(rtwdev, iterator, data) \ argument
12 IEEE80211_IFACE_ITER_NORMAL, iterator, data)
13 #define rtw_iterate_vifs_atomic(rtwdev, iterator, data) \ argument
15 IEEE80211_IFACE_ITER_NORMAL, iterator, data)
16 #define rtw_iterate_stas_atomic(rtwdev, iterator, data) \ argument
17 ieee80211_iterate_stations_atomic(rtwdev->hw, iterator, data)
/Linux-v5.4/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-v5.4/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-v5.4/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-v5.4/arch/x86/kvm/
Dmmu.c1935 rmap_walk_init_level(struct slot_rmap_walk_iterator *iterator, int level) in rmap_walk_init_level() argument
1937 iterator->level = level; in rmap_walk_init_level()
1938 iterator->gfn = iterator->start_gfn; in rmap_walk_init_level()
1939 iterator->rmap = __gfn_to_rmap(iterator->gfn, level, iterator->slot); in rmap_walk_init_level()
1940 iterator->end_rmap = __gfn_to_rmap(iterator->end_gfn, level, in rmap_walk_init_level()
1941 iterator->slot); in rmap_walk_init_level()
1945 slot_rmap_walk_init(struct slot_rmap_walk_iterator *iterator, in slot_rmap_walk_init() argument
1949 iterator->slot = slot; in slot_rmap_walk_init()
1950 iterator->start_level = start_level; in slot_rmap_walk_init()
1951 iterator->end_level = end_level; in slot_rmap_walk_init()
[all …]
/Linux-v5.4/sound/soc/sh/rcar/
Drsnd.h436 struct rsnd_mod *rsnd_mod_next(int *iterator,
440 #define for_each_rsnd_mod(iterator, pos, io) \ argument
441 for (iterator = 0; \
442 (pos = rsnd_mod_next(&iterator, io, NULL, 0)); iterator++)
443 #define for_each_rsnd_mod_arrays(iterator, pos, io, array, size) \ argument
444 for (iterator = 0; \
445 (pos = rsnd_mod_next(&iterator, io, array, size)); iterator++)
446 #define for_each_rsnd_mod_array(iterator, pos, io, array) \ argument
447 for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array))
/Linux-v5.4/include/linux/
Dassoc_array.h61 int (*iterator)(const void *object,
84 bool (*iterator)(void *object, void *iterator_data),
/Linux-v5.4/scripts/coccinelle/null/
Dderef_null.cocci58 iterator iter;
119 iterator iter;
179 iterator iter;
252 iterator iter;
/Linux-v5.4/drivers/scsi/megaraid/
Dmegaraid_mm.c248 int iterator; in mraid_mm_get_adapter() local
264 iterator = 0; in mraid_mm_get_adapter()
267 if (iterator++ == adapno) break; in mraid_mm_get_adapter()
734 int iterator; in ioctl_done() local
755 iterator = 0; in ioctl_done()
763 if (iterator++ == adapno) break; in ioctl_done()
/Linux-v5.4/drivers/hwtracing/coresight/
Dcoresight.c1064 struct coresight_device *csdev, *iterator; in coresight_remove_match() local
1068 iterator = to_coresight_device(dev); in coresight_remove_match()
1071 if (csdev == iterator) in coresight_remove_match()
1078 for (i = 0; i < iterator->pdata->nr_outport; i++) { in coresight_remove_match()
1079 conn = &iterator->pdata->conns[i]; in coresight_remove_match()
1085 iterator->orphan = true; in coresight_remove_match()
/Linux-v5.4/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-v5.4/net/mac80211/
Dtx.c2022 struct ieee80211_radiotap_iterator iterator; in ieee80211_parse_tx_radiotap() local
2028 int ret = ieee80211_radiotap_iterator_init(&iterator, rthdr, skb->len, in ieee80211_parse_tx_radiotap()
2050 ret = ieee80211_radiotap_iterator_next(&iterator); in ieee80211_parse_tx_radiotap()
2056 switch (iterator.this_arg_index) { in ieee80211_parse_tx_radiotap()
2064 if (*iterator.this_arg & IEEE80211_RADIOTAP_F_FCS) { in ieee80211_parse_tx_radiotap()
2072 if (skb->len < (iterator._max_length + FCS_LEN)) in ieee80211_parse_tx_radiotap()
2077 if (*iterator.this_arg & IEEE80211_RADIOTAP_F_WEP) in ieee80211_parse_tx_radiotap()
2079 if (*iterator.this_arg & IEEE80211_RADIOTAP_F_FRAG) in ieee80211_parse_tx_radiotap()
2084 txflags = get_unaligned_le16(iterator.this_arg); in ieee80211_parse_tx_radiotap()
2090 rate = *iterator.this_arg; in ieee80211_parse_tx_radiotap()
[all …]
/Linux-v5.4/Documentation/block/
Dbiovecs.rst9 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-v5.4/lib/
Dassoc_array.c21 int (*iterator)(const void *leaf, in assoc_array_subtree_iterate()
59 ret = iterator(assoc_array_ptr_to_leaf(ptr), in assoc_array_subtree_iterate()
134 int (*iterator)(const void *object, in assoc_array_iterate()
142 return assoc_array_subtree_iterate(root, NULL, iterator, iterator_data); in assoc_array_iterate()
1456 bool (*iterator)(void *object, void *iterator_data), in assoc_array_gc()
1527 if (iterator(assoc_array_ptr_to_leaf(ptr), in assoc_array_gc()
/Linux-v5.4/drivers/staging/media/ipu3/
Dipu3-css-fw.h50 struct imgu_fw_isp_parameter iterator; member
/Linux-v5.4/fs/btrfs/
Dprops.c117 void (*iterator)(void *, in iterate_object_props()
206 iterator(ctx, handler, value_buf, data_len); in iterate_object_props()
/Linux-v5.4/security/keys/
Dkeyring.c658 return object ? ctx->iterator(object, ctx) : 0; in search_keyring()
660 return assoc_array_iterate(&keyring->keys, ctx->iterator, ctx); in search_keyring()
700 switch (ctx->iterator(keyring_key_to_ptr(keyring), ctx)) { in search_nested_keyrings()
909 ctx->iterator = keyring_search_iterator; in keyring_search_rcu()
1221 .iterator = keyring_detect_cycle_iterator, in keyring_detect_cycle()

12