Home
last modified time | relevance | path

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

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/USB/
DMPFS_USB.cs28 addressToDeviceCache = new TwoWayDictionary<byte, IUSBDevice>(); in MPFS_USB()
331 lock(addressToDeviceCache) in HandleSessionStart()
333 addressToDeviceCache.Clear(); in HandleSessionStart()
568 lock(addressToDeviceCache) in TryGetDeviceForEndpoint()
571 if(!addressToDeviceCache.TryGetValue(address, out device)) in TryGetDeviceForEndpoint()
577 … if(!addressToDeviceCache.TryExchange(device, address, out var oldAddress) || oldAddress != 0) in TryGetDeviceForEndpoint()
602 lock(addressToDeviceCache) in TryInitializeConnectedDevice()
604 if(addressToDeviceCache.Exists(0)) in TryInitializeConnectedDevice()
610 … var peripheral = ChildCollection.Values.FirstOrDefault(x => !addressToDeviceCache.Exists(x)); in TryInitializeConnectedDevice()
617 addressToDeviceCache.Add(0, peripheral); in TryInitializeConnectedDevice()
[all …]