Home
last modified time | relevance | path

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

1234567

/openbmc/linux/net/wireless/
H A Dradiotap.c98 struct ieee80211_radiotap_iterator *iterator, in ieee80211_radiotap_iterator_init() argument
114 iterator->_rtheader = radiotap_header; in ieee80211_radiotap_iterator_init()
115 iterator->_max_length = get_unaligned_le16(&radiotap_header->it_len); in ieee80211_radiotap_iterator_init()
116 iterator->_arg_index = 0; in ieee80211_radiotap_iterator_init()
117 iterator->_bitmap_shifter = get_unaligned_le32(&radiotap_header->it_present); in ieee80211_radiotap_iterator_init()
118 iterator->_arg = (uint8_t *)radiotap_header->it_optional; in ieee80211_radiotap_iterator_init()
119 iterator->_reset_on_ext = 0; in ieee80211_radiotap_iterator_init()
120 iterator->_next_bitmap = radiotap_header->it_optional; in ieee80211_radiotap_iterator_init()
121 iterator->_vns = vns; in ieee80211_radiotap_iterator_init()
122 iterator->current_namespace = &radiotap_ns; in ieee80211_radiotap_iterator_init()
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_print.c81 struct drm_print_iterator *iterator = p->arg; in __drm_puts_coredump() local
84 if (!iterator->remain) in __drm_puts_coredump()
87 if (iterator->offset < iterator->start) { in __drm_puts_coredump()
92 if (iterator->offset + len <= iterator->start) { in __drm_puts_coredump()
93 iterator->offset += len; in __drm_puts_coredump()
97 copy = len - (iterator->start - iterator->offset); in __drm_puts_coredump()
99 if (copy > iterator->remain) in __drm_puts_coredump()
100 copy = iterator->remain; in __drm_puts_coredump()
103 if (iterator->data) in __drm_puts_coredump()
104 memcpy(iterator->data, in __drm_puts_coredump()
[all …]
/openbmc/linux/rust/alloc/vec/
H A Dspec_extend.rs45 default fn spec_extend(&mut self, iterator: I) { in spec_extend()
46 self.extend_trusted(iterator) in spec_extend()
54 default fn try_spec_extend(&mut self, iterator: I) -> Result<(), TryReserveError> { in try_spec_extend()
55 self.try_extend_trusted(iterator) in try_spec_extend()
61 fn spec_extend(&mut self, mut iterator: IntoIter<T>) { in spec_extend()
63 self.append_elements(iterator.as_slice() as _); in spec_extend()
65 iterator.forget_remaining_elements(); in spec_extend()
70 fn try_spec_extend(&mut self, mut iterator: IntoIter<T>) -> Result<(), TryReserveError> { in try_spec_extend()
72 self.try_append_elements(iterator.as_slice() as _)?; in try_spec_extend()
74 iterator.forget_remaining_elements(); in try_spec_extend()
[all …]
/openbmc/u-boot/scripts/coccinelle/iterators/
H A 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 …]
H A 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)
/openbmc/linux/drivers/net/wireless/realtek/rtw88/
H A Dutil.h10 #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,
/openbmc/linux/scripts/coccinelle/iterators/
H A 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 …]
H A Dfor_each_child.cocci2 // 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 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)
/openbmc/sdbusplus/include/sdbusplus/async/stdexec/__detail/
H A D__intrusive_slist.hpp102 struct iterator struct in stdexec::__slist::__intrusive_slist
112 iterator() noexcept = default;
114 explicit iterator(_Item* __item) noexcept : __item_(__item) {} in iterator() argument
128 auto operator++() noexcept -> iterator& in operator ++() argument
135 auto operator++(int) noexcept -> iterator in operator ++() argument
137 iterator __result = *this; in operator ++()
142 auto operator==(const iterator&) const noexcept -> bool = default;
145 [[nodiscard]] auto begin() const noexcept -> iterator in begin()
147 return iterator(__head_); in begin()
150 [[nodiscard]] auto end() const noexcept -> iterator in end()
[all …]
H A D__intrusive_queue.hpp176 struct iterator struct in stdexec::__queue::__intrusive_queue
184 iterator() noexcept = default;
186 explicit iterator(_Item* __pred, _Item* __item) noexcept : in iterator() argument
202 auto operator++() noexcept -> iterator& in operator ++() argument
212 auto operator++(int) noexcept -> iterator in operator ++() argument
214 iterator __result = *this; in operator ++()
219 friend auto operator==(const iterator&, const iterator&) noexcept
223 [[nodiscard]] auto begin() const noexcept -> iterator in begin()
225 return iterator(nullptr, __head_); in begin()
228 [[nodiscard]] auto end() const noexcept -> iterator in end()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/libdnf/libdnf/
H A D0001-Fix-a-segfault-in-iterator-of-a-ConfigParser-section.patch4 Subject: [PATCH] Fix a segfault in iterator of a ConfigParser section
6 An iterator should return self on __iter__.
15 Previously, this iterator did not return self on __iter__, it was like this:
24 This fixes https://bugzilla.redhat.com/2330562 by avoiding a second iterator object.
48 Iterator(typename T::iterator _cur, typename T::iterator _end) : cur(_cur), end(_end) {}
54 typename T::iterator cur;
55 typename T::iterator end;
74 Iterator(typename T::iterator _cur, typename T::iterator _end) : cur(_cur), end(_end) {}
80 typename T::iterator cur;
81 typename T::iterator end;
/openbmc/linux/Documentation/bpf/
H A Dbpf_iterators.rst26 The BPF iterator solves the above problem by providing flexibility on what data
34 A BPF iterator is a type of BPF program that allows users to iterate over
40 For example, users can define a BPF iterator that iterates over every task on
42 them. Another BPF task iterator may instead dump the cgroup information for each
53 triggered in the main kernel. For BPF iterator programs, a ``bpf_link`` to the
66 a BPF iterator program. To begin, we’ll look at `bpf_iter.c
71 Loading a BPF iterator in the kernel from user space typically involves the
79 * Next, obtain a BPF iterator file descriptor (``bpf_iter_fd``) by calling the
83 * Close the iterator fd using ``close(bpf_iter_fd)``.
86 The following are a few examples of selftest BPF iterator programs:
[all …]
/openbmc/pldm/common/
H A Dbios_utils.hpp35 class iterator class in pldm::bios::utils::BIOSTableIter
54 explicit iterator(const void* data, size_t length) : in iterator() function in pldm::bios::utils::BIOSTableIter::iterator
79 iterator& operator++() in operator ++()
122 iterator begin() in begin()
124 return iterator(tableData, tableSize); in begin()
/openbmc/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-iter.rst35 A bpf iterator combines a kernel iterating of
39 *read* kernel iterator output through *read()* syscall.
41 The *pin* command creates a bpf iterator from *OBJ*,
47 Map element bpf iterator requires an additional parameter
53 User can then *cat PATH* to see the bpf iterator output.
68 Create a file-based bpf iterator from bpf_iter_netlink.o and pin it
75 Create a file-based bpf iterator from bpf_iter_hashmap.o and map with
/openbmc/linux/drivers/soc/fsl/qbman/
H A Dqman_test_stash.c170 struct hp_handler *iterator; member
454 hp_cpu->iterator = list_first_entry( in init_phase2()
458 hp_cpu->iterator = list_entry( in init_phase2()
459 hp_cpu->iterator->node.next, in init_phase2()
462 hp_cpu->iterator->fqid_rx = fqid; in init_phase2()
469 hp_cpu->iterator->fqid_tx = fqid; in init_phase2()
471 hp_cpu->iterator->rx_mixer = lfsr; in init_phase2()
474 hp_cpu->iterator->tx_mixer = lfsr; in init_phase2()
497 hp_cpu->iterator = list_first_entry( in init_phase3()
501 hp_cpu->iterator = list_entry( in init_phase3()
[all …]
/openbmc/linux/Documentation/networking/
H A Dradiotap-headers.rst108 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 …]
/openbmc/linux/Documentation/filesystems/
H A Dseq_file.rst37 * An iterator interface which lets a virtual file implementation
73 The iterator interface
77 iterator object that allows stepping through the data of interest
78 during a "session" (roughly one read() system call). If the iterator
81 in whatever way is convenient - the iterator need only exist
82 transiently during a session. If the iterator cannot easily find a
84 iterator can be stored in the private data area and continue from one
88 table, for example, could provide a simple iterator that interprets
99 The /proc/sequence iterator just uses the count of the next number it
102 Four functions must be implemented to make the iterator work. The
[all …]
/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A Dassoc_array.rst234 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,
/openbmc/phosphor-host-ipmid/
H A Dsys_info_param.cpp6 const auto iterator = params.find(paramSelector); in lookup() local
7 if (iterator == params.end()) in lookup()
12 auto& callback = iterator->second; in lookup()
H A Dtransporthandler.hpp179 class iterator : public ObjectTree::const_iterator class in ipmi::transport::ObjectLookupCache
184 iterator(ObjectTree::const_iterator it, ObjectLookupCache& container) : in iterator() function in ipmi::transport::ObjectLookupCache::iterator
200 PropertiesCache::iterator ret;
203 iterator begin() noexcept in begin()
205 return iterator(objs.begin(), *this); in begin()
208 iterator end() noexcept in end()
210 return iterator(objs.end(), *this); in end()
226 PropertiesCache::iterator get(const std::string& path) in get()
/openbmc/bmcweb/include/
H A Dlogin_routes.hpp57 nlohmann::json::iterator userIt = loginCredentials.find("username"); in handleLogin()
58 nlohmann::json::iterator passIt = loginCredentials.find("password"); in handleLogin()
83 nlohmann::json::iterator userIt2 = dataIt->begin(); in handleLogin()
84 nlohmann::json::iterator passIt2 = dataIt->begin() + 1; in handleLogin()
102 nlohmann::json::iterator userIt2 = dataIt->find("username"); in handleLogin()
103 nlohmann::json::iterator passIt2 = dataIt->find("password"); in handleLogin()
/openbmc/linux/arch/x86/kvm/mmu/
H A Dmmu.c1505 static void rmap_walk_init_level(struct slot_rmap_walk_iterator *iterator, in rmap_walk_init_level() argument
1508 iterator->level = level; in rmap_walk_init_level()
1509 iterator->gfn = iterator->start_gfn; in rmap_walk_init_level()
1510 iterator->rmap = gfn_to_rmap(iterator->gfn, level, iterator->slot); in rmap_walk_init_level()
1511 iterator->end_rmap = gfn_to_rmap(iterator->end_gfn, level, iterator->slot); in rmap_walk_init_level()
1514 static void slot_rmap_walk_init(struct slot_rmap_walk_iterator *iterator, in slot_rmap_walk_init() argument
1519 iterator->slot = slot; in slot_rmap_walk_init()
1520 iterator->start_level = start_level; in slot_rmap_walk_init()
1521 iterator->end_level = end_level; in slot_rmap_walk_init()
1522 iterator->start_gfn = start_gfn; in slot_rmap_walk_init()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/fluentbit/fluentbit/
H A D0005-cprof_encode_text.c-fix-wrong-pointer-assignment.patch24 struct cfl_list *iterator;
32 cfl_list_foreach(iterator,
36 iterator,
55 struct cfl_list *iterator;
/openbmc/openbmc/poky/meta/recipes-support/aspell/aspell/
H A D0001-modules-speller-default-vector_hash-t.hpp-fix-gcc-15.patch15 186 | for (iterator i = begin(); i != this->e; ++i, ++this->_size);
18 186 | for (iterator i = begin(); i != this->e; ++i, ++this->_size);
38 - for (iterator i = begin(); i != this->e; ++i, ++this->_size);
39 + for (iterator i = begin(), e = end(); i != e; ++i, ++size_);

1234567