Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 6389) sorted by relevance

12345678910>>...256

/openbmc/linux/fs/erofs/
H A Dxattr.c31 struct erofs_xattr_iter it; in erofs_init_inode_xattrs() local
79 it.buf = __EROFS_BUF_INITIALIZER; in erofs_init_inode_xattrs()
80 erofs_init_metabuf(&it.buf, sb); in erofs_init_inode_xattrs()
81 it.pos = erofs_iloc(inode) + vi->inode_isize; in erofs_init_inode_xattrs()
84 it.kaddr = erofs_bread(&it.buf, erofs_blknr(sb, it.pos), EROFS_KMAP); in erofs_init_inode_xattrs()
85 if (IS_ERR(it.kaddr)) { in erofs_init_inode_xattrs()
86 ret = PTR_ERR(it.kaddr); in erofs_init_inode_xattrs()
90 ih = it.kaddr + erofs_blkoff(sb, it.pos); in erofs_init_inode_xattrs()
96 erofs_put_metabuf(&it.buf); in erofs_init_inode_xattrs()
102 it.pos += sizeof(struct erofs_xattr_ibody_header); in erofs_init_inode_xattrs()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Diters.c34 struct bpf_iter_num it; in iter_err_unsafe_c_loop() local
39 bpf_iter_num_new(&it, 0, 1000); in iter_err_unsafe_c_loop()
40 while ((v = bpf_iter_num_next(&it))) { in iter_err_unsafe_c_loop()
43 bpf_iter_num_destroy(&it); in iter_err_unsafe_c_loop()
54 struct bpf_iter_num it; in iter_err_unsafe_asm_loop() local
80 : [it]"r"(&it), in iter_err_unsafe_asm_loop()
96 struct bpf_iter_num it; in iter_while_loop() local
101 bpf_iter_num_new(&it, 0, 3); in iter_while_loop()
102 while ((v = bpf_iter_num_next(&it))) { in iter_while_loop()
105 bpf_iter_num_destroy(&it); in iter_while_loop()
[all …]
H A Diters_num.c142 struct bpf_iter_num it; in num_invalid_range() local
144 res_invalid_range = bpf_iter_num_new(&it, 1, 0); in num_invalid_range()
145 bpf_iter_num_destroy(&it); in num_invalid_range()
156 struct bpf_iter_num it; in num_max_range() local
158 res_max_range = 10 + bpf_iter_num_new(&it, 0, BPF_MAX_LOOPS); in num_max_range()
159 bpf_iter_num_destroy(&it); in num_max_range()
170 struct bpf_iter_num it; in num_e2big_range() local
172 res_e2big_range = bpf_iter_num_new(&it, -1, BPF_MAX_LOOPS); in num_e2big_range()
173 bpf_iter_num_destroy(&it); in num_e2big_range()
184 struct bpf_iter_num it; in num_succ_elem_cnt() local
[all …]
/openbmc/phosphor-networkd/src/
H A Dnetwork_manager.cpp56 auto it = values.find("AdministrativeState"); in Manager() local
57 if (it == values.end()) in Manager()
69 const auto& state = std::get<std::string>(it->second); in Manager()
166 if (auto it = interfacesByIdx.find(info.intf.idx); in createInterface() local
167 it != interfacesByIdx.end()) in createInterface()
169 if (info.intf.name && *info.intf.name != it->second->interfaceName()) in createInterface()
171 interfaces.erase(it->second->interfaceName()); in createInterface()
172 interfacesByIdx.erase(it); in createInterface()
176 it->second->updateInfo(info.intf); in createInterface()
182 auto it = interfaces.find(*info.intf.name); in createInterface() local
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/openbox/files/
H A D0001-Fix-list-traversal-issue-in-client_calc_layer.patch8 itself already being freed, or it pointing to a freed area). Avoid this
25 GList *it;
31 - for (it = stacking_list; it; it = g_list_next(it))
32 + for (it = list; it; it = g_list_next(it))
33 if (window_layer(it->data) <= OB_STACKING_LAYER_FULLSCREEN) break;
40 - for (it = stacking_list; it; it = g_list_next(it))
41 + for (it = list; it; it = g_list_next(it))
42 if (window_layer(it->data) <= OB_STACKING_LAYER_FULLSCREEN) break;
46 !WINDOW_AS_CLIENT(it->data)->visited)
47 client_calc_layer_internal(it->data);
[all …]
/openbmc/entity-manager/src/
H A Dtopology.cpp102 for (auto it = upstreamPorts.begin(); it != upstreamPorts.end();) in remove() local
105 std::find(it->second.begin(), it->second.end(), boardPath); in remove()
106 if (pathIt != it->second.end()) in remove()
108 it->second.erase(pathIt); in remove()
111 if (it->second.empty()) in remove()
113 it = upstreamPorts.erase(it); in remove()
117 ++it; in remove()
121 for (auto it = downstreamPorts.begin(); it != downstreamPorts.end();) in remove() local
124 std::find(it->second.begin(), it->second.end(), boardPath); in remove()
125 if (pathIt != it->second.end()) in remove()
[all …]
/openbmc/qemu/tests/tcg/s390x/
H A Dfma.c159 static bool iter_next(struct iter *it) in iter_next() argument
164 if (++it->val[i] != signed_floats[it->fmt][it->cls[i]].n) { in iter_next()
167 it->val[i] = 0; in iter_next()
169 if (++it->cls[i] != N_SIGNED_CLASSES) { in iter_next()
172 it->cls[i] = 0; in iter_next()
175 return ++it->fmt != N_FORMATS; in iter_next()
181 struct iter it = {}; in main() local
184 size_t n = float_sizes[it.fmt]; in main()
188 memcpy(&a, signed_floats[it.fmt][it.cls[0]].v[it.val[0]], sizeof(a)); in main()
189 memcpy(&b, signed_floats[it.fmt][it.cls[1]].v[it.val[1]], sizeof(b)); in main()
[all …]
/openbmc/linux/fs/smb/client/
H A Ddfs_cache.h45 void dfs_cache_noreq_update_tgthint(const char *path, const struct dfs_cache_tgt_iterator *it);
46 int dfs_cache_get_tgt_referral(const char *path, const struct dfs_cache_tgt_iterator *it,
48 int dfs_cache_get_tgt_share(char *path, const struct dfs_cache_tgt_iterator *it, char **share,
56 struct dfs_cache_tgt_iterator *it) in dfs_cache_get_next_tgt() argument
59 !it || list_is_last(&it->it_list, &tl->tl_list)) in dfs_cache_get_next_tgt()
61 return list_next_entry(it, it_list); in dfs_cache_get_next_tgt()
76 struct dfs_cache_tgt_iterator *it, *nit; in dfs_cache_free_tgts() local
80 list_for_each_entry_safe(it, nit, &tl->tl_list, it_list) { in dfs_cache_free_tgts()
81 list_del(&it->it_list); in dfs_cache_free_tgts()
82 kfree(it->it_name); in dfs_cache_free_tgts()
[all …]
/openbmc/linux/rust/macros/
H A Dhelpers.rs5 pub(crate) fn try_ident(it: &mut token_stream::IntoIter) -> Option<String> { in try_ident()
6 if let Some(TokenTree::Ident(ident)) = it.next() { in try_ident()
13 pub(crate) fn try_literal(it: &mut token_stream::IntoIter) -> Option<String> { in try_literal()
14 if let Some(TokenTree::Literal(literal)) = it.next() { in try_literal()
21 pub(crate) fn try_string(it: &mut token_stream::IntoIter) -> Option<String> { in try_string()
22 try_literal(it).and_then(|string| { in try_string()
37 pub(crate) fn expect_ident(it: &mut token_stream::IntoIter) -> String { in expect_ident()
38 try_ident(it).expect("Expected Ident") in expect_ident()
41 pub(crate) fn expect_punct(it: &mut token_stream::IntoIter) -> char { in expect_punct()
42 if let TokenTree::Punct(punct) = it.next().expect("Reached end of token stream for Punct") { in expect_punct()
[all …]
H A Dmodule.rs7 fn expect_string_array(it: &mut token_stream::IntoIter) -> Vec<String> { in expect_string_array()
8 let group = expect_group(it); in expect_string_array()
11 let mut it = group.stream().into_iter(); in expect_string_array() localVariable
13 while let Some(val) = try_string(&mut it) { in expect_string_array()
16 match it.next() { in expect_string_array()
103 fn parse(it: &mut token_stream::IntoIter) -> Self { in parse()
112 let key = match it.next() { in parse()
125 assert_eq!(expect_punct(it), ':'); in parse()
128 "type" => info.type_ = expect_ident(it), in parse()
129 "name" => info.name = expect_string_ascii(it), in parse()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dvmm.c98 nvkm_vmm_trace(struct nvkm_vmm_iter *it, char *buf) in nvkm_vmm_trace() argument
101 for (lvl = it->max; lvl >= 0; lvl--) { in nvkm_vmm_trace()
102 if (lvl >= it->lvl) in nvkm_vmm_trace()
103 buf += sprintf(buf, "%05x:", it->pte[lvl]); in nvkm_vmm_trace()
120 nvkm_vmm_flush_mark(struct nvkm_vmm_iter *it) in nvkm_vmm_flush_mark() argument
122 it->flush = min(it->flush, it->max - it->lvl); in nvkm_vmm_flush_mark()
126 nvkm_vmm_flush(struct nvkm_vmm_iter *it) in nvkm_vmm_flush() argument
128 if (it->flush != NVKM_VMM_LEVELS_MAX) { in nvkm_vmm_flush()
129 if (it->vmm->func->flush) { in nvkm_vmm_flush()
130 TRA(it, "flush: %d", it->flush); in nvkm_vmm_flush()
[all …]
/openbmc/linux/Documentation/translations/it_IT/process/
H A Dprogramming-language.rst4 :Translator: Federico Vaga <federico.vaga@vaga.pv.it>
11 Il kernel è scritto nel linguaggio di programmazione C [it-c-language]_.
12 Più precisamente, il kernel viene compilato con ``gcc`` [it-gcc]_ usando
13 l'opzione ``-std=gnu11`` [it-gcc-c-dialect-options]_: il dialetto GNU
15 Linux supporta anche ``clang`` [it-clang]_, leggete la documentazione
18 Questo dialetto contiene diverse estensioni al linguaggio [it-gnu-extensions]_,
25 [it-gcc-attribute-syntax]_. Gli attributi permettono di aggiungere una semantica,
28 linguaggio stesso (come l'aggiunta di nuove parole chiave) [it-n2049]_.
46 [it-rust-language]_ abilitando l'opzione di configurazione ``CONFIG_RUST``. Il
47 codice verrà compilato usando ``rustc`` [it-rustc]_ con l'opzione
[all …]
/openbmc/phosphor-led-manager/manager/
H A Dmanager.cpp49 for (const auto* it : sorted) in getNewMapWithGroupPriorities() local
52 for (const Layout::LedAction& action : it->actionSet) in getNewMapWithGroupPriorities()
65 for (const Layout::GroupLayout* it : assertedGroups) in getNewMapWithLEDPriorities() local
68 for (const Layout::LedAction& action : it->actionSet) in getNewMapWithLEDPriorities()
86 for (const Layout::GroupLayout* it : assertedGroups) in getNewMap() local
88 sorted.insert(it); in getNewMap()
90 if (it->priority != 0) in getNewMap()
272 for (const auto& it : reqLedsDeAssert) in driveLedsHandler() local
274 std::string objPath = std::string(phyLedPath) + it.name; in driveLedsHandler()
276 it.name, "ACTION", it.action); in driveLedsHandler()
[all …]
/openbmc/qemu/migration/
H A Dpage_cache.c133 CacheItem *it; in cache_is_cached() local
135 it = cache_get_by_addr(cache, addr); in cache_is_cached()
137 if (it->it_addr == addr) { in cache_is_cached()
139 it->it_age = current_age; in cache_is_cached()
149 CacheItem *it; in cache_insert() local
152 it = cache_get_by_addr(cache, addr); in cache_insert()
154 if (it->it_data && it->it_addr != addr && in cache_insert()
155 it->it_age + CACHED_PAGE_LIFETIME > current_age) { in cache_insert()
160 if (!it->it_data) { in cache_insert()
161 it->it_data = g_try_malloc(cache->page_size); in cache_insert()
[all …]
/openbmc/phosphor-fan-presence/control/
H A Dactions.hpp158 auto it = std::find_if(val_to_speed.begin(), val_to_speed.end(), in set_floor_from_average_sensor_value() local
162 if (it != std::end(val_to_speed)) in set_floor_from_average_sensor_value()
164 speed = (*it).second; in set_floor_from_average_sensor_value()
221 for (auto it = val_to_speed.rbegin(); in set_ceiling_from_average_sensor_value() local
222 it != val_to_speed.rend(); ++it) in set_ceiling_from_average_sensor_value()
224 if (it == val_to_speed.rbegin() && in set_ceiling_from_average_sensor_value()
225 avgValue >= it->first) in set_ceiling_from_average_sensor_value()
229 speed = it->second; in set_ceiling_from_average_sensor_value()
232 else if (std::next(it, 1) == val_to_speed.rend() && in set_ceiling_from_average_sensor_value()
233 avgValue <= it->first) in set_ceiling_from_average_sensor_value()
[all …]
/openbmc/openpower-hw-diags/attn/
H A Dattn_logging.cpp115 std::map<std::string, std::string>::iterator it; in createPelCustom() local
118 it = i_additional.find("Subsystem"); in createPelCustom()
119 if (it != i_additional.end()) in createPelCustom()
121 subsystem = std::stoi(it->second); in createPelCustom()
135 it = i_additional.find("recoverables"); in createPelCustom()
136 if (it != i_additional.end() && "true" == it->second) in createPelCustom()
168 it = i_additional.find("SrcAscii"); in createPelCustom()
169 if (it != i_additional.end()) in createPelCustom()
171 srcString = it->second; in createPelCustom()
227 it = i_additional.find("SrcAscii"); in createPelCustom()
[all …]
/openbmc/linux/include/linux/ceph/
H A Dmessenger.h136 #define __ceph_bio_iter_advance_step(it, n, STEP) do { \ argument
140 BUG_ON(!(it)->iter.bi_size); \
141 __cur_n = min((it)->iter.bi_size, __n); \
143 bio_advance_iter((it)->bio, &(it)->iter, __cur_n); \
144 if (!(it)->iter.bi_size && (it)->bio->bi_next) { \
146 (it)->bio = (it)->bio->bi_next; \
147 (it)->iter = (it)->bio->bi_iter; \
156 #define ceph_bio_iter_advance(it, n) \ argument
157 __ceph_bio_iter_advance_step(it, n, 0)
162 #define ceph_bio_iter_advance_step(it, n, BVEC_STEP) \ argument
[all …]
/openbmc/ibm-logging/
H A Dcallout.cpp99 auto it = properties.find("BuildDate"); in Callout() local
100 if (it != properties.end()) in Callout()
102 buildDate(std::get<std::string>(it->second)); in Callout()
105 it = properties.find("Manufacturer"); in Callout()
106 if (it != properties.end()) in Callout()
108 manufacturer(std::get<std::string>(it->second)); in Callout()
111 it = properties.find("Model"); in Callout()
112 if (it != properties.end()) in Callout()
114 model(std::get<std::string>(it->second)); in Callout()
117 it = properties.find("PartNumber"); in Callout()
[all …]
/openbmc/bmcweb/redfish-core/include/utils/
H A Dquery_param.hpp63 auto it = children.find(jsonKey); in find() local
64 if (it == children.end()) in find()
68 return &it->second; in find()
75 auto [it, _] = children.emplace(jsonKey, SelectTrieNode{}); in emplace()
76 return &it->second; in emplace()
286 auto it = std::from_chars(value.begin(), value.end(), query.expandLevel); in getExpandType() local
287 if (it.ec != std::errc()) in getExpandType()
292 static_cast<size_t>(std::distance(value.begin(), it.ptr))); in getExpandType()
386 for (const boost::urls::params_view::value_type& it : urlParams) in parseParameters() local
388 if (it.key == "only") in parseParameters()
[all …]
/openbmc/linux/drivers/of/
H A Dbase.c246 * of_node_put() will be called on it
249 * of_node_put() on it when done.
517 * of_node_put() on it when done.
538 * This is like of_get_parent() except that it drops the
539 * refcount on the passed node, making it suitable for iterating
543 * of_node_put() on it when done.
584 * it when done. Returns NULL when prev is the last child. Decrements the
605 * This function is like of_get_next_child(), except that it
639 * on it when done. Returns NULL when prev is the last child. Decrements
681 * Return: a node pointer with refcount incremented, use of_node_put() on it
1106 of_phandle_iterator_init(struct of_phandle_iterator * it,const struct device_node * np,const char * list_name,const char * cells_name,int cell_count) of_phandle_iterator_init() argument
1139 of_phandle_iterator_next(struct of_phandle_iterator * it) of_phandle_iterator_next() argument
1224 of_phandle_iterator_args(struct of_phandle_iterator * it,uint32_t * args,int size) of_phandle_iterator_args() argument
1247 struct of_phandle_iterator it; __of_parse_phandle_with_args() local
1500 struct of_phandle_iterator it; of_count_phandle_with_args() local
[all...]
/openbmc/phosphor-power/phosphor-regulators/src/
H A Did_map.hpp84 auto it = deviceMap.find(id); in getDevice() local
85 if (it == deviceMap.end()) in getDevice()
90 return *(it->second); in getDevice()
103 auto it = railMap.find(id); in getRail() local
104 if (it == railMap.end()) in getRail()
109 return *(it->second); in getRail()
122 auto it = ruleMap.find(id); in getRule() local
123 if (it == ruleMap.end()) in getRule()
128 return *(it->second); in getRule()
/openbmc/phosphor-fan-presence/presence/
H A Dfallback.cpp39 auto it = std::find_if(std::next(activeSensor), sensors.end(), in stateChanged() local
42 if (it != sensors.end()) in stateChanged()
47 present = it->get().start(); in stateChanged()
49 while (activeSensor != it) in stateChanged()
59 activeSensor = it; in stateChanged()
101 auto it = sensors.begin(); in monitor() local
102 while (it != activeSensor) in monitor()
104 it->get().fail(); in monitor()
105 ++it; in monitor()
/openbmc/phosphor-psu-code-mgmt/src/
H A Ditem_updater.cpp87 const auto& it = propertyMap.find("Path"); in onVersionInterfacesAdded() local
88 if (it != propertyMap.end()) in onVersionInterfacesAdded()
90 filePath = std::get<std::string>(it->second); in onVersionInterfacesAdded()
145 auto it = versions.find(versionId); in erase() local
146 if (it == versions.end()) in erase()
154 versionStrings.erase(it->second->getVersionString()); in erase()
155 versions.erase(it); in erase()
213 for (auto it = activations.begin(); it != activations.end(); ++it) in onUpdateDone() local
215 if (it->second->getVersionId() != versionId && in onUpdateDone()
216 utils::isAssociated(psuInventoryPath, it->second->associations())) in onUpdateDone()
[all …]
/openbmc/telemetry/src/metrics/
H A Dcollection_function.cpp60 for (auto it = readings.begin(); it != std::prev(readings.end()); ++it) in calculate() local
62 if (std::isfinite(it->second)) in calculate()
64 const auto kt = std::next(it); in calculate()
65 const auto duration = kt->first - it->first; in calculate()
66 valueSum += it->second * duration.count(); in calculate()
100 for (auto it = readings.begin(); it != std::prev(readings.end()); ++it) in calculate() local
102 if (std::isfinite(it->second)) in calculate()
104 const auto kt = std::next(it); in calculate()
106 calculateMultiplier(kt->first - it->first); in calculate()
107 valueSum += it->second * multiplier.count(); in calculate()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/oprofile/oprofile/
H A D0006-replace-sym_iterator-0-with-sym_iterator.patch26 @@ -73,7 +73,7 @@ void dump_symbol(string const & prefix, sym_iterator it, bool want_nl = true)
34 for (sym_iterator it = b; it != e; ++it)
66 void build_module(string const & n, sym_iterator it,
101 for (sym_iterator it = begin; it != end; ++it)
102 @@ -606,7 +606,7 @@ void binary_info::close_binary(sym_iterator it)
113 // NOTE: it is possible for the binary's symbols to follow its
117 set_end(it);
123 for (sym_iterator it = symbols_begin ; it != symbols_end; ++it) {
124 - string binary = get_image_name((*it)->app_name,
125 + string binary = get_image_name((*it)->app_name,
[all …]

12345678910>>...256