Home
last modified time | relevance | path

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

/linux-4.4.14/net/wireless/
Dradiotap.c96 struct ieee80211_radiotap_iterator *iterator, in ieee80211_radiotap_iterator_init() argument
112 iterator->_rtheader = radiotap_header; in ieee80211_radiotap_iterator_init()
113 iterator->_max_length = get_unaligned_le16(&radiotap_header->it_len); in ieee80211_radiotap_iterator_init()
114 iterator->_arg_index = 0; in ieee80211_radiotap_iterator_init()
115 iterator->_bitmap_shifter = get_unaligned_le32(&radiotap_header->it_present); in ieee80211_radiotap_iterator_init()
116 iterator->_arg = (uint8_t *)radiotap_header + sizeof(*radiotap_header); in ieee80211_radiotap_iterator_init()
117 iterator->_reset_on_ext = 0; in ieee80211_radiotap_iterator_init()
118 iterator->_next_bitmap = &radiotap_header->it_present; in ieee80211_radiotap_iterator_init()
119 iterator->_next_bitmap++; in ieee80211_radiotap_iterator_init()
120 iterator->_vns = vns; in ieee80211_radiotap_iterator_init()
[all …]
/linux-4.4.14/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.cocci18 iterator name for_each_node_by_name, for_each_node_by_type,
22 iterator i;
58 iterator i;
/linux-4.4.14/drivers/gpu/drm/radeon/
Ddrm_buffer.h41 int iterator; member
52 return buf->iterator / PAGE_SIZE; in drm_buffer_page()
59 return buf->iterator & (PAGE_SIZE - 1); in drm_buffer_index()
66 return buf->size - buf->iterator; in drm_buffer_unprocessed()
74 buf->iterator += bytes; in drm_buffer_advance()
130 int iter = buffer->iterator + offset * 4; in drm_buffer_pointer_to_dword()
144 int iter = buffer->iterator + offset; in drm_buffer_pointer_to_byte()
Ddrm_buffer.c122 buf->iterator = 0; in drm_buffer_copy_from_user()
Dr300_cmdbuf.c734 int orig_iter = cmdbuf->buffer->iterator; in r300_emit_packet3()
746 cmdbuf->buffer->iterator = orig_iter; in r300_emit_packet3()
771 cmdbuf->buffer->iterator - (int)sizeof(header)); in r300_emit_packet3()
1157 cmdbuf->buffer->iterator - (int)sizeof(*header)); in r300_do_cp_cmdbuf()
Dradeon_state.c3013 cmdbuf->buffer->iterator); in radeon_cp_cmdbuf()
/linux-4.4.14/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-4.4.14/arch/x86/kvm/
Dmmu.c1444 rmap_walk_init_level(struct slot_rmap_walk_iterator *iterator, int level) in rmap_walk_init_level() argument
1446 iterator->level = level; in rmap_walk_init_level()
1447 iterator->gfn = iterator->start_gfn; in rmap_walk_init_level()
1448 iterator->rmap = __gfn_to_rmap(iterator->gfn, level, iterator->slot); in rmap_walk_init_level()
1449 iterator->end_rmap = __gfn_to_rmap(iterator->end_gfn, level, in rmap_walk_init_level()
1450 iterator->slot); in rmap_walk_init_level()
1454 slot_rmap_walk_init(struct slot_rmap_walk_iterator *iterator, in slot_rmap_walk_init() argument
1458 iterator->slot = slot; in slot_rmap_walk_init()
1459 iterator->start_level = start_level; in slot_rmap_walk_init()
1460 iterator->end_level = end_level; in slot_rmap_walk_init()
[all …]
Dpaging_tmpl.h821 struct kvm_shadow_walk_iterator iterator; in FNAME() local
840 for_each_shadow_entry(vcpu, gva, iterator) { in FNAME()
841 level = iterator.level; in FNAME()
842 sptep = iterator.sptep; in FNAME()
/linux-4.4.14/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.
72 implement - but the interpretation of that position is up to the iterator
80 The /proc/sequence iterator just uses the count of the next number it
83 Four functions must be implemented to make the iterator work. The first,
84 called start() takes a position as an argument and returns an iterator
97 The entire data structure for this iterator is a single loff_t value
99 iterator, but that will not be the case for most other seq_file
111 move the iterator forward to the next position in the sequence. The
[all …]
/linux-4.4.14/include/linux/
Dassoc_array.h65 int (*iterator)(const void *object,
88 bool (*iterator)(void *object, void *iterator_data),
/linux-4.4.14/scripts/coccinelle/null/
Dderef_null.cocci57 iterator iter;
118 iterator iter;
178 iterator iter;
251 iterator iter;
/linux-4.4.14/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()
736 int iterator; in ioctl_done() local
757 iterator = 0; in ioctl_done()
765 if (iterator++ == adapno) break; in ioctl_done()
/linux-4.4.14/Documentation/
Dassoc_array.txt56 RCU readlock is being held by the iterator. Note, however, under these
58 problem, the iterator should lock against modification. Objects will not
275 bool (*iterator)(void *object, void *iterator_data),
279 to iterator(). If iterator() returns true, the object is kept. If it
280 returns false, the object will be freed. If the iterator() function
287 The iterator_data is passed directly to iterator() and is otherwise
306 int (*iterator)(const void *object,
310 This passes each object in the array to the iterator callback function.
320 return the result of the last iterator function called. Iteration stops
Drbtree.txt182 The iterator functions return a pointer to the embedded struct rb_node, from
/linux-4.4.14/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-4.4.14/security/keys/
Dkeyring.c603 return object ? ctx->iterator(object, ctx) : 0; in search_keyring()
605 return assoc_array_iterate(&keyring->keys, ctx->iterator, ctx); in search_keyring()
645 switch (ctx->iterator(keyring_key_to_ptr(keyring), ctx)) { in search_nested_keyrings()
856 ctx->iterator = keyring_search_iterator; in keyring_search_aux()
1055 .iterator = keyring_detect_cycle_iterator, in keyring_detect_cycle()
Dinternal.h122 int (*iterator)(const void *object, void *iterator_data); member
/linux-4.4.14/fs/btrfs/
Dprops.c160 void (*iterator)(void *, in iterate_object_props()
249 iterator(ctx, handler, value_buf, data_len); in iterate_object_props()
/linux-4.4.14/net/mac80211/
Dutil.c587 void (*iterator)(void *data, u8 *mac, in __iterate_interfaces()
609 iterator(data, sdata->vif.addr, in __iterate_interfaces()
619 iterator(data, sdata->vif.addr, &sdata->vif); in __iterate_interfaces()
624 void (*iterator)(void *data, u8 *mac, in ieee80211_iterate_interfaces()
631 __iterate_interfaces(local, iter_flags, iterator, data); in ieee80211_iterate_interfaces()
638 void (*iterator)(void *data, u8 *mac, in ieee80211_iterate_active_interfaces_atomic()
646 iterator, data); in ieee80211_iterate_active_interfaces_atomic()
653 void (*iterator)(void *data, u8 *mac, in ieee80211_iterate_active_interfaces_rtnl()
662 iterator, data); in ieee80211_iterate_active_interfaces_rtnl()
667 void (*iterator)(void *data, in __iterate_stations()
[all …]
Dtx.c1670 struct ieee80211_radiotap_iterator iterator; in ieee80211_parse_tx_radiotap() local
1674 int ret = ieee80211_radiotap_iterator_init(&iterator, rthdr, skb->len, in ieee80211_parse_tx_radiotap()
1688 ret = ieee80211_radiotap_iterator_next(&iterator); in ieee80211_parse_tx_radiotap()
1694 switch (iterator.this_arg_index) { in ieee80211_parse_tx_radiotap()
1702 if (*iterator.this_arg & IEEE80211_RADIOTAP_F_FCS) { in ieee80211_parse_tx_radiotap()
1710 if (skb->len < (iterator._max_length + FCS_LEN)) in ieee80211_parse_tx_radiotap()
1715 if (*iterator.this_arg & IEEE80211_RADIOTAP_F_WEP) in ieee80211_parse_tx_radiotap()
1717 if (*iterator.this_arg & IEEE80211_RADIOTAP_F_FRAG) in ieee80211_parse_tx_radiotap()
1722 txflags = get_unaligned_le16(iterator.this_arg); in ieee80211_parse_tx_radiotap()
1746 skb_pull(skb, iterator._max_length); in ieee80211_parse_tx_radiotap()
/linux-4.4.14/lib/
Dassoc_array.c25 int (*iterator)(const void *leaf, in assoc_array_subtree_iterate()
68 ret = iterator(assoc_array_ptr_to_leaf(ptr), in assoc_array_subtree_iterate()
146 int (*iterator)(const void *object, in assoc_array_iterate()
154 return assoc_array_subtree_iterate(root, NULL, iterator, iterator_data); in assoc_array_iterate()
1487 bool (*iterator)(void *object, void *iterator_data), in assoc_array_gc()
1558 if (iterator(assoc_array_ptr_to_leaf(ptr), in assoc_array_gc()
/linux-4.4.14/scripts/coccinelle/free/
Dkfree.cocci72 iterator iter;
/linux-4.4.14/include/net/
Dmac80211.h4607 void (*iterator)(void *data, u8 *mac,
4628 void (*iterator)(void *data, u8 *mac, in ieee80211_iterate_active_interfaces()
4634 iterator, data); in ieee80211_iterate_active_interfaces()
4653 void (*iterator)(void *data,
4672 void (*iterator)(void *data,
4690 void (*iterator)(void *data,
Dcfg80211.h3720 ieee80211_radiotap_iterator_init(struct ieee80211_radiotap_iterator *iterator,
3726 ieee80211_radiotap_iterator_next(struct ieee80211_radiotap_iterator *iterator);
/linux-4.4.14/drivers/scsi/osd/
Dosd_initiator.c1353 struct osd_attr *oa, int *nelem, void **iterator) in osd_req_decode_get_attr_list() argument
1366 *iterator = NULL; in osd_req_decode_get_attr_list()
1370 if (*iterator) { in osd_req_decode_get_attr_list()
1371 BUG_ON((*iterator < or->get_attr.buff) || in osd_req_decode_get_attr_list()
1372 (or->get_attr.buff + or->get_attr.alloc_size < *iterator)); in osd_req_decode_get_attr_list()
1373 cur_p = *iterator; in osd_req_decode_get_attr_list()
1374 cur_bytes = (*iterator - or->get_attr.buff) - sizeof_attr_list; in osd_req_decode_get_attr_list()
1413 *iterator = (returned_bytes - cur_bytes) ? cur_p : NULL; in osd_req_decode_get_attr_list()
/linux-4.4.14/include/scsi/
Dosd_initiator.h500 struct osd_attr *, int *nelem, void **iterator);
/linux-4.4.14/Documentation/RCU/
DlistRCU.txt116 /* Do not use the _rcu iterator here, since this is the only
278 /* Do not need to use the _rcu iterator here, since this
/linux-4.4.14/drivers/misc/altera-stapl/
Daltera.c1026 s32 iterator = vars[args[0]]; in altera_execute() local
1030 if (iterator <= end) in altera_execute()
1032 } else if (iterator >= end) in altera_execute()
1038 vars[args[0]] = iterator + step; in altera_execute()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c298 unsigned int iterator; member
306 h->iterator = 0; in bitmap_iterator_init()
315 return !h->advance_array ? 1 : test_bit(h->iterator, h->stats_bitmap); in bitmap_iterator_test()
320 return h->iterator++; in bitmap_iterator_inc()
/linux-4.4.14/fs/ext4/
Dextents.c5354 ext4_lblk_t stop, *iterator, ex_start, ex_end; in ext4_ext_shift_extents() local
5402 iterator = &start; in ext4_ext_shift_extents()
5404 iterator = &stop; in ext4_ext_shift_extents()
5408 path = ext4_find_extent(inode, *iterator, &path, 0); in ext4_ext_shift_extents()
5415 (unsigned long) *iterator); in ext4_ext_shift_extents()
5418 if (SHIFT == SHIFT_LEFT && *iterator > in ext4_ext_shift_extents()
5424 *iterator = ext4_ext_next_allocated_block(path); in ext4_ext_shift_extents()
5431 *iterator = le32_to_cpu(extent->ee_block) + in ext4_ext_shift_extents()
5435 *iterator = le32_to_cpu(extent->ee_block) > 0 ? in ext4_ext_shift_extents()
/linux-4.4.14/Documentation/DocBook/
D80211.xml.db83 API-struct-ieee80211-radiotap-iterator
/linux-4.4.14/arch/sparc/lib/
DNGmemcpy.S151 andn %i2, (64 - 1), %g1 ! block copy loop iterator
/linux-4.4.14/drivers/of/
Dfdt.c698 int (*iterator)(unsigned long node, const char *uname, int depth, void *data); member
/linux-4.4.14/sound/pci/asihpi/
Dhpi.h1179 u16 hpi_subsys_get_adapter(int iterator, u32 *padapter_index,
Dhpifunc.c119 u16 hpi_subsys_get_adapter(int iterator, u32 *padapter_index, in hpi_subsys_get_adapter() argument
126 hm.obj_index = (u16)iterator; in hpi_subsys_get_adapter()
/linux-4.4.14/Documentation/driver-model/
Dporting.txt408 The core provides an iterator to access these devices.
/linux-4.4.14/Documentation/scsi/
DChangeLog.lpfc194 iterator that is not safe.
251 lpfc_els_abort to reset txq and txcmplq iterator after a
486 * Added new function "iterator" lpfc_sli_next_iocb_slot() which
1522 * Use safe list iterator for ndlp list
/linux-4.4.14/Documentation/cgroups/
Dcgroups.txt597 cgroup_taskset_for_each() iterator. Note that this isn't called on a