| /linux/net/wireless/ |
| H A D | radiotap.c | 90 struct ieee80211_radiotap_iterator *iterator, in ieee80211_radiotap_iterator_init() argument 106 iterator->_rtheader = radiotap_header; in ieee80211_radiotap_iterator_init() 107 iterator->_max_length = get_unaligned_le16(&radiotap_header->it_len); in ieee80211_radiotap_iterator_init() 108 iterator->_arg_index = 0; in ieee80211_radiotap_iterator_init() 109 iterator->_bitmap_shifter = get_unaligned_le32(&radiotap_header->it_present); in ieee80211_radiotap_iterator_init() 110 iterator->_arg = (uint8_t *)radiotap_header->it_optional; in ieee80211_radiotap_iterator_init() 111 iterator->_reset_on_ext = 0; in ieee80211_radiotap_iterator_init() 112 iterator->_next_bitmap = radiotap_header->it_optional; in ieee80211_radiotap_iterator_init() 113 iterator->_vns = vns; in ieee80211_radiotap_iterator_init() 114 iterator->current_namespace = &radiotap_ns; in ieee80211_radiotap_iterator_init() [all …]
|
| /linux/scripts/coccinelle/iterators/ |
| H A D | use_after_iter.cocci | 2 /// 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 …]
|
| H A D | for_each_child.cocci | 2 // Adds missing of_node_put() before return/break/goto statement within a for_each iterator for chi… 19 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; [all …]
|
| H A D | itnull.cocci | 23 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 D | list_entry_update.cocci | 20 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 D | device_node_continue.cocci | 22 iterator name for_each_node_by_name, for_each_node_by_type, 26 iterator i; 62 iterator i;
|
| /linux/drivers/net/wireless/realtek/rtw88/ |
| H A D | util.h | 10 #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 D | util.c | 134 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/tools/bpf/bpftool/Documentation/ |
| H A D | bpftool-iter.rst | 35 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/drivers/soc/fsl/qbman/ |
| H A D | qman_test_stash.c | 168 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/Documentation/networking/ |
| H A D | radiotap-headers.rst | 108 struct ieee80211_radiotap_iterator iterator; 109 int ret = ieee80211_radiotap_iterator_init(&iterator, buf, buflen); 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; [all …]
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | assoc_array.rst | 234 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/sound/soc/renesas/rcar/ |
| H A D | rsnd.h | 438 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/include/linux/ |
| H A D | assoc_array.h | 61 int (*iterator)(const void *object, 84 bool (*iterator)(void *object, void *iterator_data),
|
| H A D | tracepoint-defs.h | 44 void *iterator; member
|
| /linux/tools/testing/radix-tree/ |
| H A D | iteration_check_2.c | 13 static void *iterator(void *arg) in iterator() function 67 if (pthread_create(&threads[0], NULL, iterator, &array)) { in iteration_test2()
|
| /linux/scripts/coccinelle/null/ |
| H A D | deref_null.cocci | 58 iterator iter; 119 iterator iter; 179 iterator iter; 252 iterator iter;
|
| /linux/drivers/scsi/megaraid/ |
| H A D | megaraid_mm.c | 240 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/Documentation/core-api/ |
| H A D | assoc_array.rst | 38 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 to ``iterator()``. If ``iterator()`` returns ``true``, the object is kept. 262 If it returns ``false``, the object will be freed. If the ``iterator()`` 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 will return the result of the last iterator function called. Iteration
|
| H A D | idr.rst | 51 iterator-style idr_for_each_entry(). You may need to use 53 also use idr_get_next() if the iterator doesn't fit your needs.
|
| /linux/fs/netfs/ |
| H A D | Makefile | 8 iterator.o \
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | utils.c | 247 struct list *iterator; in map_ids_from_idmap() local 250 list_for_each(iterator, idmap) { in map_ids_from_idmap() 251 struct id_map *map = iterator->elem; in map_ids_from_idmap()
|
| /linux/lib/ |
| H A D | assoc_array.c | 21 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() 1453 bool (*iterator)(void *object, void *iterator_data), in assoc_array_gc() 1523 if (iterator(assoc_array_ptr_to_leaf(ptr), in assoc_array_gc()
|
| /linux/fs/btrfs/ |
| H A D | props.c | 149 void (*iterator)(void *, in iterate_object_props() 238 iterator(ctx, handler, value_buf, data_len); in iterate_object_props()
|
| /linux/security/keys/ |
| H A D | keyring.c | 654 return object ? ctx->iterator(object, ctx) : 0; in search_keyring() 656 return assoc_array_iterate(&keyring->keys, ctx->iterator, ctx); in search_keyring() 696 switch (ctx->iterator(keyring_key_to_ptr(keyring), ctx)) { in search_nested_keyrings() 908 ctx->iterator = keyring_search_iterator; in keyring_search_rcu() 1222 .iterator = keyring_detect_cycle_iterator, in keyring_detect_cycle()
|