| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/openbox/files/ |
| H A D | 0001-Fix-list-traversal-issue-in-client_calc_layer.patch | 8 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/phosphor-networkd/src/ |
| H A D | network_manager.cpp | 63 auto it = values.find("AdministrativeState"); in Manager() local 64 if (it == values.end()) in Manager() 76 const auto& state = std::get<std::string>(it->second); in Manager() 173 if (auto it = interfacesByIdx.find(info.intf.idx); in createInterface() local 174 it != interfacesByIdx.end()) in createInterface() 176 if (info.intf.name && *info.intf.name != it->second->interfaceName()) in createInterface() 178 interfaces.erase(it->second->interfaceName()); in createInterface() 179 interfacesByIdx.erase(it); in createInterface() 183 it->second->updateInfo(info.intf); in createInterface() 189 auto it = interfaces.find(*info.intf.name); in createInterface() local [all …]
|
| /openbmc/qemu/tests/tcg/s390x/ |
| H A D | fma.c | 159 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 …]
|
| H A D | vfminmax.c | 246 static bool iter_next(struct iter *it, int fmt) in iter_next() argument 251 if (++it->val[i] != signed_floats[fmt][it->cls[i]].n) { in iter_next() 254 it->val[i] = 0; in iter_next() 256 if (++it->cls[i] != N_SIGNED_CLASSES) { in iter_next() 259 it->cls[i] = 0; in iter_next() 282 struct iter it = {}; in main() local 286 const char *spec = test->table[it.cls[0]][it.cls[1]]; in main() 289 signed_floats[fmt][it.cls[0]].v[it.val[0]], in main() 292 signed_floats[fmt][it.cls[1]].v[it.val[1]], in main() 336 } while (iter_next(&it, fmt)); in main()
|
| /openbmc/phosphor-led-manager/manager/ |
| H A D | manager.cpp | 51 for (const auto* it : sorted) in getNewMapWithGroupPriorities() local 54 for (const Layout::LedAction& action : it->actionSet) in getNewMapWithGroupPriorities() 67 for (const Layout::GroupLayout* it : assertedGroups) in getNewMapWithLEDPriorities() local 70 for (const Layout::LedAction& action : it->actionSet) in getNewMapWithLEDPriorities() 88 for (const Layout::GroupLayout* it : assertedGroups) in getNewMap() local 90 sorted.insert(it); in getNewMap() 92 if (it->priority != 0) in getNewMap() 241 if (auto it = physicalLEDErrors.find(objPath); in drivePhysicalLED() local 242 it != physicalLEDErrors.end()) in drivePhysicalLED() 245 if ((now - it->second) < 1h) in drivePhysicalLED() [all …]
|
| /openbmc/qemu/migration/ |
| H A D | page_cache.c | 133 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/presence/ |
| H A D | fallback.cpp | 38 auto it = std::find_if(std::next(activeSensor), sensors.end(), in stateChanged() local 41 if (it != sensors.end()) in stateChanged() 46 present = it->get().start(); in stateChanged() 48 while (activeSensor != it) in stateChanged() 56 activeSensor = it; in stateChanged() 96 auto it = sensors.begin(); in monitor() local 97 while (it != activeSensor) in monitor() 99 it->get().fail(); in monitor() 100 ++it; in monitor()
|
| /openbmc/qemu/rust/qemu-api-macros/src/ |
| H A D | bits.rs | 36 it: &mut dyn Iterator<Item = TokenTree>, in parse_primary() 55 it.next() in parse_primary() 66 it.next() in parse_primary() 72 let Some(rhs_tok) = it.next() else { in parse_primary() 75 let next = self.parse_primary(rhs_tok, it, out)?; in parse_primary() 96 it: &mut dyn Iterator<Item = TokenTree>, in parse_binop() 102 let mut next = f(self, tok, it, out)?; in parse_binop() 110 let Some(rhs_tok) = it.next() else { in parse_binop() 114 next = f(self, rhs_tok, it, &mut rhs)?; in parse_binop() 124 it: &mut dyn Iterator<Item = TokenTree>, in parse_sub() [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/src/ |
| H A D | id_map.hpp | 84 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/ibm-logging/ |
| H A D | callout.cpp | 99 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/pldm/fw-update/ |
| H A D | aggregate_update_manager.cpp | 39 for (auto it = updateManagers.begin(); it != updateManagers.end();) in eraseUpdateManagerIf() local 41 if (predicate(it->first)) in eraseUpdateManagerIf() 43 descriptorMap.erase(it->first); in eraseUpdateManagerIf() 44 componentInfoMap.erase(it->first); in eraseUpdateManagerIf() 45 it = updateManagers.erase(it); in eraseUpdateManagerIf() 49 ++it; in eraseUpdateManagerIf()
|
| /openbmc/phosphor-fan-presence/control/ |
| H A D | actions.hpp | 158 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/webui-vue/tests/unit/Global/ |
| H A D | StatusIcon.spec.js | 10 it('should exist', () => { 13 it('should render icon-info element', () => { 16 it('should render icon-success element', async () => { 20 it('should render icon-warning element', async () => { 24 it('should render icon-danger element', async () => { 28 it('should render icon-secondary element', async () => { 32 it('should render correctly', () => {
|
| /openbmc/openpower-hw-diags/attn/ |
| H A D | attn_logging.cpp | 115 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/telemetry/src/metrics/ |
| H A D | collection_function.cpp | 68 for (auto it = readings.begin(); it != std::prev(readings.end()); ++it) in calculate() local 70 if (std::isfinite(it->second)) in calculate() 72 const auto kt = std::next(it); in calculate() 73 const auto duration = kt->first - it->first; in calculate() 74 valueSum += it->second * duration.count(); in calculate() 108 for (auto it = readings.begin(); it != std::prev(readings.end()); ++it) in calculate() local 110 if (std::isfinite(it->second)) in calculate() 112 const auto kt = std::next(it); in calculate() 114 calculateMultiplier(kt->first - it->first); in calculate() 115 valueSum += it->second * multiplier.count(); in calculate()
|
| /openbmc/entity-manager/src/entity_manager/ |
| H A D | configuration.cpp | 114 for (auto it = newConfiguration.begin(); it != newConfiguration.end();) in deriveNewConfiguration() local 116 auto findKey = oldConfiguration.find(it.key()); in deriveNewConfiguration() 119 it = newConfiguration.erase(it); in deriveNewConfiguration() 123 it++; in deriveNewConfiguration() 143 for (auto it = configurations.begin(); it != configurations.end();) in filterProbeInterfaces() local 145 auto findProbe = it->find("Probe"); in filterProbeInterfaces() 146 if (findProbe == it->end()) in filterProbeInterfaces() 149 *it); in filterProbeInterfaces() 150 it++; in filterProbeInterfaces() 187 it++; in filterProbeInterfaces()
|
| /openbmc/bmcweb/redfish-core/include/utils/ |
| H A D | query_param.hpp | 69 auto it = children.find(jsonKey); in find() local 70 if (it == children.end()) in find() 74 return &it->second; in find() 81 auto [it, _] = children.emplace(jsonKey, SelectTrieNode{}); in emplace() 82 return &it->second; in emplace() 292 auto it = std::from_chars(value.begin(), value.end(), query.expandLevel); in getExpandType() local 293 if (it.ec != std::errc()) in getExpandType() 298 static_cast<size_t>(std::distance(value.begin(), it.ptr))); in getExpandType() 392 for (const boost::urls::params_view::value_type& it : urlParams) in parseParameters() local 394 if (it.key == "only") in parseParameters() [all …]
|
| /openbmc/webui-vue/tests/unit/ |
| H A D | AppHeader.spec.js | 35 it('should exist', () => { 39 it('should render correctly', () => { 43 it('refresh button click should emit refresh event', async () => { 49 it('nav-trigger button click should emit toggle-navigation event', async () => { 56 it('logout button should dispatch authentication/logout', async () => { 62 it('change:isNavigationOpen event should set isNavigationOpen prop to false', async () => { 70 it('getSystemInfo should dispatch global/getSystemInfo', () => { 75 it('getEvents should dispatch eventLog/getEventLogData', () => {
|
| /openbmc/phosphor-state-manager/ |
| H A D | systemd_target_parser.cpp | 52 for (auto it = j["targets"].begin(); it != j["targets"].end(); ++it) in parseFiles() local 57 std::cout << "target: " << it.key() << " | " << it.value() in parseFiles() 63 auto errorsToMonitor = it.value().find("errorsToMonitor"); in parseFiles() 69 auto errorToLog = it.value().find("errorToLog"); in parseFiles() 72 systemdTargetMap[it.key()] = entry; in parseFiles()
|
| /openbmc/dbus-sensors/src/nvidia-gpu/ |
| H A D | MctpRequester.cpp | 148 auto it = requestContextQueues.find(eid); in processRecvMsg() local 149 if (it == requestContextQueues.end()) in processRecvMsg() 159 if (iid != it->second.iid) in processRecvMsg() 164 iid, "EID", eid, "E_IID", it->second.iid); in processRecvMsg() 183 auto it = requestContextQueues.find(eid); in handleSendMsgCompletion() local 184 if (it == requestContextQueues.end()) in handleSendMsgCompletion() 194 boost::asio::steady_timer& expiryTimer = it->second.timer; in handleSendMsgCompletion() 215 auto [it, inserted] = requestContextQueues.try_emplace(eid, io); in sendRecvMsg() 218 auto& queue = it->second.queue; in sendRecvMsg() 236 auto it = requestContextQueues.find(eid); in handleResult() local [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/oprofile/oprofile/ |
| H A D | 0006-replace-sym_iterator-0-with-sym_iterator.patch | 26 @@ -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 …]
|
| /openbmc/qemu/tests/tcg/hexagon/ |
| H A D | signal_context.c | 37 struct itimerspec it; in main() local 49 it.it_interval.tv_sec = 0; in main() 50 it.it_interval.tv_nsec = 100000; in main() 51 it.it_value.tv_sec = 0; in main() 52 it.it_value.tv_nsec = 100000; in main() 53 timer_settime(tid, 0, &it, NULL); in main()
|
| /openbmc/phosphor-fan-presence/control/json/actions/ |
| H A D | target_from_group_max.cpp | 68 for (auto it = _valueToSpeedMap.begin(); in run() local 69 it != _valueToSpeedMap.end(); ++it) in run() 74 if (((it == _valueToSpeedMap.begin()) && in run() 75 (groupValue <= it->first)) || in run() 76 ((std::next(it, 1) == _valueToSpeedMap.end()) && in run() 77 (groupValue >= it->first))) in run() 79 groupSpeed = it->second; in run() 85 if (groupValue >= it->first && in run() 86 groupValue < std::next(it, 1)->first) in run() 88 groupSpeed = it->second; in run()
|
| /openbmc/phosphor-power/ |
| H A D | format_utils.hpp | 47 for (auto it = span.cbegin(); it != span.cend(); ++it) in toString() local 49 str += std::format("{}", *it); in toString() 50 if (std::distance(it, span.cend()) > 1) in toString()
|
| /openbmc/phosphor-pid-control/examples/ |
| H A D | README | 7 configuration is to specify how it can be read and if it's a fan, how the PID 17 The only requirement for a sensor is that it isn't writeonly. Only fans are 37 * If it has "/xyz/openbmc_project/extsensors/" in it, it's an EXTERNAL or 39 * If it has "/xyz/openbmc_project/" in it, it's a sensor whose value is 41 * If it has "/sys/" in it, it's a sensor read directly from sysfs. 45 * If it has "/sys/" in it, it's a sensor written to sysfs. 46 * If min and max are non-zero, it'll convert the value to within the range. 47 and output that modified value. So, if it receives a value of .90 and min 48 is 0, and max is 255, it'll convert that to a value of 229.5 that is then
|