| /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 [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/arch/x86/kvm/mmu/ |
| H A D | mmu.c | 1306 * information in the iterator may not be valid. in rmap_get_next() 1317 * Must be used with a valid iterator: e.g. after rmap_get_first(). 1588 static void rmap_walk_init_level(struct slot_rmap_walk_iterator *iterator, in slot_rmap_walk_next() 1591 iterator->level = level; in slot_rmap_walk_next() 1592 iterator->gfn = iterator->start_gfn; in slot_rmap_walk_next() 1593 iterator->rmap = gfn_to_rmap(iterator->gfn, level, iterator->slot); in slot_rmap_walk_next() 1594 iterator in slot_rmap_walk_next() 1556 rmap_walk_init_level(struct slot_rmap_walk_iterator * iterator,int level) rmap_walk_init_level() argument 1565 slot_rmap_walk_init(struct slot_rmap_walk_iterator * iterator,const struct kvm_memory_slot * slot,int start_level,int end_level,gfn_t start_gfn,gfn_t end_gfn) slot_rmap_walk_init() argument 1579 slot_rmap_walk_okay(struct slot_rmap_walk_iterator * iterator) slot_rmap_walk_okay() argument 1584 slot_rmap_walk_next(struct slot_rmap_walk_iterator * iterator) slot_rmap_walk_next() argument 1621 struct slot_rmap_walk_iterator iterator; __walk_slot_rmaps() local 2511 shadow_walk_init_using_root(struct kvm_shadow_walk_iterator * iterator,struct kvm_vcpu * vcpu,hpa_t root,u64 addr) shadow_walk_init_using_root() argument 2548 shadow_walk_init(struct kvm_shadow_walk_iterator * iterator,struct kvm_vcpu * vcpu,u64 addr) shadow_walk_init() argument 2555 shadow_walk_okay(struct kvm_shadow_walk_iterator * iterator) shadow_walk_okay() argument 2565 __shadow_walk_next(struct kvm_shadow_walk_iterator * iterator,u64 spte) __shadow_walk_next() argument 2577 shadow_walk_next(struct kvm_shadow_walk_iterator * iterator) shadow_walk_next() argument 3721 struct kvm_shadow_walk_iterator iterator; fast_pf_get_last_sptep() local 4455 struct kvm_shadow_walk_iterator iterator; get_walk() local 4585 struct kvm_shadow_walk_iterator iterator; shadow_page_table_clear_flood() local 6669 struct kvm_shadow_walk_iterator iterator; __kvm_mmu_invalidate_addr() local [all...] |
| /linux/drivers/firmware/coreboot/ |
| H A D | coreboot-cfr.c | 203 coreboot_cfr_next_entry(struct coreboot_cfr_iterator *iterator) in coreboot_cfr_next_entry() argument 207 if (!iterator->remaining) in coreboot_cfr_next_entry() 210 if (iterator->remaining < sizeof(*entry)) in coreboot_cfr_next_entry() 213 entry = (const struct coreboot_table_entry *)iterator->cursor; in coreboot_cfr_next_entry() 214 if (entry->size < sizeof(*entry) || entry->size > iterator->remaining) in coreboot_cfr_next_entry() 217 iterator->cursor += entry->size; in coreboot_cfr_next_entry() 218 iterator->remaining -= entry->size; in coreboot_cfr_next_entry() 226 struct coreboot_cfr_iterator iterator = { in coreboot_cfr_child_entry() local 233 entry = coreboot_cfr_next_entry(&iterator); in coreboot_cfr_child_entry() 746 struct coreboot_cfr_iterator iterator in coreboot_cfr_count_enum_values() local 768 struct coreboot_cfr_iterator iterator = { coreboot_cfr_copy_enum_values() local 1026 struct coreboot_cfr_iterator iterator = { coreboot_cfr_parse_records() local [all...] |
| /linux/sound/soc/renesas/rcar/ |
| H A D | rsnd.h | 448 struct rsnd_mod *rsnd_mod_next(int *iterator, argument 452 #define for_each_rsnd_mod(iterator, pos, io) \ 453 for (iterator = 0; \ 454 (pos = rsnd_mod_next(&iterator, io, NULL, 0)); iterator++) 455 #define for_each_rsnd_mod_arrays(iterator, pos, io, array, size) \ 456 for (iterator = 0; \ 457 (pos = rsnd_mod_next(&iterator, io, array, size)); iterator++) 458 #define for_each_rsnd_mod_array(iterator, po 442 for_each_rsnd_mod(iterator,pos,io) global() argument 445 for_each_rsnd_mod_arrays(iterator,pos,io,array,size) global() argument [all...] |
| /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/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 259 bool (*iterator)(void *object, void *iterator_data), 263 to ``iterator()``. If ``iterator()`` returns ``true``, the object is kept. 264 If it returns ``false``, the object will be freed. If the ``iterator()`` 271 The ``iterator_data`` is passed directly to ``iterator()`` and is otherwise 290 int (*iterator)(const void *object, 294 This passes each object in the array to the iterator callback function. 304 will return the result of the last iterator functio [all...] |
| 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() 113 * @iterator: The callback function. 117 * presented to the iterator function. 120 * possible that some objects in the array will be passed to the iterator 126 * return the result of the last iterator function called. Iteration stops 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() 1117 * Subtree collapse to node iterator. in assoc_array_delete() 1509 bool (*iterator)(voi in assoc_array_gc() [all...] |
| /linux/Documentation/block/ |
| H A D | biovecs.rst | 9 the iterator will be modified as the bio is completed, not the biovec. 48 Having a real iterator, and making biovecs immutable, has a number of 90 since all drivers _must_ go through the bvec iterator - and have been
|