Home
last modified time | relevance | path

Searched refs:node (Results 1 – 14 of 14) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Network/
DBasicNetwork.cs25 public void AttachTo(IBasicNetworkNode<TData, TAddress> node) in AttachTo() argument
29 if(nodes.Contains(node)) in AttachTo()
34 node.TrySendData += SendData; in AttachTo()
35 nodes.Add(node); in AttachTo()
39 public void DetachFrom(IBasicNetworkNode<TData, TAddress> node) in DetachFrom() argument
43 if(nodes.Remove(node)) in DetachFrom()
45 node.TrySendData -= SendData; in DetachFrom()
56 foreach(var node in GetMatchingNodes(destination)) in SendData()
58node.GetMachine().HandleTimeDomainEvent<object>((_) => node.ReceiveData(data, source, destination)… in SendData()
68 foreach(var node in nodes) in GetMatchingNodes()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/
DSVDParser.cs345 private static string GetMandatoryField(XElement node, string fieldName) in GetMandatoryField() argument
347 var fieldElement = node.Element(fieldName); in GetMandatoryField()
354 var path = GetPath(node); in GetMandatoryField()
359 private static string GetOptionalFieldOrNull(XElement node, string fieldName) in GetOptionalFieldOrNull() argument
361 var fieldElement = node.Element(fieldName); in GetOptionalFieldOrNull()
372 private static string GetPath(XElement node) in GetPath() argument
375 … var path = node.Element("name") != null ? node.Element("name").Value : $"<{node.Name.LocalName}>"; in GetPath()
376 var tmpElement = node.Parent; in GetPath()
392 private static ulong? SmartParseHexOrDecimal(string whatToParse, XElement node) in SmartParseHexOrDecimal() argument
482 private void ScanPeripheral(XElement node, RegisterSettings defaultRegisterSettings) in ScanPeripheral() argument
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/renode/
Drenode_memory.c49 static void move_to_head(list_node_t** head, list_node_t* node) in move_to_head() argument
51 if(*head == node) in move_to_head()
57 if(node->prev != NULL) in move_to_head()
59 node->prev->next = node->next; in move_to_head()
62 if(node->next != NULL) in move_to_head()
64 node->next->prev = node->prev; in move_to_head()
67 (*head)->prev = node; in move_to_head()
68 node->prev = NULL; in move_to_head()
69 node->next = *head; in move_to_head()
70 *head = node; in move_to_head()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/Collections/
DTreeBase.cs78 var node = child.TryGetNode(predicate); in TryGetNode()
79 if (node != null) in TryGetNode()
81 return node; in TryGetNode()
113 var node = ChildrenList.FirstOrDefault(x => value.Equals(x.Value)); in RemoveChild()
114 if(node == null) in RemoveChild()
118 ChildrenList.Remove(node); in RemoveChild()
DTreeNode.cs21 var node = new TreeNode<T>(value); in AddChild()
22 ChildrenList.Add(node); in AddChild()
23 return node; in AddChild()
DBidirectionalTreeNode.cs24 var node = new BidirectionalTreeNode<T>(value, this); in AddChild()
25 ChildrenList.Add(node); in AddChild()
26 return node; in AddChild()
DMultiTree.cs28 public bool TryGetNode(TValue value, out MultiTreeNode<TValue, TConnectionWay> node) in TryGetNode() argument
30 node = null; in TryGetNode()
33 node = valueToNode[value]; in TryGetNode()
DMultiTreeNode.cs34 var node = root.FindOrCreateNode(value); in AddChild()
35 node.SetParent(this); in AddChild()
36 ChildrenList.Add(node); in AddChild()
38 return node; in AddChild()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Utilities/
DMachineExtensions.cs94 TreeNode node = fdt.Root.Descendants.FirstOrDefault(x => x.Name == deviceName); in LoadFdt()
95 if(node == null) in LoadFdt()
101 … Property statusProperty = node.Properties.FirstOrDefault(x => x.Name == "status"); in LoadFdt()
104 node.Properties.Remove(statusProperty); in LoadFdt()
107 node.Properties.Add(statusProperty); in LoadFdt()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DZynqMP_PlatformManagementUnit.cs288 var node = (Node)message.Payload[0]; in HandleForcePowerdown()
291 var cpu = GetCpuFromNode(node); in HandleForcePowerdown()
312 …l.Warning, "Received shutdown request for node with id {0} which is not implemented.", (uint)node); in HandleForcePowerdown()
335 var node = (Node)message.Payload[0]; in HandleRequestWakeup()
337 var cpu = GetCpuFromNode(node); in HandleRequestWakeup()
344 pmu.Log(LogLevel.Debug, "Set PC of node {0} to 0x{1:X}.", node, pc); in HandleRequestWakeup()
347 pmu.Log(LogLevel.Debug, "Unhalt node {0}.", node); in HandleRequestWakeup()
353 …vel.Warning, "Received wakeup request for node with id {0} which is not implemented.", (uint)node); in HandleRequestWakeup()
357 private ICPU GetCpuFromNode(Node node) in GetCpuFromNode() argument
359 switch(node) in GetCpuFromNode()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DLRUCache.cs46 var node = ordering.AddFirst(key); in Add()
47 values[key] = new CacheItem { Position = node, Value = value }; in Add()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Config/Devices/
DDevicesConfig.cs428 private void InitializeProperties(object device, IDictionary<string, dynamic> node) in InitializeProperties() argument
430 foreach(var item in node.Keys.Where(x=>Char.IsUpper(x,0))) in InitializeProperties()
432 var value = node[item]; in InitializeProperties()
680 …private bool TryInitializeCtor(Type devType, IDictionary<string,dynamic> node, out object construc… in TryInitializeCtor() argument
683 …var constructors = FindSuitableConstructors(devType, node.Where(x => Char.IsLower(x.Key, 0)).Selec… in TryInitializeCtor()
694 if(node.ContainsKey(ctorParam.Name)) in TryInitializeCtor()
698 … var info = deviceList.SingleOrDefault(di => di.Name == node[ctorParam.Name]); in TryInitializeCtor()
712 var temp = GenerateObject(node[ctorParam.Name], ctorParam.ParameterType); in TryInitializeCtor()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/
DMonitorCommands.cs259 private IEnumerable<String> GetObjectSuggestions(object node) in GetObjectSuggestions() argument
261 if(node != null) in GetObjectSuggestions()
263 return GetMonitorInfo(node.GetType()).AllNames; in GetObjectSuggestions()
1216 public object FindFieldOrProperty(object node, string name) in FindFieldOrProperty() argument
1218 var type = node.GetType(); in FindFieldOrProperty()
1226 return InvokeGet(node, foundProp); in FindFieldOrProperty()
1230 return InvokeGet(node, foundField); in FindFieldOrProperty()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/
DMachine.cs123 var node = registeredPeripherals.TryGetNode(peripheral); in GetParentPeripherals()
124 return node == null ? new IPeripheral[0] : node.Parents.Select(x => x.Value).Distinct(); in GetParentPeripherals()
129 var node = registeredPeripherals.TryGetNode(peripheral); in GetChildrenPeripherals()
130 … return node == null ? new IPeripheral[0] : node.Children.Select(x => x.Value).Distinct(); in GetChildrenPeripherals()